aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/rt5645.h
diff options
context:
space:
mode:
authorChris Chiu <chiu@endlessos.org>2021-01-11 13:41:40 +0800
committerMark Brown <broonie@kernel.org>2021-01-11 14:03:09 +0000
commit28c988492cf65626d06ae32d7f20f1596c080667 (patch)
tree85aed589e8a8035d5514164ff68998d8eda9ffd2 /include/sound/rt5645.h
parentASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series (diff)
downloadlinux-dev-28c988492cf65626d06ae32d7f20f1596c080667.tar.xz
linux-dev-28c988492cf65626d06ae32d7f20f1596c080667.zip
ASoC: rt5645: add inv_hp_det flag
The ECS EF20EA laptop use gpio for jack detection instead of rt5645 rt5645 JD. However, the GPIO polarity is inverse for hp-detect based on the _DSD property of the RTK2 device. Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"hp-detect-gpio", Package() {^RTK2, 0, 0, 1 }}, } }) This flag will invert the hp-detect gpio polarity. Signed-off-by: Chris Chiu <chiu@endlessos.org> Link: https://lore.kernel.org/r/20210111054141.4668-4-chiu@endlessos.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/rt5645.h')
-rw-r--r--include/sound/rt5645.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/rt5645.h b/include/sound/rt5645.h
index 39a77c7cea36..710c95be5509 100644
--- a/include/sound/rt5645.h
+++ b/include/sound/rt5645.h
@@ -22,6 +22,8 @@ struct rt5645_platform_data {
bool level_trigger_irq;
/* Invert JD1_1 status polarity */
bool inv_jd1_1;
+ /* Invert HP detect status polarity */
+ bool inv_hp_pol;
/* Value to asign to snd_soc_card.long_name */
const char *long_name;