Nvidia GTX 5XX HDMI audio problem

hello i have gtx 560 and have problem with passing audio over hdmi
i can see my card in alsamixer but cannot change volume

sudo aplay -L                                                                    
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output

speaker-test -c 2 -r 48000 -D hw:1,3
speaker-test -c 2 -r 48000 -D hw:1,7
speaker-test -c 2 -r 48000 -D hw:1,8
speaker-test -c 2 -r 48000 -D hw:1,9

does not produce any sound

cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xfa620000 irq 60
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfa080000 irq 17
 2 [U0x46d0x992    ]: USB-Audio - USB Device 0x46d:0x992
                      USB Device 0x46d:0x992 at usb-0000:00:1d.0-1.3, high speed

lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b5)
00:1d.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation GF114 [GeForce GTX 560] (rev a1)
**01:00.1 Audio device: nVidia Corporation Device 0e0c (rev a1)**
03:00.0 USB Controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:00.0 SATA controller: JMicron Technology Corp. JMB362 AHCI Controller (rev 10)
06:00.0 USB Controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 PCI bridge: ASMedia Technology Inc. ASM108x PCIe to PCI Bridge Controller (rev 01)
08:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
08:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
09:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)

ls -F /proc/asound/card1
codec#0  codec#1  codec#2  codec#3  eld#0.0  eld#1.0  eld#2.0  eld#3.0  id  pcm3p/  pcm7p/  pcm8p/  pcm9p/

cat /proc/asound/card1/eld#1.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              0x7c2
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] 32000 44100 48000
sad0_bits               [0xe0000] 16 20 24

this is my alsamixer , i cannot change volume
http://clip2net.com/clip/m31684/1331965373-clip-13kb.png

You posted a lot of great information. Can you post a bit more ? Please with pc connected to internet, post the output URL/web address you get at the very end of script execution, when running the script:


/usr/sbin/alsa-info.sh

also you could consider installing the application ‘pavucontrol’ and use that to help control your HDMI. Run that application ‘pavucontrol’ the first time that you are trying to play audio via an application with HDMI.

You can make the nvidia card as your default in yast2 sound
and in pavucontrol -configuration hdmi as default and it should
get a sound over HDMI, however you might lost your audio from the other two
audio devices unless you configure your /etc/pulse/default.pa to have a simultaneous
sound from all of your audio devices.

Here i am only using two and works nicely. I am worried with the usb audio that you have.

this is output of /usr/sbin/alsa-info.sh --upload

http://www.alsa-project.org/db/?f=0b13fa65505e3a90b71dcd2f4f2b5f6fa8a3b6cf
i have played with my configuration more
1 ) i edit /etc/pulse/default.pa added:
load-module module-alsa-sink device=hw:1,7
load-module module-alsa-sink device=hw:0,0
2) then i get 1 more devise in photon called “Internal Audio Analog Stereo”
3 i do not remember what exactly i did that in “Device Preference” of Photon this devise was disabled
4) i was playing movie in Kaffeine (i’m not sure if this is important ) i went to “Audio Hardware Setup”
5) i have picked “independent devices” source device “HDA NVidia” when i press front left or front right sound was playing from my TV
6) after i enabled this device no more sound i produced when i pressed front left or right

Nvidia card is default in Yast2

pavucontrol -configuration
Usage:
  pavucontrol [OPTION...] 

PulseAudio Volume Control

Help Options:
  -h, --help               Show help options
  --help-all               Show all help options
  --help-gtk               Show GTK+ Options

Application Options:
  -t, --tab                Select a specific tab on load.
  --display=DISPLAY        X display to use

ok I note this:


!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

which as you note confirms HDMI for device-3 as hw:1,3, device-7 as hw:1,7, device-8 as hw:1,8, and device-9 as hw:1,9.

Then I noted:


!!-------Mixer controls for card 1 [NVidia]

Card hw:1 'NVidia'/'HDA NVidia at 0xfa080000 irq 17'
  Mixer name	: 'Nvidia GPU 16 HDMI/DP'
  Components	: 'HDA:10de0016,10de0101,00100100'
  Controls      : 24
  Simple ctrls  : 4
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback **[off]**
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback **[off]**
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]

My guess is:

  • ‘IEC958’,0 is hw:1,3
  • ‘IEC958’,1 is hw:1,7
  • ‘IEC958’,2 is hw:1,8
  • ‘IEC958’,3 is hw:1,9

and clearly then muted was hw:1,7 and hw:1,8 and hence it was not possible for


speaker-test -c 2 -r 48000 -D hw:1,7
speaker-test -c 2 -r 48000 -D hw:1,8

to yield sound as they were muted. Hence that test was invalid.

ok i unmute all of them and1,7 give me a sound :slight_smile:

Ok, great ! So we have identified hw:1,7 as your HDMI device. IMHO you now need to follow the advice of conram from another thread which is edit /etc/pulse/default.pa and add this line for your HDMI


### Load HDMI device
load-module module-alsa-sink device=hw:1,7
load-module module-combine sink_name=combined
set-default-sink combined

restart and test. I also recommend you install the application pulse audio volume control (pavucontrol) and run ‘pavucontrol’ the 1st time you play a multimedia application with the intent to play sound through your HDMI device. You should see your HDMI selection in pavucontrol.

Conram, please correct me if I am out of date here.