Skip to content

Commit f81ee57

Browse files
Lucas Tanuretiwai
authored andcommitted
ALSA: hda: cs35l41: Use the CS35L41 HDA internal define
Follow GPIO1 pattern, use cs35l41 HDA internal define for IRQ and then translate to ASoC cs35l41 define. Signed-off-by: Lucas Tanure <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c578d5d commit f81ee57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/pci/hda/cs35l41_hda.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ static int cs35l41_hda_apply_properties(struct cs35l41_hda *cs35l41)
10141014
break;
10151015
case CS35L41_INTERRUPT:
10161016
using_irq = true;
1017+
hw_cfg->gpio2.func = CS35L41_GPIO2_INT_OPEN_DRAIN;
10171018
break;
10181019
default:
10191020
dev_err(cs35l41->dev, "Invalid GPIO2 function %d\n", hw_cfg->gpio2.func);
@@ -1273,7 +1274,7 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i
12731274
cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
12741275
cs35l41->hw_cfg.bst_type = CS35L41_EXT_BOOST_NO_VSPK_SWITCH;
12751276
cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, 0, 0, 2);
1276-
hw_cfg->gpio2.func = CS35L41_GPIO2_INT_OPEN_DRAIN;
1277+
hw_cfg->gpio2.func = CS35L41_INTERRUPT;
12771278
hw_cfg->gpio2.valid = true;
12781279
cs35l41->hw_cfg.valid = true;
12791280
put_device(physdev);

0 commit comments

Comments
 (0)