Commit 97c415a6 authored by Bard Liao's avatar Bard Liao Committed by Mark Brown

ASoC: rt5665: move rt5665_set_jack_detect to .set_jack

Now, we can use .set_jack callback function on codec level. So we
don't need export rt5665_set_jack_detect.
Signed-off-by: default avatarBard Liao <bardliao@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b8d4f7a3
...@@ -1260,8 +1260,8 @@ static void rt5665_jd_check_handler(struct work_struct *work) ...@@ -1260,8 +1260,8 @@ static void rt5665_jd_check_handler(struct work_struct *work)
} }
} }
int rt5665_set_jack_detect(struct snd_soc_codec *codec, static int rt5665_set_jack_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *hs_jack) struct snd_soc_jack *hs_jack, void *data)
{ {
struct rt5665_priv *rt5665 = snd_soc_codec_get_drvdata(codec); struct rt5665_priv *rt5665 = snd_soc_codec_get_drvdata(codec);
...@@ -1288,7 +1288,6 @@ int rt5665_set_jack_detect(struct snd_soc_codec *codec, ...@@ -1288,7 +1288,6 @@ int rt5665_set_jack_detect(struct snd_soc_codec *codec,
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(rt5665_set_jack_detect);
static void rt5665_jack_detect_handler(struct work_struct *work) static void rt5665_jack_detect_handler(struct work_struct *work)
{ {
...@@ -4567,6 +4566,7 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5665 = { ...@@ -4567,6 +4566,7 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5665 = {
}, },
.set_sysclk = rt5665_set_codec_sysclk, .set_sysclk = rt5665_set_codec_sysclk,
.set_pll = rt5665_set_codec_pll, .set_pll = rt5665_set_codec_pll,
.set_jack = rt5665_set_jack_detect,
}; };
......
...@@ -1984,7 +1984,5 @@ enum { ...@@ -1984,7 +1984,5 @@ enum {
int rt5665_sel_asrc_clk_src(struct snd_soc_codec *codec, int rt5665_sel_asrc_clk_src(struct snd_soc_codec *codec,
unsigned int filter_mask, unsigned int clk_src); unsigned int filter_mask, unsigned int clk_src);
int rt5665_set_jack_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *hs_jack);
#endif /* __RT5665_H__ */ #endif /* __RT5665_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment