View Single Post
Old 10-20-10, 12:02 PM   #1
Registered User
Join Date: Oct 2010
Posts: 3
Default HDMI and ALSA with GTS 450


i have been unsuccessful in getting HDMI audio working with fedora 13 x64.

i followed the instructions from post with little success. .. :

* the system automatically detects and adds kernel module snd_hda_codec_nvhdmi.
* i now have 4 IEC958 alsa controls ( which i un-muted).
* i was able to probe_mask only the active eld ( now i only have 1 IEC958 alsa control).

the result is, "System becomes slow with attempting to play sounds. Sound still does not work! " .

i.e. when i attempt to play a sound via mplayer or xbmc the system become extremal slow.

at one point mplayer output the following interesting message:
           **** Your system is too SLOW to play this!  **** 

Possible reasons, problems, workarounds: 
- Most common: broken/buggy _audio_ driver

- i'm a little confused what i can try next? ..
- once i apply the patches is card just meant to work.. or is there more core needed to support my device?
- is this problem better suited for the alsa-users mailing list?

* patch_nvhdmi.c looks like it only part of the kernel repository.. i assume submitted by nvidia? (module snd_hda_codec_nvhdm.ko)
* in the alsa-drivers package i did find the same code was recently merged under patch_hdmi.c ( i just worked out that's why it was loading load snd_hda_codec_hdm.ko module instead of snd_hda_codec_nvhdmi.ko)

i have exact same problem with and without pulseaudio.

i have tried kernels:
* vanilla 2.6.36 rc8 kernel
* fedora kernel- (built from rawhide srpm)
* fedora kernel- ( re-buillt to include the required changes to patch_nvhdmi.c )
* also attempted to build kernel modules from alsa-drivers daily snapshots on the above (based on atrpms alsa-drivers)

i have also tried nvidia driver versions:
* 256.53-2 (provided by rpmfusion)
* 260.19.12 (provided by rpmfusion.. actually caused mplayer an xbmc segmentation fault ( think it could be VDPAU) .. but that's a diffrent issue )

any help would be appreciated.


==== various outputs ====
[root@matrix log]# aplay -L
    Discard all samples (playback) or generate zero samples (capture)
    HDMI Audio Output
[root@matrix log]#

[root@matrix log]# amixer
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
[root@matrix log]#

extract from lsmod
[root@matrix log]# lsmod | egrep -i 'snd|hda'
snd_hda_codec_nvhdmi    13645  1
snd_hda_intel          23960  2
snd_hda_codec          85624  2 snd_hda_codec_nvhdmi,snd_hda_intel
snd_hwdep               6454  1 snd_hda_codec
snd_seq                53005  0
snd_seq_device          6159  1 snd_seq
snd_pcm                80324  3 snd_hda_intel,snd_hda_codec
snd_timer              19882  2 snd_seq,snd_pcm
snd                    62913  11 snd_hda_codec_nvhdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore               6390  1 snd
snd_page_alloc          7437  2 snd_hda_intel,snd_pcm
[root@matrix log]#

<<or with latest alsa-drivers installed module becomes snd_hda_codec_hdmi as code is intergated into patch_hdmi.c>>

[baartzp@matrix ~]$ lsmod | egrep -i 'snd|hda'
snd_hda_codec_hdmi     21770  1
snd_hda_intel          23144  2
snd_hda_codec          80305  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               6390  1 snd_hda_codec
snd_seq                50203  0
snd_seq_device          6111  1 snd_seq
snd_pcm                75005  3 snd_hda_intel,snd_hda_codec
snd_timer              19210  2 snd_seq,snd_pcm
snd                    61528  11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore               6390  1 snd
snd_page_alloc          7549  2 snd_hda_intel,snd_pcm
[baartzp@matrix ~]$

eld info:
[root@matrix log]# ls  /proc/asound/card*/eld*
[root@matrix log]# cat  /proc/asound/card*/eld*
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              0x509
port_id                 0x20000
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
[root@matrix log]# cat /etc/modprobe.d/snd_hda_intel.conf
options snd-hda-intel  probe_mask=0x102

[root@matrix log]#
extract from lspci -vv
01:00.1 Audio device: nVidia Corporation Device 0be9 (rev a1)
        Subsystem: Giga-byte Technology Device 34fe
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin B routed to IRQ 17
        Region 0: Memory at f7000000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <256ns, L1 <4us
                        ClockPM+ Surprise- LLActRep- BwNot-
                LnkCtl: ASPM L0s Enabled; RCB 128 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel
asw3 is offline   Reply With Quote