diff options
author | Bard Liao <bardliao@realtek.com> | 2015-03-11 06:42:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-11 15:08:20 +0300 |
commit | d3ef70543429b754dacc87fc68c30c2c34502337 (patch) | |
tree | 1edcd9f8f20cda2e41253735f28ffc4dc010bec8 /sound/soc/codecs/rt5670.h | |
parent | eb5bc2a213f96bd43b5f00a625acb0c669613645 (diff) | |
download | linux-d3ef70543429b754dacc87fc68c30c2c34502337.tar.xz |
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 'sound/soc/codecs/rt5670.h')
-rw-r--r-- | sound/soc/codecs/rt5670.h | 4 |
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__ */ |