linux/sound/hda/core
Xu Rao f67be28fdf ALSA: hda: Fix cached processing coefficient verbs
Intel HD Audio defines Coefficient Index and Processing Coefficient as
separate audio widget controls in the Audio Widget Verb Definitions:
Coefficient Index selects the coefficient slot, while Processing
Coefficient accesses the value at the selected slot.

hda_reg_read_coef() selects the slot with AC_VERB_SET_COEF_INDEX, but
then uses AC_VERB_GET_COEF_INDEX for the value read.  That reads back the
selected index instead of the coefficient value.  hda_reg_write_coef()
has the same issue and builds the value write from AC_VERB_GET_COEF_INDEX
instead of AC_VERB_SET_PROC_COEF.

This only affects the regmap coefficient cache path used by codecs that
set codec->cache_coef.  Direct coefficient helpers already use the normal
SET_COEF_INDEX followed by GET_PROC_COEF or SET_PROC_COEF sequence, which
is likely why this has not been noticed widely.

Use AC_VERB_GET_PROC_COEF for cached coefficient reads and
AC_VERB_SET_PROC_COEF for cached coefficient writes.

Fixes: 40ba66a702 ("ALSA: hda - Add cache support for COEF read/write")
Cc: stable@vger.kernel.org
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Link: https://patch.msgid.link/DB9023BF2920BA99+20260707132419.1731342-1-raoxu@uniontech.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-07-07 16:38:51 +02:00
..
ext Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
array.c
bus.c ALSA: hda/core: add addr_offset field for bus address translation 2025-12-07 13:13:20 +01:00
component.c ALSA: hda/core: Use guard() for mutex locks 2025-08-29 11:52:14 +02:00
controller.c ALSA: hda/core: add addr_offset field for bus address translation 2025-12-07 13:13:20 +01:00
device.c ALSA: hda/core: Use guard() for mutex locks 2025-08-29 11:52:14 +02:00
hda_bus_type.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
hdmi_chmap.c ALSA: hda: Avoid WARN_ON() for HDMI chmap slot checks 2026-04-29 07:49:09 +02:00
i915.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
intel-dsp-config.c ALSA: hda: core: intel-dsp-config: Add support for NVL 2026-01-20 20:08:22 +00:00
intel-nhlt.c
intel-sdw-acpi.c
Kconfig
local.h
Makefile
regmap.c ALSA: hda: Fix cached processing coefficient verbs 2026-07-07 16:38:51 +02:00
stream.c ALSA: hda/core: add addr_offset field for bus address translation 2025-12-07 13:13:20 +01:00
sysfs.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
trace.c ALSA: isa: Add SPDX id lines to some files 2026-02-18 08:56:47 +01:00
trace.h