ASoC: rt286: Configure combo jack for headphones
authorDavid Ward <david.ward@gatech.edu>
Sun, 18 Apr 2021 13:46:55 +0000 (09:46 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 19 Apr 2021 15:53:23 +0000 (16:53 +0100)
commitb15c3ea7e0d2c53b33adc8ca0896de378d6df853
treeba24b528fe587d40641e9fd8a4cc63ac44b94af7
parentcd8499d5c03ba260e3191e90236d0e5f6b147563
ASoC: rt286: Configure combo jack for headphones

During jack detection, the combo jack is configured for a CTIA headset, and
then for an OMTP headset, while sensing the mic connection. If a mic is not
found in either case, the combo jack should be re-configured for headphones
only. This is consistent with the HDA driver behavior.

Signed-off-by: David Ward <david.ward@gatech.edu>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210418134658.4333-3-david.ward@gatech.edu
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c