hdmi audio on Asrock Z370M Pro4

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

hdmi audio on Asrock Z370M Pro4

Postby rze » 2018-05-20 17:02

Hi,

I have a AsRock motherboard Z370M Pro4.
I get no hdmi audio output.

lspci -vv
Code: Select all
00:1f.3 Audio device: Intel Corporation Device a2f0
   Subsystem: ASRock Incorporation Device 5892
   Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Latency: 32, Cache Line Size: 64 bytes
   Interrupt: pin A routed to IRQ 127
   Region 0: Memory at df140000 (64-bit, non-prefetchable) [size=16K]
   Region 4: Memory at df120000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: [50] Power Management version 3
      Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
      Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
      Address: 00000000fee002b8  Data: 0000
   Kernel driver in use: snd_hda_intel


aplay -l
Code: Select all
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 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


uname -a
Code: Select all
Linux fernice 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux


pacmd list-sinks
Code: Select all
1 sink(s) available.
  * index: 0
   name: <auto_null>
   driver: <module-null-sink.c>
   flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
   state: SUSPENDED
   suspend cause: IDLE
   priority: 1000
   volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
           balance 0.00
   base volume: 65536 / 100% / 0.00 dB
   volume steps: 65537
   muted: no
   current latency: 0.00 ms
   max request: 344 KiB
   max rewind: 344 KiB
   monitor source: 0
   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 .. 2000.00 ms
   module: 14
   properties:
      device.description = "Dummy Output"
      device.class = "abstract"
      device.icon_name = "audio-card"


I did a clean install. Surely more information is needed. Of course I tried different things but simply failed to get hdmi sound out of my monitor.

What information is needed to help me? Thanks.

The following command shows an error:

root@fernice:/home/rze# journalctl | grep "failed"
Code: Select all
May 20 18:36:26 fernice kernel: snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)


Best regards, Eduardo
Last edited by rze on 2018-05-20 20:04, edited 2 times in total.
rze
 
Posts: 3
Joined: 2018-05-20 16:47

Re: hdmi audio on Asrock Z290M Pro4

Postby acewiza » 2018-05-20 19:18

Is an option showing HDMI appearing in your sound output selection dialog?

Image
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 358
Joined: 2013-05-28 12:38
Location: Out West

Re: hdmi audio on Asrock Z290M Pro4

Postby rze » 2018-05-20 20:00

No. There is just one device labeled "Dummy Output" available on the Output tab. Thanks.
rze
 
Posts: 3
Joined: 2018-05-20 16:47

Re: hdmi audio on Asrock Z370M Pro4

Postby acewiza » 2018-05-20 22:22

I'm gonna take a WAG and say it's lacking some needed firmware. Did you use the installer with non-free firmware included?

http://cdimage.debian.org/cdimage/unoff ... -firmware/

Alternatively, you could try searching for the specific firmware package needed, but it might be easier and quicker to just re-install with all the necessary bits available to start with.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 358
Joined: 2013-05-28 12:38
Location: Out West

Re: hdmi audio on Asrock Z370M Pro4

Postby Bloom » 2018-05-21 05:41

Add the following line to /etc/apt/sources.list:
Code: Select all
deb http://www.deb-multimedia.org stable main non-free

Replace 'stable' by what you're using (stable, testing, unstable) or the appropriate debian name (stretch, buster, sid).
Then:
Code: Select all
sudo apt-key adv --recv-keys --keyserver keyserver.stack.nl 5C808C2B65558117
sudo apt-key adv --recv-keys --keyserver keyserver.stack.nl 07DC563D1F41B907
sudo apt update
sudo apt install deb-multimedia-keyring
sudo apt update
sudo apt install firmware-linux

The last command will install both the free and the non-free firmware packages. Once these are installed, your i915 hardware will work correctly.
User avatar
Bloom
 
Posts: 46
Joined: 2017-11-11 12:23

Re: hdmi audio on Asrock Z370M Pro4

Postby rze » 2018-05-23 19:18

Hi acewiza and Bloom,
thanks a lot for your hints. I think you are right and some sort of closed software (firmware) packages have to be installed.

I tried the commands given by Bloom, but failed. Perhaps I did something wrong.

I downloaded the following iso-files and created bootable usb sticks:

a)
ubuntu-18.04-desktop-amd64.iso

result: started live system "try ubuntu without installing" -> started firefox, audio was played via hdmi. In the sound application there was one output device "HDMI/DisplayPort2 - Built-in Audio"

Code: Select all
root@ubuntu:/home/ubuntu# lspci -vnn 
...
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e91] (prog-if 00 [VGA controller])
   Subsystem: Intel Corporation Device [8086:3e91]
   Flags: bus master, fast devsel, latency 0, IRQ 125
   Memory at de000000 (64-bit, non-prefetchable) [size=16M]
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   I/O ports at f000 [size=64]
   [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: [40] Vendor Specific Information: Len=0c <?>
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
   Capabilities: [d0] Power Management version 2
   Capabilities: [100] Process Address Space ID (PASID)
   Capabilities: [200] Address Translation Service (ATS)
   Capabilities: [300] Page Request Interface (PRI)
   Kernel driver in use: i915
   Kernel modules: i915
...
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
   Subsystem: ASRock Incorporation 200 Series PCH HD Audio [1849:5892]
   Flags: bus master, fast devsel, latency 32, IRQ 127
   Memory at df140000 (64-bit, non-prefetchable) [size=16K]
   Memory at df120000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: [50] Power Management version 3
   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
...


b)
https://cdimage.debian.org/cdimage/unof ... so-hybrid/
debian-live-9.4.0-amd64-gnome+nonfree.iso

result: started live system "debian live with localisation support" -> started firefox, no audio was played via hdmi. In the sound application there was only one output device labeled "Dummy"

Code: Select all
root@debian:/home/user# lspci -vnn
...
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e91] (prog-if 00 [VGA controller])
   Subsystem: Intel Corporation Device [8086:3e91]
   Flags: bus master, fast devsel, latency 0, IRQ 11
   Memory at de000000 (64-bit, non-prefetchable) [size=16M]
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   I/O ports at f000 [size=64]
   [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: [40] Vendor Specific Information: Len=0c <?>
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [ac] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [d0] Power Management version 2
   Capabilities: [100] Process Address Space ID (PASID)
   Capabilities: [200] Address Translation Service (ATS)
   Capabilities: [300] Page Request Interface (PRI)
...
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a2f0]
   Subsystem: ASRock Incorporation Device [1849:5892]
   Flags: bus master, fast devsel, latency 32, IRQ 127
   Memory at df140000 (64-bit, non-prefetchable) [size=16K]
   Memory at df120000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: [50] Power Management version 3
   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
...


Code: Select all
root@debian:/home/user# modprobe i915
root@debian:/home/user# dmesg | grep i915
[   14.584897] snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)
[   14.754976] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[   14.755952] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec



c)
https://cdimage.debian.org/cdimage/unof ... 4/iso-dvd/
firmware-9.4.0-amd64-DVD-1.iso

result: same as under point b). no hdmi audio

---
What can I do next? Thanks.
Ultimate goal would be to use the official debian iso and install the missing non-free package afterwards.
Since audio over hdmi works with the ubuntu live system, can I use it to extract information about what non-free drivers have to be installed on debian?
rze
 
Posts: 3
Joined: 2018-05-20 16:47


Return to Hardware

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable