Commit 49b38223 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman
Browse files

usb: gadget: f_uac2: fix calculation of uac2->p_interval



commit c41b7767 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 9bb87f16 ("usb: gadget: f_uac2: send
reasonably sized packets")

Fixes: 9bb87f16 ("usb: gadget: f_uac2: send reasonably sized packets")
Acked-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7f49ff48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment