diff options
author | John Lin <john.lin@realtek.com> | 2015-09-21 14:12:01 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-22 09:46:33 -0700 |
commit | 917536aeb88d34e06c1353b0dd144f0987bb66bd (patch) | |
tree | a472a906ed70ee509561499ee3d39dd5528278e2 /include/sound | |
parent | e9159e7577cfd1ac8b3c5ea8916ad37bcd87e629 (diff) | |
download | linux-stable-917536aeb88d34e06c1353b0dd144f0987bb66bd.tar.gz linux-stable-917536aeb88d34e06c1353b0dd144f0987bb66bd.tar.bz2 linux-stable-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')
-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 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 |