]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix packet size calculation
authorAlexander Tsoy <alexander@tsoy.me>
Mon, 29 Jun 2020 02:59:33 +0000 (05:59 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Jun 2020 17:46:48 +0000 (19:46 +0200)
commit5d15045f29876dc74a86f1b1dd69f6b26e803b0a
treeaeeea43edf7439b9213fe167db80493ab044285f
parentfad2dd5f45e8aae8910e7fb3d92611629b127138
ALSA: usb-audio: Fix packet size calculation

Commit 96b84ee8daa3 ("ALSA: usb-audio: Improve frames size computation")
introduced a regression for devices which have playback endpoints with
bInterval > 1. Fix this by taking ep->datainterval into account.

Note that frame and fps are actually mean packet and packets per second
in the code introduces by the mentioned commit. This will be fixed in a
follow-up patch.

Fixes: 96b84ee8daa3 ("ALSA: usb-audio: Improve frames size computation")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208353
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Link: https://lore.kernel.org/r/20200629025934.154288-1-alexander@tsoy.me
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c