ASoC: samsung: speyside: use snd_soc_dai_link_component for aux_dev
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 8 Aug 2019 05:54:15 +0000 (14:54 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 9 Aug 2019 17:12:34 +0000 (18:12 +0100)
We can use snd_soc_dai_link_component to specify aux_dev.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/87mugk6w9l.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/speyside.c

index 51e4c976c8be1d649d17548bef3bd37ab45e5340..9e58cbed942a918737dd0296dd47e13cfa144544 100644 (file)
@@ -240,8 +240,7 @@ static int speyside_wm9081_init(struct snd_soc_component *component)
 
 static struct snd_soc_aux_dev speyside_aux_dev[] = {
        {
-               .name = "wm9081",
-               .codec_name = "wm9081.1-006c",
+               .dlc = COMP_AUX("wm9081.1-006c"),
                .init = speyside_wm9081_init,
        },
 };