]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: Intel: bytcr_rt5651: Fix DMIC map headsetmic mapping
authorHans de Goede <hdegoede@redhat.com>
Sun, 24 Jun 2018 14:06:31 +0000 (16:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jun 2018 11:11:21 +0000 (12:11 +0100)
The initial bytcr_rt5651 machine driver commit mapped IN2 as the headset
mic. In retrospect this is not correct as all known boards have the headset
mic on IN3.

This commit fixes the original DMIC mapping to correctly have the headset
mic on IN3.

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

index bf2adb36f4556974cb366fe1053393df9ca4fae6..042334d9be325f61cb5bed5d300de797ad5c6fd6 100644 (file)
@@ -236,9 +236,9 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = {
 };
 
 static const struct snd_soc_dapm_route byt_rt5651_intmic_dmic_map[] = {
-       {"IN2P", NULL, "Headset Mic"},
        {"DMIC L1", NULL, "Internal Mic"},
        {"DMIC R1", NULL, "Internal Mic"},
+       {"IN3P", NULL, "Headset Mic"},
 };
 
 static const struct snd_soc_dapm_route byt_rt5651_intmic_in1_map[] = {
@@ -684,7 +684,7 @@ struct acpi_chan_package {   /* ACPICA seems to require 64 bit integers */
 static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)
 {
        const char * const intmic_name[] = { "dmic", "in1", "in12" };
-       const char * const hsmic_name[] = { "in2", "in3", "in3" };
+       const char * const hsmic_name[] = { "in3", "in3", "in3" };
        struct byt_rt5651_private *priv;
        struct snd_soc_acpi_mach *mach;
        const char *i2c_name = NULL;