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: intel: convert to snd_soc_dapm_xxx()

This patch uses snd_soc_card_to_dapm() to get dapm from card

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87tswv1t9c.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
850c9884 8978da8e

+3 -2
+3 -2
sound/soc/intel/boards/sof_ti_common.c
··· 40 40 static int tas2563_init(struct snd_soc_pcm_runtime *rtd) 41 41 { 42 42 struct snd_soc_card *card = rtd->card; 43 + struct snd_soc_dapm_context *dapm = snd_soc_card_to_dapm(card); 43 44 int ret; 44 45 45 - ret = snd_soc_dapm_new_controls(&card->dapm, tas2563_spk_dapm_widgets, 46 + ret = snd_soc_dapm_new_controls(dapm, tas2563_spk_dapm_widgets, 46 47 ARRAY_SIZE(tas2563_spk_dapm_widgets)); 47 48 if (ret) { 48 49 dev_err(rtd->dev, "unable to add dapm widgets, ret %d\n", ret); ··· 57 56 return ret; 58 57 } 59 58 60 - ret = snd_soc_dapm_add_routes(&card->dapm, tas2563_spk_dapm_routes, 59 + ret = snd_soc_dapm_add_routes(dapm, tas2563_spk_dapm_routes, 61 60 ARRAY_SIZE(tas2563_spk_dapm_routes)); 62 61 if (ret) 63 62 dev_err(rtd->dev, "unable to add dapm routes, ret %d\n", ret);