]> Pileus Git - ~andy/linux/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 13:57:04 +0000 (11:57 -0200)
commit49677aef90de7834e7bb4b0adf95c3342c2c8668
treec408101461ecdd783c8d5f8fe88423f518fb808e
parent1b3fd2d342667005855deae74200195695433259
[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