summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-01-26 16:24:49 +0100
committerMark Brown <broonie@kernel.org>2018-01-26 16:24:49 +0100
commit2f75ab7fff02addff8f43d27b4866922d71e44b5 (patch)
treeeffca5d873237f6751bee17a7125a078130adb99 /sound
parentASoC: don't use rtd->codec on snd_soc_new_compress() (diff)
parentASoC: compress: Correct handling of copy callback (diff)
downloadlinux-2f75ab7fff02addff8f43d27b4866922d71e44b5.tar.xz
linux-2f75ab7fff02addff8f43d27b4866922d71e44b5.zip
Merge branch 'fix/compress' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-compress
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-compress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index 81232f4ab614..7973f92cd40f 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -944,7 +944,7 @@ static int soc_compr_copy(struct snd_compr_stream *cstream,
struct snd_soc_platform *platform = rtd->platform;
struct snd_soc_component *component;
struct snd_soc_rtdcom_list *rtdcom;
- int ret = 0, __ret;
+ int ret = 0;
mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass);
@@ -965,10 +965,10 @@ static int soc_compr_copy(struct snd_compr_stream *cstream,
!component->driver->compr_ops->copy)
continue;
- __ret = component->driver->compr_ops->copy(cstream, buf, count);
- if (__ret < 0)
- ret = __ret;
+ ret = component->driver->compr_ops->copy(cstream, buf, count);
+ break;
}
+
err:
mutex_unlock(&rtd->pcm_mutex);
return ret;