]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: rt5665: add ADC STO2 ASRC support
authorBard Liao <bardliao@realtek.com>
Tue, 2 May 2017 03:00:39 +0000 (11:00 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 10:14:52 +0000 (19:14 +0900)
"ADC Stereo2 Filter" is with ASRC supported.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5665.c

index 14b0cf89edf501c79d8c9e7acca1f367a331c799..26bf157ca29369ba4233c7dca32ae6c2f793d452 100644 (file)
@@ -2684,6 +2684,8 @@ static const struct snd_soc_dapm_widget rt5665_dapm_widgets[] = {
                RT5665_DAC_MONO_R_ASRC_SFT, 0, NULL, 0),
        SND_SOC_DAPM_SUPPLY_S("ADC STO1 ASRC", 1, RT5665_ASRC_1,
                RT5665_ADC_STO1_ASRC_SFT, 0, NULL, 0),
+       SND_SOC_DAPM_SUPPLY_S("ADC STO2 ASRC", 1, RT5665_ASRC_1,
+               RT5665_ADC_STO2_ASRC_SFT, 0, NULL, 0),
        SND_SOC_DAPM_SUPPLY_S("ADC Mono L ASRC", 1, RT5665_ASRC_1,
                RT5665_ADC_MONO_L_ASRC_SFT, 0, NULL, 0),
        SND_SOC_DAPM_SUPPLY_S("ADC Mono R ASRC", 1, RT5665_ASRC_1,
@@ -3227,6 +3229,7 @@ static const struct snd_soc_dapm_route rt5665_dapm_routes[] = {
 
        /*ASRC*/
        {"ADC Stereo1 Filter", NULL, "ADC STO1 ASRC", is_using_asrc},
+       {"ADC Stereo2 Filter", NULL, "ADC STO2 ASRC", is_using_asrc},
        {"ADC Mono Left Filter", NULL, "ADC Mono L ASRC", is_using_asrc},
        {"ADC Mono Right Filter", NULL, "ADC Mono R ASRC", is_using_asrc},
        {"DAC Mono Left Filter", NULL, "DAC Mono L ASRC", is_using_asrc},