Commit b812cd58 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: mediatek: mt8183-mt6358-ts3a227-max98357: use snd_soc_dai_link_component for aux_dev

We can use snd_soc_dai_link_component to specify aux_dev.
Let's use it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sgqc6wa8.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c86102a3
...@@ -343,7 +343,7 @@ static int ...@@ -343,7 +343,7 @@ static int
mt8183_mt6358_ts3a227_max98357_headset_init(struct snd_soc_component *cpnt); mt8183_mt6358_ts3a227_max98357_headset_init(struct snd_soc_component *cpnt);
static struct snd_soc_aux_dev mt8183_mt6358_ts3a227_max98357_headset_dev = { static struct snd_soc_aux_dev mt8183_mt6358_ts3a227_max98357_headset_dev = {
.name = "Headset Chip", .dlc = COMP_EMPTY(),
.init = mt8183_mt6358_ts3a227_max98357_headset_init, .init = mt8183_mt6358_ts3a227_max98357_headset_init,
}; };
...@@ -399,10 +399,10 @@ mt8183_mt6358_ts3a227_max98357_dev_probe(struct platform_device *pdev) ...@@ -399,10 +399,10 @@ mt8183_mt6358_ts3a227_max98357_dev_probe(struct platform_device *pdev)
dai_link->platforms->of_node = platform_node; dai_link->platforms->of_node = platform_node;
} }
mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node = mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node =
of_parse_phandle(pdev->dev.of_node, of_parse_phandle(pdev->dev.of_node,
"mediatek,headset-codec", 0); "mediatek,headset-codec", 0);
if (mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node) { if (mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node) {
card->aux_dev = &mt8183_mt6358_ts3a227_max98357_headset_dev; card->aux_dev = &mt8183_mt6358_ts3a227_max98357_headset_dev;
card->num_aux_devs = 1; card->num_aux_devs = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment