From: Vladimir Yakovlev <vovchkir@xxxxxxxxx> Remove double setting flag 'CODA_BIT_STREAM_END_FLAG' and corresponding write to the coda's register. The flag is already set when system calls v4l2 function stop_streaming()->..-<coda_bit_stream_end_flag(). And this was the second write of this flag. Co-developed-by: Sergey Khimich <serghox@xxxxxxxxx> Signed-off-by: Sergey Khimich <serghox@xxxxxxxxx> Signed-off-by: Vladimir Yakovlev <vovchkir@xxxxxxxxx> --- drivers/media/platform/chips-media/coda/coda-bit.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/media/platform/chips-media/coda/coda-bit.c b/drivers/media/platform/chips-media/coda/coda-bit.c index 515eb8be4b86..05d62c7bc692 100644 --- a/drivers/media/platform/chips-media/coda/coda-bit.c +++ b/drivers/media/platform/chips-media/coda/coda-bit.c @@ -1611,13 +1611,6 @@ static int coda_prepare_encode(struct coda_ctx *ctx) coda_write(dev, pic_stream_buffer_size / 1024, CODA_CMD_ENC_PIC_BB_SIZE); - if (!ctx->streamon_out) { - /* After streamoff on the output side, set stream end flag */ - ctx->bit_stream_param |= CODA_BIT_STREAM_END_FLAG; - coda_write(dev, ctx->bit_stream_param, - CODA_REG_BIT_BIT_STREAM_PARAM); - } - if (dev->devtype->product != CODA_DX6) coda_write(dev, ctx->iram_info.axi_sram_use, CODA7_REG_BIT_AXI_SRAM_USE); -- 2.30.2