diff options
author | Geoffrey D. Bennett <g@b4.vu> | 2023-12-25 05:58:38 +1030 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-12-29 15:41:23 +0100 |
commit | 42caae0e20323af7c5b41ac089798f5590b54845 (patch) | |
tree | 74892613668cc0c0388aca58026c22207b0fe9df /sound/usb/mixer_us16x08.c | |
parent | e5fab78cd8e867b2201eadabe4871100881e2a64 (diff) |
ALSA: scarlett2: Refactor common port_count lookups
Rather than looking up the analogue and mixer I/O counts repeatedly in
info->port_count[SCARLETT2_PORT_TYPE_*][SCARLETT2_PORT_*], save those
numbers in private variables.
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/db0a5b56bdff476e2e31ad8e5ee15008314412b7.1703444932.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer_us16x08.c')
0 files changed, 0 insertions, 0 deletions