You are not logged in.

#1 2017-04-20 04:45:50

duyinthee
Member
Registered: 2015-06-14
Posts: 222
Website

[SOLVED] HDMI sound card is not detected by pulseaudio?

I installed fresh Arch + KDE (Plasma). I have these audio cards

$ lspci | grep Audio
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)

and I have

$ cat /proc/asound/cards
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7214000 irq 52
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7210000 irq 49
$ cat /proc/asound/modules
 0 snd_hda_intel
 1 snd_hda_intel

but no HDMI soud device in this:

$ pacmd list-sinks | grep -e 'name:' -e 'index'
  * index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
$ 

I googled and found this page https://bugs.freedesktop.org/show_bug.cgi?id=89139 and
remove files in ~/.config/pulse dir as said in that page.
But not work.

Connecting TV via HDMI port, display is working but no HDMI sound and no entry to choose in KDE's System Setting > Multimedia.

Please help!

Last edited by duyinthee (2017-04-20 07:39:25)

Offline

#2 2017-04-20 06:16:36

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

What about pacmd list-cards?

Offline

#3 2017-04-20 06:48:40

duyinthee
Member
Registered: 2015-06-14
Posts: 222
Website

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

Yes, it shows 2 cards, here:

$ pacmd list-cards
2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_03.0>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel HDMI"
                alsa.long_card_name = "HDA Intel HDMI at 0xf7214000 irq 52"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "160c"
                device.product.name = "Broadwell-U Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)                                                 
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)                                               
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)                                               
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)                                        
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)                                      
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)                                               
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)                                        
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)                                      
                off: Off (priority 0, available: unknown)                                                                                              
        active profile: <off>                                                                                                                          
        ports:                                                                                                                                         
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7210000 irq 49"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "9ca0"
                device.product.name = "Wildcat Point-LP High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "1"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
                alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
        ports:
                analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-headphone-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-headset-mic: Headset Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"

Offline

#4 2017-04-20 07:12:55

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

So pulse is aware of your HDMI sound devices, it just isn't aware of the HDMI connection ("available: no" for all three ports), assuming your TV is connected and turned on when you captured.

Have you tested if the hardware/driver is really working though?

speaker-test -D hw:HDMI,N -c 2 -r 48000

where N is the index of the device/port, which can be found with aplay -l. Try all three of them.

(Both aplay and speaker-test are provided in alsa-utils.)

If any of them works, you can try "forcefully" setting the corresponding card profile for the card.

For example, if the second index works:

pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:hdmi-stereo-extra1

A new sink should show up. Set it as the default sink and see. If it does not work, paste

pacmd list-sinks

and

pacmd list-sink-inputs

(while something is playing through pulse)

Last edited by tom.ty89 (2017-04-20 07:15:46)

Offline

#5 2017-04-20 07:18:46

duyinthee
Member
Registered: 2015-06-14
Posts: 222
Website

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

In that output, I notice that the value of active profile: of index: 0 which points to "HDA Intel HDMI" is <off> like this:

active profile: <off>                                                                                                                          
        ports:                                                                                                                                         
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)

and active profile: of index: 1 which points to "HDA Intel PCH" is <output:analog-stereo+input:analog-stereo> then it shows sinks:

active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo

so, should we see any clue from them.

Offline

#6 2017-04-20 07:23:03

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

duyinthee wrote:

In that output, I notice that the value of active profile: of index: 0 which points to "HDA Intel HDMI" is <off> like this:

active profile: <off>                                                                                                                          
        ports:                                                                                                                                         
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)

and active profile: of index: 1 which points to "HDA Intel PCH" is <output:analog-stereo+input:analog-stereo> then it shows sinks:

active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo

so, should we see any clue from them.

My last post pretty much explained all about it.

Offline

#7 2017-04-20 07:38:44

duyinthee
Member
Registered: 2015-06-14
Posts: 222
Website

Re: [SOLVED] HDMI sound card is not detected by pulseaudio?

tom.ty89 wrote:

So pulse is aware of your HDMI sound devices, it just isn't aware of the HDMI connection ("available: no" for all three ports), assuming your TV is connected and turned on when you captured.

Have you tested if the hardware/driver is really working though?

speaker-test -D hw:HDMI,N -c 2 -r 48000

where N is the index of the device/port, which can be found with aplay -l. Try all three of them.

(Both aplay and speaker-test are provided in alsa-utils.)

If any of them works, you can try "forcefully" setting the corresponding card profile for the card.

For example, if the second index works:

pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:hdmi-stereo-extra1

A new sink should show up. Set it as the default sink and see. If it does not work, paste

pacmd list-sinks

and

pacmd list-sink-inputs

(while something is playing through pulse)

Thank You, tom.ty89.
I followed your post and now I solved the problem.

Offline

Board footer

Powered by FluxBB