Skip to content

Commit e4504b8

Browse files
b-rad-NDigregkh
authored andcommitted
media: em28xx: USB bulk packet size fix
[ Upstream commit c7c7e8d ] Hauppauge em28xx bulk devices exhibit continuity errors and corrupted packets, when run in VMWare virtual machines. Unknown if other manufacturers bulk models exhibit the same issue. KVM/Qemu is unaffected. According to documentation the maximum packet multiplier for em28xx in bulk transfer mode is 256 * 188 bytes. This changes the size of bulk transfers to maximum supported value and have a bonus beneficial alignment. Before: After: This sets up USB to expect just as many bytes as the em28xx is set to emit. Successful usage under load afterwards natively and in both VMWare and KVM/Qemu virtual machines. Signed-off-by: Brad Love <brad@nextdimension.cc> Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f5f6bff commit e4504b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/usb/em28xx/em28xx.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
USB 2.0 spec says bulk packet size is always 512 bytes
192192
*/
193193
#define EM28XX_BULK_PACKET_MULTIPLIER 384
194-
#define EM28XX_DVB_BULK_PACKET_MULTIPLIER 384
194+
#define EM28XX_DVB_BULK_PACKET_MULTIPLIER 94
195195

196196
#define EM28XX_INTERLACED_DEFAULT 1
197197

0 commit comments

Comments
 (0)