summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5645.h
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2014-11-14 07:25:37 +0100
committerMark Brown <broonie@kernel.org>2014-11-14 11:44:03 +0100
commit471f208af987a3741757c169c4e2ad984359000b (patch)
tree401a9bbc4d184051b1ad09e1da62f61c6399e376 /sound/soc/codecs/rt5645.h
parentASoC: rt5645: add register setting for TDM (diff)
downloadlinux-471f208af987a3741757c169c4e2ad984359000b.tar.xz
linux-471f208af987a3741757c169c4e2ad984359000b.zip
ASoC: rt5645: two jacks for hp and mic
Some OS need headphone and microphone to be separated. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.h')
-rw-r--r--sound/soc/codecs/rt5645.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5645.h b/sound/soc/codecs/rt5645.h
index 196daf03fe28..c72220abdbc0 100644
--- a/sound/soc/codecs/rt5645.h
+++ b/sound/soc/codecs/rt5645.h
@@ -2173,7 +2173,8 @@ struct rt5645_priv {
struct rt5645_platform_data pdata;
struct regmap *regmap;
struct i2c_client *i2c;
- struct snd_soc_jack *jack;
+ struct snd_soc_jack *hp_jack;
+ struct snd_soc_jack *mic_jack;
struct delayed_work jack_detect_work;
int sysclk;
@@ -2188,6 +2189,6 @@ struct rt5645_priv {
};
int rt5645_set_jack_detect(struct snd_soc_codec *codec,
- struct snd_soc_jack *jack);
+ struct snd_soc_jack *hp_jack, struct snd_soc_jack *mic_jack);
#endif /* __RT5645_H__ */