]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: fix capture doesn't work at some cases
authorBard Liao <bardliao@realtek.com>
Thu, 21 Jan 2016 06:10:48 +0000 (14:10 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2016 11:09:18 +0000 (11:09 +0000)
commit6f8630297c3d09999ed44adbbe6aee9a7b219c7d
treec67c928b989abea4e39363fc55dd2f39087213e4
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ASoC: rt286: fix capture doesn't work at some cases

RT286_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, RT286_CBJ_CTRL1(0x4f) bit 10 will be turned off.
This patch move the bit control from rt286_set_bias_level and
rt298_vref_event to rt286_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/rt286.c