Skip to content

Commit

Permalink
[media] cx23885: Stop the risc video fifo before reconfiguring it
Browse files Browse the repository at this point in the history
Safety reasons. We shouldn't be trying to reconfigure a risc
processor instruction queue unless it's stopped.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 14, 2011
1 parent 19696f0 commit a461e0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/video/cx23885/cx23885-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ static int cx23885_start_video_dma(struct cx23885_dev *dev,
{
dprintk(1, "%s()\n", __func__);

/* Stop the dma/fifo before we tamper with it's risc programs */
cx_clear(VID_A_DMA_CTL, 0x11);

/* setup fifo + format */
cx23885_sram_channel_setup(dev, &dev->sram_channels[SRAM_CH01],
buf->bpl, buf->risc.dma);
Expand Down

0 comments on commit a461e0a

Please sign in to comment.