aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5670.h
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-03-11 11:42:44 +0800
committerMark Brown <broonie@kernel.org>2015-03-11 12:08:20 +0000
commitd3ef70543429b754dacc87fc68c30c2c34502337 (patch)
tree1edcd9f8f20cda2e41253735f28ffc4dc010bec8 /sound/soc/codecs/rt5670.h
parentMerge tag 'v4.0-rc3' into asoc-rt5670 (diff)
downloadlinux-dev-d3ef70543429b754dacc87fc68c30c2c34502337.tar.xz
linux-dev-d3ef70543429b754dacc87fc68c30c2c34502337.zip
ASoC: rt5670: Add IRQ function
This patch adds the IRQ function support of rt5670. We use a flag named dev_gpio in platform data to inform codec driver if the IRQ function is used or not. Also, we export rt5670_set_jack_detect for machine driver to pass the jack point. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/rt5670.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.h b/sound/soc/codecs/rt5670.h
index 0a67adbcfbc3..0f3255aeeb9b 100644
--- a/sound/soc/codecs/rt5670.h
+++ b/sound/soc/codecs/rt5670.h
@@ -1988,6 +1988,8 @@ struct rt5670_priv {
struct snd_soc_codec *codec;
struct rt5670_platform_data pdata;
struct regmap *regmap;
+ struct snd_soc_jack *jack;
+ struct snd_soc_jack_gpio hp_gpio;
int sysclk;
int sysclk_src;
@@ -2004,4 +2006,6 @@ struct rt5670_priv {
int jack_type;
};
+int rt5670_set_jack_detect(struct snd_soc_codec *codec,
+ struct snd_soc_jack *jack);
#endif /* __RT5670_H__ */