summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-03-17 20:07:25 +0800
committerTakashi Iwai <tiwai@suse.de>2013-03-18 08:47:13 +0100
commit717bfb5f46f0ee809f6ce04ebdf44521730fff05 (patch)
tree0d49f0649c15ef37f9f6c04fdb5f2cfd57da90fe /include/linux/usb
parent2fcdb06d4919da89ed6d52742dcc83ae4669ac30 (diff)
downloadop-kernel-dev-717bfb5f46f0ee809f6ce04ebdf44521730fff05.zip
op-kernel-dev-717bfb5f46f0ee809f6ce04ebdf44521730fff05.tar.gz
ALSA: snd-usb: handle raw data format of UAC2 devices
UAC2 compliant audio devices may announce the capability to transport raw audio data on their endpoints. Catch this and handle it as 'special' stream on the ALSA side. Signed-off-by: Daniel Mack <zonque@gmail.com> Reported-by: Andreas Koch <andreas@akdesigninc.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/audio-v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/audio-v2.h b/include/linux/usb/audio-v2.h
index ed13053..c5f2158 100644
--- a/include/linux/usb/audio-v2.h
+++ b/include/linux/usb/audio-v2.h
@@ -170,6 +170,8 @@ struct uac2_as_header_descriptor {
__u8 iChannelNames;
} __attribute__((packed));
+#define UAC2_FORMAT_TYPE_I_RAW_DATA (1 << 31)
+
/* 4.10.1.2 Class-Specific AS Isochronous Audio Data Endpoint Descriptor */
struct uac2_iso_endpoint_descriptor {
OpenPOWER on IntegriCloud