Commit 10876d24 authored by Hans de Goede's avatar Hans de Goede Committed by Mark Brown

ASoC: Intel: bytcr_rt5651: Change default input map from in2 to in1

Further testing on all 6 model x86 tablets with a rt5651 which I have
access to for testing has shown that their single (mono) microphone is
connected to both IN1 *and* IN2.

The previous default mapping of IN2 was based on testing on the same 6
tablets, where the internal mic works fine with a mapping of IN2. But it
works fine too with a mapping of IN1.

This commit changes the default input mapping to to use IN1 instead of
IN2, to match the mapping used for the other mono devices in the DMI quirk
table. So that we need less different mappings.

The same change is made to the Chuwi Vi8 Plus quirks, which is one of the
6 models tested.

This is a preparation patch for simplifying the maps in a follow-up commit.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fc7c460f
...@@ -90,9 +90,9 @@ struct byt_rt5651_private { ...@@ -90,9 +90,9 @@ struct byt_rt5651_private {
struct snd_soc_jack jack; struct snd_soc_jack jack;
}; };
/* Default: jack-detect on JD1_1, internal mic on in2, headsetmic on in3 */ /* Default: jack-detect on JD1_1, internal mic on in1, headsetmic on in3 */
static unsigned long byt_rt5651_quirk = BYT_RT5651_DEFAULT_QUIRKS | static unsigned long byt_rt5651_quirk = BYT_RT5651_DEFAULT_QUIRKS |
BYT_RT5651_IN2_HS_IN3_MAP; BYT_RT5651_IN1_HS_IN3_MAP;
static void log_quirks(struct device *dev) static void log_quirks(struct device *dev)
{ {
...@@ -392,7 +392,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { ...@@ -392,7 +392,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"), DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
}, },
.driver_data = (void *)(BYT_RT5651_DEFAULT_QUIRKS | .driver_data = (void *)(BYT_RT5651_DEFAULT_QUIRKS |
BYT_RT5651_IN2_HS_IN3_MAP), BYT_RT5651_IN1_HS_IN3_MAP),
}, },
{ {
/* VIOS LTH17 */ /* VIOS LTH17 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment