]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: hda/cs35l56: Set cal_index to the amp index
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 21 Oct 2025 10:50:21 +0000 (11:50 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Oct 2025 14:07:50 +0000 (14:07 +0000)
commit64670a6c062c4d183c366d46e71ee76395af6a15
tree56088f76f36b6193d98c2b0123eb6d72f1a8b858
parentef24466ee1912997c2bd526194006bbca424c24f
ALSA: hda/cs35l56: Set cal_index to the amp index

Set cs35l56_base->cal_index to the (zero-based) amp index derived
from cirrus,dev-index property.

This is so that factory calibration data will be written to the UEFI
array in the slot equal to the amp index, for compatibility with the
Windows driver.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251021105022.1013685-11-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/hda/codecs/side-codecs/cs35l56_hda.c