You are not logged in.

#1 2022-09-01 01:21:29

m00nsh1ne
Member
Registered: 2021-03-06
Posts: 13

Speakers not working; Can't get the sound card working

I bought a new laptop (HP Envy x360 ey000) and got the installation part done. I have gotten everything else to work well except for the audio from the speakers (audio does work through headphones).
The sound card "Renoir Radeon HD Audio Controller" just does not work no matter what i try and do. I tried playing around with hdjackretask to no avail.

Also I think that the the issue has something to do with the "Bang & Olufsen" label on the laptop but I am not entirely sure either.

Some info that might help you guide me through this issue:
va info:

vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: Mesa Gallium driver 22.1.7 for AMD RENOIR (LLVM 14.0.6, DRM 3.47, 5.19.5-zen1-1-zen)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
.
 [nothoot@notroot ~]$ lspci -k | grep -A 3 -E "(VGA|3D)"
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c1)
        Subsystem: Hewlett-Packard Company Device 8a31
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu 

inxi -A:

 Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_rn_pci_acp3x
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.19.5-zen1-1-zen running: yes
  Sound Server-2: PipeWire v: 0.3.56 running: yes

Here is what KDE's audio kcm has to say about the sound card:
Audio Settings in KDE show the audio card is inactive and the profile is off and there is no other option

If you need the results of anything else, let me know. And thank you in advance for your help!

Offline

#2 2022-09-01 07:55:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Speakers not working; Can't get the sound card working

Your graphics card will have little relevance here of these devices you need to get  AMD Family 17h/19h HD Audio driver working for the standard speaker.

Post

aplay -lL
pactl list cards
pactl list sinks
pactl list sink-inputs
sudo fuser -v /dev/snd/*

during an active playback attempt.

Offline

#3 2022-09-03 00:52:51

m00nsh1ne
Member
Registered: 2021-03-06
Posts: 13

Re: Speakers not working; Can't get the sound card working

aplay -IL

 [nothoot@notroot ~]$ aplay -IL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC245 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
hdmi:CARD=Generic,DEV=1
    HD-Audio Generic, HDMI 1
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
usbstream:CARD=acp
    acp
    USB Stream Output
[nothoot@notroot ~]$ aplay -IL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC245 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
[nothoot@notroot ~]$ aplay -IL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC245 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC245 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
hdmi:CARD=Generic,DEV=1
    HD-Audio Generic, HDMI 1
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
usbstream:CARD=acp
    acp
    USB Stream Output

pactl list cards

 [nothoot@notroot ~]$ pactl list cards
Card #48
        Name: alsa_card.pci-0000_04_00.1
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "1"
                api.alsa.card.longname = "HD-Audio Generic at 0xd05c8000 irq 85"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "hw:1"
                api.alsa.use-acp = "true"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:04:00.1"
                device.description = "Renoir Radeon High Definition Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_04_00.1"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "4500609"
                device.product.id = "0x1637"
                device.product.name = "Renoir Radeon High Definition Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card1"
                device.vendor.id = "0x1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "35"
                object.id = "46"
                object.serial = "48"
                object.path = "alsa:pcm:1"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c8000 irq 85"
                alsa.driver_name = "snd_hda_intel"
                device.string = "1"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 2, sources: 0, priority: 8000, available: no)
        Active Profile: off
        Ports:
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 1200, latency offset: 0 usec, availability group: HDMI/DP,pcm=7, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=7"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 1100, latency offset: 0 usec, availability group: HDMI/DP,pcm=3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=3"
                                card.profile.port = "1"
                        Part of profile(s): HiFi

Card #49
        Name: alsa_card.pci-0000_04_00.6
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.card.longname = "HD-Audio Generic at 0xd05c0000 irq 86"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "hw:0"
                api.alsa.use-acp = "true"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:04:00.6"
                device.description = "Family 17h/19h HD Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_04_00.6"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "5302025"
                device.product.id = "0x15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card0"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "35"
                object.id = "47"
                object.serial = "49"
                object.path = "alsa:pcm:0"
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c0000 irq 86"
                alsa.driver_name = "snd_hda_intel"
                device.string = "0"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 1, sources: 2, priority: 8000, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "speaker"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone, not available)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Headphone"
                                card.profile.port = "1"
                        Part of profile(s): HiFi
                [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, availability group: Mic, not available)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Mic"
                                card.profile.port = "2"
                        Part of profile(s): HiFi
                [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "mic"
                                card.profile.port = "3"
                        Part of profile(s): HiFi

pactl list sinks

 [nothoot@notroot ~]$ pactl list sinks
Sink #57
        State: RUNNING
        Name: alsa_output.pci-0000_04_00.6.HiFi__hw_Generic_1__sink
        Description: Family 17h/19h HD Audio Controller Speaker + Headphones
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 29491 /  45% / -20.81 dB,   front-right: 29491 /  45% / -20.81 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_04_00.6.HiFi__hw_Generic_1__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.class = "generic"
                alsa.device = "0"
                alsa.driver_name = "snd_hda_intel"
                alsa.id = "ALC245 Analog"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c0000 irq 86"
                alsa.mixer_device = "_ucm0002.hw:Generic_1"
                alsa.name = "ALC245 Analog"
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "HD-Audio Generic at 0xd05c0000 irq 86"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:Generic_1"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "0"
                device.api = "alsa"
                device.class = "sound"
                device.id = "47"
                device.profile.description = "Speaker + Headphones"
                device.profile.name = "HiFi: hw:Generic_1: sink"
                device.routes = "2"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Family 17h/19h HD Audio Controller"
                node.name = "alsa_output.pci-0000_04_00.6.HiFi__hw_Generic_1__sink"
                node.nick = "ALC245 Analog"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:Generic_1:playback"
                priority.driver = "1000"
                priority.session = "1000"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "35"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "55"
                object.serial = "57"
                node.max-latency = "16384/48000"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                device.bus = "pci"
                device.bus_path = "pci-0000:04:00.6"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_04_00.6"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "5302025"
                device.product.id = "0x15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card0"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.string = "0"
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
                [Out] Headphones: Headphones (type: Headphones, priority: 200, availability group: Headphone, not available)
        Active Port: [Out] Speaker
        Formats:
                pcm

pactl list sink-inputs

 [nothoot@notroot ~]$ pactl list sink-inputs
Sink Input #101
        Driver: PipeWire
        Owner Module: n/a
        Client: 95
        Sink: 57
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Format: pcm, format.sample_format = "\"float32le\""  format.rate = "48000"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
        Corked: no
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Buffer Latency: 0 usec
        Sink Latency: 0 usec
        Resample method: PipeWire
        Properties:
                client.api = "pipewire-pulse"
                pulse.server.type = "unix"
                application.name = "Firefox"
                application.process.id = "2522"
                application.process.user = "nothoot"
                application.process.host = "notroot"
                application.process.binary = "firefox"
                application.language = "en_US.UTF-8"
                window.x11.display = ":1"
                application.process.machine_id = "51075d6d0a2047aca193ffbaf0db02c5"
                application.process.session_id = "2"
                media.name = "AudioStream"
                node.rate = "1/48000"
                node.latency = "3600/48000"
                node.autoconnect = "true"
                stream.is-live = "true"
                node.name = "Firefox"
                node.want-driver = "true"
                media.class = "Stream/Output/Audio"
                adapt.follower.spa-node = ""
                object.register = "false"
                factory.id = "6"
                clock.quantum-limit = "8192"
                factory.mode = "split"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                client.id = "67"
                object.id = "69"
                object.serial = "101"
                pulse.attr.maxlength = "4194304"
                pulse.attr.tlength = "48000"
                pulse.attr.prebuf = "38408"
                pulse.attr.minreq = "9600"
                module-stream-restore.id = "sink-input-by-application-name:Firefox"

sudo fuser -v /dev/snd/*

 
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  nothoot    1760 F.... pipewire
                     nothoot    1761 F.... wireplumber
/dev/snd/controlC1:  nothoot    1760 F.... pipewire
                     nothoot    1761 F.... wireplumber
/dev/snd/controlC2:  nothoot    1760 F.... pipewire
                     nothoot    1761 F.... wireplumber
/dev/snd/pcmC0D0p:   nothoot    1760 F...m pipewire
/dev/snd/seq:        nothoot    1760 F.... pipewire

I am sorry for the late response.

Offline

#4 2022-09-20 09:20:37

zdbiohazard
Member
Registered: 2022-09-19
Posts: 4

Re: Speakers not working; Can't get the sound card working

m00nsh1ne wrote:
[nothoot@notroot ~]$ pactl list cards
[...]
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 2, sources: 0, priority: 8000, available: no)
[...]
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 1, sources: 2, priority: 8000, available: yes)
[...]

I had a similar issue with a similar set of devices.
For some reason, ALSA UCM doesn't like something about the ACP microphone device and causes *all* the device profile lists to contain only a single, non-working "HiFi" profile.

Disabling ALSA UCM (but not ACP) in PipeWire fixed it for me.

/etc/wireplumber/main.lua.d/50-alsa-config.lua wrote:
alsa_monitor.rules = {
    {
        ...
        apply_properties = {
            -- Use ALSA-Card-Profile devices. They use UCM or the profile
            -- configuration to configure the device and mixer settings.
            ["api.alsa.use-acp"] = true,

            -- Use UCM instead of profile when available. Can be
            -- disabled to skip trying to use the UCM profile.
            ["api.alsa.use-ucm"] = false,
...

See also: https://wiki.archlinux.org/title/PipeWi … y_PipeWire

If this gets the profiles showing up properly again, you still may need to mute and unmute the outputs a few times before it starts working. PipeWire seems to have some trouble with the mixers on these devices.

Offline

Board footer

Powered by FluxBB