summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/u_uac2.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-07-22 19:58:34 +0200
committerFelipe Balbi <balbi@ti.com>2014-08-20 14:04:38 -0500
commit065a107cdd70f0621011424009b3ecd4e42481b1 (patch)
tree6448e4a942ed96ceadea0b6e794a0ce50f0a4c02 /drivers/usb/gadget/function/u_uac2.h
parentf408757f819a5792e6d27865a12f4da4ae802d28 (diff)
downloadlinux-stable-065a107cdd70f0621011424009b3ecd4e42481b1.tar.gz
linux-stable-065a107cdd70f0621011424009b3ecd4e42481b1.tar.bz2
linux-stable-065a107cdd70f0621011424009b3ecd4e42481b1.zip
usb: gadget: f_uac2: use defined constants as defaults
When configfs is integrated the same values will have to be used as defaults. Use symbolic names in order not to duplicate magic numbers. Tested-by: Sebastian Reimers <sebastian.reimers@googlemail.com> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/u_uac2.h')
-rw-r--r--drivers/usb/gadget/function/u_uac2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_uac2.h b/drivers/usb/gadget/function/u_uac2.h
index 290b83af1b69..ed7f7361a53e 100644
--- a/drivers/usb/gadget/function/u_uac2.h
+++ b/drivers/usb/gadget/function/u_uac2.h
@@ -18,6 +18,13 @@
#include <linux/usb/composite.h>
+#define UAC2_DEF_PCHMASK 0x3
+#define UAC2_DEF_PSRATE 48000
+#define UAC2_DEF_PSSIZE 2
+#define UAC2_DEF_CCHMASK 0x3
+#define UAC2_DEF_CSRATE 64000
+#define UAC2_DEF_CSSIZE 2
+
struct f_uac2_opts {
struct usb_function_instance func_inst;
int p_chmask;