]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: Intel: bytcht_es8316: Add input-map support
authorHans de Goede <hdegoede@redhat.com>
Thu, 3 Jan 2019 13:45:33 +0000 (14:45 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Jan 2019 15:15:37 +0000 (15:15 +0000)
commit730501a91d94b652275e049e101ed44cdbfdf31b
tree9100195fa6dd75bde0d79a3cb699ee244a0ec606
parent0d3e91da0750835cfd5c16487ffb3cdd752ea53a
ASoC: Intel: bytcht_es8316: Add input-map support

After adding jack-detect support we have 3 microphone input switches:
"Microphone 1", "Microphone 2" and "Headset Mic". But the ES8316 has only
2 microphone inputs.

In the app-note explaining how to use the codec and on the 3 boards I
have one input is used for an internal microphone and one for the headset
microphone. On the 2 CHT boards I have the internal mic is on on MIC1 and
the headset mic is on MIC2, on the BYTCR board I have it is the other way
around.

This commit replaces the 2 "Microphone 1" and "Microphone 2" input switches
with a single "Internal Mic" switch and adds support for selecting either
possible input mapping.

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