ASoC: max98090: add digital mic mux to record path
authorAndrew Bresticker <abrestic@chromium.org>
Thu, 16 May 2013 19:03:54 +0000 (12:03 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 May 2013 11:07:18 +0000 (12:07 +0100)
commitfd5f940f82cdc0132438a96559b27dd7fd574875
treee126c1476b67bc64cb5e33702ff85b41dca38b5c
parentf722406faae2d073cc1d01063d1123c35425939e
ASoC: max98090: add digital mic mux to record path

The max98090 driver currently treats the digital mic enable as a supply
on the record path, causing the digital mic enable to always be turned on
when attempting to record.  This is incorrect, however, since the digital
mic enable is also a mux control where 0 selects the ADC output as input
to the record-path DSP and 1 selects the digital mic.  This patch adds
a virtual DMIC mux to the reocrd path so that we can switch between the
ADC and the digital mic for recording.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/max98090.c