Re: [PATCH 2/3] ASoC: qcom: lpass-hdmi: fix invalid rate error message
From: Mark Brown
Date: Wed Sep 02 2026 - 11:01:44 EST
On Wed, Sep 02, 2026 at 03:19:42PM +0800, wangdich9700@xxxxxxx wrote:
> From: wangdicheng <wangdicheng@xxxxxxxxxx>
>
> The sampling rate switch reused the bitwidth error path, so an
> unsupported rate logged "invalid bit width" with the bitwidth value.
> Print the rate instead.
> default:
> - dev_err(dai->dev, "%s invalid bit width given : %d\n",
> - __func__, bitwidth);
> + dev_err(dai->dev, "%s invalid sampling rate given : %d\n",
rate is unsigned; I am surprised you don't get compiler warnings about
that.
Attachment:
signature.asc
Description: PGP signature