Skip to content

Commit

Permalink
ASoC: Intel: byt-max98090: Do not enable MAX98090 microphone detection
Browse files Browse the repository at this point in the history
It turned out there is no need to enable microphone detection in MAX98090
codec. Headset microphone is anyway detected by a GPIO signal from another
chip and headset button presses cannot be detected either because a signal
needed for it is not connected.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jarkko Nikula authored and Mark Brown committed Jun 24, 2014
1 parent 2498899 commit ab6f7d0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sound/soc/intel/byt-max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,9 @@ static int byt_max98090_init(struct snd_soc_pcm_runtime *runtime)
if (ret)
return ret;

ret = snd_soc_jack_add_gpiods(card->dev->parent, jack,
ARRAY_SIZE(hs_jack_gpios),
hs_jack_gpios);
if (ret)
return ret;

return max98090_mic_detect(codec, jack);
return snd_soc_jack_add_gpiods(card->dev->parent, jack,
ARRAY_SIZE(hs_jack_gpios),
hs_jack_gpios);
}

static struct snd_soc_dai_link byt_max98090_dais[] = {
Expand Down

0 comments on commit ab6f7d0

Please sign in to comment.