summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-compress.c
diff options
context:
space:
mode:
authorCharles Keepax2018-04-26 18:30:04 +0200
committerMark Brown2018-05-11 05:23:10 +0200
commitca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d (patch)
treee8d83b5fc8fd3dfe457c61ee8db73ec9d6bcc3a8 /sound/soc/soc-compress.c
parentASoC: qdsp6: q6common: Add qdsp6 helper functions (diff)
downloadkernel-qcow2-linux-ca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d.tar.gz
kernel-qcow2-linux-ca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d.tar.xz
kernel-qcow2-linux-ca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d.zip
ASoC: compress: Only assign compr->ops->copy once
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>
Diffstat (limited to 'sound/soc/soc-compress.c')
-rw-r--r--sound/soc/soc-compress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index ba56f87f96d4..62875c6a93a1 100644
--- 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;
}