ASoC: rt5651: Enable jack detection on JD* pins
[muen/linux.git] / sound / soc / codecs / rt5651.h
index 1bd33cfa6411244e8e3c70510dcf19a156895548..4f8b202121d7a7ee07b1796fe8565a95b209759f 100644 (file)
@@ -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__ */