Skip to content

Commit

Permalink
Merge branch 'for-next' into for-linus
Browse files Browse the repository at this point in the history
Preparation for 4.17 merge.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 2, 2018
2 parents 5607ddd + b44d419 commit bc334cb
Show file tree
Hide file tree
Showing 35 changed files with 1,853 additions and 473 deletions.
8 changes: 4 additions & 4 deletions include/linux/usb/audio-v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
*
*/

static inline bool uac2_control_is_readable(u32 bmControls, u8 control)
static inline bool uac_v2v3_control_is_readable(u32 bmControls, u8 control)
{
return (bmControls >> (control * 2)) & 0x1;
return (bmControls >> ((control - 1) * 2)) & 0x1;
}

static inline bool uac2_control_is_writeable(u32 bmControls, u8 control)
static inline bool uac_v2v3_control_is_writeable(u32 bmControls, u8 control)
{
return (bmControls >> (control * 2)) & 0x2;
return (bmControls >> ((control - 1) * 2)) & 0x2;
}

/* 4.7.2 Class-Specific AC Interface Descriptor */
Expand Down
Loading

0 comments on commit bc334cb

Please sign in to comment.