Commit fcdc4de7 authored by Mark Brown's avatar Mark Brown

ASoC: wm8994: Allow rate configuration with custom mic callback

If a driver using a custom mic detection callback has provided a table
of mic detection rates via platform data then use it.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e9d9a968
......@@ -82,7 +82,8 @@ static void wm8958_micd_set_rate(struct snd_soc_codec *codec)
const struct wm8958_micd_rate *rates;
int num_rates;
if (wm8994->jack_cb != wm8958_default_micdet)
if (!(wm8994->pdata && wm8994->pdata->micd_rates) &&
wm8994->jack_cb != wm8958_default_micdet)
return;
idle = !wm8994->jack_mic;
......
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