[PATCH 2/3] ASoC: qcom: lpass-hdmi: fix invalid rate error message
From: wangdich9700
Date: Wed Sep 02 2026 - 03:21:46 EST
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.
Signed-off-by: wangdicheng <wangdicheng@xxxxxxxxxx>
---
sound/soc/qcom/lpass-hdmi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/qcom/lpass-hdmi.c b/sound/soc/qcom/lpass-hdmi.c
index 8bbe43facdc1..dd0ae4fbc841 100644
--- a/sound/soc/qcom/lpass-hdmi.c
+++ b/sound/soc/qcom/lpass-hdmi.c
@@ -64,8 +64,8 @@ static int lpass_hdmi_daiops_hw_params(struct snd_pcm_substream *substream,
sampling_freq = LPASS_SAMPLING_FREQ48;
break;
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",
+ __func__, rate);
return -EINVAL;
}
data_format = LPASS_DATA_FORMAT_LINEAR;
--
2.25.1