diff options
author | Chris Chiu <chiu@endlessos.org> | 2021-01-11 08:41:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-11 17:03:09 +0300 |
commit | 28c988492cf65626d06ae32d7f20f1596c080667 (patch) | |
tree | 85aed589e8a8035d5514164ff68998d8eda9ffd2 /include/sound | |
parent | a4dae468cfdd90cdb08d96161482c23739dd636a (diff) | |
download | linux-28c988492cf65626d06ae32d7f20f1596c080667.tar.xz |
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')
-rw-r--r-- | include/sound/rt5645.h | 2 |
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; |