]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: f_uac2: fix calculation of uac2->p_interval
authorPeter Chen <peter.chen@freescale.com>
Mon, 27 Jul 2015 06:51:47 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:52:24 +0000 (20:52 -0700)
commit49b38223eaf3947542f18fec68c03ae6588c4abb
treecb6abb3b7763a916953d3c7c17241ae78cea24b6
parent7f49ff48592f08bc2419c0b87103c6e62bb5385a
usb: gadget: f_uac2: fix calculation of uac2->p_interval

commit c41b7767673cb76adeb2b5fde220209f717ea13c upstream.

The p_interval should be less if the 'bInterval' at the descriptor
is larger, eg, if 'bInterval' is 5 for HS, the p_interval should be
8000 / 16 = 500.

It fixes the patch 9bb87f168931 ("usb: gadget: f_uac2: send
reasonably sized packets")

Fixes: 9bb87f168931 ("usb: gadget: f_uac2: send reasonably sized packets")
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac2.c