]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: rt5645: Fixed buddy jack support.
authorJacob Rasmussen <jacobraz@chromium.org>
Mon, 11 Nov 2019 18:59:57 +0000 (11:59 -0700)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:23:50 +0000 (14:23 -0300)
commit08f4a8e7873c5ed8dfc779ee90640a2609225b97
treef1b02f84cac79ef52bd371db49d570ad101e7572
parentd04876a691279047e1dddfda843a94b0807675cc
ASoC: rt5645: Fixed buddy jack support.

BugLink: https://bugs.launchpad.net/bugs/1856869
commit e7cfd867fd9842f346688f28412eb83dec342900 upstream.

The headphone jack on buddy was broken with the following commit:
commit 6b5da66322c5 ("ASoC: rt5645: read jd1_1 status for jd
detection").
This changes the jd_mode for buddy to 4 so buddy can read from the same
register that was used in the working version of this driver without
affecting any other devices that might use this, since no other device uses
jd_mode = 4. To test this I plugged and uplugged the headphone jack, verifying
audio works.

Signed-off-by: Jacob Rasmussen <jacobraz@google.com>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Link: https://lore.kernel.org/r/20191111185957.217244-1-jacobraz@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/codecs/rt5645.c