diff options
author | Mark Brown <broonie@kernel.org> | 2018-01-26 10:24:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-26 10:24:49 -0500 |
commit | 2f75ab7fff02addff8f43d27b4866922d71e44b5 (patch) | |
tree | effca5d873237f6751bee17a7125a078130adb99 | |
parent | e5acfc7d3562ae251cb786b5b52d4345dd16a02c (diff) | |
parent | 290df4d3ab192821b66857c05346b23056ee9545 (diff) |
Merge branch 'fix/compress' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-compress
-rw-r--r-- | sound/soc/soc-compress.c | 8 |
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, | |||
944 | struct snd_soc_platform *platform = rtd->platform; | 944 | struct snd_soc_platform *platform = rtd->platform; |
945 | struct snd_soc_component *component; | 945 | struct snd_soc_component *component; |
946 | struct snd_soc_rtdcom_list *rtdcom; | 946 | struct snd_soc_rtdcom_list *rtdcom; |
947 | int ret = 0, __ret; | 947 | int ret = 0; |
948 | 948 | ||
949 | mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); | 949 | mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); |
950 | 950 | ||
@@ -965,10 +965,10 @@ static int soc_compr_copy(struct snd_compr_stream *cstream, | |||
965 | !component->driver->compr_ops->copy) | 965 | !component->driver->compr_ops->copy) |
966 | continue; | 966 | continue; |
967 | 967 | ||
968 | __ret = component->driver->compr_ops->copy(cstream, buf, count); | 968 | ret = component->driver->compr_ops->copy(cstream, buf, count); |
969 | if (__ret < 0) | 969 | break; |
970 | ret = __ret; | ||
971 | } | 970 | } |
971 | |||
972 | err: | 972 | err: |
973 | mutex_unlock(&rtd->pcm_mutex); | 973 | mutex_unlock(&rtd->pcm_mutex); |
974 | return ret; | 974 | return ret; |