Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 674c8b07 authored by Jack Pham's avatar Jack Pham
Browse files

ASoC: apq8084: Allow sharing of liquid dock plug interrupt



The dock plug detect GPIO is used as an interrupt indicating
when the Liquid device is attached to (or removed from) the
docking station. There may be other peripherals wanting to
register a handler for notification. Hence, allow this
interrupt to be shared by adding the IRQF_SHARED flag.

Change-Id: Ib018ba09d6b89c3784b544700878a366056a5221
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 3c5b9ada
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -361,7 +361,8 @@ static int apq8084_liquid_init_docking(struct snd_soc_dapm_context *dapm)
	int dock_plug_gpio = 0;

	/* plug in docking speaker+plug in device OR unplug one of them */
	u32 dock_plug_irq_flags = IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING;
	u32 dock_plug_irq_flags = IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING |
					IRQF_SHARED;
	dock_plug_gpio = of_get_named_gpio(spdev->dev.of_node,
					   "qcom,dock-plug-det-irq", 0);