]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: don't turn off HV and VREF if headset is detected
authorBard Liao <bardliao@realtek.com>
Mon, 19 Mar 2018 10:07:12 +0000 (18:07 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 20 Mar 2018 01:02:06 +0000 (09:02 +0800)
commit09f96de75c164fc6eaedc03495e6ab9c66beb4e8
treefe277aff38ba6c7f1d7dcde0a82f46db4e17f5e7
parentae0945d7fbe5a6a5e767169d0c9ca622784b3c38
ASoC: rt286: don't turn off HV and VREF if headset is detected

"HV" and "VREF" will be powered up when jack type detection process is
started and will be powered off when jack type detection process is finished.
It will generate an unexpected interrupt signal when they are powered
up during the capture process. Codec driver will do the jack type detection
process and we can't capture properly before the jack detection process is
finished. This patch will not power off the "HV" and "VREF" widgets if
headset is detected and it will solve the unexpected interrupt issue. As a
result, it will also solve the silence data captured at the beginning in
headset mic recording issue.

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