dsp: rate limit read/write error logs
Rate limit dsp read/write error logs to reduce log prints during SSR scenario for read/write failures. Change-Id: I031be5ebd39bdd11dc8e1eb92c77ed782f1dc149 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
4e3fcbf103
commit
0c1f938992
@@ -1104,7 +1104,7 @@ static int audio_aio_async_write(struct q6audio_aio *audio,
|
|||||||
buf_node->token = ac->session;
|
buf_node->token = ac->session;
|
||||||
rc = q6asm_async_write(ac, ¶m);
|
rc = q6asm_async_write(ac, ¶m);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
pr_err("%s[%pK]:failed\n", __func__, audio);
|
pr_err_ratelimited("%s[%pK]:failed\n", __func__, audio);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1157,7 +1157,7 @@ static int audio_aio_async_read(struct q6audio_aio *audio,
|
|||||||
buf_node->token = ac->session;
|
buf_node->token = ac->session;
|
||||||
rc = q6asm_async_read(ac, ¶m);
|
rc = q6asm_async_read(ac, ¶m);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
pr_err("%s[%pK]:failed\n", __func__, audio);
|
pr_err_ratelimited("%s[%pK]:failed\n", __func__, audio);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -8625,7 +8625,7 @@ int q6asm_async_write(struct audio_client *ac,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (ac->apr == NULL) {
|
if (ac->apr == NULL) {
|
||||||
pr_err("%s: AC APR handle NULL\n", __func__);
|
pr_err_ratelimited("%s: AC APR handle NULL\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8718,7 +8718,7 @@ int q6asm_async_read(struct audio_client *ac,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (ac->apr == NULL) {
|
if (ac->apr == NULL) {
|
||||||
pr_err("%s: AC APR handle NULL\n", __func__);
|
pr_err_ratelimited("%s: AC APR handle NULL\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user