Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: starfive: merge DAI call back functions into ops

ALSA SoC merges DAI call backs into .ops.
This patch merge these into one.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Walker Chen <walker.chen@starfivetech.com>
Link: https://lore.kernel.org/r/87msz19m5r.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
e86cc958 b3968437

+8 -8
+8 -8
sound/soc/starfive/jh7110_tdm.c
··· 463 463 return 0; 464 464 } 465 465 466 - static const struct snd_soc_dai_ops jh7110_tdm_dai_ops = { 467 - .startup = jh7110_tdm_startup, 468 - .hw_params = jh7110_tdm_hw_params, 469 - .trigger = jh7110_tdm_trigger, 470 - .set_fmt = jh7110_tdm_set_dai_fmt, 471 - }; 472 - 473 466 static int jh7110_tdm_dai_probe(struct snd_soc_dai *dai) 474 467 { 475 468 struct jh7110_tdm_dev *tdm = snd_soc_dai_get_drvdata(dai); ··· 471 478 snd_soc_dai_set_drvdata(dai, tdm); 472 479 return 0; 473 480 } 481 + 482 + static const struct snd_soc_dai_ops jh7110_tdm_dai_ops = { 483 + .probe = jh7110_tdm_dai_probe, 484 + .startup = jh7110_tdm_startup, 485 + .hw_params = jh7110_tdm_hw_params, 486 + .trigger = jh7110_tdm_trigger, 487 + .set_fmt = jh7110_tdm_set_dai_fmt, 488 + }; 474 489 475 490 #define JH7110_TDM_RATES SNDRV_PCM_RATE_8000_48000 476 491 ··· 503 502 .formats = JH7110_TDM_FORMATS, 504 503 }, 505 504 .ops = &jh7110_tdm_dai_ops, 506 - .probe = jh7110_tdm_dai_probe, 507 505 .symmetric_rate = 1, 508 506 }; 509 507