Commit 2d2f3044 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: au1x: merge DAI call back functions into ops

ALSA SoC merges DAI call backs into .ops.
This patch merge these into one.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878ralb0t3.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e4222bbd
...@@ -195,18 +195,18 @@ static int alchemy_ac97c_startup(struct snd_pcm_substream *substream, ...@@ -195,18 +195,18 @@ static int alchemy_ac97c_startup(struct snd_pcm_substream *substream,
return 0; return 0;
} }
static const struct snd_soc_dai_ops alchemy_ac97c_ops = {
.startup = alchemy_ac97c_startup,
};
static int au1xac97c_dai_probe(struct snd_soc_dai *dai) static int au1xac97c_dai_probe(struct snd_soc_dai *dai)
{ {
return ac97c_workdata ? 0 : -ENODEV; return ac97c_workdata ? 0 : -ENODEV;
} }
static const struct snd_soc_dai_ops alchemy_ac97c_ops = {
.probe = au1xac97c_dai_probe,
.startup = alchemy_ac97c_startup,
};
static struct snd_soc_dai_driver au1xac97c_dai_driver = { static struct snd_soc_dai_driver au1xac97c_dai_driver = {
.name = "alchemy-ac97c", .name = "alchemy-ac97c",
.probe = au1xac97c_dai_probe,
.playback = { .playback = {
.rates = AC97_RATES, .rates = AC97_RATES,
.formats = AC97_FMTS, .formats = AC97_FMTS,
......
...@@ -333,13 +333,13 @@ static int au1xpsc_ac97_probe(struct snd_soc_dai *dai) ...@@ -333,13 +333,13 @@ static int au1xpsc_ac97_probe(struct snd_soc_dai *dai)
} }
static const struct snd_soc_dai_ops au1xpsc_ac97_dai_ops = { static const struct snd_soc_dai_ops au1xpsc_ac97_dai_ops = {
.probe = au1xpsc_ac97_probe,
.startup = au1xpsc_ac97_startup, .startup = au1xpsc_ac97_startup,
.trigger = au1xpsc_ac97_trigger, .trigger = au1xpsc_ac97_trigger,
.hw_params = au1xpsc_ac97_hw_params, .hw_params = au1xpsc_ac97_hw_params,
}; };
static const struct snd_soc_dai_driver au1xpsc_ac97_dai_template = { static const struct snd_soc_dai_driver au1xpsc_ac97_dai_template = {
.probe = au1xpsc_ac97_probe,
.playback = { .playback = {
.rates = AC97_RATES, .rates = AC97_RATES,
.formats = AC97_FMTS, .formats = AC97_FMTS,
......
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