perf python: Do not force closing original perf descriptor in evlist.get_pollfd()
[linux/fpc-iii.git] / drivers / usb / gadget / function / u_uac2.h
blob8362ee572e1e23a46031fbcd237a75f51587a7a7
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * u_uac2.h
5 * Utility definitions for UAC2 function
7 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
8 * http://www.samsung.com
10 * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
13 #ifndef U_UAC2_H
14 #define U_UAC2_H
16 #include <linux/usb/composite.h>
18 #define UAC2_DEF_PCHMASK 0x3
19 #define UAC2_DEF_PSRATE 48000
20 #define UAC2_DEF_PSSIZE 2
21 #define UAC2_DEF_CCHMASK 0x3
22 #define UAC2_DEF_CSRATE 64000
23 #define UAC2_DEF_CSSIZE 2
24 #define UAC2_DEF_REQ_NUM 2
26 struct f_uac2_opts {
27 struct usb_function_instance func_inst;
28 int p_chmask;
29 int p_srate;
30 int p_ssize;
31 int c_chmask;
32 int c_srate;
33 int c_ssize;
34 int req_number;
35 bool bound;
37 struct mutex lock;
38 int refcnt;
41 #endif