[media] em28xx: properly implement AC97 wait code
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 27 Dec 2013 03:28:57 +0000 (00:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 10 Jan 2014 08:06:20 +0000 (06:06 -0200)
commit5022a2088687baeda87b03889d0791b1b908266b
tree82c9f3366c55aee1bd5e29b88c84d2132489199e
parent2276bf70a7433c2afec541257eab28a43ed6c9cf
[media] em28xx: properly implement AC97 wait code

Instead of assuming that msleep() is precise, use a jiffies
based code to wait for AC97 to be available.

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-core.c
drivers/media/usb/em28xx/em28xx.h