Explorar o código

[ALSA] usb-audio - reduce size of unitbitmap array

USB generic driver
Unit/terminal IDs are 8-bit integers, so the unitbitmap
variable does not need to be bigger than 256 bits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Clemens Ladisch %!s(int64=20) %!d(string=hai) anos
pai
achega
707e60732f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound/usb/usbmixer.c

+ 1 - 1
sound/usb/usbmixer.c

@@ -67,7 +67,7 @@ struct usb_mixer_build {
 	unsigned int ctrlif;
 	unsigned short vendor;
 	unsigned short product;
-	DECLARE_BITMAP(unitbitmap, 32*32);
+	DECLARE_BITMAP(unitbitmap, 256);
 	usb_audio_term_t oterm;
 	const struct usbmix_name_map *map;
 	const struct usbmix_selector_map *selector_map;