Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7176d37a authored by Daniel Mack's avatar Daniel Mack Committed by Takashi Iwai
Browse files

ALSA: usb-audio: fix selector unit string index accessor



This is another regression from the UAC2 code refactoring.

Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5dd360eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ struct uac_selector_unit_descriptor {
static inline __u8 uac_selector_unit_iSelector(struct uac_selector_unit_descriptor *desc)
{
	__u8 *raw = (__u8 *) desc;
	return raw[9 + desc->bLength - 1];
	return raw[desc->bLength - 1];
}

/* 4.3.2.5 Feature Unit Descriptor */