Commit 4f209c51 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: sh: migor: 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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3e2a4af
...@@ -123,16 +123,18 @@ static const struct snd_soc_dapm_route audio_map[] = { ...@@ -123,16 +123,18 @@ static const struct snd_soc_dapm_route audio_map[] = {
}; };
/* migor digital audio interface glue - connects codec <--> CPU */ /* migor digital audio interface glue - connects codec <--> CPU */
SND_SOC_DAILINK_DEFS(wm8978,
DAILINK_COMP_ARRAY(COMP_CPU("siu-pcm-audio")),
DAILINK_COMP_ARRAY(COMP_CODEC("wm8978.0-001a", "wm8978-hifi")),
DAILINK_COMP_ARRAY(COMP_PLATFORM("siu-pcm-audio")));
static struct snd_soc_dai_link migor_dai = { static struct snd_soc_dai_link migor_dai = {
.name = "wm8978", .name = "wm8978",
.stream_name = "WM8978", .stream_name = "WM8978",
.cpu_dai_name = "siu-pcm-audio",
.codec_dai_name = "wm8978-hifi",
.platform_name = "siu-pcm-audio",
.codec_name = "wm8978.0-001a",
.dai_fmt = SND_SOC_DAIFMT_NB_IF | SND_SOC_DAIFMT_I2S | .dai_fmt = SND_SOC_DAIFMT_NB_IF | SND_SOC_DAIFMT_I2S |
SND_SOC_DAIFMT_CBS_CFS, SND_SOC_DAIFMT_CBS_CFS,
.ops = &migor_dai_ops, .ops = &migor_dai_ops,
SND_SOC_DAILINK_REG(wm8978),
}; };
/* migor audio machine driver */ /* migor audio machine driver */
......
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