diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2018-04-26 17:30:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-11 12:23:10 +0900 |
commit | ca76db6c7e9c4ab6a98fbe0f92f18bf1375e325d (patch) | |
tree | e8d83b5fc8fd3dfe457c61ee8db73ec9d6bcc3a8 /sound/soc/soc-compress.c | |
parent | 4dddbddbce324dc027182ba33d6cbbaf797dfd9e (diff) |
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.c | 1 |
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; } |