diff options
author | John Keeping <john@metanate.com> | 2020-01-10 11:28:14 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-15 10:39:23 +0100 |
commit | 6b02af3465ee11b63a938b13bddbf7ecd92860f3 (patch) | |
tree | d44825ddb368775b2d5bc467ab44553b8e2871fb /drivers/usb/dwc3/gadget.c | |
parent | 1e056efab9931366d1e1685736dfc978eca3bf06 (diff) | |
download | lwn-6b02af3465ee11b63a938b13bddbf7ecd92860f3.tar.gz lwn-6b02af3465ee11b63a938b13bddbf7ecd92860f3.zip |
usb: gadget: f_uac2: fix packet size calculation
The packet size for USB audio must always be a multiple of the frame
size, otherwise we are transmitting a partial frame which omits some
channels (and these end up at the wrong offset in the next packet).
Furthermore, it breaks the residue handling such that we end up trying
to send a packet exceeding the maximum packet size for the endpoint.
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
0 files changed, 0 insertions, 0 deletions