aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5651.h
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2017-10-20 12:18:55 +0100
committerMark Brown <broonie@kernel.org>2017-10-26 16:15:02 +0200
commit80bbe4a30bc6b119df86c280c91cde2034309bf1 (patch)
tree9ac5b6c85c47f343bbeb7fad269478695d841d9d /sound/soc/codecs/rt5651.h
parentASoC: rt5651: Convert rt5651 micbias1 to a supply widget (diff)
downloadlinux-dev-80bbe4a30bc6b119df86c280c91cde2034309bf1.tar.xz
linux-dev-80bbe4a30bc6b119df86c280c91cde2034309bf1.zip
ASoC: rt5651: Enable jack detection on JD* pins
Enable jack detection for the RT5651 codec on the JD* pins. Signed-off-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5651.h')
-rw-r--r--sound/soc/codecs/rt5651.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5651.h b/sound/soc/codecs/rt5651.h
index 1bd33cfa6411..4f8b202121d7 100644
--- a/sound/soc/codecs/rt5651.h
+++ b/sound/soc/codecs/rt5651.h
@@ -2062,6 +2062,8 @@ struct rt5651_priv {
struct snd_soc_codec *codec;
struct rt5651_platform_data pdata;
struct regmap *regmap;
+ struct snd_soc_jack *hp_jack;
+ struct delayed_work jack_detect_work;
int sysclk;
int sysclk_src;
@@ -2077,4 +2079,6 @@ struct rt5651_priv {
bool hp_mute;
};
+int rt5651_set_jack_detect(struct snd_soc_codec *codec,
+ struct snd_soc_jack *hp_jack);
#endif /* __RT5651_H__ */