projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dddbdd
)
ASoC: compress: Only assign compr->ops->copy once
author
Charles Keepax
<ckeepax@opensource.cirrus.com>
Thu, 26 Apr 2018 16:30:04 +0000
(17:30 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 11 May 2018 03:23:10 +0000
(12:23 +0900)
There are only one set of ops on the compressed stream so no need to
reassign the copy callback repeatedly, stop after copy is seen to be
necessary.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-compress.c
b/sound/soc/soc-compress.c
index ba56f87f96d4cc1fea1617810bbe92db05443f0c..62875c6a93a14e4fa7ee6a698d0aadb7d69a8650 100644
(file)
--- a/
sound/soc/soc-compress.c
+++ b/
sound/soc/soc-compress.c
@@
-973,6
+973,7
@@
int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
continue;
compr->ops->copy = soc_compr_copy;
+ break;
}