From fe5ee6977410568e5c89e03ba003baa2ab66e10a Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 4 Oct 2017 20:24:42 +0530 Subject: [PATCH] ASoC: msm: qdsp6v2: Remove excess logs in compress driver Excess logs are printed in msm_compr_pointer during ADSP SSR. This causes failure of some interrupts to occur which results in SSR failure. Logs can be reduced by applying ratelimit. CRs-Fixed: 2128011 Change-Id: I9a6a5e0fed17154e201bce0d7fa2de91b6ec159d Signed-off-by: Vatsal Bucha --- sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c index 471be3294881..7e22567ead96 100644 --- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c @@ -2672,8 +2672,8 @@ static int msm_compr_pointer(struct snd_compr_stream *cstream, tstamp.copied_total = prtd->received_total; first_buffer = prtd->first_buffer; if (atomic_read(&prtd->error)) { - pr_err("%s Got RESET EVENTS notification, return error\n", - __func__); + pr_err_ratelimited("%s Got RESET EVENTS notification, return error\n", + __func__); if (cstream->direction == SND_COMPRESS_PLAYBACK) runtime->total_bytes_transferred = tstamp.copied_total; else