diff options
author | Mark Brown <broonie@kernel.org> | 2023-02-03 15:43:55 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-03 15:43:55 +0100 |
commit | cfe4585d7f5a6eaa56b7cebaed04bdcd4a7cab86 (patch) | |
tree | 178b10daafadcaf72bedab253c1b481bccaba439 /sound/soc/sof | |
parent | ASoC: amd: update ps platform acp header file (diff) | |
parent | ASoC: topology: Set correct unload callback for graph type (diff) | |
download | linux-cfe4585d7f5a6eaa56b7cebaed04bdcd4a7cab86.tar.xz linux-cfe4585d7f5a6eaa56b7cebaed04bdcd4a7cab86.zip |
ASoC: (SOF) topology: Regression fixes for next
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
Today I came across two regressions in next with SOF:
The topology would not load with a failure of creating playback DAI
the first patch is fixing this which was caused by a missing 'else' in the patch
After fixing the topology loading, the module unloading caused kernel panic.
The second patch is correcting that which is I likely caused by copy-paste to
set wrong unload callback for the graph element.
With these patches applied SOF is working on next and modules can be unloaded
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; |