ASoC: rt5645: Add jd_invert for Broadwell
authorJohn Lin <john.lin@realtek.com>
Mon, 21 Sep 2015 06:12:01 +0000 (14:12 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Sep 2015 16:46:33 +0000 (09:46 -0700)
commit917536aeb88d34e06c1353b0dd144f0987bb66bd
treea472a906ed70ee509561499ee3d39dd5528278e2
parente9159e7577cfd1ac8b3c5ea8916ad37bcd87e629
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>
include/sound/rt5645.h
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.h