ASoC: cs530x: Correct log message with expected variable

The function used one parameter for the switch statement, but logged a
different parameter when it defaulted.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://patch.msgid.link/20251017161543.214235-2-vitalyr@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Simon Trimmer 2025-10-17 17:15:28 +01:00 committed by Mark Brown
parent 211ddde082
commit 248adfe32b
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -793,7 +793,7 @@ static int cs530x_set_sysclk(struct snd_soc_component *component, int clk_id,
case CS530X_SYSCLK_SRC_PLL:
break;
default:
dev_err(component->dev, "Invalid clock id %d\n", clk_id);
dev_err(component->dev, "Invalid sysclk source: %d\n", source);
return -EINVAL;
}