Sound drivers

Issues related to hardware problems
Post Reply
BigDog
Posts: 15
Joined: 2019/01/24 03:18:57

Sound drivers

Post by BigDog » 2022/02/18 11:10:15

Hi Community

I have a Lenovo P1 Gen4 laptop running Centos 8 Stream (Linux 4.18.0-365.el8.x86_64 x86_64). I have for many years struggled to use the on-board sound speakers/mic with Lenovo laptops and wonder if anyone has had any joy finding a suitable driver to work with my current laptop? I have done a lot of reading around the various websites but nothing stands out as an obvious fix hence the community shout. Lenovo themselves said they do not cater for Linux drivers.

I would also be very interested to understand what it takes to write a driver and what skill-sets one needs to do this ?

lsmod | grep snd gives the following output

snd_hda_codec_realtek 147456 0
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
snd_soc_dmic 16384 0
snd_sof_pci_intel_tgl 16384 0
snd_sof_intel_hda_common 102400 1 snd_sof_pci_intel_tgl
snd_soc_hdac_hda 20480 1 snd_sof_intel_hda_common
soundwire_intel 36864 1 snd_sof_intel_hda_common
snd_sof_intel_hda 16384 1 snd_sof_intel_hda_common
snd_sof_pci 16384 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 143360 2 snd_sof_pci,snd_sof_intel_hda_common
snd_hda_ext_core 28672 3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match 49152 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_soc_core 290816 5 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_dmic
snd_hda_codec_hdmi 69632 1
snd_compress 24576 1 snd_soc_core
snd_hda_intel 53248 1
snd_intel_dspcfg 24576 2 snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi 16384 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 151552 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core 102400 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 16384 1 snd_hda_codec
snd_seq 81920 0
snd_seq_device 16384 1 snd_seq
snd_pcm 118784 9 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core
snd_timer 36864 2 snd_seq,snd_pcm
ledtrig_audio 16384 3 snd_hda_codec_generic,snd_sof,thinkpad_acpi
snd 98304 15 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
soundcore 16384 1 snd

if there is any more info that is needed glad to provide as requested.

Many Thanks

BD

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Sound drivers

Post by TrevorH » 2022/02/18 12:29:05

Post the output from

aplay -L
aplay -l
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

BigDog
Posts: 15
Joined: 2019/01/24 03:18:57

Re: Sound drivers

Post by BigDog » 2022/02/19 00:43:08

Hi Trevor

Good news I got sound working across all of my lenovo centos 8 stream laptops. This includes the P1 Gen 4 and Carbon X1 gen 8.

I modified the GRUB_CMDLINE_LINUX entry in /etc/default/grub to include the following

splash=silent showopts snd-intel-dspcfg.dsp_driver=1

followed by

grub2-mkconfig -o /boot/grub2/grub.cfg

and then a reboot.

However, i still cant detect the microphone so here is the output of aplay you requested.

BigDog
Posts: 15
Joined: 2019/01/24 03:18:57

Re: Sound drivers

Post by BigDog » 2022/02/19 00:44:03

Output of aplay -L and aplay -l here

[root@linux ~]# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC285 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC285 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC285 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
[root@linux ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC285 Analog [ALC285 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
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0

BigDog
Posts: 15
Joined: 2019/01/24 03:18:57

Re: Sound drivers

Post by BigDog » 2022/02/21 10:57:15

Hi All

Any thoughts on how to get the microphone working on the Lenovo P1 Centos 8 stream laptop? Note I fired up a centos 9 stream laptop and had the same issue with no microphone detected.

Txs

Tim

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: Sound drivers

Post by BShT » 2022/03/02 13:04:36

to write a driver you need to know C, kernel programing, how hardware works at low level and probably some asm

if you don´t have any manufacturer documentation, you need to know how to do reverse engineering

Post Reply