Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
authorMike Lockwood <lockwood@google.com>
Fri, 11 May 2012 16:00:40 +0000 (09:00 -0700)
committerSimone Willett <swillett@nvidia.com>
Thu, 16 Aug 2012 20:46:18 +0000 (13:46 -0700)
commit23d5fe76cdc190682d1ca7cd1db0b4933631779c
tree028cfe8c5439f8d95e6e9f23fc6fb38a7afe2026
parent03d9e752a0c3df2031fd57d41e59f71eb6209789
Add ACCESSORY_SET_AUDIO_MODE control request and ioctl

The control request will be used by the host to enable/disable USB audio
and the ioctl will be used by userspace to read the audio mode

Bug 1026047

Signed-off-by: Mike Lockwood <lockwood@google.com>
(cherry picked from commit 3e1ff6142761eef148c667e540381d1fbc437d4f)

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Change-Id: I5f449de230ca8f44e2dae30a0f87772310b68f20
Reviewed-on: http://git-master/r/123341
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/gadget/f_accessory.c
include/linux/usb/f_accessory.h