Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106721
b: refs/heads/master
c: 52ce27b
h: refs/heads/master
i:
  106719: ec60e3d
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Jul 26, 2008
1 parent a1a3f57 commit 5f972df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 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: ecda5966c90746a044ff68e78b1062adcddd9664
refs/heads/master: 52ce27bfc4d302a3e28267a5820a8b031ceccee9
18 changes: 16 additions & 2 deletions trunk/drivers/media/video/cx23885/cx23885-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,21 @@ static int cx23885_start_dma(struct cx23885_tsport *port,
cx_write(port->reg_gpcnt_ctl, 3);
q->count = 1;

if (cx23885_boards[dev->board].portb & CX23885_MPEG_ENCODER) {
/* Set VIDB pins to input */
if (cx23885_boards[dev->board].portb == CX23885_MPEG_DVB) {
reg = cx_read(PAD_CTRL);
reg &= ~0x3; /* Clear TS1_OE & TS1_SOP_OE */
cx_write(PAD_CTRL, reg);
}

/* Set VIDC pins to input */
if (cx23885_boards[dev->board].portc == CX23885_MPEG_DVB) {
reg = cx_read(PAD_CTRL);
reg &= ~0x4; /* Clear TS2_SOP_OE */
cx_write(PAD_CTRL, reg);
}

if (cx23885_boards[dev->board].portb == CX23885_MPEG_ENCODER) {

reg = cx_read(PAD_CTRL);
reg = reg & ~0x1; /* Clear TS1_OE */
Expand Down Expand Up @@ -1134,7 +1148,7 @@ static int cx23885_stop_dma(struct cx23885_tsport *port)
cx_clear(port->reg_ts_int_msk, port->ts_int_msk_val);
cx_clear(port->reg_dma_ctl, port->dma_ctl_val);

if (cx23885_boards[dev->board].portb & CX23885_MPEG_ENCODER) {
if (cx23885_boards[dev->board].portb == CX23885_MPEG_ENCODER) {

reg = cx_read(PAD_CTRL);

Expand Down

0 comments on commit 5f972df

Please sign in to comment.