]> git.baikalelectronics.ru Git - kernel.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)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:06:06 +0000 (13:06 +0300)
commit2829f213add65451e1d16239d8d18ba859f9a257
treec57820b64f80d9a9e1acef233a8bcb08998436ee
parent17df24435f2d541d8d5da91bf68f65a2c77715da
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