ALSA: usb-audio: fix selector unit string index accessor
This is another regression from the UAC2 code refactoring. Signed-off-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5dd360ebd8
commit
7176d37a28
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Reference in a new issue