Thread (18 messages) flat view 18 messages, 3 authors, 2017-03-21

[PATCH v3 4/5] ASoC: sun8i-codec: Convert to use SND_SOC_DAPM_AIF_IN

From: Chen-Yu Tsai <hidden>
Date: 2017-03-20 11:50:51
Also in: alsa-devel, linux-devicetree, lkml

On Sat, Mar 18, 2017 at 3:55 PM, Myl?ne Josserand
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
Update the driver to use SND_SOC_DAPM_AIF_IN instead of
SND_SOC_DAPM_DAC.
Rename the interface's widgets to be more precise on which slot
the interface is connected.

Signed-off-by: Myl?ne Josserand <redacted>
---
 sound/soc/sunxi/sun8i-codec.c | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c
index adb13fbd2006..7527ba29a5a0 100644
--- a/sound/soc/sunxi/sun8i-codec.c
+++ b/sound/soc/sunxi/sun8i-codec.c
[...]
quoted hunk ↗ jump to hunk
@@ -331,14 +333,14 @@ static const struct snd_soc_dapm_route sun8i_codec_dapm_routes[] = {
        { "DAC", NULL, "MODCLK DAC" },

        /* DAC Routes */
-       { "Digital Left DAC", NULL, "DAC" },
-       { "Digital Right DAC", NULL, "DAC" },
+       { "AIF1 Slot 0 Right", NULL, "DAC" },
+       { "AIF1 Slot 0 Left", NULL, "DAC" },
Nit on the order (should be left before right), but otherwise

Acked-by: Chen-Yu Tsai <redacted>
        /* DAC Mixer Routes */
        { "Left Digital DAC Mixer", "AIF1 Slot 0 Digital DAC Playback Switch",
-         "Digital Left DAC"},
+         "AIF1 Slot 0 Left"},
        { "Right Digital DAC Mixer", "AIF1 Slot 0 Digital DAC Playback Switch",
-         "Digital Right DAC"},
+         "AIF1 Slot 0 Right"},
 };

 static struct snd_soc_dai_ops sun8i_codec_dai_ops = {
--
2.11.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help