Skip to content

Commit

Permalink
ASoC: qcom: lpass-platform: Update warning print to control excess lo…
Browse files Browse the repository at this point in the history
…gging

Update dev_warn to dev_warn_ratelimit to control excess xrun logging
in lpass platform driver.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Link: https://lore.kernel.org/r/1645792943-24845-1-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Srinivasa Rao Mandadapu authored and Mark Brown committed Feb 25, 2022
1 parent 431f9a7 commit 5a5d231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/qcom/lpass-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,8 @@ static irqreturn_t lpass_dma_interrupt_handler(
"error writing to irqclear reg: %d\n", rv);
return IRQ_NONE;
}
dev_warn(soc_runtime->dev, "xrun warning\n");
dev_warn_ratelimited(soc_runtime->dev, "xrun warning\n");

snd_pcm_stop_xrun(substream);
ret = IRQ_HANDLED;
}
Expand Down

0 comments on commit 5a5d231

Please sign in to comment.