You are not logged in.

#1 2022-07-14 21:17:54

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

fix audio driver

I have successfully managed to install arch on my Lenovo Yoga 7 Gen 7 https://www.lenovo.com/gb/en/laptops/yo … e.com%252F. I have got most things working except the audio. By the way It runs ryzen 6000 cpu if that makes a difference. Firstly I only get audio out of my front speakers and not both. Secondly, the microphone doesn't work in pavucontrol it just says it's unavailable. If I run

inxi -a

this is what I get

Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_pci_acp6x
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.18.11 running: yes
  Sound Server-2: PipeWire v: 0.3.55 running: yes

I run KDE if that helps at all. if you need more info let me know and if anyone can help that would be great.

Last edited by rodude123 (2022-07-14 21:20:41)

Offline

#2 2022-07-15 09:25:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,032

Re: fix audio driver

aplay -lL
arecord -l
pactl list cards
pactl list sinks
pactl list sources

would be good for starters

Offline

#3 2022-07-17 19:44:33

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

V1del wrote:
aplay -lL
arecord -l
pactl list cards
pactl list sinks
pactl list sources

would be good for starters

Sorry for the late reply, have been busy, here's the output you wanted.

aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
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
hdmi:CARD=Generic,DEV=2
    HD-Audio Generic, HDMI 2
    HDMI Audio Output
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC287 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC287 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC287 Analog [ALC287 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC287 Analog [ALC287 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pacctl list cards
Card #46
        Name: alsa_card.pci-0000_33_00.1
        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 0x987c8000 irq 128"
                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:33:00.1"
                device.description = "Rembrandt Radeon High Definition Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_33_00.1"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "2754520"
                device.product.id = "0x1640"
                device.product.name = "Rembrandt Radeon High Definition Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:33:00.1/sound/card0"
                device.vendor.id = "0x1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "34"
                object.id = "45"
                object.serial = "46"
                object.path = "alsa:pcm:0"
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0x987c8000 irq 128"
                alsa.driver_name = "snd_hda_intel"
                device.string = "0"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
                pro-audio: Pro Audio (sinks: 3, sources: 0, priority: 1, available: yes)
        Active Profile: off
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 1"
                                device.icon_name = "video-display"
                                card.profile.port = "0"
                        Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 2"
                                device.icon_name = "video-display"
                                card.profile.port = "1"
                        Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 3"
                                device.icon_name = "video-display"
                                card.profile.port = "2"
                        Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Card #47
        Name: alsa_card.pci-0000_33_00.6
        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 0x987c0000 irq 129"
                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:33: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_33_00.6"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "2858237"
                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:33:00.6/sound/card1"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "34"
                object.id = "46"
                object.serial = "47"
                object.path = "alsa:pcm:1"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0x987c0000 irq 129"
                alsa.driver_name = "snd_hda_intel"
                device.string = "1"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: no)
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 1300, available: yes)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 1200, available: yes)
                input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)
                pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
        Active Profile: output:analog-surround-40
        Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 1, not available)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Legacy 1"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "0"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo
                analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 2, availability unknown)
                        Properties:
                                port.type = "speaker"
                                port.availability-group = "Legacy 2"
                                device.icon_name = "audio-speakers"
                                card.profile.port = "1"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21, output:analog-surround-21+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 3, not available)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Legacy 3"
                                device.icon_name = "audio-headphones"
                                card.profile.port = "2"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
pactl list sinks
Sink #56
        State: SUSPENDED
        Name: alsa_output.pci-0000_33_00.6.analog-surround-40
        Description: Family 17h/19h HD Audio Controller Analog Surround 4.0
        Driver: PipeWire
        Sample Specification: s32le 4ch 48000Hz
        Channel Map: front-left,front-right,rear-left,rear-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 52429 /  80% / -5.81 dB,   front-right: 52429 /  80% / -5.81 dB,   rear-left: 52429 /  80% / -5.81 dB,   rear-right: 52429 /  80% / -5.81 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_33_00.6.analog-surround-40.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.class = "generic"
                alsa.device = "0"
                alsa.driver_name = "snd_hda_intel"
                alsa.id = "ALC287 Analog"
                alsa.long_card_name = "HD-Audio Generic at 0x987c0000 irq 129"
                alsa.name = "ALC287 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 0x987c0000 irq 129"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "surround40:1"
                api.alsa.pcm.card = "1"
                api.alsa.pcm.stream = "playback"
                audio.channels = "4"
                audio.position = "FL,FR,RL,RR"
                card.profile.device = "5"
                device.api = "alsa"
                device.class = "sound"
                device.id = "46"
                device.profile.description = "Analog Surround 4.0"
                device.profile.name = "analog-surround-40"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Family 17h/19h HD Audio Controller"
                node.name = "alsa_output.pci-0000_33_00.6.analog-surround-40"
                node.nick = "ALC287 Analog"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:1:surround40:1:playback"
                priority.driver = "1009"
                priority.session = "1009"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "55"
                object.serial = "56"
                node.max-latency = "16384/48000"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "1"
                api.alsa.use-acp = "true"
                device.bus = "pci"
                device.bus_path = "pci-0000:33:00.6"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_33_00.6"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "2858237"
                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:33:00.6/sound/card1"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.string = "1"
        Ports:
                analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 2, availability unknown)
        Active Port: analog-output-speaker
        Formats:
                pcm
pactl list sources
Source #56
        State: SUSPENDED
        Name: alsa_output.pci-0000_33_00.6.analog-surround-40.monitor
        Description: Monitor of Family 17h/19h HD Audio Controller Analog Surround 4.0
        Driver: PipeWire
        Sample Specification: s32le 4ch 48000Hz
        Channel Map: front-left,front-right,rear-left,rear-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB,   rear-left: 65536 / 100% / 0.00 dB,   rear-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor of Sink: alsa_output.pci-0000_33_00.6.analog-surround-40
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.class = "generic"
                alsa.device = "0"
                alsa.driver_name = "snd_hda_intel"
                alsa.id = "ALC287 Analog"
                alsa.long_card_name = "HD-Audio Generic at 0x987c0000 irq 129"
                alsa.name = "ALC287 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 0x987c0000 irq 129"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "surround40:1"
                api.alsa.pcm.card = "1"
                api.alsa.pcm.stream = "playback"
                audio.channels = "4"
                audio.position = "FL,FR,RL,RR"
                card.profile.device = "5"
                device.api = "alsa"
                device.class = "monitor"
                device.id = "46"
                device.profile.description = "Analog Surround 4.0"
                device.profile.name = "analog-surround-40"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Family 17h/19h HD Audio Controller"
                node.name = "alsa_output.pci-0000_33_00.6.analog-surround-40"
                node.nick = "ALC287 Analog"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:1:surround40:1:playback"
                priority.driver = "1009"
                priority.session = "1009"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "55"
                object.serial = "56"
                node.max-latency = "16384/48000"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "1"
                api.alsa.use-acp = "true"
                device.bus = "pci"
                device.bus_path = "pci-0000:33:00.6"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_33_00.6"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "2858237"
                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:33:00.6/sound/card1"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.string = "1"
        Formats:
                pcm

Offline

#4 2022-07-22 06:39:52

knthmn
Member
Registered: 2021-12-03
Posts: 11

Re: fix audio driver

I am from the Thinkbook 14+ keyboard thread. My internal microphone also doesn't work, I have no other audio problems.

Offline

#5 2022-07-22 09:33:48

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

knthmn wrote:

I am from the Thinkbook 14+ keyboard thread. My internal microphone also doesn't work, I have no other audio problems.

What did you do to fix the main audio issue? Does your laptop have 4 speakers like mine?

Offline

#6 2022-07-22 19:11:53

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

I also tried to use

hdaretask

but I'm not sure what I'm doing there and nothing works still
Also noticed that when I run alsamixer I see this for the front and rear speakers is that normal?
https://i.imgur.com/g0aTbNW.png


Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2022-08-29 13:31:15)

Offline

#7 2022-07-22 21:56:28

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

After some more investigative debugging, I discovered that the audio codec is actually ALC3306 according to https://psref.lenovo.com/Product/Yoga_7_14ARB7?tab=spec.  Now how do I change the codec? I looked at this page in the wiki https://wiki.archlinux.org/title/Advanc … ing_codecs and tried adding an

alsa_base.conf

which then didn't work. Please tell me what I'm doing wrong. I really want to get my audio driver working properly. Thank you!

Offline

#8 2022-07-22 23:52:18

knthmn
Member
Registered: 2021-12-03
Posts: 11

Re: fix audio driver

rodude123 wrote:

What did you do to fix the main audio issue? Does your laptop have 4 speakers like mine?

My speakers just worked with no extra configuration

Offline

#9 2022-07-23 11:59:23

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

knthmn wrote:
rodude123 wrote:

What did you do to fix the main audio issue? Does your laptop have 4 speakers like mine?

My speakers just worked with no extra configuration

oh well looks like I need to do some more fiddling around. If you can do you mind telling me what codec you're using

Offline

#10 2022-07-24 10:03:57

knthmn
Member
Registered: 2021-12-03
Posts: 11

Re: fix audio driver

It says ALC257 from arecord. Lenovo lists ALC3287. Is ALC257 the audio jack microphone instead of the internal one?

https://psref.lenovo.com/Product/ThinkB … A?tab=spec

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline

#11 2022-07-24 11:52:20

rodude123
Member
Registered: 2022-07-14
Posts: 10
Website

Re: fix audio driver

ALC257 is for both the internal and external, either Lenovo is mislabeling them or there is something else wrong with the codec

Offline

#12 2022-08-29 01:45:14

travisghansen
Member
Registered: 2022-06-28
Posts: 19

Re: fix audio driver

I have slim 7 pro x (ryzen) and my speakers work fine but the mic indeed is not showing up in gnome settings as a selectable option:

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline

#13 2022-08-29 13:28:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,032

Re: fix audio driver

The input sources from a PA perspective are not available, but you can technically force that with e.g.

pactl set-card-profile alsa_card.pci-0000_33_00.6 output:analog-surround-40+input:analog-stereo

that should give  you a mic in gnomes software center does that work? Does the mic in general work

arecord -Dhw:1 -r44100 test.wav

and try to play that back work?

Offline

#14 2022-08-29 14:08:22

travisghansen
Member
Registered: 2022-06-28
Posts: 19

Re: fix audio driver

arecord -Dhw:1 -r44100 test.wav
Warning: Some sources (like microphones) may produce inaudible results
         with 8-bit sampling. Use '-f' argument to increase resolution
         e.g. '-f S16_LE'.
Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 44100 Hz, Mono
arecord: set_params:1390: Sample format non available
Available formats:
- S16_LE
- S32_LE

arecord -Dhw:1 test.wav  
Warning: Some sources (like microphones) may produce inaudible results
         with 8-bit sampling. Use '-f' argument to increase resolution
         e.g. '-f S16_LE'.
Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1390: Sample format non available
Available formats:
- S16_LE
- S32_LE
 
pactl set-card-profile alsa_card.pci-0000_33_00.6 output:analog-surround-40+input:analog-stereo
Failure: No such entity

here's the sources..

pactl list sources                                                                             
Source #51
	State: IDLE
	Name: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
	Description: Monitor of Family 17h/19h HD Audio Controller Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	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
	Monitor of Sink: alsa_output.pci-0000_03_00.6.analog-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.class = "generic"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC257 Analog"
		alsa.long_card_name = "HD-Audio Generic at 0x808c0000 irq 107"
		alsa.name = "ALC257 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 0x808c0000 irq 107"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "3"
		device.api = "alsa"
		device.class = "monitor"
		device.id = "40"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		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_03_00.6.analog-stereo"
		node.nick = "ALC257 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:1:front:1:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "32"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "50"
		object.serial = "51"
		node.max-latency = "16384/48000"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "1"
		api.alsa.use-acp = "true"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.6"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_03_00.6"
		device.nick = "HD-Audio Generic"
		device.plugged.usec = "3464344"
		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:03:00.6/sound/card1"
		device.vendor.id = "0x1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.string = "1"
	Formats:
		pcm

sinks

pactl list sinks      
Sink #51
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.6.analog-stereo
	Description: Family 17h/19h HD Audio Controller Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 18355 /  28% / -33.16 dB,   front-right: 18355 /  28% / -33.16 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.class = "generic"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC257 Analog"
		alsa.long_card_name = "HD-Audio Generic at 0x808c0000 irq 107"
		alsa.name = "ALC257 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 0x808c0000 irq 107"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "3"
		device.api = "alsa"
		device.class = "sound"
		device.id = "40"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		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_03_00.6.analog-stereo"
		node.nick = "ALC257 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:1:front:1:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "32"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "50"
		object.serial = "51"
		node.max-latency = "16384/48000"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "1"
		api.alsa.use-acp = "true"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.6"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_03_00.6"
		device.nick = "HD-Audio Generic"
		device.plugged.usec = "3464344"
		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:03:00.6/sound/card1"
		device.vendor.id = "0x1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.string = "1"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 2, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 3, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm

Offline

#15 2022-09-09 10:40:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,032

Re: fix audio driver

Well try following the arecord warning, or alternatively

parec -d alsa_output.pci-0000_03_00.6.analog-stereo --file-format=wav test.wav

Offline

#16 2022-09-09 16:47:52

travisghansen
Member
Registered: 2022-06-28
Posts: 19

Re: fix audio driver

I did follow the warnings and it didn't help. parec is silence as well.

Offline

#17 2022-09-09 16:50:38

travisghansen
Member
Registered: 2022-06-28
Posts: 19

Re: fix audio driver

https://bbs.archlinux.org/viewtopic.php?pid=2056452 posted by someone else appears to be the same issue

Offline

#18 2022-09-20 06:32:13

midian
Member
Registered: 2019-02-21
Posts: 25

Re: fix audio driver

A solution using the acp6x driver has just been posted here

Offline

#19 2022-09-20 09:02:51

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 92

Re: fix audio driver

Note that the solution also requires you to add your device to a quirks table and recompile your kernel, as outlined in my later post, and disable ALSA UCM for now. If your device is different from the Slim 7 Pro X, you should also report it upstream so that this gets included in future kernel versions.

Offline

Board footer

Powered by FluxBB