[SOLVED] Sound does not work on HDMI (ALC892)

Getting your soundcard to work, using Debian on non-i386 hardware, etc

[SOLVED] Sound does not work on HDMI (ALC892)

Postby Denizx37 » 2017-08-26 15:29

Hi,

last week I got a new SoC, J4205-ITX ASROCK... Since then I have a lot of problems and I hope to get rid of those problems by asking you.

After various attempts with LinuxMint, KDEneon and Manjaro I managed to see my Harddrives on a PCI SATA Controller - but not I cannot use the sound via HDMI on my TV.

The main components of the system:
=> Mainboard + Prozessor: ASRock J4205-ITX - Motherboard - Mini-ITX
=> 8 GB Ram
=> Debian Stretch 9 AMD64, KDE
=> Onboard Sound ALC892

Whatever I tried, I don't get that sound working via HDMI - what I can say for sure is that the onboard sound chip works, the HDMI-interface of the TV, the HDMI cable works and the transmission of videos via HDMI works as well.

Until now I tried various installations of Debian, I uninstalled and installed various times ALSA*, Pulse* and also unmuted Alsamixed and tried various settings in system-settings in Multimedia with HDMI1, HDMI2 and HDMI3 - even with Pavucontrol I had no chance to succeed.

Pavucontrol indicates, that HDMI1 is plugged in and that HDMI2 and HDMI3 are unplugged. The default backend is Phonon VLC, after several attemts I tried it also with the Backend Phonon GStreamer - that didn't work as well...

Does anyone have some ideas why that HDMI sound not works?

Please see below some details:

lspci --nnk
Code: Select all
snd_hda_codec 135168 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core 81920 7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_soc_rt286 36864 0
snd_soc_rl6347a 16384 1 snd_soc_rt286
snd_soc_core 212992 2 snd_soc_skl,snd_soc_rt286
snd_compress 20480 1 snd_soc_core
snd_pcm 110592 8 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_rt286,snd_soc_core
snd_timer 32768 1 snd_pcm
snd 86016 14 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
soundcore 16384 1 snd


aplay -l
Code: Select all
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC892 Analog [ALC892 Analog]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 1: ALC892 Digital [ALC892 Digital]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

pacmd list-sinks
2 sink(s) available.
* index: 1
name: <combined>
driver: <module-combine-sink.c>
flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1000
volume: front-left: 60948 / 93% / -1,89 dB, front-right: 60948 / 93% / -1,89 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms
max request: 34 KiB
max rewind: 0 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 200,00 ms
module: 11
properties:
device.class = "filter"
device.description = "Simultaneous output to Built-in Audio Digital Stereo (HDMI)"
device.icon_name = "audio-card"
index: 3
name: <alsa_output.pci-0000_00_0e.0.hdmi-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9950
volume: front-left: 60948 / 93% / -1,89 dB, front-right: 60948 / 93% / -1,89 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 3
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 1837,50 ms
card: 0 <alsa_card.pci-0000_00_0e.0>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 0"
alsa.id = "HDMI 0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x91410000 irq 376"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:0e.0"
sysfs.path = "/devices/pci0000:00/0000:00:0e.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "5a98"
device.product.name = "Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Audio Cluster"
device.form_factor = "internal"
device.string = "hdmi:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.description = "Digital Stereo (HDMI)"
device.description = "Built-in Audio Digital Stereo (HDMI)"
alsa.mixer_name = "Realtek ALC892"
alsa.components = "HDA:10ec0892,1849c892,00100302 HDA:8086280a,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "SAMSUNG"
active port: <hdmi-output-0>


cat /proc/asound/cards
Code: Select all
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x91410000 irq 376


Thanks a lot for your support!

Cheers,
Deniz
Last edited by Denizx37 on 2017-08-27 06:06, edited 1 time in total.
Denizx37
 
Posts: 3
Joined: 2017-08-26 12:55

Re: Sound does not work on HDMI (ALC892)

Postby peter_irich » 2017-08-26 17:53

Please show output
Code: Select all
lspci | grep HDMI

For example, on my PC it is
Code: Select all
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]

i.e. from video card.

Peter.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Sound does not work on HDMI (ALC892)

Postby Denizx37 » 2017-08-26 18:16

Hi Peter,

lspci | grep HDMI
(same for hdmi)

does not return any output....

Do you think that might be the problem?

Many thanks!

Deniz
Denizx37
 
Posts: 3
Joined: 2017-08-26 12:55

Re: Sound does not work on HDMI (ALC892)

Postby Denizx37 » 2017-08-26 19:22

Hi @all,

after a lot of hours of unlucky trial and error I got rid of that problem by using the following command:

xrandr --output HDMI-1 --set audio on

However, as the effect of that command is not persistent I created a script with that command that is executed always when Debian starts.

Many thanks for the support!

Cheers,

Deniz
Denizx37
 
Posts: 3
Joined: 2017-08-26 12:55

Re: Sound does not work on HDMI (ALC892)

Postby sunrat » 2017-08-27 00:00

Congratulations, you have solved a problem that has baffled a few people in the past. :wink:
Please mark the thread SOLVED so it may help other people with the same issue.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2052
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable