ASoC: soc-core: tidyup soc_new_pcm_runtime() rtd setups
soc_new_pcm_runtime() setups rtd, but code is very random. This patch tidyup it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/87ftdqbokh.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
49648d0200
Коммит
01faf501ee
|
@ -492,17 +492,12 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
|
||||||
rtd->codec_dais = &rtd->dais[dai_link->num_cpus];
|
rtd->codec_dais = &rtd->dais[dai_link->num_cpus];
|
||||||
rtd->num_cpus = dai_link->num_cpus;
|
rtd->num_cpus = dai_link->num_cpus;
|
||||||
rtd->num_codecs = dai_link->num_codecs;
|
rtd->num_codecs = dai_link->num_codecs;
|
||||||
|
rtd->card = card;
|
||||||
/*
|
rtd->dai_link = dai_link;
|
||||||
* rtd remaining settings
|
rtd->num = card->num_rtd++;
|
||||||
*/
|
|
||||||
rtd->card = card;
|
|
||||||
rtd->dai_link = dai_link;
|
|
||||||
|
|
||||||
/* see for_each_card_rtds */
|
/* see for_each_card_rtds */
|
||||||
list_add_tail(&rtd->list, &card->rtd_list);
|
list_add_tail(&rtd->list, &card->rtd_list);
|
||||||
rtd->num = card->num_rtd;
|
|
||||||
card->num_rtd++;
|
|
||||||
|
|
||||||
return rtd;
|
return rtd;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче