aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-08-08 01:53:52 -0400
committerMark Brown <broonie@kernel.org>2019-08-09 13:13:49 -0400
commitb812cd5864548bd9718879896fdd2822d3cb3d76 (patch)
tree99a2b2e538d890cdfe63d886a562d44b62f48902 /sound
parentc86102a333f77dcd0f7ef20ba836c6f13f1a077a (diff)
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87sgqc6wa8.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c
index 4c816c86844b..53f54078f78c 100644
--- a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c
+++ b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c
@@ -343,7 +343,7 @@ static int
343mt8183_mt6358_ts3a227_max98357_headset_init(struct snd_soc_component *cpnt); 343mt8183_mt6358_ts3a227_max98357_headset_init(struct snd_soc_component *cpnt);
344 344
345static struct snd_soc_aux_dev mt8183_mt6358_ts3a227_max98357_headset_dev = { 345static struct snd_soc_aux_dev mt8183_mt6358_ts3a227_max98357_headset_dev = {
346 .name = "Headset Chip", 346 .dlc = COMP_EMPTY(),
347 .init = mt8183_mt6358_ts3a227_max98357_headset_init, 347 .init = mt8183_mt6358_ts3a227_max98357_headset_init,
348}; 348};
349 349
@@ -399,10 +399,10 @@ mt8183_mt6358_ts3a227_max98357_dev_probe(struct platform_device *pdev)
399 dai_link->platforms->of_node = platform_node; 399 dai_link->platforms->of_node = platform_node;
400 } 400 }
401 401
402 mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node = 402 mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node =
403 of_parse_phandle(pdev->dev.of_node, 403 of_parse_phandle(pdev->dev.of_node,
404 "mediatek,headset-codec", 0); 404 "mediatek,headset-codec", 0);
405 if (mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node) { 405 if (mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node) {
406 card->aux_dev = &mt8183_mt6358_ts3a227_max98357_headset_dev; 406 card->aux_dev = &mt8183_mt6358_ts3a227_max98357_headset_dev;
407 card->num_aux_devs = 1; 407 card->num_aux_devs = 1;
408 } 408 }