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)
commitf5dfd98a80ff8d50cf4ae2820857d7f5a46cbab9
tree28462ea66891a4aeb7985eac1d2718d0b4f8b3fe
parentf81c08f897adafd2ed43f86f00207ff929f0b2eb
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