blob: 170acd500ea1f22932b34a9e094375af0f2a4892 [file] [log] [blame]
Greg Kroah-Hartman5fd54ac2017-11-03 11:28:30 +01001// SPDX-License-Identifier: GPL-2.0
Ben Williamsonf2ebf92c2006-08-01 11:28:16 +10002/*
3 * <linux/usb/audio.h> -- USB Audio definitions.
4 *
5 * Copyright (C) 2006 Thumtronics Pty Ltd.
6 * Developed for Thumtronics by Grey Innovation
7 * Ben Williamson <ben.williamson@greyinnovation.com>
8 *
9 * This software is distributed under the terms of the GNU General Public
10 * License ("GPL") version 2, as published by the Free Software Foundation.
11 *
12 * This file holds USB constants and structures defined
13 * by the USB Device Class Definition for Audio Devices.
14 * Comments below reference relevant sections of that document:
15 *
16 * http://www.usb.org/developers/devclass_docs/audio10.pdf
Daniel Mack7e847892010-03-11 21:13:20 +010017 *
18 * Types and defines in this file are either specific to version 1.0 of
19 * this standard or common for newer versions.
Ben Williamsonf2ebf92c2006-08-01 11:28:16 +100020 */
Ben Williamsonf2ebf92c2006-08-01 11:28:16 +100021#ifndef __LINUX_USB_AUDIO_H
22#define __LINUX_USB_AUDIO_H
23
David Howells5e1ddb42012-10-09 09:49:07 +010024#include <uapi/linux/usb/audio.h>
Daniel Macke213e9c2010-05-11 18:13:50 +020025
Michael S. Tsirkinc3501302009-07-29 14:23:25 +030026
Bryan Wuc47d7b092009-06-03 09:17:57 -040027struct usb_audio_control {
28 struct list_head list;
29 const char *name;
30 u8 type;
31 int data[5];
32 int (*set)(struct usb_audio_control *con, u8 cmd, int value);
33 int (*get)(struct usb_audio_control *con, u8 cmd);
34};
35
Bryan Wuc47d7b092009-06-03 09:17:57 -040036struct usb_audio_control_selector {
37 struct list_head list;
38 struct list_head control;
39 u8 id;
40 const char *name;
41 u8 type;
42 struct usb_descriptor_header *desc;
43};
44
Robert P. J. Daydda43a02008-03-07 13:45:32 -050045#endif /* __LINUX_USB_AUDIO_H */