mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 08:15:07 -04:00
ASoC: spear: spdif_out: Move DAI probe callback to snd_soc_dai_ops
The .probe callback is no longer part of struct snd_soc_dai_driver and is now provided through struct snd_soc_dai_ops. Move spdif_soc_dai_probe() accordingly so the driver follows the current ASoC API and builds correctly on modern kernels. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260730095407.33894-5-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -249,6 +249,7 @@ static int spdif_soc_dai_probe(struct snd_soc_dai *dai)
|
||||
}
|
||||
|
||||
static const struct snd_soc_dai_ops spdif_out_dai_ops = {
|
||||
.probe = spdif_soc_dai_probe,
|
||||
.mute_stream = spdif_mute,
|
||||
.startup = spdif_out_startup,
|
||||
.shutdown = spdif_out_shutdown,
|
||||
@@ -266,7 +267,6 @@ static struct snd_soc_dai_driver spdif_out_dai = {
|
||||
SNDRV_PCM_RATE_192000),
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
},
|
||||
.probe = spdif_soc_dai_probe,
|
||||
.ops = &spdif_out_dai_ops,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user