]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: u_audio: EP-OUT bInterval in fback frequency
authorPavel Hofman <pavel.hofman@ivitera.com>
Mon, 6 Sep 2021 13:08:22 +0000 (15:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 08:32:06 +0000 (10:32 +0200)
commit29fe3b20e3d4cc140da937211c72bea43281ee94
tree28462ea66891a4aeb7985eac1d2718d0b4f8b3fe
parent68f5cb81e1e5636a16e590b3352257cb3e3a4114
usb: gadget: u_audio: EP-OUT bInterval in fback frequency

The patch increases the bitshift in feedback frequency
calculation with EP-OUT bInterval value.

Tests have revealed that Win10 and OSX UAC2 drivers require
the feedback frequency to be based on the actual packet
interval instead of on the USB2 microframe. Otherwise they
ignore the feedback value. Linux snd-usb-audio driver
detects the applied bitshift automatically.

Tested-by: Henrik Enquist <henrik.enquist@gmail.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210906130822.12256-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/u_audio.c