USB: gadget: Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
Mike Lockwood [Fri, 11 May 2012 16:00:40 +0000 (09:00 -0700)]
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

Change-Id: I81c38611b588451e80eacdccc417ca6e11c60cab
Signed-off-by: Mike Lockwood <lockwood@google.com>

include/linux/usb/f_accessory.h

index 61ebe0a..7637e2e 100644 (file)
@@ -44,7 +44,7 @@
  *     index:          0
  *     data            version number (16 bits little endian)
  *                     1 for original accessory support
- *                     2 adds HID and device to host audio support
+ *                     2 adds device to host audio support
  */
 #define ACCESSORY_GET_PROTOCOL  51