summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-blackbird.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-05-21 13:46:06 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-05-21 13:46:06 -0400
commitdf59e1e030bc294f3e1a9bc01b03361e34b5c013 (patch)
treebf10e2c39cf0198e287b092f900409ed71ac3cf9 /linux/drivers/media/video/cx88/cx88-blackbird.c
parenta612e95a5cbca2eaf13c50b9f3900636c166727c (diff)
downloadmediapointer-dvb-s2-df59e1e030bc294f3e1a9bc01b03361e34b5c013.tar.gz
mediapointer-dvb-s2-df59e1e030bc294f3e1a9bc01b03361e34b5c013.tar.bz2
cx88-blackbird: remove unnecessary msleep()'s
From: Jelle Foks <jelle@foks.8m.com> Remove the unnecessary msleep()'s in cx88-blackbird.c Signed-off-by: Jelle Foks <jelle@foks.8m.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-blackbird.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c
index 8690cad13..f0a49f24c 100644
--- a/linux/drivers/media/video/cx88/cx88-blackbird.c
+++ b/linux/drivers/media/video/cx88/cx88-blackbird.c
@@ -551,9 +551,7 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev)
/* ping was not successful, reset and upload firmware */
cx_write(MO_SRST_IO, 0); /* SYS_RSTO=0 */
- msleep(1);
cx_write(MO_SRST_IO, 1); /* SYS_RSTO=1 */
- msleep(1);
retval = blackbird_load_firmware(dev);
if (retval < 0)
return retval;
@@ -575,7 +573,6 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev)
}
dprintk(0, "Firmware version is 0x%08x\n", version);
}
- msleep(1);
cx_write(MO_PINMUX_IO, 0x88); /* 656-8bit IO and enable MPEG parallel IO */
cx_clear(MO_INPUT_FORMAT, 0x100); /* chroma subcarrier lock to normal? */
@@ -583,7 +580,6 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev)
cx_clear(MO_OUTPUT_FORMAT, 0x0008); /* Normal Y-limits to let the mpeg encoder sync */
blackbird_codec_settings(dev);
- msleep(1);
blackbird_api_cmd(dev, CX2341X_ENC_SET_NUM_VSYNC_LINES, 2, 0,
BLACKBIRD_FIELD1_SAA7115,
@@ -594,7 +590,6 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev)
BLACKBIRD_CUSTOM_EXTENSION_USR_DATA,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- msleep(1);
return 0;
}
@@ -626,9 +621,7 @@ static int blackbird_start_codec(struct file *file, void *priv)
cx_clear(AUD_VOL_CTL, (1 << 6));
blackbird_api_cmd(dev, CX2341X_ENC_MUTE_VIDEO, 1, 0, BLACKBIRD_UNMUTE);
- msleep(1);
blackbird_api_cmd(dev, CX2341X_ENC_MUTE_AUDIO, 1, 0, BLACKBIRD_UNMUTE);
- msleep(1);
blackbird_api_cmd(dev, CX2341X_ENC_REFRESH_INPUT, 0,0);
@@ -640,7 +633,6 @@ static int blackbird_start_codec(struct file *file, void *priv)
BLACKBIRD_MPEG_CAPTURE,
BLACKBIRD_RAW_BITS_NONE
);
- msleep(10);
dev->mpeg_active = 1;
return 0;