mirror of
https://github.com/torvalds/linux.git
synced 2026-10-29 21:06:02 +01:00
ASoC: sof: nocodec: tidyup sof_nocodec_setup()
We can get necessary info from mach. Let's cleanup sof_nocodec_setup(). Current code makes old style / new style conversion difficult. To make future conversions easier to understand, this patch clean up the code a little. but no functional change. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87fr23cu6w.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
380d6b549d
commit
39222ca2ff
|
|
@ -68,10 +68,10 @@ static int sof_nocodec_bes_setup(struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int sof_nocodec_setup(struct device *dev,
|
||||
u32 num_dai_drivers,
|
||||
struct snd_soc_dai_driver *dai_drivers)
|
||||
static int sof_nocodec_setup(struct device *dev, struct snd_soc_acpi_mach *mach)
|
||||
{
|
||||
u32 num_dai_drivers = mach->mach_params.num_dai_drivers;
|
||||
struct snd_soc_dai_driver *dai_drivers = mach->mach_params.dai_drivers;
|
||||
struct snd_soc_dai_link *links;
|
||||
|
||||
/* create dummy BE dai_links */
|
||||
|
|
@ -93,8 +93,7 @@ static int sof_nocodec_probe(struct platform_device *pdev)
|
|||
|
||||
snd_soc_card_set_topology_name(card, "sof");
|
||||
|
||||
ret = sof_nocodec_setup(card->dev, mach->mach_params.num_dai_drivers,
|
||||
mach->mach_params.dai_drivers);
|
||||
ret = sof_nocodec_setup(card->dev, mach);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user