Bug 217930

Summary: Lenovo ThinkBook 16p Gen4 IRH No sound with sof-hda-dsp installed
Product: Drivers Reporter: Huayu Zhang (zhanghuayu.dev)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED DUPLICATE    
Severity: normal CC: bagasdotme
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Huayu Zhang 2023-09-20 08:38:27 UTC
ALSA info: http://alsa-project.org/db/?f=91e572d132b263358ba9c6225c6c0b92870a7953

The output of `sudo dmesg | grep -i cs35l41`
```
[    3.366672] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed property cirrus,dev-index: -22
[    3.367534] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: error -EINVAL: Platform not supported
[    3.368062] cs35l41-hda: probe of i2c-CSC3551:00-cs35l41-hda.0 failed with error -22
[    3.377390] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Failed property cirrus,dev-index: -22
[    3.379353] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: error -EINVAL: Platform not supported
[    3.382711] cs35l41-hda: probe of i2c-CSC3551:00-cs35l41-hda.1 failed with error -22
```

Kernel version: 6.6.0-rc2

Try to add support on "Lenovo ThinkBook 16p Gen 4" in sound/pci/hda/patch_realtek.c by adding:

"SND_PCI_QUIRK(0x17aa, 0x38a9, "Lenovo ThinkBook 16p Gen 4", ALC287_FIXUP_CS35L41_I2C_2),
    SND_PCI_QUIRK(0x17aa, 0x38ab, "Lenovo ThinkBook 16p Gen 4", ALC287_FIXUP_CS35L41_I2C_2)," into alc269_fixup_tbl
Comment 1 Bagas Sanjaya 2023-09-20 11:48:25 UTC
(In reply to Huayu Zhang from comment #0)
> ALSA info:
> http://alsa-project.org/db/?f=91e572d132b263358ba9c6225c6c0b92870a7953
> 
> The output of `sudo dmesg | grep -i cs35l41`
> ```
> [    3.366672] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed property
> cirrus,dev-index: -22
> [    3.367534] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: error -EINVAL:
> Platform not supported
> [    3.368062] cs35l41-hda: probe of i2c-CSC3551:00-cs35l41-hda.0 failed
> with error -22
> [    3.377390] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Failed property
> cirrus,dev-index: -22
> [    3.379353] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: error -EINVAL:
> Platform not supported
> [    3.382711] cs35l41-hda: probe of i2c-CSC3551:00-cs35l41-hda.1 failed
> with error -22
> ```
> 
> Kernel version: 6.6.0-rc2
> 
> Try to add support on "Lenovo ThinkBook 16p Gen 4" in
> sound/pci/hda/patch_realtek.c by adding:
> 
> "SND_PCI_QUIRK(0x17aa, 0x38a9, "Lenovo ThinkBook 16p Gen 4",
> ALC287_FIXUP_CS35L41_I2C_2),
>     SND_PCI_QUIRK(0x17aa, 0x38ab, "Lenovo ThinkBook 16p Gen 4",
> ALC287_FIXUP_CS35L41_I2C_2)," into alc269_fixup_tbl

Please send the quirk above as formal patch (see Documentation/process/submitting-patches.rst).
Comment 2 Huayu Zhang 2023-09-20 15:21:24 UTC
Thanks for your reply, Bagas. And sorry, I don't mean to submmit it. 

What I trying to say is the quirk is what I'm trying to do. But the dmeg show me the above message.

The Lenovo ThinkBook 16p Gen 4 seems still have no proper quirk at this time. And Cirrus seems added more support on CS35L41. Wondering any suggestions on adding quirk or if any advice on testing for that?

Thanks a lot.
Comment 3 Huayu Zhang 2024-01-30 09:37:33 UTC

*** This bug has been marked as a duplicate of bug 218437 ***