]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: asihpi: Use flexible array for control cache
authorRosen Penev <rosenp@gmail.com>
Mon, 11 May 2026 23:01:21 +0000 (16:01 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 May 2026 06:56:51 +0000 (08:56 +0200)
commit3aec8baeb517c3aa391fecd2136ab4a1d8e5fd74
treeb9d6060d8711febf50091ceeff0cea604774427d
parent57cd11e788bdf68460eedbc414be9fb4ac8d8f4c
ALSA: asihpi: Use flexible array for control cache

Store the ASIHPI control-cache lookup table in the control-cache
allocation instead of allocating it separately.

This keeps the lookup table tied to the cache object lifetime and
removes the extra allocation and free path.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260511230121.28606-1-rosenp@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpicmn.c
sound/pci/asihpi/hpicmn.h