aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2014-11-17 02:27:22 -0500
committerMark Brown <broonie@kernel.org>2014-11-25 07:12:53 -0500
commitff4541c3f48781f84e1cc162d73013aa32a09a41 (patch)
tree8a5607765896d12b649762fc83806a588a15a512
parente50334d4e1c3bacfeb3bb1530f73a419d4ec6832 (diff)
ASoC: rt5670: add DMIC ASRC support
This patch will enable ASRC for DMIC if ASRC is useable. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5670.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 3ddb34ef77d7..8bf3a5686dd7 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -1294,6 +1294,14 @@ static const struct snd_soc_dapm_widget rt5670_dapm_widgets[] = {
1294 9, 0, NULL, 0), 1294 9, 0, NULL, 0),
1295 SND_SOC_DAPM_SUPPLY_S("DAC MONO R ASRC", 1, RT5670_ASRC_1, 1295 SND_SOC_DAPM_SUPPLY_S("DAC MONO R ASRC", 1, RT5670_ASRC_1,
1296 8, 0, NULL, 0), 1296 8, 0, NULL, 0),
1297 SND_SOC_DAPM_SUPPLY_S("DMIC STO1 ASRC", 1, RT5670_ASRC_1,
1298 7, 0, NULL, 0),
1299 SND_SOC_DAPM_SUPPLY_S("DMIC STO2 ASRC", 1, RT5670_ASRC_1,
1300 6, 0, NULL, 0),
1301 SND_SOC_DAPM_SUPPLY_S("DMIC MONO L ASRC", 1, RT5670_ASRC_1,
1302 5, 0, NULL, 0),
1303 SND_SOC_DAPM_SUPPLY_S("DMIC MONO R ASRC", 1, RT5670_ASRC_1,
1304 4, 0, NULL, 0),
1297 SND_SOC_DAPM_SUPPLY_S("ADC STO1 ASRC", 1, RT5670_ASRC_1, 1305 SND_SOC_DAPM_SUPPLY_S("ADC STO1 ASRC", 1, RT5670_ASRC_1,
1298 3, 0, NULL, 0), 1306 3, 0, NULL, 0),
1299 SND_SOC_DAPM_SUPPLY_S("ADC STO2 ASRC", 1, RT5670_ASRC_1, 1307 SND_SOC_DAPM_SUPPLY_S("ADC STO2 ASRC", 1, RT5670_ASRC_1,
@@ -1650,6 +1658,10 @@ static const struct snd_soc_dapm_route rt5670_dapm_routes[] = {
1650 { "DAC Mono Left Filter", NULL, "DAC MONO L ASRC", is_using_asrc }, 1658 { "DAC Mono Left Filter", NULL, "DAC MONO L ASRC", is_using_asrc },
1651 { "DAC Mono Right Filter", NULL, "DAC MONO R ASRC", is_using_asrc }, 1659 { "DAC Mono Right Filter", NULL, "DAC MONO R ASRC", is_using_asrc },
1652 { "DAC Stereo1 Filter", NULL, "DAC STO ASRC", is_using_asrc }, 1660 { "DAC Stereo1 Filter", NULL, "DAC STO ASRC", is_using_asrc },
1661 { "Stereo1 DMIC Mux", NULL, "DMIC STO1 ASRC", can_use_asrc },
1662 { "Stereo2 DMIC Mux", NULL, "DMIC STO2 ASRC", can_use_asrc },
1663 { "Mono DMIC L Mux", NULL, "DMIC MONO L ASRC", can_use_asrc },
1664 { "Mono DMIC R Mux", NULL, "DMIC MONO R ASRC", can_use_asrc },
1653 1665
1654 { "I2S1", NULL, "I2S1 ASRC", can_use_asrc}, 1666 { "I2S1", NULL, "I2S1 ASRC", can_use_asrc},
1655 { "I2S2", NULL, "I2S2 ASRC", can_use_asrc}, 1667 { "I2S2", NULL, "I2S2 ASRC", can_use_asrc},