Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353505
b: refs/heads/master
c: b531f81
h: refs/heads/master
i:
  353503: 33ec53c
v: v3
  • Loading branch information
Pawel Moll authored and Takashi Iwai committed Feb 21, 2013
1 parent f6d5a7d commit fc48457
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92c69e796b83f922c81a5cf7968cb114a7fa14c6
refs/heads/master: b531f81b0d70ffbe8d70500512483227cc532608
6 changes: 4 additions & 2 deletions trunk/include/uapi/linux/usb/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,16 @@ static inline __u8 uac_processing_unit_iProcessing(struct uac_processing_unit_de
int protocol)
{
__u8 control_size = uac_processing_unit_bControlSize(desc, protocol);
return desc->baSourceID[desc->bNrInPins + control_size];
return *(uac_processing_unit_bmControls(desc, protocol)
+ control_size);
}

static inline __u8 *uac_processing_unit_specific(struct uac_processing_unit_descriptor *desc,
int protocol)
{
__u8 control_size = uac_processing_unit_bControlSize(desc, protocol);
return &desc->baSourceID[desc->bNrInPins + control_size + 1];
return uac_processing_unit_bmControls(desc, protocol)
+ control_size + 1;
}

/* 4.5.2 Class-Specific AS Interface Descriptor */
Expand Down

0 comments on commit fc48457

Please sign in to comment.