summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/u_uac1.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-07-22 19:58:42 +0200
committerFelipe Balbi <balbi@ti.com>2014-08-20 14:05:14 -0500
commitbcec9784dd78abfa9d8ca8b7144f6e37ea6abfd5 (patch)
tree789fc069ac48cbca4f9206bb0ce4c5e09b4bd5e2 /drivers/usb/gadget/function/u_uac1.h
parent807dccdba5c157c7131772bb6bd9a114a2ed9760 (diff)
downloadlinux-bcec9784dd78abfa9d8ca8b7144f6e37ea6abfd5.tar.bz2
usb: gadget: f_uac1: use defined constants as defaults
When configfs support is added the values in question will have to be used in two different places. Substitute them with defined constants to avoid duplicating 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_uac1.h')
-rw-r--r--drivers/usb/gadget/function/u_uac1.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_uac1.h b/drivers/usb/gadget/function/u_uac1.h
index 8507c27020c9..214441d96fe1 100644
--- a/drivers/usb/gadget/function/u_uac1.h
+++ b/drivers/usb/gadget/function/u_uac1.h
@@ -23,6 +23,14 @@
#include "gadget_chips.h"
+#define FILE_PCM_PLAYBACK "/dev/snd/pcmC0D0p"
+#define FILE_PCM_CAPTURE "/dev/snd/pcmC0D0c"
+#define FILE_CONTROL "/dev/snd/controlC0"
+
+#define UAC1_OUT_EP_MAX_PACKET_SIZE 200
+#define UAC1_REQ_COUNT 256
+#define UAC1_AUDIO_BUF_SIZE 48000
+
/*
* This represents the USB side of an audio card device, managed by a USB
* function which provides control and stream interfaces.