Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Richard Fitzgerald and committed by
Mark Brown
64670a6c ef24466e

+1 -1
+1 -1
sound/hda/codecs/side-codecs/cs35l56_hda.c
··· 1154 1154 } 1155 1155 1156 1156 cs35l56->base.type = hid & 0xff; 1157 - cs35l56->base.cal_index = -1; 1157 + cs35l56->base.cal_index = cs35l56->index; 1158 1158 1159 1159 cs35l56_init_cs_dsp(&cs35l56->base, &cs35l56->cs_dsp); 1160 1160 cs35l56->cs_dsp.client_ops = &cs35l56_hda_client_ops;