summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-27 00:28:57 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-10 06:06:20 -0200
commit5022a2088687baeda87b03889d0791b1b908266b (patch)
tree82c9f3366c55aee1bd5e29b88c84d2132489199e /drivers/media/usb/em28xx/em28xx.h
parent2276bf70a7433c2afec541257eab28a43ed6c9cf (diff)
downloadtalos-op-linux-5022a2088687baeda87b03889d0791b1b908266b.tar.gz
talos-op-linux-5022a2088687baeda87b03889d0791b1b908266b.zip
[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>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index b792f2225abd..b0aa8497c1a9 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -186,6 +186,9 @@
/* time in msecs to wait for i2c writes to finish */
#define EM2800_I2C_XFER_TIMEOUT 20
+/* time in msecs to wait for AC97 xfers to finish */
+#define EM28XX_AC97_XFER_TIMEOUT 100
+
/* max. number of button state polling addresses */
#define EM28XX_NUM_BUTTON_ADDRESSES_MAX 5
OpenPOWER on IntegriCloud