* [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops
@ 2024-03-01 16:01 Stefan Binding
2024-03-01 16:01 ` [PATCH v1 1/3] ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P Stefan Binding
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Stefan Binding @ 2024-03-01 16:01 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: alsa-devel, linux-sound, linux-kernel, patches, Stefan Binding
Add support for a couple of Lenovo Thinkbook 16P laptops using CS35L41
HDA. Also fix a _DSD BIOS error for the ASUS UM5302LA laptop.
Stefan Binding (3):
ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P
ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops
ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA
sound/pci/hda/cs35l41_hda_property.c | 6 ++++++
sound/pci/hda/patch_realtek.c | 2 ++
2 files changed, 8 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v1 1/3] ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P
2024-03-01 16:01 [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Stefan Binding
@ 2024-03-01 16:01 ` Stefan Binding
2024-03-01 16:01 ` [PATCH v1 2/3] ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops Stefan Binding
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Stefan Binding @ 2024-03-01 16:01 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: alsa-devel, linux-sound, linux-kernel, patches, Stefan Binding
Adds sound support for 2 Lenovo Thinkbook 16P laptops using CS35L41
HDA with External Boost.
SSIDs:
- 17AA38A9
- 17AA38AB
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218437
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
sound/pci/hda/cs35l41_hda_property.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c
index b1a5c0ec2b55..38a19752cb6c 100644
--- a/sound/pci/hda/cs35l41_hda_property.c
+++ b/sound/pci/hda/cs35l41_hda_property.c
@@ -108,6 +108,8 @@ static const struct cs35l41_config cs35l41_config_table[] = {
{ "10431F1F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 0, 0, 0 },
{ "10431F62", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 },
{ "17AA386F", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
+ { "17AA38A9", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 2, -1, 0, 0, 0 },
+ { "17AA38AB", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 2, -1, 0, 0, 0 },
{ "17AA38B4", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
{ "17AA38B5", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
{ "17AA38B6", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
@@ -493,6 +495,8 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = {
{ "CSC3551", "10431F1F", generic_dsd_config },
{ "CSC3551", "10431F62", generic_dsd_config },
{ "CSC3551", "17AA386F", generic_dsd_config },
+ { "CSC3551", "17AA38A9", generic_dsd_config },
+ { "CSC3551", "17AA38AB", generic_dsd_config },
{ "CSC3551", "17AA38B4", generic_dsd_config },
{ "CSC3551", "17AA38B5", generic_dsd_config },
{ "CSC3551", "17AA38B6", generic_dsd_config },
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v1 2/3] ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops
2024-03-01 16:01 [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Stefan Binding
2024-03-01 16:01 ` [PATCH v1 1/3] ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P Stefan Binding
@ 2024-03-01 16:01 ` Stefan Binding
2024-03-01 16:01 ` [PATCH v1 3/3] ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA Stefan Binding
2024-03-04 8:13 ` [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Takashi Iwai
3 siblings, 0 replies; 5+ messages in thread
From: Stefan Binding @ 2024-03-01 16:01 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: alsa-devel, linux-sound, linux-kernel, patches, Stefan Binding
These models use 2 CS35L41 amps with HDA using I2C.
Both models have _DSD support inside cs35l41_hda_property.c.
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218437
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
sound/pci/hda/patch_realtek.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index f112eb1a868f..0b40aa713d3c 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -10190,6 +10190,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x17aa, 0x3886, "Y780 VECO DUAL", ALC287_FIXUP_TAS2781_I2C),
SND_PCI_QUIRK(0x17aa, 0x38a7, "Y780P AMD YG dual", ALC287_FIXUP_TAS2781_I2C),
SND_PCI_QUIRK(0x17aa, 0x38a8, "Y780P AMD VECO dual", ALC287_FIXUP_TAS2781_I2C),
+ SND_PCI_QUIRK(0x17aa, 0x38a9, "Thinkbook 16P", ALC287_FIXUP_CS35L41_I2C_2),
+ SND_PCI_QUIRK(0x17aa, 0x38ab, "Thinkbook 16P", ALC287_FIXUP_CS35L41_I2C_2),
SND_PCI_QUIRK(0x17aa, 0x38b4, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2),
SND_PCI_QUIRK(0x17aa, 0x38b5, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2),
SND_PCI_QUIRK(0x17aa, 0x38b6, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L41_I2C_2),
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v1 3/3] ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA
2024-03-01 16:01 [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Stefan Binding
2024-03-01 16:01 ` [PATCH v1 1/3] ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P Stefan Binding
2024-03-01 16:01 ` [PATCH v1 2/3] ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops Stefan Binding
@ 2024-03-01 16:01 ` Stefan Binding
2024-03-04 8:13 ` [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Takashi Iwai
3 siblings, 0 replies; 5+ messages in thread
From: Stefan Binding @ 2024-03-01 16:01 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: alsa-devel, linux-sound, linux-kernel, patches, Stefan Binding
Whilst this laptop contains _DSD inside the BIOS, there is an error in
this configuration. Override the _DSD in the BIOS with the correct
configuration for this laptop.
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
sound/pci/hda/cs35l41_hda_property.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c
index 38a19752cb6c..72ec872afb8d 100644
--- a/sound/pci/hda/cs35l41_hda_property.c
+++ b/sound/pci/hda/cs35l41_hda_property.c
@@ -94,6 +94,7 @@ static const struct cs35l41_config cs35l41_config_table[] = {
{ "104317F3", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431863", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "104318D3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
+ { "10431A83", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431C9F", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "10431CAF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "10431CCF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
@@ -481,6 +482,7 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = {
{ "CSC3551", "104317F3", generic_dsd_config },
{ "CSC3551", "10431863", generic_dsd_config },
{ "CSC3551", "104318D3", generic_dsd_config },
+ { "CSC3551", "10431A83", generic_dsd_config },
{ "CSC3551", "10431C9F", generic_dsd_config },
{ "CSC3551", "10431CAF", generic_dsd_config },
{ "CSC3551", "10431CCF", generic_dsd_config },
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops
2024-03-01 16:01 [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Stefan Binding
` (2 preceding siblings ...)
2024-03-01 16:01 ` [PATCH v1 3/3] ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA Stefan Binding
@ 2024-03-04 8:13 ` Takashi Iwai
3 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2024-03-04 8:13 UTC (permalink / raw)
To: Stefan Binding
Cc: Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-sound,
linux-kernel, patches
On Fri, 01 Mar 2024 17:01:51 +0100,
Stefan Binding wrote:
>
> Add support for a couple of Lenovo Thinkbook 16P laptops using CS35L41
> HDA. Also fix a _DSD BIOS error for the ASUS UM5302LA laptop.
>
> Stefan Binding (3):
> ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P
> ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops
> ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA
Thanks, applied now.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-04 8:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 16:01 [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Stefan Binding
2024-03-01 16:01 ` [PATCH v1 1/3] ALSA: hda: cs35l41: Support Lenovo Thinkbook 16P Stefan Binding
2024-03-01 16:01 ` [PATCH v1 2/3] ALSA: hda/realtek: Add quirks for Lenovo Thinkbook 16P laptops Stefan Binding
2024-03-01 16:01 ` [PATCH v1 3/3] ALSA: hda: cs35l41: Overwrite CS35L41 configuration for ASUS UM5302LA Stefan Binding
2024-03-04 8:13 ` [PATCH v1 0/3] ALSA: hda: cs35l41: Add support for a couple of Lenovo and Asus Laptops Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox