[media] em28xx-audio: split URB initialization code
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 13:10:34 +0000 (10:10 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 13:57:05 +0000 (11:57 -0200)
commit966f4163751b456f526a0b0dc8e6a9814df6abd9
tree49f562029cba0fafb11e112fa45ffa03aaa1c49d
parent34906633faa69d523c032f37036b0bda6232268d
[media] em28xx-audio: split URB initialization code

The URB calculus code may eventually be moved to some other
place, like at pcm open, if it ends by needing more setups, like
working with different bit rates, or different audio latency.

So, move it into a separate routine. That also makes the code
more readable.

No functional changes.

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