From 4ef5723d99107725af2a5e723fc23f46e325aed2 Mon Sep 17 00:00:00 2001 From: XiaoTan Luo Date: Thu, 18 Nov 2021 12:15:56 +0800 Subject: [PATCH] ASoC: es8323: fixed dapm route error Signed-off-by: XiaoTan Luo Change-Id: Idde66be4fc3a32a5d1c496795d5cbf3a49464ea6 --- sound/soc/codecs/es8323.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/soc/codecs/es8323.c b/sound/soc/codecs/es8323.c index e8f94e77c723..4a2b6b897592 100644 --- a/sound/soc/codecs/es8323.c +++ b/sound/soc/codecs/es8323.c @@ -325,6 +325,9 @@ static const struct snd_soc_dapm_widget es8323_dapm_widgets[] = { SND_SOC_DAPM_DAC("Right DAC", "Right Playback", ES8323_DACPOWER, 6, 1), SND_SOC_DAPM_DAC("Left DAC", "Left Playback", ES8323_DACPOWER, 7, 1), + SND_SOC_DAPM_AIF_OUT("I2S OUT", "Capture", 0, SND_SOC_NOPM, 0, 0), + SND_SOC_DAPM_AIF_IN("I2S IN", "Playback", 0, SND_SOC_NOPM, 0, 0), + SND_SOC_DAPM_MIXER("Left Mixer", SND_SOC_NOPM, 0, 0, &es8323_left_mixer_controls[0], ARRAY_SIZE(es8323_left_mixer_controls)), @@ -374,6 +377,9 @@ static const struct snd_soc_dapm_route audio_map[] = { {"Left ADC", NULL, "Left ADC Power"}, {"Right ADC", NULL, "Right ADC Power"}, + {"I2S OUT", NULL, "Left ADC"}, + {"I2S OUT", NULL, "Right ADC"}, + {"Left Line Mux", "Line 1L", "LINPUT1"}, {"Left Line Mux", "Line 2L", "LINPUT2"}, {"Left Line Mux", "MicL", "Left PGA Mux"}, @@ -382,6 +388,9 @@ static const struct snd_soc_dapm_route audio_map[] = { {"Right Line Mux", "Line 2R", "RINPUT2"}, {"Right Line Mux", "MicR", "Right PGA Mux"}, + {"Right DAC", NULL, "I2S IN"}, + {"Left DAC", NULL, "I2S IN"}, + {"Left Mixer", "Left Playback Switch", "Left DAC"}, {"Left Mixer", "Left Bypass Switch", "Left Line Mux"},