diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-07-22 19:58:43 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-08-20 21:05:21 +0200 |
commit | 0854611a19ae4dfa56569e6f640017a1d2dd3312 (patch) | |
tree | 5a505fe0a5180c66ceff90ca3539471fbada5ade /drivers/usb/gadget/function/u_uac1.h | |
parent | usb: gadget: f_uac1: use defined constants as defaults (diff) | |
download | linux-0854611a19ae4dfa56569e6f640017a1d2dd3312.tar.xz linux-0854611a19ae4dfa56569e6f640017a1d2dd3312.zip |
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.h | 7 |
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 { char *fn_play; char *fn_cap; char *fn_cntl; - bool bound; + unsigned bound:1; + unsigned fn_play_alloc:1; + unsigned fn_cap_alloc:1; + unsigned fn_cntl_alloc:1; struct gaudio *card; + struct mutex lock; + int refcnt; }; int gaudio_setup(struct gaudio *card); |