Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
To: lgirdwood@gmail.com, broonie@kernel.org,
	kuninori.morimoto.gx@renesas.com,
	amadeuszx.slawinski@linux.intel.com
Cc: pierre-louis.bossart@linux.intel.com, cezary.rojewski@intel.com,
	kai.vehmanen@linux.intel.com, alsa-devel@alsa-project.org,
	tiwai@suse.com, ranjani.sridharan@linux.intel.com
Subject: [PATCH 1/2] ASoC: SOF: topology: Add missed "else" in sof_connect_dai_widget
Date: Wed,  1 Feb 2023 13:28:45 +0200	[thread overview]
Message-ID: <20230201112846.27707-2-peter.ujfalusi@linux.intel.com> (raw)
In-Reply-To: <20230201112846.27707-1-peter.ujfalusi@linux.intel.com>

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>
---
 sound/soc/sof/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.39.1


  reply	other threads:[~2023-02-01 11:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-01 11:28 [PATCH 0/2] ASoC: (SOF) topology: Regression fixes for next Peter Ujfalusi
2023-02-01 11:28 ` Peter Ujfalusi [this message]
2023-02-01 23:59   ` [PATCH 1/2] ASoC: SOF: topology: Add missed "else" in sof_connect_dai_widget Kuninori Morimoto
2023-02-01 11:28 ` [PATCH 2/2] ASoC: topology: Set correct unload callback for graph type Peter Ujfalusi
2023-02-01 11:47   ` Amadeusz Sławiński
2023-02-03 14:55 ` [PATCH 0/2] ASoC: (SOF) topology: Regression fixes for next Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230201112846.27707-2-peter.ujfalusi@linux.intel.com \
    --to=peter.ujfalusi@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox