upstream: [media] em28xx-audio: fix the period size in bytes
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 10 Jan 2014 16:29:16 +0000 (13:29 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:27 +0000 (11:54 +0900)
commit3742dd15aca9b4f681d37a33540ac61c3bf87704
treebccabaca685a1cb117ae418a2b515799df8cc641
parentd81c3b6ed50a68c3a01c81685219aca5a9e88374
upstream: [media] em28xx-audio: fix the period size in bytes

If the period size is wrong, userspace will assume a wrong delay
any may negociate an inadequate value.

The em28xx devices use 8 for URB interval, in microframes,
and the driver programs it to have 64 packets.

That means that the IRQ sampling period is 125 * 8 * 64,
with is equal to 64 ms.

So, that's the minimal latency with the current settings. It is
possible to program a lower latency, by using less than 64 packets,
but that increases the amount of bandwitdh used, and the number of
IRQ events per second.

In any case, in order to support it, the driver logic should be
changed to fill those parameters in realtime.

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