Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] no sound via 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
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Apr 08, 2017 10:38 pm    Post subject: [solved] no sound via hdmi Reply with quote

kernel konfig seems to be ok, as I can see the hdmi audio entry as follows:

Code:

lspci:
....
00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02)
....
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]


Also in alsamixer I can switch to HDA ATI HDMI from gpu.
Code:

and: aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: Intel [HDA Intel], Gerät 0: AD1884A Analog [AD1884A Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: Intel [HDA Intel], Gerät 2: AD1884A Alt Analog [AD1884A Alt Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: HDMI [HDA ATI HDMI], Gerät 3: Generic Digital [Generic Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0


Code:

cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf0120000 irq 37
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf0040000 irq 38


Code:
cat /proc/asound/pcm
00-00: AD1884A Analog : AD1884A Analog : playback 1 : capture 1
00-02: AD1884A Alt Analog : AD1884A Alt Analog : playback 1 : capture 1
01-03: Generic Digital : Generic Digital : playback 1


Now when chosing Cape Verde/Pitcairn HDMI Audiio in kde5 plasma settings / multimedia there is no sound. I only get sound with internal analog HD Audio activated. Graphics via hdmi is working.

I also checked that tv and cable are ok by using my sons macbook to connect via hdmi and that one is able to send pic and sound to tv, so I guess cable and tv should be ok.

Please help me troubleshooting this, as it would be really cool to get sound over hdmi output on my tv.

All monitors are connected with minidisplay port adapters to dvi for the two monitors and minidisplayport to hdmi adapter for connection to tv. Monitors are connected at port 1 and 2 and tv is connected at port 4.


Last edited by Elleni on Sun Apr 09, 2017 7:52 pm; edited 8 times in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Apr 08, 2017 11:00 pm    Post subject: Reply with quote

I do not have DE installed, I use CLI to play, it works like this
Code:
mpv --audio-device=alsa/hdmi:CARD=PCH,DEV=1 <file>

You could test your output the same way, if it works then it is some KDE/Plasma issue.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Apr 08, 2017 11:09 pm    Post subject: Reply with quote

I have no mpv but had tried like this:

Code:
aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Wiedergabe: WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate: 48000 Hz, mono


and no sound was heard.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 09, 2017 12:43 am    Post subject: Reply with quote

Hmmm ... I'd try with some well known multimedia liveCD, like Mythbuntu. If it can make sound then you can investigate how it does it. Put it on a USB stick, will cost you nothing.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 9:03 am    Post subject: Reply with quote

good point, I am trying right now. Although I have no sound at all with gentoo livedvd, I see a difference here:

Code:
cat /proc/asound/pcm
00-00: AD1884A Analog : AD1884A Analog : playback 1 : capture 1
00-02: AD1884A Alt Analog : AD1884A Alt Analog : playback 1 : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
01-07: HDMI 1 : HDMI 1 : playback 1
01-08: HDMI 2 : HDMI 2 : playback 1
01-09: HDMI 3 : HDMI 3 : playback 1
01-10: HDMI 4 : HDMI 4 : playback 1
01-11: HDMI 5 : HDMI 5 : playback 1


Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1884A Analog [AD1884A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: AD1884A Alt Analog [AD1884A Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I will try some other livesystems.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 10:12 am    Post subject: Reply with quote

I was able to get soundooutput via hdmi on sabayon, which has similar output on cat /proc/asound/pcm as the gentoo livedvd had. Additionally I have found out, that it only works on ports 1-3 but not on the 4th port where I had connected my tv/hdmi before.

Now I am back on my system and trying to figure out, why I do not have these:

Code:
01-03: HDMI 0 : HDMI 0 : playback 1
01-07: HDMI 1 : HDMI 1 : playback 1
01-08: HDMI 2 : HDMI 2 : playback 1
01-09: HDMI 3 : HDMI 3 : playback 1
01-10: HDMI 4 : HDMI 4 : playback 1
01-11: HDMI 5 : HDMI 5 : playback 1


but instead I have
Code:
01-03: Generic Digital : Generic Digital : playback 1
only.

Following are the loaded modules from sabayon livesystem

Code:
Module                  Size  Used by
gpio_ich                4248  0
iTCO_wdt                5320  0
iTCO_vendor_support     2049  1 iTCO_wdt
hp_wmi                  5984  0
ppdev                   7624  0
coretemp                5704  0
kvm_intel             160313  0
kvm                   309823  1 kvm_intel
psmouse               100332  0
input_leds              2816  0
e1000e                200442  0
pcspkr                  1920  0
serio_raw               4736  0
irqbypass               2801  1 kvm
fjes                   20213  0
lpc_ich                14656  0
snd_hda_codec_analog     8192  1
parport_pc             27945  0
shpchp                 22207  0
mei_wdt                 4736  0
floppy                 56401  0
snd_hda_codec_generic    52116  1 snd_hda_codec_analog
snd_hda_codec_hdmi     33526  1
tpm_infineon            7320  0
snd_hda_intel          22400  7
intel_agp               9856  0
tpm_tis                 4432  0
tpm_tis_core            7825  1 tpm_tis
tpm                    29895  3 tpm_infineon,tpm_tis,tpm_tis_core
sch_fq_codel            7680  2
ipv6                  347523  147
crc_ccitt               1595  1 ipv6
virtio_pci             14071  0
virtio_scsi            10705  0
virtio_blk              8864  0
virtio_net             22258  0
virtio_console         18852  0
virtio_balloon          6272  0
virtio_ring            11213  6 virtio_blk,virtio_net,virtio_scsi,virtio_balloon,virtio_console,virtio_pci
virtio                  5511  6 virtio_blk,virtio_net,virtio_scsi,virtio_balloon,virtio_console,virtio_pci
xts                     3143  0
gf128mul                5915  1 xts
aes_x86_64              7631  0
sha512_generic          5913  0
sha256_generic         10457  0
iscsi_tcp               9070  0
libiscsi_tcp           12474  1 iscsi_tcp
tg3                   150291  0
e1000                 119429  0
fuse                   78869  3
overlay                37973  1
xfs                   582092  0
nfs                   121833  0
lockd                  57969  1 nfs
grace                   1922  1 lockd
sunrpc                179228  2 lockd,nfs
jfs                   164025  0
reiserfs              223012  0
ext4                  359809  0
jbd2                   56880  1 ext4
fscrypto               14646  1 ext4
ext2                   62605  0
mbcache                 4178  2 ext4,ext2
firewire_core          49254  0
sl811_hcd              17040  0
hid_generic             1449  0
xhci_plat_hcd           3908  0
xhci_pci                5406  0
xhci_hcd              151929  2 xhci_pci,xhci_plat_hcd
ohci_pci                4616  0
ohci_hcd               37180  1 ohci_pci
sx8                    13092  0
imm                    10776  0
pata_pcmcia            10268  0
pcmcia                 47228  1 pata_pcmcia
sparse_keymap           3154  1 hp_wmi
uhci_hcd               33811  0
amdkfd                111081  1
amd_iommu_v2            6923  1 amdkfd
parport                33214  3 imm,parport_pc,ppdev
radeon               1418988  9
snd_hda_codec          87727  4 snd_hda_intel,snd_hda_codec_analog,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hda_core           46153  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_analog,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hwdep               6058  1 snd_hda_codec
ptp                    10780  2 tg3,e1000e
snd_pcm                81190  5 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              20255  1 snd_pcm
snd                    58763  21 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_hda_codec_analog,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_pcm
pps_core                9473  1 ptp
ehci_pci                4655  0
ehci_hcd               65033  1 ehci_pci
ttm                    71568  1 radeon
drm_kms_helper        103864  1 radeon
drm                   268798  25 radeon,ttm,drm_kms_helper
fb_sys_fops             1570  1 drm_kms_helper
syscopyarea             3326  1 drm_kms_helper
sysfillrect             3754  1 drm_kms_helper
sysimgblt               2367  1 drm_kms_helper
i2c_algo_bit            5520  1 radeon
intel_gtt              12454  1 intel_agp
agpgart                26006  4 intel_agp,intel_gtt,ttm,drm


And this is my kernel config:
https://paste.pound-python.org/show/T372NNOL57ekxeERTOJt/
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sun Apr 09, 2017 12:37 pm    Post subject: Reply with quote

Check your radeon module parameters in /sys/module/radeon/parameters. Radeon have the audio parameter who must be set to 1 to have audio through Hdmi and the tv parameter who must be set to 1 too. I ever had an Amd/Ati video card and never been able to have audio through Hdmi.

Adapters can break the port (audio) capabilities.
_________________
Paul
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 4:43 pm    Post subject: Reply with quote

Thank you, I will check when I have access to my box. I was also afraid the adapter could be the problem, but as it works with livedvd of sabayon I am sure its a config issue. The main difference of my gentoo box is not having the hdmi devices as sabayon has, but only having a generic one so I thought the problem must be in a wrongly configured kernel.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 6:11 pm    Post subject: Reply with quote

The audio parameter is set to -1 but I cannot change (not even as root) as the access rights on this file as it is set to -r--r--r--

Last edited by Elleni on Sun Apr 09, 2017 6:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 09, 2017 6:16 pm    Post subject: Reply with quote

Generally you can pass parameters to the module, just unload it and load again with desired parameters.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 6:26 pm    Post subject: Reply with quote

Well I have everything compiled in kernel so no module unloading :( I would first need to rebuild new kernel.

Can this be the reason why I only have a generic hdmi device while in a working configuration the device list looks different - see the aplay -l on the sabayon livedvd, where everything works as needed?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 09, 2017 6:31 pm    Post subject: Reply with quote

What about firmware? If your card needs firmware and it is not built into kernel along with module it won't be loaded. May be part of your problem as well.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 6:44 pm    Post subject: Reply with quote

I always emerged radeon-ucode after emerge of gentoo-sources and as this is depricated now, I now emerge linux-firmware before building kernel, so I supose firmware is ok.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Apr 09, 2017 6:52 pm    Post subject: Reply with quote

Unfortunately firmware cannot load if the driver is built into kernel and the firmware is residing in /lib/firmware. For a very simple reason - the root filesystem is not mounted when kernel loads and nothing stored there can be accessed. Have you checked your dmesg for firmware loading?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 7:13 pm    Post subject: Reply with quote

I followed the suggestions in wiki:
https://wiki.gentoo.org/wiki/Radeon

So firmware is built into the kernel. Now when rechecking on the wiki, I see that even in the example of the wiki they see more than one hdmi device, I guess I must have limited my kernel somewhere. It is written: Other options there might be needed as well, e.g. don't set the number of soundcards too low, because even with one Radeon card alsa may detect more than one HDA ATI HDMI device, I am searching where I can set the number of soundcards now..
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Apr 09, 2017 7:41 pm    Post subject: Reply with quote

I finally found it :)

Consulting the ALSA Gentoo wiki I have seen, that I had not set:

Code:
Device Drivers --->
    <*> Sound card support
        <*> Advanced Linux Sound Architecture --->
            [*] Dynamic device file minor numbers
            (32) Max number of sound cards


Setting these gave me the hdmi devices and with them - I now have hdmi audio :)
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Apr 15, 2017 6:19 pm    Post subject: Reply with quote

Good job, Elleni :-)

It's always nice to see someone push through, and find the solution for oneself.
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