]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: audio: queue wLength-sized requests
authorFelipe Balbi <balbi@ti.com>
Mon, 29 Aug 2011 08:54:08 +0000 (11:54 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:39 +0000 (08:33 +0200)
commit63cef2e8c55cab0efcc92f89c508365ecef38800
tree14551e6ad3ad1c584805cfd97e71a3a96e0a18fd
parent54421d695bf2a24f90dcfe039e1de7fa76746217
usb: gadget: audio: queue wLength-sized requests

On Audio class, the wLength field of the Setup
packet, contains the data payload size of the
following Data phase. Instead of harcoding values,
use wLength.

This also fixes a bug where Gadget driver had to
receive 3 bytes, but it was queueing a ZLP.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_audio.c