diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2016-08-12 17:27:54 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-15 10:14:57 -0400 |
commit | 59e8b6520c6e2e867b35bc402d9a3f28aef3b2bc (patch) | |
tree | 57c53b1b4506ce28603844101e9f27775a8ee046 | |
parent | e214f5e78aca81080c156a68a263d31d51d0ea17 (diff) |
ASoC: Intel: bytcr_rt5640: add IN3 map
Some platforms have the analog mic connected to IN3,
add route accordingly
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/boards/bytcr_rt5640.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index c4a3c5778b38..9b9d380d1cbb 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c | |||
@@ -39,6 +39,7 @@ enum { | |||
39 | BYT_RT5640_DMIC1_MAP, | 39 | BYT_RT5640_DMIC1_MAP, |
40 | BYT_RT5640_DMIC2_MAP, | 40 | BYT_RT5640_DMIC2_MAP, |
41 | BYT_RT5640_IN1_MAP, | 41 | BYT_RT5640_IN1_MAP, |
42 | BYT_RT5640_IN3_MAP, | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | #define BYT_RT5640_MAP(quirk) ((quirk) & 0xff) | 45 | #define BYT_RT5640_MAP(quirk) ((quirk) & 0xff) |
@@ -79,6 +80,11 @@ static const struct snd_soc_dapm_route byt_rt5640_intmic_in1_map[] = { | |||
79 | {"IN1P", NULL, "Internal Mic"}, | 80 | {"IN1P", NULL, "Internal Mic"}, |
80 | }; | 81 | }; |
81 | 82 | ||
83 | static const struct snd_soc_dapm_route byt_rt5640_intmic_in3_map[] = { | ||
84 | {"Internal Mic", NULL, "MICBIAS1"}, | ||
85 | {"IN3P", NULL, "Internal Mic"}, | ||
86 | }; | ||
87 | |||
82 | static const struct snd_soc_dapm_route byt_rt5640_ssp2_aif1_map[] = { | 88 | static const struct snd_soc_dapm_route byt_rt5640_ssp2_aif1_map[] = { |
83 | {"ssp2 Tx", NULL, "codec_out0"}, | 89 | {"ssp2 Tx", NULL, "codec_out0"}, |
84 | {"ssp2 Tx", NULL, "codec_out1"}, | 90 | {"ssp2 Tx", NULL, "codec_out1"}, |
@@ -243,6 +249,10 @@ static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime) | |||
243 | custom_map = byt_rt5640_intmic_in1_map; | 249 | custom_map = byt_rt5640_intmic_in1_map; |
244 | num_routes = ARRAY_SIZE(byt_rt5640_intmic_in1_map); | 250 | num_routes = ARRAY_SIZE(byt_rt5640_intmic_in1_map); |
245 | break; | 251 | break; |
252 | case BYT_RT5640_IN3_MAP: | ||
253 | custom_map = byt_rt5640_intmic_in3_map; | ||
254 | num_routes = ARRAY_SIZE(byt_rt5640_intmic_in3_map); | ||
255 | break; | ||
246 | case BYT_RT5640_DMIC2_MAP: | 256 | case BYT_RT5640_DMIC2_MAP: |
247 | custom_map = byt_rt5640_intmic_dmic2_map; | 257 | custom_map = byt_rt5640_intmic_dmic2_map; |
248 | num_routes = ARRAY_SIZE(byt_rt5640_intmic_dmic2_map); | 258 | num_routes = ARRAY_SIZE(byt_rt5640_intmic_dmic2_map); |