mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
ASoC: mediatek: mtk-dsp-sof-common: convert to snd_soc_dapm_xxx()
This patch converts below functions. dapm->dev -> snd_soc_dapm_to_dev() dapm->card -> snd_soc_dapm_to_card() dapm->component -> snd_soc_dapm_to_component() dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value() snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin() snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked() snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin() snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked() snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin() snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked() snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status() snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin() snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked() snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level() snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level() snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level() snd_soc_component_get_dapm() -> snd_soc_component_to_dapm() snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component() snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget() snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm() snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/878qgdwgpz.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
063e91a914
commit
b63f223ce0
|
|
@ -139,6 +139,7 @@ static int mtk_sof_check_tplg_be_dai_link_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
int mtk_sof_card_late_probe(struct snd_soc_card *card)
|
||||
{
|
||||
struct snd_soc_dapm_context *dapm = snd_soc_card_to_dapm(card);
|
||||
struct snd_soc_pcm_runtime *rtd;
|
||||
struct snd_soc_component *sof_comp = NULL;
|
||||
struct mtk_soc_card_data *soc_card_data =
|
||||
|
|
@ -204,13 +205,13 @@ int mtk_sof_card_late_probe(struct snd_soc_card *card)
|
|||
snd_soc_dapm_widget_for_each_sink_path(widget, p) {
|
||||
route.source = conn->sof_dma;
|
||||
route.sink = p->sink->name;
|
||||
snd_soc_dapm_add_routes(&card->dapm, &route, 1);
|
||||
snd_soc_dapm_add_routes(dapm, &route, 1);
|
||||
}
|
||||
} else if (conn->stream_dir == SNDRV_PCM_STREAM_PLAYBACK && widget) {
|
||||
snd_soc_dapm_widget_for_each_source_path(widget, p) {
|
||||
route.source = p->source->name;
|
||||
route.sink = conn->sof_dma;
|
||||
snd_soc_dapm_add_routes(&card->dapm, &route, 1);
|
||||
snd_soc_dapm_add_routes(dapm, &route, 1);
|
||||
}
|
||||
} else {
|
||||
dev_err(cpu_dai->dev, "stream dir and widget not pair\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user