Browse Source

[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 20 năm trước cách đây
mục cha
commit
707e60732f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;