]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit9ff49ce475cfeaf486321a2db8132a9500740faa
treeacfb10df06980c72b9176c8208497462ce1f0c64
parent3c9e014c442caefa14c71494ca4473121007f60f
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