]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: ctxfi: Precompute SRC allocation loop bound
authorHarin Lee <me@harin.net>
Wed, 1 Apr 2026 09:01:59 +0000 (18:01 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 1 Apr 2026 12:43:54 +0000 (14:43 +0200)
commit80449e1966cb9df57617a1d22bccd1e29cbc4222
tree58dd2ed2f459dbac07910e39321393b84e3ca09d
parent07b116b44e52d78af40c2d39a8e1e34ef1283d0d
ALSA: ctxfi: Precompute SRC allocation loop bound

Replace the capability checks in the SRC and SRCIMP allocation loops
with a precomputed loop bound. Cards with a dedicated mic input
(SB1270, OK0010) allocate all NUM_ATC_SRCS entries, otherwise stop
at 4.

Signed-off-by: Harin Lee <me@harin.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260401090159.2404387-4-me@harin.net
sound/pci/ctxfi/ctatc.c