MLK-19514-2: ISI: use ping-pong buffer of ISI
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 4 Sep 2018 10:05:38 +0000 (18:05 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
1. Use ping-pong buffer of isi.
2. Add multi-plane support for m2m out queue. When
V4L2 m2m device support multi-plane, it should be
applied for both input and output, so add it.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-core.h

index 4af8876..9fc820e 100644 (file)
@@ -249,6 +249,9 @@ struct mxc_isi_m2m_dev {
        struct mxc_isi_ctrls    ctrls;
 
        unsigned int read_done;
+       unsigned int frame_count;
+
+       struct list_head                out_active;
 
        u8 alpha;
 };