ALSA: scarlett2: Parameterise notifications
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:27:52 +0000 (05:57 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commit648bd468b28c37a8c84050953627011eacad84f5
treeb74028170f9e1cdee5f5b1369ae7e06846259620
parentb5fe6c47a55f82f16e60a90528ada8bcc3558984
ALSA: scarlett2: Parameterise notifications

The notification values were previously #define'd, and checked with a
series of if() statements calling functions. Replace with an array of
masks/callback function pointers, and a pointer to that array in the
scarlett2_config_set definitions.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/0ee2a3786f9d30c89eeae59d7e933424e8f39162.1703444932.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c