Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76591
b: refs/heads/master
c: e21a5c6
h: refs/heads/master
i:
  76589: f815230
  76587: 3d58287
  76583: 336f937
  76575: 7aca00f
v: v3
  • Loading branch information
Jelle Foks authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 52ab58d commit 2060e27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9e54e0c84da869ad9bc372fb4eab26d558dbfc2
refs/heads/master: e21a5c68deab7cd300e8502488f844f77e0f26d0
8 changes: 0 additions & 8 deletions trunk/drivers/media/video/cx88/cx88-blackbird.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,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;
Expand All @@ -565,15 +563,13 @@ 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? */
cx_write(MO_VBOS_CONTROL, 0x84A00); /* no 656 mode, 8-bit pixels, disable VBI */
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,
Expand All @@ -584,7 +580,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;
}

Expand Down Expand Up @@ -616,9 +611,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);

Expand All @@ -630,7 +623,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;
Expand Down

0 comments on commit 2060e27

Please sign in to comment.