From 7311253f6f8d542693594bdffd0b1fd060793d09 Mon Sep 17 00:00:00 2001 From: Ramprasad Katkam Date: Wed, 20 Feb 2019 10:22:26 +0530 Subject: [PATCH] dsp: codecs: Remove error logging during ssr During SSR avoid printing some errors which could lead to excessive logging. Change-Id: I5f9e7e5f32bc3de87996838048514e16d59c97a6 Signed-off-by: Ramprasad Katkam --- dsp/codecs/audio_utils_aio.c | 2 +- dsp/q6asm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dsp/codecs/audio_utils_aio.c b/dsp/codecs/audio_utils_aio.c index f22163567aa8..62b9455dbdd3 100644 --- a/dsp/codecs/audio_utils_aio.c +++ b/dsp/codecs/audio_utils_aio.c @@ -1157,7 +1157,7 @@ static int audio_aio_async_read(struct q6audio_aio *audio, /* Write command will populate session_id as token */ buf_node->token = ac->session; rc = q6asm_async_read(ac, ¶m); - if (rc < 0) + if (rc < 0 && rc != -ENETRESET) pr_err_ratelimited("%s[%pK]:failed\n", __func__, audio); return rc; } diff --git a/dsp/q6asm.c b/dsp/q6asm.c index b27163f35883..a36a8e929e1d 100644 --- a/dsp/q6asm.c +++ b/dsp/q6asm.c @@ -9512,8 +9512,8 @@ int q6asm_async_read(struct audio_client *ac, } rc = apr_send_pkt(ac->apr, (uint32_t *) &read); - if (rc < 0) { - pr_err("%s: read op[0x%x]rc[%d]\n", __func__, + if (rc < 0 && rc != -ENETRESET) { + pr_err_ratelimited("%s: read op[0x%x]rc[%d]\n", __func__, read.hdr.opcode, rc); goto fail_cmd; }