diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2023-02-01 13:28:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-02 11:09:46 +0000 |
commit | afd7c141c750f3f043c755bd8d01a2ffee7e95b2 (patch) | |
tree | 1c2dc05a0c95b7b0bf645777ee9bc9c8850a58b4 /sound/soc/sof | |
parent | 36acae192d65195342d02595f45e404cc0f2eca0 (diff) | |
download | linux-stable-afd7c141c750f3f043c755bd8d01a2ffee7e95b2.tar.gz linux-stable-afd7c141c750f3f043c755bd8d01a2ffee7e95b2.tar.bz2 linux-stable-afd7c141c750f3f043c755bd8d01a2ffee7e95b2.zip |
ASoC: SOF: topology: Add missed "else" in sof_connect_dai_widget
The conversion to use generic helpers missed the else for the dai
direction check which leads to failure when loading playback widgets
Fixes: 323f09a61d43 ("ASoC: sof: use helper function")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20230201112846.27707-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r-- | sound/soc/sof/topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 3cfdf782afca..4a62ccc71fcb 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -1065,7 +1065,7 @@ static int sof_connect_dai_widget(struct snd_soc_component *scomp, if (w->id == snd_soc_dapm_dai_out) stream = SNDRV_PCM_STREAM_CAPTURE; - if (w->id == snd_soc_dapm_dai_in) + else if (w->id == snd_soc_dapm_dai_in) stream = SNDRV_PCM_STREAM_PLAYBACK; else goto end; |