ASoC: Intel: sof_es8336: add a quirk for headset at mic1 port
authorMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 7 Apr 2022 18:49:58 +0000 (20:49 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Apr 2022 19:26:53 +0000 (20:26 +0100)
commit7c7bb2a059b226ebadb14ce07460f6357023d56c
tree135e3fd7b708164bef4ccfe6af0500dedfc0bda0
parent6e1ff1459e0086312e61c2d1ff8b74395a082fcb
ASoC: Intel: sof_es8336: add a quirk for headset at mic1 port

The headset/internal mic can either be routed as mic1/mic2
or vice-versa.

By default, the driver assumes that the headset is mapped as
mic2, but not all devices map this way.

So, add a quirk to support changing it to mic1, using mic2
for the internal analog mic (if any).

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/5d88fc29b79be7ab77dae391c8e5ee929fd36c27.1649357263.git.mchehab@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_es8336.c