]> git.baikalelectronics.ru Git - 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)
committerMark Brown <broonie@kernel.org>
Mon, 11 Nov 2019 19:48:51 +0000 (19:48 +0000)
commit36660d98d6b4fc344ff5a01e9eb810ccad83403f
tree87ea13c56814a7c2a2cff9d6806379b7dc0206d3
parent5376813c9dbe763592590daec25a2cee9999c5ce
ASoC: rt5645: Fixed buddy jack support.

The headphone jack on buddy was broken with the following commit:
commit b94942d424c9 ("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
sound/soc/codecs/rt5645.c