projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7618ab5
)
ASoC: Intel: Skylake: add an error code check in skl_pcm_trigger
author
Su Hui
<suhui@nfschina.com>
Fri, 20 Oct 2023 09:26:20 +0000
(17:26 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 25 Oct 2023 16:21:42 +0000
(17:21 +0100)
skl_decoupled_trigger() can return error code like -EPIPE if failed,
add check for this.
Signed-off-by: Su Hui <suhui@nfschina.com>
Link:
https://lore.kernel.org/r/20231020092619.210520-1-suhui@nfschina.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/skylake/skl-pcm.c
b/sound/soc/intel/skylake/skl-pcm.c
index
9f7b0a9
..
91f1fa2
100644
(file)
--- a/
sound/soc/intel/skylake/skl-pcm.c
+++ b/
sound/soc/intel/skylake/skl-pcm.c
@@
-518,6
+518,9
@@
static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
return ret;
ret = skl_decoupled_trigger(substream, cmd);
+ if (ret < 0)
+ return ret;
+
if ((cmd == SNDRV_PCM_TRIGGER_SUSPEND) && !w->ignore_suspend) {
/* save the dpib and lpib positions */
hstream->dpib = readl(bus->remap_addr +