]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: nau8824: Fix headphone vs headset, button-press detection no longer working
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Sep 2021 20:15:12 +0000 (22:15 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 30 Sep 2021 12:25:55 +0000 (13:25 +0100)
commit390dd19e07a94009f254fa8181bf568274cd1179
tree6375a3a1b1ce1ea22accf21077ecf3ee0499d2ce
parent1f311cb032b021aba60d7387e81191960ea129d9
ASoC: nau8824: Fix headphone vs headset, button-press detection no longer working

Commit 469055361516 ("ASoC: nau8824: Fix open coded prefix handling")
replaced the nau8824_dapm_enable_pin() helper with direct calls to
snd_soc_dapm_enable_pin(), but the helper was using
snd_soc_dapm_force_enable_pin() and not forcing the MICBIAS + SAR
supplies on breaks headphone vs headset and button-press detection.

Replace the snd_soc_dapm_enable_pin() calls with
snd_soc_dapm_force_enable_pin() to fix this.

Cc: stable@vger.kernel.org
Fixes: 469055361516 ("ASoC: nau8824: Fix open coded prefix handling")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210929201512.460360-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8824.c