aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/u_uac1.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-07-22 13:58:43 -0400
committerFelipe Balbi <balbi@ti.com>2014-08-20 15:05:21 -0400
commit0854611a19ae4dfa56569e6f640017a1d2dd3312 (patch)
tree5a505fe0a5180c66ceff90ca3539471fbada5ade /drivers/usb/gadget/function/u_uac1.h
parentbcec9784dd78abfa9d8ca8b7144f6e37ea6abfd5 (diff)
usb: gadget: f_uac1: add configfs support
Add support for using f_uac1 function as a component of a gadget composed with configfs. 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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_uac1.h b/drivers/usb/gadget/function/u_uac1.h
index 214441d96fe1..f8b17fe82efe 100644
--- a/drivers/usb/gadget/function/u_uac1.h
+++ b/drivers/usb/gadget/function/u_uac1.h
@@ -66,8 +66,13 @@ struct f_uac1_opts {
66 char *fn_play; 66 char *fn_play;
67 char *fn_cap; 67 char *fn_cap;
68 char *fn_cntl; 68 char *fn_cntl;
69 bool bound; 69 unsigned bound:1;
70 unsigned fn_play_alloc:1;
71 unsigned fn_cap_alloc:1;
72 unsigned fn_cntl_alloc:1;
70 struct gaudio *card; 73 struct gaudio *card;
74 struct mutex lock;
75 int refcnt;
71}; 76};
72 77
73int gaudio_setup(struct gaudio *card); 78int gaudio_setup(struct gaudio *card);