From: Charles Keepax Date: Thu, 26 Apr 2018 16:30:04 +0000 (+0100) Subject: ASoC: compress: Only assign compr->ops->copy once X-Git-Tag: v4.19~773^2~15^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d;p=platform%2Fkernel%2Flinux-rpi3.git 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 Acked-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index ba56f87..62875c6 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; }