ALSA: hda: cs35l56: Don't use the device index as a calibration index
authorSimon Trimmer <simont@opensource.cirrus.com>
Wed, 21 Aug 2024 12:47:11 +0000 (12:47 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Aug 2024 13:23:33 +0000 (15:23 +0200)
commit91191a6e50a2ff752da244493171037663536768
tree8d9ecfc9fc2941942b124ed3527ccb7e9f27b2e3
parent32108c22ac619c32dd6db594319e259b63bfb387
ALSA: hda: cs35l56: Don't use the device index as a calibration index

The HDA driver cannot assume that the order that the devices are
specified in the cirrus,dev-index matches the order of calibration
entries.

Only a calibration entry with a matching silicon id will be used.

Fixes: cfa43aaa7948 ("ALSA: hda: cs35l56: Apply amp calibration from EFI data")
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://patch.msgid.link/20240821124711.44325-1-simont@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l56_hda.c