]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: stm32: dcmi: continuous mode capture in JPEG
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 11:34:36 +0000 (12:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:33 +0000 (01:05 +0100)
Overall cleanup done allows to now have the JPEG handling
done in the same way as other formats in continuous mode,
allowing to achieve a faster framerate in all resolutions.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/st/stm32/stm32-dcmi.c

index 6ca0ffcd97a337bd97b51524868c99993201ad43..97683daf179d5390ba2ebfab5abaa92ecf7a088a 100644 (file)
@@ -717,10 +717,6 @@ static int dcmi_start_streaming(struct vb2_queue *vq, unsigned int count)
        if (dcmi->do_crop)
                dcmi_set_crop(dcmi);
 
-       /* Enable jpeg capture */
-       if (dcmi->sd_format->fourcc == V4L2_PIX_FMT_JPEG)
-               reg_set(dcmi->regs, DCMI_CR, CR_CM);/* Snapshot mode */
-
        /* Enable dcmi */
        reg_set(dcmi->regs, DCMI_CR, CR_ENABLE);