usb: gadget: f_uac2: disable IN/OUT ep if unused
authorAndreas Pape <apape@de.adit-jv.com>
Thu, 21 Jun 2018 15:22:51 +0000 (17:22 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:45:36 +0000 (10:45 +0300)
commit3fa4eaa6c08206b5fa6a8ba49b891d6aab243f52
tree840a08e4ccc2e830622d3ccbbc3985757d214a3c
parent0a55187a1ec8c03d0619e7ce41d10fdc39cff036
usb: gadget: f_uac2: disable IN/OUT ep if unused

Via p_chmask/c_chmask the user can define whether uac2 shall support
playback and/or capture. This has only effect on the created ALSA device,
but not on the USB descriptor. This patch adds playback/capture descriptors
dependent on that parameter.

Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_uac2.c