You are not logged in.
Pages: 1
Hey,
as the title says, I cant use my speakers connected to my monitor, which itself is connected to my computer via displayport. The speaker is recognized by alsa but when selecting it, the speaker remains silent.
HDMI audio runs flawlessly on both the ubuntu live system and windows 10, so it shouldnt be related to the hardware.
What I already tried:
$ aplay -D plughw:X,Y /usr/share/sounds/alsa/Front_Center.wav where X is the card and Y one of the devices as listed by $ aplay -l. Needless to say, I didnt hear a sound for all values of Y.
Rebooting the monitor, didnt help either
replacing pulseaudio by pipewire and pipewire-pulse. As expected, still no sound.
Some information regarding my system:
DE: KDE Plasma 5.21
Kernel: Zen-Kernel and LTS-Kernel, no noticable difference
GPU: AMD Radeon RX 580
Anyone some ideas to fix this?
Offline
Which kernel on Ubuntu? On attempted playback what's your
sudo fuser -v /dev/snd/*
sudo dmesg | grep -E 'snd|amdgpu'
aplay -l
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs
post these in
[code]code here[/code]
tags
Last edited by V1del (2021-05-27 14:35:09)
Online
$ sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: david 25485 F.... pulseaudio
/dev/snd/controlC1: david 25485 F.... pulseaudio
/dev/snd/pcmC0D11p: david 25485 F...m pulseaudio
$ sudo dmesg | grep -E 'snd|amdgpu'
[ 0.000000] Command line: root=PARTUUID=bbf5bcd6-4ad8-e042-b2dc-e9a668101e2f rw initrd=amd-ucode.img amdgpu.ppfeaturemask=0xffffffff amd_iommu=on iommu=pt initrd=\initramfs-linux-zen.img
[ 0.040503] Kernel command line: root=PARTUUID=bbf5bcd6-4ad8-e042-b2dc-e9a668101e2f rw initrd=amd-ucode.img amdgpu.ppfeaturemask=0xffffffff amd_iommu=on iommu=pt initrd=\initramfs-linux-zen.img
[ 2.518484] [drm] amdgpu kernel modesetting enabled.
[ 2.518560] amdgpu: Ignoring ACPI CRAT on non-APU system
[ 2.518569] amdgpu: Topology: Add CPU node
[ 2.518626] fb0: switching to amdgpudrmfb from EFI VGA
[ 2.518693] amdgpu 0000:09:00.0: vgaarb: deactivate vga console
[ 2.518786] amdgpu 0000:09:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[ 2.518977] amdgpu 0000:09:00.0: No more image in the PCI ROM
[ 2.518994] amdgpu 0000:09:00.0: amdgpu: Fetched VBIOS from ROM BAR
[ 2.518995] amdgpu: ATOM BIOS: 115-D000PIL-100
[ 2.519060] amdgpu 0000:09:00.0: amdgpu: VRAM: 8192M 0x000000F400000000 - 0x000000F5FFFFFFFF (8192M used)
[ 2.519062] amdgpu 0000:09:00.0: amdgpu: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[ 2.519135] [drm] amdgpu: 8192M of VRAM memory ready
[ 2.519137] [drm] amdgpu: 8192M of GTT memory ready.
[ 2.521549] amdgpu: hwmgr_sw_init smu backed is polaris10_smu
[ 3.077971] amdgpu: Topology: Add dGPU node [0x67df:0x1002]
[ 3.077975] amdgpu 0000:09:00.0: amdgpu: SE 4, SH per SE 1, CU per SH 9, active_cu_number 36
[ 3.080412] fbcon: amdgpudrmfb (fb0) is primary device
[ 3.160378] amdgpu 0000:09:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[ 3.171037] amdgpu 0000:09:00.0: amdgpu: Using BACO for runtime pm
[ 3.171290] [drm] Initialized amdgpu 3.40.0 20150101 for 0000:09:00.0 on minor 0
[ 4.390817] snd_hda_intel 0000:09:00.1: Force to non-snoop mode
[ 4.391005] snd_hda_intel 0000:0b:00.3: enabling device (0000 -> 0002)
[ 4.439723] snd_hda_intel 0000:09:00.1: bound 0000:09:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[ 4.487479] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 4.487484] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 4.487486] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 4.487488] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 4.487490] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 4.487491] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19
[ 4.487493] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18
[ 4.487494] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ pacmd list-cards
2 card(s) available.
index: 0
name: <alsa_card.pci-0000_09_00.1>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfcf60000 irq 69"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:09:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "aaf0"
device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
device.string = "0"
device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:hdmi-stereo: Digital Stereo (HDMI)-Ausgabe (priority 5900, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI)-Ausgabe (priority 800, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI)-Ausgabe (priority 800, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2)-Ausgabe (priority 5700, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2)-Ausgabe (priority 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2)-Ausgabe (priority 600, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3)-Ausgabe (priority 5700, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3)-Ausgabe (priority 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3)-Ausgabe (priority 600, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4)-Ausgabe (priority 5700, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4)-Ausgabe (priority 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4)-Ausgabe (priority 600, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5)-Ausgabe (priority 5700, available: no)
output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5)-Ausgabe (priority 600, available: no)
output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5)-Ausgabe (priority 600, available: no)
output:hdmi-stereo-extra5: Digital Stereo (HDMI 6)-Ausgabe (priority 5700, available: unknown)
off: Aus (priority 0, available: unknown)
active profile: <output:hdmi-stereo-extra5>
sinks:
alsa_output.pci-0000_09_00.1.hdmi-stereo-extra5/#0: Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 6)
sources:
alsa_output.pci-0000_09_00.1.hdmi-stereo-extra5.monitor/#0: Monitor of Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 6)
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"
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "BenQ BL2405"
index: 1
name: <alsa_card.pci-0000_0b_00.3>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfce00000 irq 71"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0b:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
device.string = "1"
device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo-Eingabe (priority 65, available: unknown)
output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
off: Aus (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_0b_00.3.analog-stereo/#1: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
sources:
alsa_output.pci-0000_0b_00.3.analog-stereo.monitor/#1: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
alsa_input.pci-0000_0b_00.3.analog-stereo/#2: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
ports:
analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-input-microphone"
analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
properties:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
$ pacmd list-sinks
2 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_09_00.1.hdmi-stereo-extra5>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9030
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: 64,53 ms
max request: 12 KiB
max rewind: 12 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 75,00 ms; range is 0,50 .. 1999,82 ms
card: 0 <alsa_card.pci-0000_09_00.1>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 5"
alsa.id = "HDMI 5"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "11"
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfcf60000 irq 69"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:09:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "aaf0"
device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
device.string = "hdmi:0,5"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra5"
device.profile.description = "Digital Stereo (HDMI 6)"
device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 6)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "BenQ BL2405"
active port: <hdmi-output-5>
index: 1
name: <alsa_output.pci-0000_0b_00.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9039
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: 0 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 .. 1999,82 ms
card: 1 <alsa_card.pci-0000_0b_00.3>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC892 Analog"
alsa.id = "ALC892 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfce00000 irq 71"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0b:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
device.string = "front:1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-lineout>
$ pacmd list-sink-inputs
1 sink input(s) available.
index: 35
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.pci-0000_09_00.1.hdmi-stereo-extra5>
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
muted: no
current latency: 125,02 ms
requested latency: 75,00 ms
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: speex-float-1
module: 9
client: 11 <Firefox>
properties:
media.name = "AudioStream"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "25700"
application.process.user = "david"
application.process.host = "europium"
application.process.binary = "firefox"
application.language = "de_DE.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "6058414b9a9547b48fb9f759556bf4ba"
application.process.session_id = "5"
application.icon_name = "firefox"
module-stream-restore.id = "sink-input-by-application-name:Firefox"
Offline
looks ok, for all intents and purposes you should be getting audio.
But what we do see here that you are passing iommu and amdgpu feature mask parameters, have you tried without explicitly setting those?
Online
Just looked at the output in detail. In $ pacmd list-sinks only my second monitor is listed under "ports" of the first card, yet my speakers are plugged into the primary monitor. Might this be the issue? I'll try booting without nonessential boot parameters as soon as I'm home.
EDIT: removing all non-essential boot parameter didn't fix the issue.
Last edited by davidhi (2021-05-28 19:50:51)
Offline
I investigated this a little further and as it turns out, hdmi audio has been working all the time but not the way I want it to.
I just figured out my secondary monitor has some inbuilt speakers and when unmuting them, audio works except the sound quality is poor as we're talking about some cheap inbuilt speakers.
At this point, in Ubuntu I can switch the output port between my two monitors with my primary monitor being selected by default. Yet in my Arch-install my primary monitor isn't detected as I mentioned in my post above.
Any ideas how to get this to work?
Offline
Pages: 1