summaryrefslogtreecommitdiff
path: root/include/sound/rt5645.h
diff options
context:
space:
mode:
authorJohn Lin <john.lin@realtek.com>2015-09-21 14:12:01 +0800
committerMark Brown <broonie@kernel.org>2015-09-22 09:46:33 -0700
commit917536aeb88d34e06c1353b0dd144f0987bb66bd (patch)
treea472a906ed70ee509561499ee3d39dd5528278e2 /include/sound/rt5645.h
parente9159e7577cfd1ac8b3c5ea8916ad37bcd87e629 (diff)
downloadlwn-917536aeb88d34e06c1353b0dd144f0987bb66bd.tar.gz
lwn-917536aeb88d34e06c1353b0dd144f0987bb66bd.zip
ASoC: rt5645: Add jd_invert for Broadwell
Broadwell can not triger the IRQ falling and rising simultaneously, so it can not detect jack-in and jack-out simultaneously. We add a flag "jd_invert" to platform data. If this flag is set, codec IRQ will be set to invert that forces IRQ as pulse when jack-in and jack-out. Signed-off-by: John Lin <john.lin@realtek.com> Signed-off-by: Bard Liao <bardliao@realtek.com> 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 22734bc3ffd4..a5cf6152e778 100644
--- a/include/sound/rt5645.h
+++ b/include/sound/rt5645.h
@@ -21,6 +21,8 @@ struct rt5645_platform_data {
/* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */
unsigned int jd_mode;
+ /* Invert JD when jack insert */
+ bool jd_invert;
};
#endif