[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250314152939.2759573-11-serghox@gmail.com>
Date: Fri, 14 Mar 2025 18:29:31 +0300
From: Sergey Khimich <serghox@...il.com>
To: linux-media@...r.kernel.org
Cc: Philipp Zabel <p.zabel@...gutronix.de>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-kernel@...r.kernel.org,
Vladimir Yakovlev <vovchkir@...il.com>,
Maksim Turok <turok.m7@...il.com>
Subject: [PATCH 10/18] media: coda: Remove double setting of stop flag
From: Vladimir Yakovlev <vovchkir@...il.com>
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@...il.com>
Signed-off-by: Sergey Khimich <serghox@...il.com>
Signed-off-by: Vladimir Yakovlev <vovchkir@...il.com>
---
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
Powered by blists - more mailing lists