aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/u_uac2.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2014-08-20usb: gadget: f_uac2: add configfs supportAndrzej Pietrasiewicz1-0/+3
Add support for using f_uac2 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>
2014-08-20usb: gadget: f_uac2: use defined constants as defaultsAndrzej Pietrasiewicz1-0/+7
When configfs is integrated the same values will have to be used as defaults. Use symbolic names in order not to duplicate 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>
2014-08-20usb: gadget: f_uac2: convert to new function interface with backward compatibilityAndrzej Pietrasiewicz1-0/+32
Converting uac2 to the new function interface requires converting the USB uac2's function code and its users. This patch converts the f_uac2.c to the new function interface. The file is now compiled into a separate usb_f_uac2.ko module. The old function interface is provided by means of a preprocessor conditional directives. After all users are converted, the old interface can be removed. 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>