Skip to content

Commit de8cab7

Browse files
Stefan Bindingtiwai
authored andcommitted
ALSA: hda: cs35l41: Enable GPIO2 Interrupt for CLSA0100 laptops
CLSA0100 Laptop does not contain configuration inside ACPI, instead the hardware configuration needs to be hardcoded. Hardcode GPIO2 Interrupt in the driver for CSLA0100. 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-6-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent aa4a38a commit de8cab7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/pci/hda/cs35l41_hda.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i
412412
cs35l41->hw_cfg.spk_pos = cs35l41->index;
413413
cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
414414
cs35l41->hw_cfg.bst_type = CS35L41_EXT_BOOST_NO_VSPK_SWITCH;
415+
hw_cfg->gpio2.func = CS35L41_GPIO2_INT_OPEN_DRAIN;
416+
hw_cfg->gpio2.valid = true;
415417
cs35l41->hw_cfg.valid = true;
416418
put_device(physdev);
417419

0 commit comments

Comments
 (0)