Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a461e0ad authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab
Browse files

[media] cx23885: Stop the risc video fifo before reconfiguring it



Safety reasons. We shouldn't be trying to reconfigure a risc
processor instruction queue unless it's stopped.

Signed-off-by: default avatarSteven Toth <stoth@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 19696f09
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);