Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-25 Thread Jeff Chua
On Sat, Feb 24, 2024 at 9:06 PM Jeff Chua  wrote:
>
> On Tue, Feb 20, 2024 at 4:04 PM Paul Menzel  wrote:
> >
> > [CC: Mark from Lenovo]
> >
> > Am 20.02.24 um 03:57 schrieb Jeff Chua:
> > > On Sat, Feb 17, 2024 at 5:05 PM Takashi Iwai  wrote:
> > >>
> > >> On Sat, 17 Feb 2024 09:47:06 +0100, Jeff Chua wrote:
> >  Have you tried the recent distro standard kernel at all?
> > >>>
> > >>> No, but if you can send me a working .config and I'll try to compile it.
> > >>
> > >> Take your distro kernel.  I don't know what you're using, and it's
> > >> really up to you.
> > >>
> > >> It seems that the machine was certified for Ubuntu, at least.
> > >
> > > It's just vanilla linux. Not a standard distro. It worked fine on all
> > > previous Lenovo's until I got the new P1.
> > >
> > > I'll try to find a machine with ubuntu to test and grap the .config from 
> > > there.
>
> I've made some progress, got a ubuntu config and currently testing.
> It's using SOF, and it loaded all the modules and found the card, but
> still no sound from the speaker but headphones works.
>
> I'll test further.

Still no sound. Tested on 6.4.16, and latest git pull 6.8.0-rc6.

# cat /proc/asound/cards
 0 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xbe00 irq 17
 1 [sofhdadsp  ]: sof-hda-dsp - sof-hda-dsp
  LENOVO-21FWS6UK00-ThinkPadP1Gen6

# dmesg
sof-audio-pci-intel-tgl :00:1f.3: DSP detected with PCI
class/subclass/prog-if info 0x040100
sof-audio-pci-intel-tgl :00:1f.3: Digital mics found on Skylake+
platform, using SOF driver
sof-audio-pci-intel-tgl :00:1f.3: DSP detected with PCI
class/subclass/prog-if 0x040100
sof-audio-pci-intel-tgl :00:1f.3: use msi interrupt mode
sof-audio-pci-intel-tgl :00:1f.3: hda codecs found, mask 1
sof-audio-pci-intel-tgl :00:1f.3: using HDA machine driver
skl_hda_dsp_generic now
sof-audio-pci-intel-tgl :00:1f.3: DMICs detected in NHLT tables: 2
sof-audio-pci-intel-tgl :00:1f.3: Firmware paths/files for ipc type 0:
sof-audio-pci-intel-tgl :00:1f.3:  Firmware file: intel/sof/sof-rpl.ri
sof-audio-pci-intel-tgl :00:1f.3:  Topology file:
intel/sof-tplg/sof-hda-generic-2ch.tplg
sof-audio-pci-intel-tgl :00:1f.3: Firmware info: version 2:2:0-57864
sof-audio-pci-intel-tgl :00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
sof-audio-pci-intel-tgl :00:1f.3: unknown sof_ext_man header type
3 size 0x30
sof-audio-pci-intel-tgl :00:1f.3: Firmware info: version 2:2:0-57864
sof-audio-pci-intel-tgl :00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
sof-audio-pci-intel-tgl :00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet
available, widget card binding deferred
snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC287: line_outs=1
(0x17/0x0/0x0/0x0/0x0) type:speaker
snd_hda_codec_realtek ehdaudio0D0:speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
snd_hda_codec_realtek ehdaudio0D0:hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
snd_hda_codec_realtek ehdaudio0D0:mono: mono_out=0x0
snd_hda_codec_realtek ehdaudio0D0:inputs:
snd_hda_codec_realtek ehdaudio0D0:  Mic=0x19
input: sof-hda-dsp Mic as
/devices/pci:00/:00:1f.3/skl_hda_dsp_generic/sound/card1/input228
input: sof-hda-dsp Headphone as
/devices/pci:00/:00:1f.3/skl_hda_dsp_generic/sound/card1/input229


# aplay -l
card 1: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  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
card 1: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*)[]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



I've tried https://github.com/xoocoon/hp-15-ew0xxx-snd-fix. The
patches applied cleanly to 6.4.16 but still no sound, and I don't see
the CS35L41-hda ...

# output nothing
sudo dmesg | grep cs35l41-hda


What else can I try?


Thanks,
Jeff


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-24 Thread Jeff Chua
On Tue, Feb 20, 2024 at 4:04 PM Paul Menzel  wrote:
>
> [CC: Mark from Lenovo]
>
> Am 20.02.24 um 03:57 schrieb Jeff Chua:
> > On Sat, Feb 17, 2024 at 5:05 PM Takashi Iwai  wrote:
> >>
> >> On Sat, 17 Feb 2024 09:47:06 +0100, Jeff Chua wrote:
>  Have you tried the recent distro standard kernel at all?
> >>>
> >>> No, but if you can send me a working .config and I'll try to compile it.
> >>
> >> Take your distro kernel.  I don't know what you're using, and it's
> >> really up to you.
> >>
> >> It seems that the machine was certified for Ubuntu, at least.
> >
> > It's just vanilla linux. Not a standard distro. It worked fine on all
> > previous Lenovo's until I got the new P1.
> >
> > I'll try to find a machine with ubuntu to test and grap the .config from 
> > there.

I've made some progress, got a ubuntu config and currently testing.
It's using SOF, and it loaded all the modules and found the card, but
still no sound from the speaker but headphones works.

I'll test further.


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-20 Thread Paul Menzel

[CC: Mark from Lenovo]

Am 20.02.24 um 03:57 schrieb Jeff Chua:

On Sat, Feb 17, 2024 at 5:05 PM Takashi Iwai  wrote:


On Sat, 17 Feb 2024 09:47:06 +0100, Jeff Chua wrote:

Have you tried the recent distro standard kernel at all?


No, but if you can send me a working .config and I'll try to compile it.


Take your distro kernel.  I don't know what you're using, and it's
really up to you.

It seems that the machine was certified for Ubuntu, at least.


It's just vanilla linux. Not a standard distro. It worked fine on all
previous Lenovo's until I got the new P1.

I'll try to find a machine with ubuntu to test and grap the .config from there.

Thanks,
Jeff



___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-19 Thread Jeff Chua
On Sat, Feb 17, 2024 at 5:05 PM Takashi Iwai  wrote:
>
> On Sat, 17 Feb 2024 09:47:06 +0100,
> Jeff Chua wrote:
> > > Have you tried the recent distro standard kernel at all?
> >
> > No, but if you can send me a working .config and I'll try to compile it.
>
> Take your distro kernel.  I don't know what you're using, and it's
> really up to you.
>
> It seems that the machine was certified for Ubuntu, at least.

It's just vanilla linux. Not a standard distro. It worked fine on all
previous Lenovo's until I got the new P1.

I'll try to find a machine with ubuntu to test and grap the .config from there.

Thanks,
Jeff


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-17 Thread Takashi Iwai
On Sat, 17 Feb 2024 09:47:06 +0100,
Jeff Chua wrote:
> 
> On Sat, Feb 17, 2024 at 4:30 PM Takashi Iwai  wrote:
> >
> > On Sat, 17 Feb 2024 08:56:56 +0100,
> > Jeff Chua wrote:
> > >
> > > On Sat, Feb 17, 2024 at 12:21 PM Jeff Chua  
> > > wrote:
> > > >
> > > > On Fri, Feb 16, 2024 at 10:57 PM Takashi Iwai  wrote:
> > > > >
> > > > > On Fri, 16 Feb 2024 02:10:04 +0100,
> > > > > Jeff Chua wrote:
> > > > > >
> > > > > > On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> > > > > > >
> > > > > > > On Thu, 15 Feb 2024 12:07:12 +0100,
> > > > > > > Jeff Chua wrote:
> > > > > > > > I've just about everything but still couldn't get souns on the 
> > > > > > > > Lenovo P1 Gen 6.
> > > >
> > > > > Through a quick glance, I see no obvious errors.
> > > > > I suppose you also installed the latest linux-firmware tree?
> > > > > There are corresponding firmware files for CS35L41 with your device
> > > > > configuration (17aa:2317), too.
> > > >
> > > > My firmware is the latest git pull ..
> > > >
> > > > commit fbef4d381e3d0143427e1a8c924be8e738c0fc2d (HEAD -> main,
> > > > origin/main, origin/HEAD)
> > > > Merge: b88f448d c0138861
> > > > Author: Mario Limonciello 
> > > > Date:   Thu Feb 8 12:24:01 2024 +
> > > > Merge branch 'main' into 'main'
> > > > panthor: Add initial firmware for Gen10 Arm Mali GPUs
> > > > See merge request kernel-firmware/linux-firmware!145
> > > >
> > > > There's is only one firmware file in
> > > > /usr/lib/firmware/intel/sof-tplg/sof-adl-max98357a-rt5682.tplg
> > > >
> > > > And this is under SOF, and I don't have SOF enabled, and dmesg doesn't
> > > > show anything on CS35L41.
> > > > Could I be missing something?
> > > >
> > > >
> > > > > Also, you're testing without pipewire nor pulseaudio, right?
> > > >
> > > > No pipewire, and no pulseaudio. And /etc/asound.conf is empty.
> > > >
> > > >
> > > > > Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.
> > > >
> > > > It's playing, no error, and no sound. If I use the headphone jack, I
> > > > could hear the sound from the headphones.
> > > >
> > > > # aplay -Dplughw:0 -vv /local/share/sounds/alsa/Front_Center.wav
> > > > Playing WAVE '/local/share/sounds/alsa/Front_Center.wav' : Signed 16
> > > > bit Little Endian, Rate 48000 Hz, Mono
> > > > Plug PCM: Route conversion PCM (sformat=S16_LE)
> > > >   Transformation table:
> > > > 0 <- 0
> > > > 1 <- 0
> > > > Its setup is:
> > > >   stream   : PLAYBACK
> > > >   access   : RW_INTERLEAVED
> > > >   format   : S16_LE
> > > >   subformat: STD
> > > >   channels : 1
> > > >   rate : 48000
> > > >   exact rate   : 48000 (48000/1)
> > > >   msbits   : 16
> > > >   buffer_size  : 24000
> > > >   period_size  : 6000
> > > >   period_time  : 125000
> > > >   tstamp_mode  : ENABLE
> > > >   tstamp_type  : MONOTONIC
> > > >   period_step  : 1
> > > >   avail_min: 6000
> > > >   period_event : 0
> > > >   start_threshold  : 24000
> > > >   stop_threshold   : 24000
> > > >   silence_threshold: 0
> > > >   silence_size : 0
> > > >   boundary : 6755399441055744000
> > > > Slave: Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
> > > > Its setup is:
> > > >   stream   : PLAYBACK
> > > >   access   : MMAP_INTERLEAVED
> > > >   format   : S16_LE
> > > >   subformat: STD
> > > >   channels : 2
> > > >   rate : 48000
> > > >   exact rate   : 48000 (48000/1)
> > > >   msbits   : 16
> > > >   buffer_size  : 24000
> > > >   period_size  : 6000
> > > >   period_time  : 125000
> > > >   tstamp_mode  : ENABLE
> > > >   tstamp_type  : MONOTONIC
> > > >   period_step  : 1
> > > >   avail_min: 6000
> > > >   period_event : 0
> > > >   start_threshold  : 24000
> > > >   stop_threshold   : 24000
> > > >   silence_threshold: 0
> > > >   silence_size : 0
> > > >   boundary : 6755399441055744000
> > > >   appl_ptr : 0
> > > >   hw_ptr   : 0
> > > > #   +  | 47%
> > > >
> > > >
> > > >
> > > > > The quirk for your device was added already in 6.4 kernel, so please
> > > > > try that old kernel to see whether it's a regression.
> > > >
> > > > Ok, I'll test that next.
> > >
> > > Tried on 6.4.16 and still not working.
> > >
> > > The snd-hda-scodec-cs35l41-i2c module is not loaded. Is this necessary?
> > >
> > > I got a feeling my kernel is not probing for the CS35L41. How can I
> > > help trace this?
> >
> > Have you tried the recent distro standard kernel at all?
> 
> No, but if you can send me a working .config and I'll try to compile it.

Take your distro kernel.  I don't know what you're using, and it's
really up to you.

It seems that the machine was certified for Ubuntu, at least.


Takashi


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-17 Thread Jeff Chua
On Sat, Feb 17, 2024 at 4:30 PM Takashi Iwai  wrote:
>
> On Sat, 17 Feb 2024 08:56:56 +0100,
> Jeff Chua wrote:
> >
> > On Sat, Feb 17, 2024 at 12:21 PM Jeff Chua  
> > wrote:
> > >
> > > On Fri, Feb 16, 2024 at 10:57 PM Takashi Iwai  wrote:
> > > >
> > > > On Fri, 16 Feb 2024 02:10:04 +0100,
> > > > Jeff Chua wrote:
> > > > >
> > > > > On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> > > > > >
> > > > > > On Thu, 15 Feb 2024 12:07:12 +0100,
> > > > > > Jeff Chua wrote:
> > > > > > > I've just about everything but still couldn't get souns on the 
> > > > > > > Lenovo P1 Gen 6.
> > >
> > > > Through a quick glance, I see no obvious errors.
> > > > I suppose you also installed the latest linux-firmware tree?
> > > > There are corresponding firmware files for CS35L41 with your device
> > > > configuration (17aa:2317), too.
> > >
> > > My firmware is the latest git pull ..
> > >
> > > commit fbef4d381e3d0143427e1a8c924be8e738c0fc2d (HEAD -> main,
> > > origin/main, origin/HEAD)
> > > Merge: b88f448d c0138861
> > > Author: Mario Limonciello 
> > > Date:   Thu Feb 8 12:24:01 2024 +
> > > Merge branch 'main' into 'main'
> > > panthor: Add initial firmware for Gen10 Arm Mali GPUs
> > > See merge request kernel-firmware/linux-firmware!145
> > >
> > > There's is only one firmware file in
> > > /usr/lib/firmware/intel/sof-tplg/sof-adl-max98357a-rt5682.tplg
> > >
> > > And this is under SOF, and I don't have SOF enabled, and dmesg doesn't
> > > show anything on CS35L41.
> > > Could I be missing something?
> > >
> > >
> > > > Also, you're testing without pipewire nor pulseaudio, right?
> > >
> > > No pipewire, and no pulseaudio. And /etc/asound.conf is empty.
> > >
> > >
> > > > Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.
> > >
> > > It's playing, no error, and no sound. If I use the headphone jack, I
> > > could hear the sound from the headphones.
> > >
> > > # aplay -Dplughw:0 -vv /local/share/sounds/alsa/Front_Center.wav
> > > Playing WAVE '/local/share/sounds/alsa/Front_Center.wav' : Signed 16
> > > bit Little Endian, Rate 48000 Hz, Mono
> > > Plug PCM: Route conversion PCM (sformat=S16_LE)
> > >   Transformation table:
> > > 0 <- 0
> > > 1 <- 0
> > > Its setup is:
> > >   stream   : PLAYBACK
> > >   access   : RW_INTERLEAVED
> > >   format   : S16_LE
> > >   subformat: STD
> > >   channels : 1
> > >   rate : 48000
> > >   exact rate   : 48000 (48000/1)
> > >   msbits   : 16
> > >   buffer_size  : 24000
> > >   period_size  : 6000
> > >   period_time  : 125000
> > >   tstamp_mode  : ENABLE
> > >   tstamp_type  : MONOTONIC
> > >   period_step  : 1
> > >   avail_min: 6000
> > >   period_event : 0
> > >   start_threshold  : 24000
> > >   stop_threshold   : 24000
> > >   silence_threshold: 0
> > >   silence_size : 0
> > >   boundary : 6755399441055744000
> > > Slave: Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
> > > Its setup is:
> > >   stream   : PLAYBACK
> > >   access   : MMAP_INTERLEAVED
> > >   format   : S16_LE
> > >   subformat: STD
> > >   channels : 2
> > >   rate : 48000
> > >   exact rate   : 48000 (48000/1)
> > >   msbits   : 16
> > >   buffer_size  : 24000
> > >   period_size  : 6000
> > >   period_time  : 125000
> > >   tstamp_mode  : ENABLE
> > >   tstamp_type  : MONOTONIC
> > >   period_step  : 1
> > >   avail_min: 6000
> > >   period_event : 0
> > >   start_threshold  : 24000
> > >   stop_threshold   : 24000
> > >   silence_threshold: 0
> > >   silence_size : 0
> > >   boundary : 6755399441055744000
> > >   appl_ptr : 0
> > >   hw_ptr   : 0
> > > #   +  | 47%
> > >
> > >
> > >
> > > > The quirk for your device was added already in 6.4 kernel, so please
> > > > try that old kernel to see whether it's a regression.
> > >
> > > Ok, I'll test that next.
> >
> > Tried on 6.4.16 and still not working.
> >
> > The snd-hda-scodec-cs35l41-i2c module is not loaded. Is this necessary?
> >
> > I got a feeling my kernel is not probing for the CS35L41. How can I
> > help trace this?
>
> Have you tried the recent distro standard kernel at all?

No, but if you can send me a working .config and I'll try to compile it.

Thanks,
Jeff


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-17 Thread Takashi Iwai
On Sat, 17 Feb 2024 08:56:56 +0100,
Jeff Chua wrote:
> 
> On Sat, Feb 17, 2024 at 12:21 PM Jeff Chua  wrote:
> >
> > On Fri, Feb 16, 2024 at 10:57 PM Takashi Iwai  wrote:
> > >
> > > On Fri, 16 Feb 2024 02:10:04 +0100,
> > > Jeff Chua wrote:
> > > >
> > > > On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> > > > >
> > > > > On Thu, 15 Feb 2024 12:07:12 +0100,
> > > > > Jeff Chua wrote:
> > > > > > I've just about everything but still couldn't get souns on the 
> > > > > > Lenovo P1 Gen 6.
> >
> > > Through a quick glance, I see no obvious errors.
> > > I suppose you also installed the latest linux-firmware tree?
> > > There are corresponding firmware files for CS35L41 with your device
> > > configuration (17aa:2317), too.
> >
> > My firmware is the latest git pull ..
> >
> > commit fbef4d381e3d0143427e1a8c924be8e738c0fc2d (HEAD -> main,
> > origin/main, origin/HEAD)
> > Merge: b88f448d c0138861
> > Author: Mario Limonciello 
> > Date:   Thu Feb 8 12:24:01 2024 +
> > Merge branch 'main' into 'main'
> > panthor: Add initial firmware for Gen10 Arm Mali GPUs
> > See merge request kernel-firmware/linux-firmware!145
> >
> > There's is only one firmware file in
> > /usr/lib/firmware/intel/sof-tplg/sof-adl-max98357a-rt5682.tplg
> >
> > And this is under SOF, and I don't have SOF enabled, and dmesg doesn't
> > show anything on CS35L41.
> > Could I be missing something?
> >
> >
> > > Also, you're testing without pipewire nor pulseaudio, right?
> >
> > No pipewire, and no pulseaudio. And /etc/asound.conf is empty.
> >
> >
> > > Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.
> >
> > It's playing, no error, and no sound. If I use the headphone jack, I
> > could hear the sound from the headphones.
> >
> > # aplay -Dplughw:0 -vv /local/share/sounds/alsa/Front_Center.wav
> > Playing WAVE '/local/share/sounds/alsa/Front_Center.wav' : Signed 16
> > bit Little Endian, Rate 48000 Hz, Mono
> > Plug PCM: Route conversion PCM (sformat=S16_LE)
> >   Transformation table:
> > 0 <- 0
> > 1 <- 0
> > Its setup is:
> >   stream   : PLAYBACK
> >   access   : RW_INTERLEAVED
> >   format   : S16_LE
> >   subformat: STD
> >   channels : 1
> >   rate : 48000
> >   exact rate   : 48000 (48000/1)
> >   msbits   : 16
> >   buffer_size  : 24000
> >   period_size  : 6000
> >   period_time  : 125000
> >   tstamp_mode  : ENABLE
> >   tstamp_type  : MONOTONIC
> >   period_step  : 1
> >   avail_min: 6000
> >   period_event : 0
> >   start_threshold  : 24000
> >   stop_threshold   : 24000
> >   silence_threshold: 0
> >   silence_size : 0
> >   boundary : 6755399441055744000
> > Slave: Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
> > Its setup is:
> >   stream   : PLAYBACK
> >   access   : MMAP_INTERLEAVED
> >   format   : S16_LE
> >   subformat: STD
> >   channels : 2
> >   rate : 48000
> >   exact rate   : 48000 (48000/1)
> >   msbits   : 16
> >   buffer_size  : 24000
> >   period_size  : 6000
> >   period_time  : 125000
> >   tstamp_mode  : ENABLE
> >   tstamp_type  : MONOTONIC
> >   period_step  : 1
> >   avail_min: 6000
> >   period_event : 0
> >   start_threshold  : 24000
> >   stop_threshold   : 24000
> >   silence_threshold: 0
> >   silence_size : 0
> >   boundary : 6755399441055744000
> >   appl_ptr : 0
> >   hw_ptr   : 0
> > #   +  | 47%
> >
> >
> >
> > > The quirk for your device was added already in 6.4 kernel, so please
> > > try that old kernel to see whether it's a regression.
> >
> > Ok, I'll test that next.
> 
> Tried on 6.4.16 and still not working.
> 
> The snd-hda-scodec-cs35l41-i2c module is not loaded. Is this necessary?
> 
> I got a feeling my kernel is not probing for the CS35L41. How can I
> help trace this?

Have you tried the recent distro standard kernel at all?


Takashi


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-16 Thread Jeff Chua
On Sat, Feb 17, 2024 at 12:21 PM Jeff Chua  wrote:
>
> On Fri, Feb 16, 2024 at 10:57 PM Takashi Iwai  wrote:
> >
> > On Fri, 16 Feb 2024 02:10:04 +0100,
> > Jeff Chua wrote:
> > >
> > > On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> > > >
> > > > On Thu, 15 Feb 2024 12:07:12 +0100,
> > > > Jeff Chua wrote:
> > > > > I've just about everything but still couldn't get souns on the Lenovo 
> > > > > P1 Gen 6.
>
> > Through a quick glance, I see no obvious errors.
> > I suppose you also installed the latest linux-firmware tree?
> > There are corresponding firmware files for CS35L41 with your device
> > configuration (17aa:2317), too.
>
> My firmware is the latest git pull ..
>
> commit fbef4d381e3d0143427e1a8c924be8e738c0fc2d (HEAD -> main,
> origin/main, origin/HEAD)
> Merge: b88f448d c0138861
> Author: Mario Limonciello 
> Date:   Thu Feb 8 12:24:01 2024 +
> Merge branch 'main' into 'main'
> panthor: Add initial firmware for Gen10 Arm Mali GPUs
> See merge request kernel-firmware/linux-firmware!145
>
> There's is only one firmware file in
> /usr/lib/firmware/intel/sof-tplg/sof-adl-max98357a-rt5682.tplg
>
> And this is under SOF, and I don't have SOF enabled, and dmesg doesn't
> show anything on CS35L41.
> Could I be missing something?
>
>
> > Also, you're testing without pipewire nor pulseaudio, right?
>
> No pipewire, and no pulseaudio. And /etc/asound.conf is empty.
>
>
> > Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.
>
> It's playing, no error, and no sound. If I use the headphone jack, I
> could hear the sound from the headphones.
>
> # aplay -Dplughw:0 -vv /local/share/sounds/alsa/Front_Center.wav
> Playing WAVE '/local/share/sounds/alsa/Front_Center.wav' : Signed 16
> bit Little Endian, Rate 48000 Hz, Mono
> Plug PCM: Route conversion PCM (sformat=S16_LE)
>   Transformation table:
> 0 <- 0
> 1 <- 0
> Its setup is:
>   stream   : PLAYBACK
>   access   : RW_INTERLEAVED
>   format   : S16_LE
>   subformat: STD
>   channels : 1
>   rate : 48000
>   exact rate   : 48000 (48000/1)
>   msbits   : 16
>   buffer_size  : 24000
>   period_size  : 6000
>   period_time  : 125000
>   tstamp_mode  : ENABLE
>   tstamp_type  : MONOTONIC
>   period_step  : 1
>   avail_min: 6000
>   period_event : 0
>   start_threshold  : 24000
>   stop_threshold   : 24000
>   silence_threshold: 0
>   silence_size : 0
>   boundary : 6755399441055744000
> Slave: Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
> Its setup is:
>   stream   : PLAYBACK
>   access   : MMAP_INTERLEAVED
>   format   : S16_LE
>   subformat: STD
>   channels : 2
>   rate : 48000
>   exact rate   : 48000 (48000/1)
>   msbits   : 16
>   buffer_size  : 24000
>   period_size  : 6000
>   period_time  : 125000
>   tstamp_mode  : ENABLE
>   tstamp_type  : MONOTONIC
>   period_step  : 1
>   avail_min: 6000
>   period_event : 0
>   start_threshold  : 24000
>   stop_threshold   : 24000
>   silence_threshold: 0
>   silence_size : 0
>   boundary : 6755399441055744000
>   appl_ptr : 0
>   hw_ptr   : 0
> #   +  | 47%
>
>
>
> > The quirk for your device was added already in 6.4 kernel, so please
> > try that old kernel to see whether it's a regression.
>
> Ok, I'll test that next.

Tried on 6.4.16 and still not working.

The snd-hda-scodec-cs35l41-i2c module is not loaded. Is this necessary?

I got a feeling my kernel is not probing for the CS35L41. How can I
help trace this?

Thanks,
Jeff


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-16 Thread Jeff Chua
On Fri, Feb 16, 2024 at 10:57 PM Takashi Iwai  wrote:
>
> On Fri, 16 Feb 2024 02:10:04 +0100,
> Jeff Chua wrote:
> >
> > On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> > >
> > > On Thu, 15 Feb 2024 12:07:12 +0100,
> > > Jeff Chua wrote:
> > > > I've just about everything but still couldn't get souns on the Lenovo 
> > > > P1 Gen 6.

> Through a quick glance, I see no obvious errors.
> I suppose you also installed the latest linux-firmware tree?
> There are corresponding firmware files for CS35L41 with your device
> configuration (17aa:2317), too.

My firmware is the latest git pull ..

commit fbef4d381e3d0143427e1a8c924be8e738c0fc2d (HEAD -> main,
origin/main, origin/HEAD)
Merge: b88f448d c0138861
Author: Mario Limonciello 
Date:   Thu Feb 8 12:24:01 2024 +
Merge branch 'main' into 'main'
panthor: Add initial firmware for Gen10 Arm Mali GPUs
See merge request kernel-firmware/linux-firmware!145

There's is only one firmware file in
/usr/lib/firmware/intel/sof-tplg/sof-adl-max98357a-rt5682.tplg

And this is under SOF, and I don't have SOF enabled, and dmesg doesn't
show anything on CS35L41.
Could I be missing something?


> Also, you're testing without pipewire nor pulseaudio, right?

No pipewire, and no pulseaudio. And /etc/asound.conf is empty.


> Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.

It's playing, no error, and no sound. If I use the headphone jack, I
could hear the sound from the headphones.

# aplay -Dplughw:0 -vv /local/share/sounds/alsa/Front_Center.wav
Playing WAVE '/local/share/sounds/alsa/Front_Center.wav' : Signed 16
bit Little Endian, Rate 48000 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
0 <- 0
1 <- 0
Its setup is:
  stream   : PLAYBACK
  access   : RW_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 1
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : ENABLE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min: 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary : 6755399441055744000
Slave: Hardware PCM card 0 'HDA Intel PCH' device 0 subdevice 0
Its setup is:
  stream   : PLAYBACK
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : ENABLE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min: 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary : 6755399441055744000
  appl_ptr : 0
  hw_ptr   : 0
#   +  | 47%



> The quirk for your device was added already in 6.4 kernel, so please
> try that old kernel to see whether it's a regression.

Ok, I'll test that next.

Thank you!


>
> Takashi


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-16 Thread Takashi Iwai
On Fri, 16 Feb 2024 02:10:04 +0100,
Jeff Chua wrote:
> 
> On Thu, Feb 15, 2024 at 11:37 PM Takashi Iwai  wrote:
> >
> > On Thu, 15 Feb 2024 12:07:12 +0100,
> > Jeff Chua wrote:
> > > I've just about everything but still couldn't get souns on the Lenovo P1 
> > > Gen 6.
> > Could you drop thinkpad_acpi options?
> > Then give alsa-info.sh output while testing the speaker.
> > Run the script with --no-upload option, and attach the output.
> > Also, please give the dmesg output, too.
> 
> Hi Takashi-san,
> 
> Removed all thinkpad_acpi options, and here's the alsa-info' s output,
> dmesg and linux .config.

Through a quick glance, I see no obvious errors.
I suppose you also installed the latest linux-firmware tree?
There are corresponding firmware files for CS35L41 with your device
configuration (17aa:2317), too.

Also, you're testing without pipewire nor pulseaudio, right?
Just "aplay -Dplughw:0 -vv foo.wav" should be good as a test.

The quirk for your device was added already in 6.4 kernel, so please
try that old kernel to see whether it's a regression.


Takashi


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] No sound on Lenovo P1 Gen 6 (00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01))

2024-02-15 Thread Takashi Iwai
On Thu, 15 Feb 2024 12:07:12 +0100,
Jeff Chua wrote:
> 
> I've just about everything but still couldn't get souns on the Lenovo P1 Gen 
> 6.
> 
> I've even tried SOF modules in the kernel but not working either.
> 
> I'm just using standard alsa without other sound utils. Alsa has
> served me fine on IBM/Lenovo for many years. Latest on Lenovo X1 Gen
> 10.
> 
> Sound works fine on the headphone plugged in to the headphone jack.
> 
> Attached is my kernel .config ...
> 
> # lspci
> 00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
> Subsystem: Lenovo Device 2317
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B- DisINTx+
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
> SERR-  Latency: 64
> Interrupt: pin A routed to IRQ 130
> Region 0: Memory at 6452b3 (64-bit, non-prefetchable) [size=16K]
> Region 4: Memory at 6452a0 (64-bit, non-prefetchable) [size=1M]
> Capabilities: [50] Power Management version 3
> Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA
> PME(D0-,D1-,D2-,D3hot+,D3cold+)
> Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [80] Vendor Specific Information: Len=14 
> Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Address: fee3c000  Data: 0020
> Kernel driver in use: snd_hda_intel
> Kernel modules: snd_hda_intel
> 
> 
> # lsmod ...
> snd_ctl_led20480  0
> snd_hda_codec_realtek   147456  1
> snd_hda_codec_generic73728  1 snd_hda_codec_realtek
> snd_hda_codec_hdmi 61440  1
> snd_hda_intel  36864  0
> snd_intel_dspcfg   12288  1 snd_hda_intel
> snd_hda_codec 114688  4
> snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
> snd_hwdep  12288  1 snd_hda_codec
> snd_hda_core   69632  5
> snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
> 
> 
> # dmesg ...
> snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC287: line_outs=1
> (0x17/0x0/0x0/0x0/0x0) type:speaker
> snd_hda_codec_realtek hdaudioC0D0:speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
> snd_hda_codec_realtek hdaudioC0D0:hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
> snd_hda_codec_realtek hdaudioC0D0:mono: mono_out=0x0
> snd_hda_codec_realtek hdaudioC0D0:inputs:
> snd_hda_codec_realtek hdaudioC0D0:  Mic=0x19
> snd_hda_codec_realtek hdaudioC0D0: cs35l41_generic_fixup
> snd_hda_codec_realtek hdaudioC0D0: cs35l41_generic_fixup
> snd_hda_codec_realtek hdaudioC0D0: cs35l41_generic_fixup
> 
> 
> # uname -a
> Linux p1 6.8.0-rc4 #10 SMP PREEMPT_DYNAMIC Thu Feb 15 09:09:25 SGT
> 2024 x86_64 GNU/Linux
> 
> 
> I've the latest linux, alsa-lib, alsa-utils, alsa-plugins inatall ...
> 
> # linux-kernel
> commit 8d3dea210042f54b952b481838c1e7dfc4ec751d (HEAD -> master,
> origin/master, origin/HEAD)
> Merge: 6004b044f771 8fa507083388
> Author: Linus Torvalds 
> Date:   Wed Feb 14 16:06:31 2024 -0800
> 
> 
> And all the latest alsa-lib, alsa-utils, alsa-plugins  install from git.
> 
> # alsa-lib
> commit d8ce72f2561f23293ad0d98d30060c4a80a74c36 (HEAD -> master,
> origin/master, origin/HEAD)
> Author: Jaroslav Kysela 
> Date:   Fri Feb 9 11:21:04 2024 +0100
> 
> # alsa-utils
> commit 7cae8880234149b42d99abd603b387f91a8c7013 (HEAD -> master, tag:
> v1.2.11, origin/master, origin/HEAD)
> Author: Jaroslav Kysela 
> Date:   Mon Jan 29 13:57:30 2024 +0100
> 
> Release v1.2.11
> 
> # alsa-plugins
> commit 873a2966d22cd2956dc3c844fdc5d5573178502a (HEAD -> master,
> origin/master, origin/HEAD)
> Author: Takashi Iwai 
> Date:   Sat Oct 7 09:20:41 2023 +0200
> 
> # cat /proc/cmdline
> BOOT_IMAGE=/linux/bzc1 root=/dev/nvme0n1p2 ro resume=/dev/nvme0n1p12
> nosplash master=nvme0n1p fstype=f2fs reboot=acpi loop.max_part=63
> modules=\"i915\" drm_kms_helper.poll=0 nomodeset vga=755
> i915.modeset=1 i915.enable_fbc=1 i915.enable_guc=3 i915.enable_gvt=1
> i915.enable_psr=0 i915.fastboot=1 iwlwifi.enable_ini=0
> split_lock_detect=off thinkpad_acpi.fan_control=1
> thinkpad_acpi.volume_control=1 x11 sd_mod.ssd=1
> psmouse.synaptics_intertouch=1

Could you drop thinkpad_acpi options?
Then give alsa-info.sh output while testing the speaker.
Run the script with --no-upload option, and attach the output.
Also, please give the dmesg output, too.


thanks,

Takashi


___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user