]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx-audio: allocate URBs at device driver init
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 29 Dec 2013 00:16:26 +0000 (21:16 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 10 Jan 2014 08:01:47 +0000 (06:01 -0200)
commitbcc95ce7c30a6b829a1e34242cd38daf78eca762
treefe82fe414e82de1b0254307b40131afc99f410a1
parent8b956aaa7faf990487650fea207b5bb0cf1528b7
[media] em28xx-audio: allocate URBs at device driver init

Instead of allocating/deallocating URBs and transfer buffers
every time stream is started/stopped, just do it once.

That reduces the memory allocation pressure and makes the
code that start/stop streaming a way simpler.

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