]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: sun8i-codec: Correct DAPM widget types
authorSamuel Holland <samuel@sholland.org>
Thu, 1 Oct 2020 02:11:28 +0000 (21:11 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2020 13:16:18 +0000 (14:16 +0100)
Whie the aif_in and aif_out widget types are handled exactly the same in
the core DAPM code, a future widget event hook will need the correct
widget type to derive the associated substream. Clean up the widget type
for that reason, and so these widgets will match newly-added widgets for
the other AIFs.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20201001021148.15852-6-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c

index 30fe276482546db24035294bb4668115e1e7c24d..d0028883950c33c44262ad9f998346f7b1afca4f 100644 (file)
@@ -410,12 +410,12 @@ static const struct snd_soc_dapm_widget sun8i_codec_dapm_widgets[] = {
                            SUN8I_DAC_DIG_CTRL_ENDA, 0, NULL, 0),
 
        /* AIF "ADC" Outputs */
-       SND_SOC_DAPM_AIF_IN("AIF1 AD0L", "Capture", 0,
-                           SUN8I_AIF1_ADCDAT_CTRL,
-                           SUN8I_AIF1_ADCDAT_CTRL_AIF1_AD0L_ENA, 0),
-       SND_SOC_DAPM_AIF_IN("AIF1 AD0R", "Capture", 0,
-                           SUN8I_AIF1_ADCDAT_CTRL,
-                           SUN8I_AIF1_ADCDAT_CTRL_AIF1_AD0R_ENA, 0),
+       SND_SOC_DAPM_AIF_OUT("AIF1 AD0L", "Capture", 0,
+                            SUN8I_AIF1_ADCDAT_CTRL,
+                            SUN8I_AIF1_ADCDAT_CTRL_AIF1_AD0L_ENA, 0),
+       SND_SOC_DAPM_AIF_OUT("AIF1 AD0R", "Capture", 0,
+                            SUN8I_AIF1_ADCDAT_CTRL,
+                            SUN8I_AIF1_ADCDAT_CTRL_AIF1_AD0R_ENA, 0),
 
        /* AIF "ADC" Mixers */
        SOC_MIXER_ARRAY("AIF1 AD0L Mixer", SND_SOC_NOPM, 0, 0,