ASoC: rt286: Fix capture volume setting issue
authorBard Liao <bardliao@realtek.com>
Fri, 23 Jan 2015 06:51:09 +0000 (14:51 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2015 19:16:18 +0000 (19:16 +0000)
commit54d96a40e0dfb5aa2eea0b010ddc1c7e8742e364
treef86a3f07aca9517f767faf4be0b30fe7e25ba5fa
parent45437fa58587dd31523cb2d78183088fb69cdeec
ASoC: rt286: Fix capture volume setting issue

The purpose of rt286_adc_event is to mute/numnte the ADC mixer.
However, it will also set the capture volume to default value.
As a result, "ADC0 Capture Volume" is not working if it is set
before capture start. This patch remove rt286_adc_event and add
"ADC0 Capture Switch" to mute/unmute ADC mixer.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c