ASoC: sgtl5000: Fix maximum value for microphone gain
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 23 Dec 2012 17:45:31 +0000 (15:45 -0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 15:31:25 +0000 (15:31 +0000)
commitb50684da6cd5a9ec47ea5556bc9f5461c1d7017c
tree046c57ee9055d6d2e022d977795f2dbd1648e0d0
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565
ASoC: sgtl5000: Fix maximum value for microphone gain

sgtl5000 microphone gain only has 2 bits of resolution, so maximum value is 3.

From Eric Nelson:
"We also found that for the microphones we have here (commodity PC boom mics) a
default value of 2 for the gain gives the best results."

So change the default microphone gain as well.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sgtl5000.c