ASoC: ti: n810: 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>
This commit is contained in:
Kuninori Morimoto 2019-06-06 13:12:39 +09:00 коммит произвёл Mark Brown
Родитель 1d17821f79
Коммит f7554cb47e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -261,16 +261,19 @@ static const struct snd_kcontrol_new aic33_n810_controls[] = {
}; };
/* Digital audio interface glue - connects codec <--> CPU */ /* Digital audio interface glue - connects codec <--> CPU */
SND_SOC_DAILINK_DEFS(aic33,
DAILINK_COMP_ARRAY(COMP_CPU("48076000.mcbsp")),
DAILINK_COMP_ARRAY(COMP_CODEC("tlv320aic3x-codec.1-0018",
"tlv320aic3x-hifi")),
DAILINK_COMP_ARRAY(COMP_PLATFORM("48076000.mcbsp")));
static struct snd_soc_dai_link n810_dai = { static struct snd_soc_dai_link n810_dai = {
.name = "TLV320AIC33", .name = "TLV320AIC33",
.stream_name = "AIC33", .stream_name = "AIC33",
.cpu_dai_name = "48076000.mcbsp",
.platform_name = "48076000.mcbsp",
.codec_name = "tlv320aic3x-codec.1-0018",
.codec_dai_name = "tlv320aic3x-hifi",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBM_CFM, SND_SOC_DAIFMT_CBM_CFM,
.ops = &n810_ops, .ops = &n810_ops,
SND_SOC_DAILINK_REG(aic33),
}; };
/* Audio machine driver */ /* Audio machine driver */