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>
This commit is contained in:
Andrzej Pietrasiewicz
2014-07-22 19:58:43 +02:00
committed by Felipe Balbi
parent bcec9784dd
commit 0854611a19
3 changed files with 176 additions and 1 deletions

View File

@@ -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);