ALSA: hda: cs35l41: Override malformed _DSD properties for various laptops
Subsystems (2)
PATCH 1/1 ALSA: hda: cs35l41: Override malformed _DSD properties for various laptops
Several HP laptops have malformed and incorrect _DSD properties used by the CS35L41 HDA driver. This results in audio for those laptops being broken. We can fix this by overriding the _DSD for those laptops, ensuring the driver uses the correct settings.
The laptops whose _DSD will be overridden are:
- 103C8E11
- 103C8E12
- 103C8E13
- 103C8E3A
- 103C8E3B
- 103C8E60
- 103C8E61
- 103C8E62
- 103C8E75
- 103C8F57
--- .../codecs/side-codecs/cs35l41_hda_property.c | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
sound/hda/codecs/side-codecs/cs35l41_hda_property.c +19 -3
@@ -85,9 +85,17 @@ static const struct cs35l41_config cs35l41_config_table[] = { { "103C8C51", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4100, 24 }, { "103C8CDD", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4100, 24 }, { "103C8CDE", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 3900, 24 }, - { "103C8E13", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 }, - { "103C8E60", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 }, - { "103C8F07", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 3900, 24 }, + { "103C8E11", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E12", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E13", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E3A", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E3B", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E60", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E61", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E62", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8E75", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, + { "103C8F07", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 3900, 24 }, + { "103C8F57", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4000, 24 }, { "104312AF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 }, { "10431433", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 }, { "10431463", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
@@ -544,9 +552,17 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = { { "CSC3551", "103C8C6A", hp_i2c_int_2amp_dual_spkid }, { "CSC3551", "103C8CDD", generic_dsd_config }, { "CSC3551", "103C8CDE", generic_dsd_config }, + { "CSC3551", "103C8E11", generic_dsd_config }, + { "CSC3551", "103C8E12", generic_dsd_config }, { "CSC3551", "103C8E13", generic_dsd_config }, + { "CSC3551", "103C8E3A", generic_dsd_config }, + { "CSC3551", "103C8E3B", generic_dsd_config }, { "CSC3551", "103C8E60", generic_dsd_config }, + { "CSC3551", "103C8E61", generic_dsd_config }, + { "CSC3551", "103C8E62", generic_dsd_config }, + { "CSC3551", "103C8E75", generic_dsd_config }, { "CSC3551", "103C8F07", generic_dsd_config }, + { "CSC3551", "103C8F57", generic_dsd_config }, { "CSC3551", "104312AF", generic_dsd_config }, { "CSC3551", "10431433", generic_dsd_config }, { "CSC3551", "10431463", generic_dsd_config },
Signature · 1 line
2.43.0
Quoted 19 lines · Stefan Binding
Several HP laptops have malformed and incorrect
_DSDproperties used by the CS35L41 HDA driver. This results in audio for those laptops being broken. We can fix this by overriding the_DSDfor those laptops, ensuring the driver uses the correct settings.The laptops whose
_DSDwill be overridden are:- 103C8E11
- 103C8E12
- 103C8E13
- 103C8E3A
- 103C8E3B
- 103C8E60
- 103C8E61
- 103C8E62
- 103C8E75
- 103C8F57
Quoted 1 line
Signed-off-by Stefan Binding <[email protected]>
Applied now. Thanks.
Takashi