]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx-audio: use bInterval on em28xx-audio
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 10 Jan 2014 08:43:09 +0000 (05:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 13:56:53 +0000 (11:56 -0200)
commitef81cb2be306cdeffba51648a8ad43602c0b2200
tree68d481b5af521a448f9611910f56444829aac29c
parent2a262d729a26f9fb12ed26ee02bb8c734e9a34cb
[media] em28xx-audio: use bInterval on em28xx-audio

Just filling urb->interval with 1 is wrong, and causes a different
behaviour with xHCI.

With EHCI, the URB size is typically 192 bytes. However, as
xHCI specifies intervals in microframes, the URB size becomes
too short (24 bytes).

With this patch, the interval will be properly initialized, and
the device will behave the same if connected into a xHCI or an
EHCI device port.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-audio.c