]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c9e741976c437ec6bc989b8d8522856fc0b1717
tree046c57ee9055d6d2e022d977795f2dbd1648e0d0
parenta2e69c3c0f994da1cd5fbfdb8a9cfdb38b9f1ed5
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