upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:26 +0000 (11:54 +0900)
commit5320628bf5b28cd3f0c274f2f3bcb1641d4aa45b
tree3c99a55ad1322f7c58c2d1ced7229a8326a37bb6
parentd33ca2e2712cd00c256825e526b14c92fa8355b8
upstream: [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