asoc: Ratelimit error logs

Ratelimit error logs to avoid excessive logging during
ssr/pdr.

Change-Id: Icdc9823cef5b070ed70cdd002bb3cd00d482a869
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
Ramprasad Katkam
2019-03-07 13:16:50 +05:30
committed by Meng Wang
parent 586382a701
commit 14efed6eb7
5 changed files with 10 additions and 8 deletions

View File

@@ -212,7 +212,7 @@ static int tx_macro_mclk_enable(struct tx_macro_priv *tx_priv,
TX_CORE_CLK,
true);
if (ret < 0) {
dev_err(tx_priv->dev,
dev_err_ratelimited(tx_priv->dev,
"%s: request clock enable failed\n",
__func__);
goto exit;