ASoC: Intel: bytcr_rt5640: Add support for a second headphones output
authorHans de Goede <hdegoede@redhat.com>
Mon, 2 Aug 2021 14:24:59 +0000 (16:24 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Aug 2021 14:47:45 +0000 (15:47 +0100)
commit044c76571277bb87dd3318e55c7ae46a0c27ab0f
tree7b9bddfb95a5f9f29e0b3d50c7a8303bdbb579e4
parent810711407467667761f7fd6aa1b8884203ecbeca
ASoC: Intel: bytcr_rt5640: Add support for a second headphones output

Some devices (HP Elitepad 1000 G2) have a second headphones output
(1 on the dock, 2nd on the tablet itself) which is implemented through
the line-out output of the codec combined with an external hp-amp
which gets enabled through the codec's GPIO1 pin.

Add support for this through a new BYT_RT5640_LINEOUT_AS_HP2 quirk,
note users are expected to use this combined with the
BYT_RT5640_LINEOUT quirk. If that quirk is not set the new quirk is
ignored.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210802142501.991985-5-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c