Page 1 of 6 123 ... LastLast
Results 1 to 10 of 57

Thread: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

  1. #1
    Join Date
    Jun 2010
    Beans
    244

    ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    ****SEE THIS FIRST (unfortunately this information wasn't posted until after this thread was created) http://www.nvnews.net/vbulletin/show...20&postcount=7

    ** See post #8 in this thread to enable HDMI audio with an Ion2 in Ubuntu 10.04. (upgrade alsa to 1.0.23 via ubuntu backport) ubuntu wiki link https://wiki.ubuntu.com/Audio/Instal...aDriverModules

    ** See post #21 for an alternate solution by upgrading the kernel to 2.6.35 via ubuntu kernel backport. (do this if the alsa 1.0.23 backport doesn't work)

    **Follow this thread (thanks to zAPPzAPP) for the final touches about setting up the dmix/hw and default sound
    http://ubuntuforums.org/showthread.php?t=1620926


    Hello,

    I have a nvidia ion2 and I can't get audio over hdmi to work. I think I've narrowed it down to the snd_hda_intel module and it's hdmi management but I can't be sure so I'm posting here.

    To cover the basics.

    I understand alsa 1.0.23 or a 2.6.35 kernel is required for the updated driver. I've also discovered the probemask info but to simplify things I just disabled the onboard sound leaving only the ion2.

    I'm currently trying to use a backported maverick 2.6.35-14 kernel from the ppa on a 10.04 base with nvidia 256.44 drivers.

    Code:
    xbmc@xbmc-HTPC:~$ uname -r; cat /proc/asound/version
    2.6.35-14-generic-pae
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Code:
    xbmc@xbmc-HTPC:~$ aplay -l; aplay -L
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    pulse
        Playback/recording through the PulseAudio sound server
    hdmi:CARD=NVidia
        HDA NVidia, NVIDIA HDMI
        HDMI Audio Output
    Code:
    xbmc@xbmc-HTPC:~$ lsmod
    Module                  Size  Used by
    snd_hda_codec_nvhdmi    12879  1 
    nvidia              10195166  40 
    snd_hda_intel          22203  0 
    snd_hda_codec          87392  2 snd_hda_codec_nvhdmi,snd_hda_intel
    snd_hwdep               5040  1 snd_hda_codec
    snd_pcm                71603  2 snd_hda_intel,snd_hda_codec
    snd_seq_midi            4588  0 
    snd_rawmidi            17783  1 snd_seq_midi
    snd_seq_midi_event      6047  1 snd_seq_midi
    snd_seq                47206  2 snd_seq_midi,snd_seq_midi_event
    snd_timer              19067  2 snd_pcm,snd_seq
    snd_seq_device          5744  3 snd_seq_midi,snd_rawmidi,snd_seq
    snd                    49006  8 snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    soundcore                880  1 snd
    snd_page_alloc          7216  2 snd_hda_intel,snd_pcm
    lp                      7342  0 
    parport                31492  1 lp
    psmouse                58969  0 
    intel_agp              25589  0 
    joydev                  8735  0 
    agpgart                32075  2 nvidia,intel_agp
    serio_raw               4022  0 
    usbhid                 37234  0 
    hid                    67742  1 usbhid
    e100                   30676  0 
    ahci                   19013  0 
    libahci                20107  4 ahci
    mii                     4425  1 e100
    lspci and lspci -nv
    Code:
    02:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] (rev a2)
    02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
    Code:
    02:00.0 0300: 10de:0a75 (rev a2)
        Subsystem: 17aa:3605
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at ce000000 (64-bit, prefetchable) [size=32M]
        I/O ports at ec00 [size=128]
        [virtual] Expansion ROM at feb00000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information <?>
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb
    
    02:00.1 0403: 10de:0be3 (rev a1)
        Subsystem: 17aa:3605
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at febfc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel
    The results from aplay.

    Code:
    xbmc@xbmc-HTPC:~$ aplay -D plughw:0,3 /usr/share/sounds/alsa/Noise.wav
    Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    xbmc@xbmc-HTPC:~$ aplay -D hdmi:NVidia /usr/share/sounds/alsa/Noise.wav
    Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    aplay: set_params:996: Channels count non available
    xbmc@xbmc-HTPC:~$ aplay -D hdmi:CARD=NVidia /usr/share/sounds/alsa/Noise.wav
    Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    aplay: set_params:996: Channels count non available
    However even with plughw:0,3 there is still no sound coming out of my tv. The nvidia card is unmuted in alsamixer.


    Code:
    xbmc@xbmc-HTPC:/proc/asound/card0$ ls
    codec#1  eld#1.0  id  pcm3p
    xbmc@xbmc-HTPC:/proc/asound/card0$ cat codec#1
    Codec: Nvidia GT21x HDMI
    Address: 1
    Function Id: 0x1
    Vendor Id: 0x10de000b
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
        rates [0x0]:
        bits [0x0]:
        formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
      Control: name="IEC958 Playback Con Mask", index=0, device=0
      Control: name="IEC958 Playback Pro Mask", index=0, device=0
      Control: name="IEC958 Playback Default", index=0, device=0
      Control: name="IEC958 Playback Switch", index=0, device=0
      Device: name="NVIDIA HDMI", type="HDMI", device=3
      Converter: stream=6, channel=0
      Digital: Enabled GenLevel
      Digital category: 0x2
      PCM:
        rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
        bits [0xe]: 16 20 24
        formats [0x5]: PCM AC3
      Unsolicited: tag=00, enabled=0
    Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
      Pincap 0x09000094: OUT Detect HBR HDMI DP
      Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
        Conn = Digital, Color = Unknown
        DefAssociation = 0x1, Sequence = 0x0
      Pin-ctls: 0x40: OUT
      Unsolicited: tag=05, enabled=1
      Connection: 1
         0x04
    xbmc@xbmc-HTPC:/proc/asound/card0$ cat eld#1.0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    I think that monitor_present 0 means that snd_hda_intel has failed to detect that the tv is connected? I've tried physically toggling the connection with no luck. I also grabbed an edid.bin generated from win 7 registry (where the hdmi sound works) and used it in the xorg.conf with CustomEDID just incase the nvidia driver in linux wasn't grabbing it properly.

    It's my assumption the graphics driver grabs the edid from the display and shares it with alsa who generates the eld#1.0

    Leading me back to /proc/asound/card0/eld#1.0

    I tried alsa force-reload that just cleared all the snd_hda_intel options. eg. empties out /proc/asound/card0 leaving no eld at all.

    I also tried modprobe -r snd_hda_intel and reloading it. It was the same effect as restarting alsa.

    So I was wondering if anybody knows how to force the hdmi connection and the eld information to be set in alsa/snd_hda_intel. I can't seem to find any information on this.
    Last edited by tjones00; January 9th, 2011 at 03:05 AM.

  2. #2
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    6,905
    Distro
    Ubuntu Gnome 15.04 Vivid Vervet

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Wow, way too complicated for me.
    You've disabled on board sound and are trying to get audio from the hdmi port of your nVidia Corporation GT218 [GeForce 310M] controller, correct? And you've referenced this page also?
    http://wiki.xbmc.org/index.php?title...T220,_or_GT240

    How is it aplay -l only shows one device (for hdmi)? I would expect something more like post #4 here:
    http://ubuntuforums.org/showthread.php?t=1534597
    Last edited by lidex; August 14th, 2010 at 02:46 PM.

  3. #3
    Join Date
    Jun 2010
    Beans
    244

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Yes (http://wiki.xbmc.org/index.php?title...T220,_or_GT240)

    is where I discovered the probemask info.

    However if you simply disable the onboard sound you don't need to setup a /etc/modprobe.d/sound.conf for the gt2xx to use the proper codec. I did this just so I could troubleshoot what was wrong without having to worry about another card mucking things up.

    The realtek codec is the one that lists 4 pcms eg 1,3 1,7 1,8 1,9 is the typical result if you do not use the probemask.

    Upon using a generic probemask with onboard enabled eg. enable_msi=0 probe_mask=0xffff,0xfff2 it switches to the gt21xx codec and only the single 1,3 pcm.

    Interestingly in win7 it uses the realtek driver and lists 4 pcms.'

    I found some info on the 4 pcm definitions however it seems I didn't bookmark it. But 3 should be hdmi output 7, 8, 9 are just the different formats eg pcm vs ac3 vs dts. With the gt2xx codec all formats should be enabled and routed through 0,3 in my case.

    **edit a post by someone who defined the 4 pmc outputs.
    http://www.mail-archive.com/alsa-use.../msg26691.html

    7=pcm
    8=ac3
    9=dts

    he was using alsa 1.0.22 and a gt220 with gt2xx codec so who knows my lack of pcms could be due to my card being incompatible with the gt2xx codec and therefore alsa won't setup multiple pcms.


    I found another post regarding someone with a mucked up eld.

    http://www.nvnews.net/vbulletin/showthread.php?t=153075

    It appears there is no resolution besides patching snd_hda_intel. And it appears the module in 2.6.35-14 kernel from ppa:kernel-ppa/ppa linux-lts-backport-maverick is not patched.

    So even if i were to try using the realtek codec the hdmi output sense is broken for my card at least in snd_hda_intel.

    I've scrapped the system for now but some possible fixes would be to patch snd_hda_intel either in the kernel or alsa 1.0.23.

    Another possible fix would be enabling hdmi as default with a kernel boot paramater eg. video="HDMI Type A-1:1920x1080 <at> 60D" for a 1080p setup. Perhaps it's a kms issue with snd_hda_intel setting up assuming a vga/dvi connection.

    If anybody reading this really really really wants to use hdmi for their audio you can try a hacked edid.bin removing all the audio data and splice the analog audio with the vga/dvi video into an hdmi adapter. Try a google on nvidia edid.bin. This is an old hack for nvidia hdmi audio troubles.

    Oh snap that just made me realize I could try enabling onboard sound, strip the edid.bin audio data create a pcm duping the analog output from the onboard and try routing it through the hdmi. That might work since the hdmi sink in snd_hda_intel turns on sound when hdmi is sensed but with analog it's always on. Well it might not be always on but you could always plug something in it or hack the jack sense. Would that work? Darn I already trashed the system.

    #edit the above might only work if you use the realtek codec that has the 1,3 1,7 1,8 1,9 pcm setup using 1,3 as the route path.

    Anyway I'm dropping this since I've spent 2 weeks on it so far trying to hack around it I'll just wait until the pros get this figured out.
    Last edited by tjones00; August 15th, 2010 at 07:13 AM.

  4. #4
    Join Date
    Jun 2010
    Beans
    244

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Out of curiousity and the pcm info I installed a new 10.04 2.6.32-24-generic and upgraded alsa to 1.0.23 via the upgrade script. Nvidia drivers 195.36 installed via apt-get install nvidia-current

    before any probemasking

    Code:
    xbmc@xbmc-HTPC:/proc/asound/card1$ aplay -l; aplay -L
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    null
        Discard all samples (playback) or generate zero samples (capture)
    default:CARD=Intel
        HDA Intel, ALC662 rev1 Analog
        Default Audio Device
    front:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        Front speakers
    surround40:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Intel,DEV=0
        HDA Intel, ALC662 rev1 Digital
        IEC958 (S/PDIF) Digital Audio Output
    hdmi:CARD=NVidia
        HDA NVidia, NVIDIA HDMI
        HDMI Audio Output
    all 4 channels are unmuted in alsamixer

    now here's the odd part yet again. the gt218 is card1

    Code:
    xbmc@xbmc-HTPC:/proc/asound/card1$ cat /proc/asound/cards
     0 [Intel          ]: HDA-Intel - HDA Intel
                          HDA Intel at 0xfcef8000 irq 26
     1 [NVidia         ]: HDA-Intel - HDA NVidia
                          HDA NVidia at 0xfebfc000 irq 16
    xbmc@xbmc-HTPC:/proc/asound/card1$ ls
    codec#0  codec#1  codec#2  codec#3  eld#0.0  eld#1.0  eld#2.0  eld#3.0  id  oss_mixer  pcm3p  pcm7p  pcm8p  pcm9p
    xbmc@xbmc-HTPC:/proc/asound/card1$ cat codec#*
    Codec: Nvidia GT21x HDMI
    Address: 0
    Function Id: 0x1
    Vendor Id: 0x10de000b
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
        rates [0x0]:
        bits [0x0]:
        formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
      Control: name="IEC958 Playback Con Mask", index=0, device=0
      Control: name="IEC958 Playback Pro Mask", index=0, device=0
      Control: name="IEC958 Playback Default", index=0, device=0
      Control: name="IEC958 Playback Switch", index=0, device=0
      Device: name="NVIDIA HDMI", type="HDMI", device=3
      Converter: stream=0, channel=0
      Digital: Enabled
      Digital category: 0x0
      PCM:
        rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
        bits [0xe]: 16 20 24
        formats [0x5]: PCM AC3
      Unsolicited: tag=00, enabled=0
    Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
      Pincap 0x09000094: OUT Detect HBR HDMI DP
      Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
        Conn = Digital, Color = Unknown
        DefAssociation = 0x1, Sequence = 0x0
      Pin-ctls: 0x40: OUT
      Unsolicited: tag=05, enabled=1
      Connection: 1
         0x04
    Codec: Nvidia GT21x HDMI
    Address: 1
    Function Id: 0x1
    Vendor Id: 0x10de000b
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
        rates [0x0]:
        bits [0x0]:
        formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
      Control: name="IEC958 Playback Con Mask", index=1, device=0
      Control: name="IEC958 Playback Pro Mask", index=1, device=0
      Control: name="IEC958 Playback Default", index=1, device=0
      Control: name="IEC958 Playback Switch", index=1, device=0
      Device: name="NVIDIA HDMI", type="HDMI", device=7
      Converter: stream=0, channel=0
      Digital: Enabled
      Digital category: 0x0
      PCM:
        rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
        bits [0xe]: 16 20 24
        formats [0x5]: PCM AC3
      Unsolicited: tag=00, enabled=0
    Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
      Pincap 0x09000094: OUT Detect HBR HDMI DP
      Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
        Conn = Digital, Color = Unknown
        DefAssociation = 0x1, Sequence = 0x0
      Pin-ctls: 0x40: OUT
      Unsolicited: tag=05, enabled=1
      Connection: 1
         0x04
    Codec: Nvidia GT21x HDMI
    Address: 2
    Function Id: 0x1
    Vendor Id: 0x10de000b
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
        rates [0x0]:
        bits [0x0]:
        formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
      Control: name="IEC958 Playback Con Mask", index=2, device=0
      Control: name="IEC958 Playback Pro Mask", index=2, device=0
      Control: name="IEC958 Playback Default", index=2, device=0
      Control: name="IEC958 Playback Switch", index=2, device=0
      Device: name="NVIDIA HDMI", type="HDMI", device=8
      Converter: stream=0, channel=0
      Digital: Enabled
      Digital category: 0x0
      PCM:
        rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
        bits [0xe]: 16 20 24
        formats [0x5]: PCM AC3
      Unsolicited: tag=00, enabled=0
    Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
      Pincap 0x09000094: OUT Detect HBR HDMI DP
      Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
        Conn = Digital, Color = Unknown
        DefAssociation = 0x1, Sequence = 0x0
      Pin-ctls: 0x40: OUT
      Unsolicited: tag=05, enabled=1
      Connection: 1
         0x04
    Codec: Nvidia GT21x HDMI
    Address: 3
    Function Id: 0x1
    Vendor Id: 0x10de000b
    Subsystem Id: 0x10de0101
    Revision Id: 0x100100
    No Modem Function Group found
    Default PCM:
        rates [0x0]:
        bits [0x0]:
        formats [0x0]:
    Default Amp-In caps: N/A
    Default Amp-Out caps: N/A
    GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
    Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
      Control: name="IEC958 Playback Con Mask", index=3, device=0
      Control: name="IEC958 Playback Pro Mask", index=3, device=0
      Control: name="IEC958 Playback Default", index=3, device=0
      Control: name="IEC958 Playback Switch", index=3, device=0
      Device: name="NVIDIA HDMI", type="HDMI", device=9
      Converter: stream=0, channel=0
      Digital: Enabled
      Digital category: 0x0
      PCM:
        rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
        bits [0xe]: 16 20 24
        formats [0x5]: PCM AC3
      Unsolicited: tag=00, enabled=0
    Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
      Pincap 0x09000094: OUT Detect HBR HDMI DP
      Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
        Conn = Digital, Color = Unknown
        DefAssociation = 0x1, Sequence = 0x0
      Pin-ctls: 0x40: OUT
      Unsolicited: tag=05, enabled=1
      Connection: 1
         0x04
    xbmc@xbmc-HTPC:/proc/asound/card1$ cat eld*
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    Even with the 4 pcm channels none of them have any eld information. As in my original post plughw does not report errors but no audio comes out of the TV. Whereas hw or the pcm report channel errors etc.

    If I were to probemask the results are the same as in my original post with only 1,3 being the only pcm listed.

    Time to try the analog hack I guess.
    Last edited by tjones00; August 15th, 2010 at 08:14 AM.

  5. #5
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    6,905
    Distro
    Ubuntu Gnome 15.04 Vivid Vervet

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    This is just way too complicated. Should be a much easier fix. Have you seen this thread:
    http://ubuntuforums.org/showthread.php?t=1532355

  6. #6
    Join Date
    Jun 2010
    Beans
    244

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Thank you for your interest in my issue lidex. This has really been mystifying me. I try to walk away and I just can't.

    I wish I had an atom 330 ion1 system now lol.

    aplay -D hdmi:CARD=NVidia,DEV=0 ./SURROUNDTEST_011212.wav didn't produce any errors but no physical sound either.

    To prevent myself from posting another wall of text I'll just leave some links regarding ion2 that I've gathered.

    My system is a lenovo q150 D510 ion2.

    http://ossnotebook.blogspot.com/2010...novo-q150.html

    I've tried adjusting the rate with no luck in 10.04 with upgraded kernel or alsa 1.0.23.

    ion2 on zotac
    http://www.spinics.net/linux/fedora/.../msg09096.html
    http://forums.gentoo.org/viewtopic-t-827888.html
    I believe Petter is the user pgu on the gentoo post he has other posts in the alsa-user mail list.

    Both of these results suggest they don't have any eld as well.

    According to other gtxx posts I've read the probemask 1,3 setup is "proper" for nvidia hdmi not 1,3 1,7 1,8 1,9.

    About eld From Takashi 2.6.34 kernel notes. Line 174

    http://www.mjmwired.net/kernel/Docum...a/Procfile.txt

    I'm going to see if I can install a 10.10 minimal with no desktop to eliminate any pulseaudio settings.

  7. #7
    Join Date
    Jun 2010
    Beans
    244

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Well I finally got it working. I'm not exactly sure how.

    After no success with my last 10.10 install I dropped back to 10.04 and used the backported alsa modules from ubuntu because I was sick of compiling. This is using the 185 drivers installed via.

    Code:
    sudo apt-get install nvidia-185-kernel-source nvidia-185-modaliases nvidia-glx-185 nvidia-settings libvdpau1 -y

    Code:
    xbmc@xbmc-HTPC:/proc/asound/card1$ uname -r
    2.6.32-24-generic
    xbmc@xbmc-HTPC:/proc/asound/card1$ apt-cache search linux-backports-modules-alsa-2.6.32-24
    linux-backports-modules-alsa-2.6.32-24-generic - Ubuntu supplied Linux modules for version 2.6.32 ALSA snapshots.
    linux-backports-modules-alsa-2.6.32-24-generic-pae - Ubuntu supplied Linux modules for version 2.6.32 ALSA snapshots.
    I installed the 2.6.32 backport then started playing around with the probemask /etc/modprobe.d/sound.conf and the nomodset and noplymouth boot parameters.

    Code:
    xbmc@xbmc-HTPC:/proc/asound/card1$ cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Compiled on Jul  6 2010 for kernel 2.6.32-24-generic (SMP).
    Eventually without a probemask 1,9 picked up an eld when I had nomodeset noplymouth enabled.

    Code:
    xbmc@xbmc-HTPC:/proc/asound/card1$ cat eld*
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    monitor_present        1
    eld_valid        1
    monitor_name        SAMSUNG
        
    connection_type        HDMI
    eld_version        [0x2] CEA-861D or below
    edid_version        [0x3] CEA-861-B, C or D
    manufacture_id        0x2d4c
    product_id        0x313
    port_id            0x10000
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x1] FL/FR
    sad_count        1
    sad0_coding_type    [0x1] LPCM
    sad0_channels        2
    sad0_rates        [0xe0] 44100 48000 88200
    sad0_bits        [0xe0000] 16 20 24
    The last output is from eld#3.0 so device 1,9.

    plughw:1,9 now works perfectly with no noise distortion and I didn't have to specify any rates. I haven't tried pcm alias's or hw: yet but who cares at this point. It works.

    I've now removed nomodeset and noplymouth and it still picks up the eld. If I put the probemask back on (changing from 4 devices to 1) 1,3 no eld is present.

    I can't be exactly sure when it picked up the eld if it was the first nomodeset or noplymouth since I was trying different probemasks. The important point is it acquired and retained the information.

    I will reinstall 10.04 today with 256.44 nvidia drivers and see if I can replicate this result pinpointing what the key issue was.
    Last edited by tjones00; August 17th, 2010 at 12:58 PM.

  8. #8
    Join Date
    Jun 2010
    Beans
    244

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    ***Update read this first: http://www.nvnews.net/vbulletin/show...20&postcount=7

    ***Ubuntu wiki instructions regarding how to upgrade alsa modules https://wiki.ubuntu.com/Audio/Instal...aDriverModules



    Got it working again on a fresh install.

    hw:1,9 works without distortion in most cases however plughw seems to handle the mixing properly.

    eld was acquired upon installing the base system, nvidia drivers 256.44, and the ubuntu backport alsa 1.0.23

    It appears nomodeset and noplymouth had nothing to do with it.

    The difference was installing alsa 1.0.23 via the upgrade script using the alsa-project ftp vs the ubuntu backport.

    Interestingly the patch that was suppose to correct hdmi sense was not officially applied for the kernel drivers until the beginning of august whereas the ubuntu 10.04 backport is timestamped for july 6th. Perhaps the ubuntu guys were a bit quicker on the fix?

    My failures with the ubuntu 2.6.35 kernel from the ppa is probably due to me using the probemask and not checking the eld#3.0 for device 1,9 without the probemask.


    Enabling your hardware:


    To wrap things up:

    With an ion2 try installing the ubuntu alsa 1.0.23 backport.

    Update: Ubuntu wiki page on this subject: https://wiki.ubuntu.com/Audio/Instal...aDriverModules

    Code:
    xbmc@xbmc-HTPC:~$ uname -r
    2.6.32-24-generic
    xbmc@xbmc-HTPC:~$ apt-cache search linux-backports-modules-alsa-2.6.32-24
    linux-backports-modules-alsa-2.6.32-24-generic - Ubuntu supplied Linux modules for version 2.6.32 ALSA snapshots.
    linux-backports-modules-alsa-2.6.32-24-generic-pae - Ubuntu supplied Linux modules for version 2.6.32 ALSA snapshots
    in my case

    Code:
    sudo apt-get install linux-backports-modules-alsa-2.6.32-24-generic alsa-utils
    Reboot. (sudo reboot)

    Then check to see that you're using alsa 1.0.23 backport.
    cat /proc/asound/version

    Code:
    xbmc@xbmc-HTPC:~$ cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Compiled on Jul  6 2010 for kernel 2.6.32-24-generic (SMP).
    Discover all devices listed. aplay -l

    Code:
    xbmc@xbmc-HTPC:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    Next check to see if you have any eld info on a device. My ion2 is card1 in this case.

    Code:
    cd /proc/asound/card1
    cat eld#0.0
    cat eld#1.0
    cat eld#2.0
    cat eld#3.0
    eld#0.0 corresonds to device 1,3, #1.0 to device 1,7 #2.0 to device 1,8 and #3.0 to device 1,9

    A positive result for eld data will look something like this:

    Code:
    monitor_present        1
    eld_valid        1
    monitor_name        SAMSUNG
    
    connection_type        HDMI
    eld_version        [0x2] CEA-861D or below
    edid_version        [0x3] CEA-861-B, C or D
    manufacture_id        0x2d4c
    product_id        0x313
    port_id            0x10000
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x1] FL/FR
    sad_count        1
    sad0_coding_type    [0x1] LPCM
    sad0_channels        2
    sad0_rates        [0xe0] 44100 48000 88200
    sad0_bits        [0xe0000] 16 20 24
    A negative result will look like this:

    Code:
    monitor_present        0
    eld_valid        0
    monitor_name        
    connection_type        HDMI
    eld_version        [0x0] reserved
    edid_version        [0x0] no CEA EDID Timing Extension block present
    manufacture_id        0x0
    product_id        0x0
    port_id            0x0
    support_hdcp        0
    support_ai        0
    audio_sync_delay    0
    speakers        [0x0]
    sad_count        0
    If you have no eld data for any device you're in the same boat that I was at the start of this thread

    If you have eld data for a device first unmute the device in alsamixer then test the device.

    alsamixer

    Select a device/channel and press m to unmute the devices/channels .MM denotes muted 00 is unmuted.

    Test the audio with aplay *,* denotes whatever device you're testing eg 1,9 = plughw:1,9. hdmi:NVidia is a pcm alias used by the system

    aplay -Dplughw:*,* /path/to/file.wav
    aplay -Dhw:*,* /path/to/file.wav
    aplay -Dhdmi:NVidia /path/to/file.wav

    /usr/share/sounds/alsa/ has some .wav files you can test

    At this point you've determined that your hardware works. Now you must configure alsa/pulseaudio.




    Update: setting the alsa snd-hda-intel probemask for your device.

    A lot of people tend to be confused by the information in this post. I've attempted to make a less confusing howto using the probemask method http://ubuntuforums.org/showthread.php?t=1668737

    http://www.nvnews.net/vbulletin/show...20&postcount=7

    You might be able to ignore the Configuring Alsa pcm alias section below by assigning a probemask to the device responsible for hdmi audio.

    An alternative is to use the "probe_mask" ALSA module parameter as described on this page:

    http://wiki.xbmc.org/?title=HOW-TO_s...20%2C_or_GT240

    However, please note that the actual values for probe_mask on that page don't make sense; the correct values you should try are 0x101, 0x102, 0x104, 0x108. You can determine which you need by plugging in your HDMI monitor, starting X, then viewing /proc/asound/card*/eld*. Whichever eld file has your monitor's information in it will tell you which probe_mask to use; eld#0.0 -> 0x101, eld#1.0 -> 0x102, eld#2.0 -> 0x104, eld#3.0 -> 0x108. If you use multiple HDMI monitors and want audio on both, logical/bitwise OR the probe_mask values together. Note that the required probe_mask will change if you move monitors to different connectors on your graphics board.
    eg. If 1,9 is my device to set a probemask for alsa hw:1,9 I'd do the following.
    Code:
    sudo gedit /etc/modprobe.d/sound.conf
    add

    options snd-hda-intel probe_mask=0x108

    save the file and reboot.

    This should tell alsa (snd-hda-intel module) that the hdmi output on my ion2 is 1,9 (NVidia,9) instead of 1,3(NVidia,3 default). I haven't tried this myself. I believe these masks should use the NVidia id (symlink) since it would make the most sense vs a discrete 0,1,2,3 definition.

    hw:NVidia,3 = 0x101
    hw:NVidia,7 = 0x102
    hw:NVidia,8 = 0x104
    hw:NVidia,9 = 0x108

    To test the new probemask try aplay -D hdmi:NVidia /path/to/wav.file

    If that doesn't work for alsa undo the modification and continue onto Configuring Alsa.

    If you hear sound do the following:

    Code:
    sudo gedit /etc/pulse/default.pa
    change

    Code:
    ### Load audio drivers statically (it's probably better to not load
    ### these drivers manually, but instead use module-hal-detect --
    ### see below -- for doing this automatically)
    #load-module module-alsa-sink
    to

    Code:
    ### Load audio drivers statically (it's probably better to not load
    ### these drivers manually, but instead use module-hal-detect --
    ### see below -- for doing this automatically)
    load-module module-alsa-sink device=hdmi:NVidia
    Save the file and reboot. If you still don't get audio at your desktop by this point make sure you've cleared all local user settings for pulseaudio so it will use the configuration from default.pa

    To remove local pulseaudio settings (thx to lidex) Within a terminal in your desktop type:

    Code:
    rm -r ~/.pulse ~/.asound* ~/.pulse-cookie
    After removing the files logout/login or reboot.



    Configuring Alsa:


    Information as to setting up a proper pcm alias for a device can be found

    http://alsa.opensrc.org/.asoundrc

    You may set these options in the /etc/asound.conf file to be default for the entire system. .asoundrc is per user but the format is the same.

    Update: See this thread for more about setting up default audio with dmix/hw.
    http://ubuntuforums.org/showthread.php?t=1620926


    Please see post #3 in the thread linked above.

    eg. I want to create a new hdmi alias for hw:1,9, rate=48000, format=S16_LE and set it as default.
    Code:
    pcm.dmixer {
      type dmix
      ipc_key 2048
      slave {
        pcm "hw:1,9" # Always use pure hw. dmix will reformat/resample audio.
        period_size 512 # If you get stuttering/or non-working audio, fiddle around with these
        buffer_size 4096
        rate 48000 # HDMI, I'll assume 48kHz
        format S16_LE # Should be default for pretty much any soundcard.
      }
      bindings {
        0 0
        1 1
      }
    }
    
    pcm.!default {
      type plug
      slave.pcm dmixer
    }
    Depending on your eld and codec information (codec is found in the same directory as eld) you may chose to set variables such as rates, format, channel # etc.


    Changing default device to NVidia:*


    **note if you just want to set default sound to NVidia,9 (hw:1,9) thanks to http://ossnotebook.blogspot.com/

    In case you want to make a permanent change for the hdmi sound as the deafult card you can update /usr/share/alsa/alsa.conf and change these lines:

    defaults.ctl.card 0
    defaults.pcm.card 0
    defaults.pcm.device 0

    to this:

    defaults.ctl.card NVidia
    defaults.pcm.card Nvidia
    defaults.pcm.device 9
    The above should correctly setup the system to use NVidia,9 (hw:1,9). I'm not sure if this corrects the faulty hdmi:NVidia alias though. ie. would hdmi:NVidia automatically use device 9. If I find more information on this I'll update this post.



    Configuring Pulseaudio:


    In Ubuntu there are basically two sound layers alsa is the base then in a standard desktop environment pulseaudio sits ontop of alsa. Once you've established that your sound works in alsa with aplay -D or discovery of eld information but you are not getting sound at your desktop the issue is most likely pulseaudio.

    At this point you know what the proper device call is for your hdmi. So in a terminal within your desktop type:

    Code:
    pactl list | less
    http://linux.die.net/man/1/pactl

    This will display the pulseaudio sinks to alsa for sound. If there is no hdmi sink or the sink is misconfigured eg 1,3 instead of 1,9 do the following.

    Edit

    /etc/pulse/default.pa

    find the "module-alsa-sink" section and add (eg. for hw1,9)

    Code:
    load-module module-alsa-sink device=hw:1,9
    at the end of the section using your device definition of course.

    Ok I'm done here good luck with those ion2's guys!
    Last edited by tjones00; February 1st, 2011 at 09:10 PM.

  9. #9
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    6,905
    Distro
    Ubuntu Gnome 15.04 Vivid Vervet

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Thanks for posting your solution. Good work!

  10. #10
    Join Date
    Aug 2010
    Beans
    8

    Re: ion2 hdmi audio alsa/snd_hda_intel doesn't think my tv is connected

    Thanks for these posts. I now have my Zotac Zbox HD-ID11 (ion2) working.

    Well, using the HDMI port translates to plughw:1,7. I tried using the DVI port but sound is not working yet (not really needed though).

    Using linux-backports-modules-alsa-2.6.32-24-generic
    Nvidia Driver: 195.36.24

    I was running kernel 2.6.32-22, but alsa backports must be 2.6.32-24, so upgraded to newer kernel and then the list of NVIDIA hdmi devices showed up.

    Code:
    user@HD-ID11$  uname -r
    2.6.32-24-generic
    
    user@HD-ID11$  aplay -l;aplay -L
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    null
        Discard all samples (playback) or generate zero samples (capture)
    front:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        Front speakers
    surround40:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
        HDA Intel, ALC888 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Intel,DEV=0
        HDA Intel, ALC888 Digital
        IEC958 (S/PDIF) Digital Audio Output
    hdmi:CARD=NVidia
        HDA NVidia, NVIDIA HDMI
        HDMI Audio Output

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •