]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt298: fix capture doesn't work at some cases
authorBard Liao <bardliao@realtek.com>
Tue, 26 Apr 2016 10:07:11 +0000 (18:07 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 Apr 2016 10:11:08 +0000 (11:11 +0100)
commita669a8373b56bf2ed06d7f4a39c5da98750ce27b
treeacfb10df06980c72b9176c8208497462ce1f0c64
parent0d94a7b0797a654314c8bbcbe5fbda66f029f2a4
ASoC: rt298: fix capture doesn't work at some cases

RT298_CBJ_CTRL1(0x4f) bit 10 is needed for headset capture. It
will be turned off when "VREF" widget is on and be turned on when
bias level is ON. It is odd. And if "VREF" is turned on in bias
level is ON, RT298_CBJ_CTRL1(0x4f) bit 10 will be turned off.
This patch move the bit control from rt298_set_bias_level and
rt298_vref_event to rt298_jack_detect. So it will be turned on
once a jack is plugged in.

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