projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c960aa6
)
ALSA: hda: cs35l41: Set Speaker Position for CLSA0100 Laptop
author
Stefan Binding
<sbinding@opensource.cirrus.com>
Mon, 9 May 2022 21:46:39 +0000
(22:46 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 16 May 2022 07:50:31 +0000
(09:50 +0200)
This laptop does not contain required properties inside ACPI,
instead the values are be hardcoded inside the driver.
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20220509214703.4482-3-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/cs35l41_hda.c
b/sound/pci/hda/cs35l41_hda.c
index
bc277b3
..
d7e90c0
100644
(file)
--- a/
sound/pci/hda/cs35l41_hda.c
+++ b/
sound/pci/hda/cs35l41_hda.c
@@
-281,6
+281,7
@@
no_acpi_dsd:
/* check I2C address to assign the index */
cs35l41->index = id == 0x40 ? 0 : 1;
+ cs35l41->hw_cfg.spk_pos = cs35l41->index;
cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
cs35l41->hw_cfg.bst_type = CS35L41_EXT_BOOST_NO_VSPK_SWITCH;
cs35l41->hw_cfg.valid = true;