]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: f_uac2: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 22 Jul 2014 17:58:30 +0000 (19:58 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 20 Aug 2014 19:04:16 +0000 (14:04 -0500)
commitf8f93d244afad804e09595fcb14320fe2896fef5
treebb6e0e0aca769fa559481cc10f84c24a98cfebc7
parent5d73abf2a77a090ca4c920ac99c8ec0e272398a9
usb: gadget: f_uac2: convert to new function interface with backward compatibility

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>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/function/Makefile
drivers/usb/gadget/function/f_uac2.c
drivers/usb/gadget/function/u_uac2.h [new file with mode: 0644]
drivers/usb/gadget/legacy/audio.c