]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: ctxfi: Use flexible array for SRCIMP imappers
authorRosen Penev <rosenp@gmail.com>
Mon, 11 May 2026 23:00:26 +0000 (16:00 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 May 2026 06:56:18 +0000 (08:56 +0200)
commit57cd11e788bdf68460eedbc414be9fb4ac8d8f4c
tree2c156efc81e5f06158130b770e3273103efe6ef7
parentda5e9f8e552128ba7f7b930986d31567f2b188a3
ALSA: ctxfi: Use flexible array for SRCIMP imappers

Store the SRCIMP imapper entries in the SRCIMP resource allocation
instead of allocating a separate array.

This keeps the mapper table tied to the SRCIMP lifetime and removes
the extra allocation and cleanup paths.

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