diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-06-06 00:16:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-06 16:43:33 -0400 |
commit | 8a147e503dd622fe744759bf6199b2a6da45e893 (patch) | |
tree | 7a1df56cf53318b0c8671963f1568ca331ebcd95 /sound/soc/fsl | |
parent | 3026ef68d2c508c9c7c88378907c015710eaf90b (diff) |
ASoC: fsl: imx-mc13783: use modern dai_link style
ASoC is now supporting modern style dai_link
(= snd_soc_dai_link_component) for CPU/Codec/Platform.
This patch switches to use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-mc13783.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c index 545815a27074..2b679680c93f 100644 --- a/sound/soc/fsl/imx-mc13783.c +++ b/sound/soc/fsl/imx-mc13783.c | |||
@@ -46,17 +46,19 @@ static const struct snd_soc_ops imx_mc13783_hifi_ops = { | |||
46 | .hw_params = imx_mc13783_hifi_hw_params, | 46 | .hw_params = imx_mc13783_hifi_hw_params, |
47 | }; | 47 | }; |
48 | 48 | ||
49 | SND_SOC_DAILINK_DEFS(hifi, | ||
50 | DAILINK_COMP_ARRAY(COMP_CPU("imx-ssi.0")), | ||
51 | DAILINK_COMP_ARRAY(COMP_CODEC("mc13783-codec", "mc13783-hifi")), | ||
52 | DAILINK_COMP_ARRAY(COMP_PLATFORM("imx-ssi.0"))); | ||
53 | |||
49 | static struct snd_soc_dai_link imx_mc13783_dai_mc13783[] = { | 54 | static struct snd_soc_dai_link imx_mc13783_dai_mc13783[] = { |
50 | { | 55 | { |
51 | .name = "MC13783", | 56 | .name = "MC13783", |
52 | .stream_name = "Sound", | 57 | .stream_name = "Sound", |
53 | .codec_dai_name = "mc13783-hifi", | ||
54 | .codec_name = "mc13783-codec", | ||
55 | .cpu_dai_name = "imx-ssi.0", | ||
56 | .platform_name = "imx-ssi.0", | ||
57 | .ops = &imx_mc13783_hifi_ops, | 58 | .ops = &imx_mc13783_hifi_ops, |
58 | .symmetric_rates = 1, | 59 | .symmetric_rates = 1, |
59 | .dai_fmt = FMT_SSI, | 60 | .dai_fmt = FMT_SSI, |
61 | SND_SOC_DAILINK_REG(hifi), | ||
60 | }, | 62 | }, |
61 | }; | 63 | }; |
62 | 64 | ||