You are not logged in.

#1 2021-06-10 13:26:57

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Audio on a Thinkpad P1 Gen3

Setting up a new laptop with arch, but I can't seem to get ALSA to play any audio

Using lspci I get 2 things that are sound related

 00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
 01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev ff)

The second one (when the gpu is turned on with bumblebeed) im pretty sure is the HDMI outputs

The first one I'm think is my actual sound card.

I've already tried installing the alsa-firmware, sof-firmware and alsa-ucm-conf packages but that didn't seem to fix the issue.

Last edited by a_monkey (2021-06-10 13:33:31)


This is fine.

Offline

#2 2021-06-10 13:37:02

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

Re: Audio on a Thinkpad P1 Gen3

Welcome to the boards

Please post how you are attempting to determine you have a soundcard, ie which program or command you're using and

aplay -lL
#if pulse/pipewire
pactl list cards
pactl list sinks
#During active playback
pactl list sink-inputs

in

[code]code tags[/code]

Offline

#3 2021-06-10 13:46:08

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

Hiya,

So I've been poking at this for a few hours,

In my previous installs of arch I was able to just unmute my card using alsamixer and I was good to go.

In this install when I try to run alsamixer or amixer I get the following

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1481:(snd_ctl_open_noupdate) Invalid CTL default
amixer: Mixer attach default error: No such file or directory

From there I used lspci to look for anything with the word audio in it to see what my sound card was and if I was missing drivers

Googling the following:

Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS

I saw that it was a  sof card installed the appropriate drivers

Output from aplay -IL

null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
sysdefault:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device

This is fine.

Offline

#4 2021-06-10 14:35:35

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

Re: Audio on a Thinkpad P1 Gen3

That's a lowercase L not an uppercase I on the aplay -l asked for.  but from this there is a card detected.

Offline

#5 2021-06-10 14:56:38

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

Hmm thats what I figured, heres the output for the full command

aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
sysdefault:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
**** List of PLAYBACK Hardware Devices ****
card 1: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

If its detecting my card I'm not sure why I cant output or input anything.


This is fine.

Offline

#6 2021-06-10 15:50:47

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

Re: Audio on a Thinkpad P1 Gen3

A bit weird that it's card 1 rather than 0 what are you using to test audio out? Does

speaker-test -c2 -Dhw:1,0

not work? What's your output for

amixer -c1

?

Offline

#7 2021-06-10 15:57:02

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

speaker test had sound coming out of th e speakers

why is it that you gave that a -c2 flag?

output of amixer -c1

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Speaker',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Line Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB]
  Front Right: Playback 87 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Mic Mute-LED Mode',0
  Capabilities: enum
  Items: 'On' 'Off' 'Follow Capture' 'Follow Mute'
  Item0: 'Follow Mute'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 0 [0%] [-17.25dB] [off]
  Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 49 [70%] [-1.00dB] [on]
  Front Right: Capture 49 [70%] [-1.00dB] [on]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'Mute-LED Mode',0
  Capabilities: enum
  Items: 'On' 'Off' 'Follow Master'
  Item0: 'Follow Master'
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA3.0 3 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA4.0 4 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]

This is fine.

Offline

#8 2021-06-10 16:47:59

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

Re: Audio on a Thinkpad P1 Gen3

To give it 2 channels to play from, just passing a mono channel is often rejected if the device expects stereo.

So we've established you can get audio. What did you use to test to come to a differing conclusion? FWIW if you want to stay ALSA only you either need to configure that so it gets index 0 (check e.g. dmesg | grep -E 'snd|sof' for what is pulling the 0 away) so the standard dmix and default card logics can properly trigger or change the relevant default card: https://wiki.archlinux.org/title/Advanc … sound_card

...

Or setup pulse/pipewire which have their own setup logic anyway.

Offline

#9 2021-06-10 17:02:48

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

Ah okay I see I was trying to detect the audio output using a variety of different programs / browser, discord, etc. I didnt realize that alsa expected the laptop speakers to be index 0.

So to make sure I understand this correctly,

My options are 1: setup alsa to use my intel card as index 0. I can do this through a modprobe.d ('I think')

or 2: setup pulse/pipewire. Does pulse and pipewire sit on top of ALSA? as in for those to work I would need all the drivers for the card setup before attempting to use those correct?


Thanks for all your help, I've gone throught the arch install process a handful of times now and everytime I learn a little bit more about whats going on under the hood!

Last edited by a_monkey (2021-06-10 17:06:02)


This is fine.

Offline

#10 2021-06-10 17:46:45

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

Cool switching around the cards and setting up pipewire seems to have fixed almost everything. The only issue I have left is the microphone, for some reason it picks up any sound in a nearby area. I think this is due to the fact that the laptop has a dual mic farfield setup. is there anyway to configure pipewire/ALSA to handle this not sure where or what to configure exactly?

Last edited by a_monkey (2021-06-10 17:49:15)


This is fine.

Offline

#11 2021-06-10 20:59:36

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

Re: Audio on a Thinkpad P1 Gen3

You can try loading the module-echo-cancel with

pactl load-module module-echo-cancel

and switch applications you want to have affected by it in pavucontrol to the corresponding source or generally reduce the volume it picks up in pavucontrol or whatever mixer application you want to use here.

Offline

#12 2021-06-12 23:35:54

a_monkey
Member
Registered: 2021-06-10
Posts: 7

Re: Audio on a Thinkpad P1 Gen3

looks like everything is solved thanks so much


This is fine.

Offline

#13 2021-06-13 11:53:08

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Audio on a Thinkpad P1 Gen3

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB