Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No Audio through HDMI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sun Mar 25, 2018 10:00 am    Post subject: No Audio through HDMI Reply with quote

I've had this issue before, but managed to fix it:
https://forums.gentoo.org/viewtopic-t-1065926-highlight-.html

Now this fix doesn't work (well, sort of). I've already updated the nvidia-drivers and kernel (and made sure that CONFIG_SND_DYNAMIC_MINORS is set).

The problem is that the command
Code:
† sleipnir † ~ $  aplay -D hw:0,0 /home/scratch/piano2.wav

works perfectly, as so does it for hw:0,3 and hw:0,7 (see aplay -l below) but not for "-D hdmi" (see aplay -L bellow)

Code:
◢ sleipnir ◣ ~ $  uname -a
Linux sleipnir 4.12.12-gentoo #4 SMP Sun Feb 25 07:58:01 CET 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux
◢ sleipnir ◣ ~ $  aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=PCH
    HDA Intel PCH, CX20751/2 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, CX20751/2 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, CX20751/2 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
◢ sleipnir ◣ ~ $  lsmod | grep snd
snd_hda_codec_hdmi     45056  1
snd_hda_codec_conexant    20480  1
snd_hda_codec_generic    61440  1 snd_hda_codec_conexant
snd_hda_intel          32768  5
snd_hda_codec          90112  4 snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core           57344  5 snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_pcm                86016  5 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              28672  1 snd_pcm
snd                    65536  17 snd_hda_intel,snd_hwdep,snd_hda_codec_conexant,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_pcm
soundcore              16384  1 snd
◢ sleipnir ◣ ~ $  aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20751/2 Analog [CX20751/2 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
◢ sleipnir ◣ ~ $


Now, should all the 4 HDMI interfaces have the same name under aplay -L? Also, their device number is clearly wrong in -L.
Thanks in advance!

EDIT#1: I forgot to make it clear what the problem is. The problem is that I cannot use aplay -D [alias]. I can play using hw:X,Y in terminal, but most applications will look for the alias instead, and I cannot select it in systemsettings5, kmix or any other application that I've looked for. They all show the alias instead, but the alias is seemingly pointing to the wrong device. How to tell udev to properly name these aliases?
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)


Last edited by Holysword on Sun Mar 25, 2018 5:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sun Mar 25, 2018 5:14 pm    Post subject: Reply with quote

IIRC that hdmi input might need 6 channel wave with compatible bits and sample rate. Alsa speaker-test should work.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sun Mar 25, 2018 8:06 pm    Post subject: Reply with quote

P.Kosunen wrote:
IIRC that hdmi input might need 6 channel wave with compatible bits and sample rate. Alsa speaker-test should work.

What do you mean alsa speaker-test? The card works if I call aplay -D hw:0,7. The problem is the aliases (e.g. aplay -D hdmi). Most software relies on those instead and prevents me from changing the audio sink. Also, I'm using pulseaudio.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Mar 25, 2018 10:08 pm    Post subject: Reply with quote

It's not the sink you need to change, but the card profile. Run `pacmd list-cards` to see them and `pacmd set-card-profile $x` to change it (if your GUI doesn't provide a way).
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Mon Mar 26, 2018 8:26 pm    Post subject: Reply with quote

Ant P. wrote:
It's not the sink you need to change, but the card profile. Run `pacmd list-cards` to see them and `pacmd set-card-profile $x` to change it (if your GUI doesn't provide a way).

I am sorry that I don't know how to explain this properly, but that's *exactly* what is not working.
The card profile is what I've been meaning with "alias" - my bad. In any case, I've tried it with pacmd (again) and none of the HDMI profiles work.

Anyway, pulseaudio (or udev?) is screwing up the configuration of those profiles. The fact that I can play sound by manually specifying aplay -D hw:0,7 shows that the card is indeed functioning, as well as the HDMI port, the cable and the HDMI speakers.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Thu Mar 29, 2018 10:58 am    Post subject: Reply with quote

Holysword wrote:
What do you mean alsa speaker-test? The card works if I call aplay -D hw:0,7. The problem is the aliases (e.g. aplay -D hdmi). Most software relies on those instead and prevents me from changing the audio sink. Also, I'm using pulseaudio.

Shouldn't matter with pulseaudio.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Thu Mar 29, 2018 11:26 am    Post subject: Reply with quote

P.Kosunen wrote:
Holysword wrote:
What do you mean alsa speaker-test? The card works if I call aplay -D hw:0,7. The problem is the aliases (e.g. aplay -D hdmi). Most software relies on those instead and prevents me from changing the audio sink. Also, I'm using pulseaudio.

Shouldn't matter with pulseaudio.

Please, read my last post.

EDIT#1: No one?
Really, this is kind of killing me right now :(

Also, both
Code:
speaker-test -D hdmi:CARD=PCH,DEV=1 -c 2 -r 48000
speaker-test -D hdmi:CARD=PCH,DEV=1 -c 2 -r 44100

work here without a problem. I also figured that aplay works perfectly fine with -D hdmi:CARD=PCH,DEV=1 too (silly me, I was just using the wrong name) but pulseaudio still refuses to work when I change the profile (none of the HDMI ones work).
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum