[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)
commitf5f894d19e2d40f1fb98a4799d85ed0904272cd6
treefe82fe414e82de1b0254307b40131afc99f410a1
parent46c704d77f785974ce095b6cf0c71b92d1b06706
[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