meida: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Subsystems (4)
Re: [v6, 5/5] media: platform: Add Mediatek ISP P1 V4L2 device driver
In reply to Dafna HirschfeldHi, Dafna:
Thanks for your comments.
Quoted 1,289 lines · Dafna Hirschfeld
Quoted 1,277 lines · Jungo Lin
This patch adds the Mediatek ISP P1 HW control device driver. It handles the ISP HW configuration, provides interrupt handling and initializes the V4L2 device nodes and other V4L2 functions. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. It supports one media device, one sub-device and several video devices during initialization. Moreover, it also connects with sensor and seninf drivers with V4L2 async APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
Signed-off-by Jungo Lin <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Pi-Hsun Shih <[email protected]>---
Changes from v6:
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih
- Correct auto suspend timer value for suspend/resume issue
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event
- Fix KE due to no sen-inf sub-device--- drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ 9 files changed, 3377 insertions(+)create mode 100644
drivers/media/platform/mtk-isp/Kconfigcreate mode 100644drivers/media/platform/mtk-isp/isp_50/Makefilecreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/Makefilecreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.ccreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.hcreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.hcreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.hcreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.ccreate mode 100644drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.hdrivers/media/platform/mtk-isp/Kconfig new file +20
-0@@ -0,0 +1,20 @@ +config VIDEO_MEDIATEK_ISP_PASS1 + tristate "Mediatek ISP Pass 1 driver" + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API + depends on ARCH_MEDIATEK + select V4L2_FWNODE + select VIDEOBUF2_VMALLOC + select VIDEOBUF2_DMA_CONTIG + select MTK_SCP + default n + help + Pass 1 driver controls 3A (auto-focus, exposure, + and white balance) with tuning feature and outputs + the captured image buffers in Mediatek's camera system. + + Choose Y if you want to use Mediatek SoCs to create image + captured application such as video recording and still image + capturing. + + To compile this driver as a module, choose M here; the module + will be called mtk-cam-isp.drivers/media/platform/mtk-isp/isp_50/Makefile new file +3
-0@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_VIDEO_MEDIATEK_ISP_PASS1) += cam/drivers/media/platform/mtk-isp/isp_50/cam/Makefile new file +6
-0@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 + +mtk-cam-isp-objs += mtk_cam.o +mtk-cam-isp-objs += mtk_cam-hw.o + +obj-$(CONFIG_VIDEO_MEDIATEK_ISP_PASS1) += mtk-cam-isp.odrivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c new file +636
-0@@ -0,0 +1,636 @@ +// SPDX-License-Identifier: GPL-2.0 +// +// Copyright (c) 2019 MediaTek Inc. + +#include <linux/atomic.h> +#include <linux/clk.h> +#include <linux/interrupt.h> +#include <linux/iopoll.h> +#include <linux/of_platform.h> +#include <linux/of_irq.h> +#include <linux/module.h> +#include <linux/remoteproc/mtk_scp.h> +#include <linux/pm_runtime.h> +#include <linux/remoteproc.h> +#include <linux/sched.h> +#include <linux/spinlock.h> +#include <linux/types.h> +#include <linux/videodev2.h> +#include <linux/vmalloc.h> + +#include <media/v4l2-event.h> + +#include "mtk_cam.h" +#include "mtk_cam-hw.h" +#include "mtk_cam-regs.h" + +#define MTK_ISP_COMPOSER_MEM_SIZE 0x200000 +#define MTK_ISP_CQ_BUFFER_COUNT 3 +#define MTK_ISP_CQ_ADDRESS_OFFSET 0x640 + +/* +* +* MTK Camera ISP P1 HW supports 3 ISP HW (CAM A/B/C). +* The T-put capability of CAM B is the maximum (max line buffer: 5376 pixels) +* For CAM A/C, it only supports max line buffer with 3328 pixels. +* In current driver, only supports CAM B. +* +*/ +#define MTK_ISP_CAM_ID_B 3 +#define MTK_ISP_AUTOSUSPEND_DELAY_MS 66 +#define MTK_ISP_IPI_SEND_TIMEOUT 1000 +#define MTK_ISP_STOP_HW_TIMEOUT (33 * USEC_PER_MSEC) + +static void isp_tx_frame_worker (struct work_struct *work) +{ +struct mtk_cam_dev_request *req = + container_of(work, struct mtk_cam_dev_request, frame_work); +struct mtk_cam_dev *cam = + container_of(req->req.mdev, struct mtk_cam_dev, media_dev); +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (cam->dev); + +scp_ipi_send (p1_dev->scp,SCP_IPI_ISP_FRAME , &req->frame_params, +sizeof (req->frame_params),MTK_ISP_IPI_SEND_TIMEOUT ); +} + +static void isp_composer_handler (void *data,unsigned int len,void *priv) +{ +struct mtk_isp_p1_device *p1_dev = (struct mtk_isp_p1_device *)priv; +struct device *dev = p1_dev->dev; +struct mtk_isp_scp_p1_cmd *ipi_msg; + + ipi_msg = (struct mtk_isp_scp_p1_cmd *)data; + + if (len < offsetofend(struct mtk_isp_scp_p1_cmd, ack_info)) { +dev_err (dev,"wrong IPI len:%d\n" , len); +return ; + } + +if (ipi_msg->cmd_id !=ISP_CMD_ACK || + ipi_msg->ack_info.cmd_id !=ISP_CMD_FRAME_ACK ) +return ; + + p1_dev->composed_frame_seq_no = ipi_msg->ack_info.frame_seq_no; +dev_dbg (dev,"ack frame_num:%d\n" , p1_dev->composed_frame_seq_no); +} + +static int isp_composer_init (struct mtk_isp_p1_device *p1_dev) +{ +struct device *dev = p1_dev->dev; +int ret; + + ret =scp_ipi_register (p1_dev->scp,SCP_IPI_ISP_CMD , + isp_composer_handler, p1_dev); +if (ret) { +dev_err (dev,"failed to register IPI cmd\n" ); +return ret; + } + ret =scp_ipi_register (p1_dev->scp,SCP_IPI_ISP_FRAME , + isp_composer_handler, p1_dev); +if (ret) { +dev_err (dev,"failed to register IPI frame\n" ); + goto unreg_ipi_cmd; + } + + p1_dev->composer_wq = +alloc_ordered_workqueue (dev_name (p1_dev->dev), + __WQ_LEGACY |WQ_MEM_RECLAIM | +WQ_FREEZABLE ); +if (!p1_dev->composer_wq) { +dev_err (dev,"failed to alloc composer workqueue\n" ); + goto unreg_ipi_frame; + } + +return 0 ; + +unreg_ipi_frame: +scp_ipi_unregister (p1_dev->scp,SCP_IPI_ISP_FRAME ); +unreg_ipi_cmd: +scp_ipi_unregister (p1_dev->scp,SCP_IPI_ISP_CMD ); + +return ret; +} + +static void isp_composer_uninit (struct mtk_isp_p1_device *p1_dev) +{ +destroy_workqueue (p1_dev->composer_wq); +scp_ipi_unregister (p1_dev->scp,SCP_IPI_ISP_CMD ); +scp_ipi_unregister (p1_dev->scp,SCP_IPI_ISP_FRAME ); +} + +static void isp_composer_hw_init (struct mtk_isp_p1_device *p1_dev) +{ +struct mtk_isp_scp_p1_cmd composer_tx_cmd; + +memset (&composer_tx_cmd,0 ,sizeof (composer_tx_cmd)); + composer_tx_cmd.cmd_id =ISP_CMD_INIT ; + composer_tx_cmd.init_param.hw_module =MTK_ISP_CAM_ID_B ; + +/* +* Passed coherent reserved memory info. for SCP firmware usage. +* This buffer is used for SCP's ISP composer to compose. +* The size of is fixed to 0x200000 for the requirement of composer. +*/ + composer_tx_cmd.init_param.cq_addr.iova = p1_dev->composer_iova; + composer_tx_cmd.init_param.cq_addr.scp_addr = p1_dev->composer_scp_addr; + +scp_ipi_send (p1_dev->scp,SCP_IPI_ISP_CMD , &composer_tx_cmd, +sizeof (composer_tx_cmd),MTK_ISP_IPI_SEND_TIMEOUT ); +} + +static void isp_composer_hw_deinit (struct mtk_isp_p1_device *p1_dev) +{ +struct mtk_isp_scp_p1_cmd composer_tx_cmd; + +memset (&composer_tx_cmd,0 ,sizeof (composer_tx_cmd)); + composer_tx_cmd.cmd_id =ISP_CMD_DEINIT ; + +scp_ipi_send (p1_dev->scp,SCP_IPI_ISP_CMD , &composer_tx_cmd, +sizeof (composer_tx_cmd),MTK_ISP_IPI_SEND_TIMEOUT ); + +isp_composer_uninit (p1_dev); +} + +void mtk_isp_hw_config (struct mtk_cam_dev *cam, +struct p1_config_param *config_param) +{ +struct mtk_isp_scp_p1_cmd composer_tx_cmd; +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (cam->dev); + +memset (&composer_tx_cmd,0 ,sizeof (composer_tx_cmd)); + composer_tx_cmd.cmd_id =ISP_CMD_CONFIG ; +memcpy (&composer_tx_cmd.config_param, config_param, +sizeof (*config_param)); + +scp_ipi_send (p1_dev->scp,SCP_IPI_ISP_CMD , &composer_tx_cmd, +sizeof (composer_tx_cmd),MTK_ISP_IPI_SEND_TIMEOUT ); +} + +void mtk_isp_stream (struct mtk_cam_dev *cam,int on) +{ +struct mtk_isp_scp_p1_cmd composer_tx_cmd; +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (cam->dev); + +memset (&composer_tx_cmd,0 ,sizeof (composer_tx_cmd)); + composer_tx_cmd.cmd_id =ISP_CMD_STREAM ; + composer_tx_cmd.is_stream_on = on; + +scp_ipi_send (p1_dev->scp,SCP_IPI_ISP_CMD , &composer_tx_cmd, +sizeof (composer_tx_cmd),MTK_ISP_IPI_SEND_TIMEOUT ); +} + +int mtk_isp_hw_init (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); +int ret; + + ret =rproc_boot (p1_dev->rproc_handle); +if (ret) { +dev_err (dev,"failed to rproc_boot\n" ); +return ret; + } + + ret =isp_composer_init (p1_dev); +if (ret) +return ret; + +pm_runtime_get_sync (dev); +isp_composer_hw_init (p1_dev); + + p1_dev->enqueued_frame_seq_no =0 ; + p1_dev->dequeued_frame_seq_no =0 ; + p1_dev->composed_frame_seq_no =0 ; + p1_dev->sof_count =0 ; + +dev_dbg (dev,"%s done\n" , __func__); + +return 0 ; +} + +int mtk_isp_hw_release (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); + +isp_composer_hw_deinit (p1_dev); +pm_runtime_mark_last_busy (dev); +pm_runtime_put_autosuspend (dev); +rproc_shutdown (p1_dev->rproc_handle); + +dev_dbg (dev,"%s done\n" , __func__); + +return 0 ; +} + +void mtk_isp_req_enqueue (struct mtk_cam_dev *cam, +struct mtk_cam_dev_request *req) +{ +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (cam->dev); + +/* Accumulated frame sequence number */ + req->frame_params.frame_seq_no = ++p1_dev->enqueued_frame_seq_no; + +INIT_WORK (&req->frame_work, isp_tx_frame_worker); +queue_work (p1_dev->composer_wq, &req->frame_work); +dev_dbg (cam->dev,"enqueue fd:%s frame_seq_no:%d job cnt:%d\n" , + req->req.debug_str, req->frame_params.frame_seq_no, + cam->running_job_count); +} + +static void isp_irq_handle_sof (struct mtk_isp_p1_device *p1_dev, +unsigned int dequeued_frame_seq_no) +{ +dma_addr_t base_addr = p1_dev->composer_iova; +struct device *dev = p1_dev->dev; +struct mtk_cam_dev_request *req; +int composed_frame_seq_no = p1_dev->composed_frame_seq_no; +unsigned int addr_offset; + +/* Send V4L2_EVENT_FRAME_SYNC event */ +mtk_cam_dev_event_frame_sync (&p1_dev->cam_dev, dequeued_frame_seq_no); + + p1_dev->sof_count +=1 ; +/* Save frame information */ + p1_dev->dequeued_frame_seq_no = dequeued_frame_seq_no; + + req =mtk_cam_dev_get_req (&p1_dev->cam_dev, dequeued_frame_seq_no); +if (req) + req->timestamp =ktime_get_boottime_ns (); + +/* Update CQ base address if needed */ +if (composed_frame_seq_no <= dequeued_frame_seq_no) { +dev_dbg (dev, +"SOF_INT_ST, no update, cq_num:%d, frame_seq:%d\n" , + composed_frame_seq_no, dequeued_frame_seq_no); +return ; + } + addr_offset =MTK_ISP_CQ_ADDRESS_OFFSET * + (dequeued_frame_seq_no %MTK_ISP_CQ_BUFFER_COUNT ); +writel (base_addr + addr_offset, p1_dev->regs +REG_CQ_THR0_BASEADDR ); +dev_dbg (dev, +"SOF_INT_ST, update next, cq_num:%d, frame_seq:%d cq_addr:0x%x\n" , + composed_frame_seq_no, dequeued_frame_seq_no, addr_offset); +} + +static void isp_irq_handle_dma_err (struct mtk_isp_p1_device *p1_dev) +{ +u32 val; + +dev_err (p1_dev->dev, +"IMGO:0x%x, RRZO:0x%x, AAO=0x%x, AFO=0x%x, LMVO=0x%x\n" , +readl (p1_dev->regs +REG_IMGO_ERR_STAT ), +readl (p1_dev->regs +REG_RRZO_ERR_STAT ), +readl (p1_dev->regs +REG_AAO_ERR_STAT ), +readl (p1_dev->regs +REG_AFO_ERR_STAT ), +readl (p1_dev->regs +REG_LMVO_ERR_STAT )); +dev_err (p1_dev->dev, +"LCSO=0x%x, PSO=0x%x, FLKO=0x%x, BPCI:0x%x, LSCI=0x%x\n" , +readl (p1_dev->regs +REG_LCSO_ERR_STAT ), +readl (p1_dev->regs +REG_PSO_ERR_STAT ), +readl (p1_dev->regs +REG_FLKO_ERR_STAT ), +readl (p1_dev->regs +REG_BPCI_ERR_STAT ), +readl (p1_dev->regs +REG_LSCI_ERR_STAT )); + +/* Disable DMA error mask to avoid too much error log */ + val =readl (p1_dev->regs +REG_CTL_RAW_INT_EN ); +writel ((val & (~DMA_ERR_INT_EN )), p1_dev->regs +REG_CTL_RAW_INT_EN ); +dev_dbg (p1_dev->dev,"disable DMA error mask:0x%x\n" , val); +} + +static irqreturn_t isp_irq_cam (int irq,void *data) +{ +struct mtk_isp_p1_device *p1_dev = (struct mtk_isp_p1_device *)data; +struct device *dev = p1_dev->dev; +unsigned int dequeued_frame_seq_no; +unsigned int irq_status, err_status, dma_status; +unsigned long flags; + +spin_lock_irqsave (&p1_dev->spinlock_irq, flags); + irq_status =readl (p1_dev->regs +REG_CTL_RAW_INT_STAT ); + err_status = irq_status &INT_ST_MASK_CAM_ERR ; + dma_status =readl (p1_dev->regs +REG_CTL_RAW_INT2_STAT ); + dequeued_frame_seq_no =readl (p1_dev->regs +REG_FRAME_SEQ_NUM ); +spin_unlock_irqrestore (&p1_dev->spinlock_irq, flags); + +/* +* In normal case, the next SOF ISR should come after HW PASS1 DONE ISR. +* If these two ISRs come together, print warning msg to hint. +*/ +if ((irq_status &SOF_INT_ST ) && (irq_status &HW_PASS1_DON_ST )) +dev_dbg (dev,"sof_done block cnt:%d\n" , p1_dev->sof_count); + +/* De-queue frame */ +if (irq_status &SW_PASS1_DON_ST ) { +mtk_cam_dev_dequeue_req_frame (&p1_dev->cam_dev, + p1_dev->dequeued_frame_seq_no); +mtk_cam_dev_req_try_queue (&p1_dev->cam_dev); + } + +/* Save frame info. & update CQ address for frame HW en-queue */ +if (irq_status &SOF_INT_ST ) +isp_irq_handle_sof (p1_dev, dequeued_frame_seq_no); + +/* Check ISP error status */ +if (err_status) { +dev_err (dev,"int_err:0x%x 0x%x\n" , irq_status, err_status); +/* Show DMA errors in detail */ +if (err_status &DMA_ERR_ST ) +isp_irq_handle_dma_err (p1_dev); + } + +dev_dbg (dev,"SOF:%d irq:0x%x, dma:0x%x, frame_num:%d\n" , + p1_dev->sof_count, irq_status, dma_status, + dequeued_frame_seq_no); + +return IRQ_HANDLED ; +} + +static int isp_setup_scp_rproc (struct mtk_isp_p1_device *p1_dev, +struct platform_device *pdev) +{ +struct device *dev = p1_dev->dev; +dma_addr_t addr; +void *ptr; +int ret; + + p1_dev->scp =scp_get (pdev); +if (!p1_dev->scp) { +dev_err (dev,"failed to get scp device\n" ); +return -ENODEV ; + } + + p1_dev->rproc_handle =scp_get_rproc (p1_dev->scp); +dev_dbg (dev,"p1 rproc_phandle: 0x%pK\n" , p1_dev->rproc_handle); + p1_dev->cam_dev.smem_dev =scp_get_device (p1_dev->scp); + +/* +* Allocate coherent reserved memory for SCP firmware usage. +* The size of SCP composer's memory is fixed to 0x200000 +* for the requirement of firmware. +*/ + ptr =dma_alloc_coherent (p1_dev->cam_dev.smem_dev, +MTK_ISP_COMPOSER_MEM_SIZE , &addr,GFP_KERNEL ); +if (!ptr) { + ret = -ENOMEM ; + goto fail_put_scp; + } + + p1_dev->composer_scp_addr = addr; + p1_dev->composer_virt_addr = ptr; +dev_dbg (dev,"scp addr:%pad va:%pK\n" , &addr, ptr); + +/* +* This reserved memory is also be used by ISP P1 HW. +* Need to get iova address for ISP P1 DMA. +*/ + addr =dma_map_resource (dev, addr,MTK_ISP_COMPOSER_MEM_SIZE , +DMA_TO_DEVICE ,DMA_ATTR_SKIP_CPU_SYNC ); +if (dma_mapping_error (dev, addr)) { +dev_err (dev,"failed to map scp iova\n" ); + ret = -ENOMEM ; + goto fail_free_mem; + } + p1_dev->composer_iova = addr; +dev_dbg (dev,"scp iova addr:%pad\n" , &addr); + +return 0 ; + +fail_free_mem: +dma_free_coherent (p1_dev->cam_dev.smem_dev,MTK_ISP_COMPOSER_MEM_SIZE , + p1_dev->composer_virt_addr, + p1_dev->composer_scp_addr); + p1_dev->composer_scp_addr =0 ; +fail_put_scp: +scp_put (p1_dev->scp); + +return ret; +} + +static void isp_teardown_scp_rproc (struct mtk_isp_p1_device *p1_dev) +{ +dma_free_coherent (p1_dev->cam_dev.smem_dev,MTK_ISP_COMPOSER_MEM_SIZE , + p1_dev->composer_virt_addr, + p1_dev->composer_scp_addr); + p1_dev->composer_scp_addr =0 ; +scp_put (p1_dev->scp); +} + +static int mtk_isp_pm_suspend (struct device *dev) +{ +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); +u32 val; +int ret; + +dev_dbg (dev,"- %s\n" , __func__); + +if (pm_runtime_suspended (dev)) +return 0 ; + +/* Disable ISP's view finder and wait for TG idle if possible */ +dev_dbg (dev,"cam suspend, disable VF\n" ); + val =readl (p1_dev->regs +REG_TG_VF_CON ); +writel (val & (~TG_VF_CON_VFDATA_EN ), p1_dev->regs +REG_TG_VF_CON ); +readl_poll_timeout_atomic (p1_dev->regs +REG_TG_INTER_ST , val, + (val &TG_CS_MASK ) ==TG_IDLE_ST , +USEC_PER_MSEC ,MTK_ISP_STOP_HW_TIMEOUT ); + +/* Disable CMOS */ + val =readl (p1_dev->regs +REG_TG_SEN_MODE ); +writel (val & (~TG_SEN_MODE_CMOS_EN ), p1_dev->regs +REG_TG_SEN_MODE ); + +/* Force ISP HW to idle */ + ret =pm_runtime_force_suspend (dev); +if (ret) { +dev_err (dev,"failed to force suspend:%d\n" , ret); + goto reenable_hw; + } + +return 0 ; + +reenable_hw: + val =readl (p1_dev->regs +REG_TG_SEN_MODE ); +writel (val |TG_SEN_MODE_CMOS_EN , p1_dev->regs +REG_TG_SEN_MODE ); + val =readl (p1_dev->regs +REG_TG_VF_CON ); +writel (val |TG_VF_CON_VFDATA_EN , p1_dev->regs +REG_TG_VF_CON ); + +return ret; +} + +static int mtk_isp_pm_resume (struct device *dev) +{ +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); +u32 val; +int ret; + +dev_dbg (dev,"- %s\n" , __func__); + +if (pm_runtime_suspended (dev)) +return 0 ; + +/* Force ISP HW to resume */ + ret =pm_runtime_force_resume (dev); +if (ret) +return ret; + +/* Enable CMOS */ +dev_dbg (dev,"cam resume, enable CMOS/VF\n" ); + val =readl (p1_dev->regs +REG_TG_SEN_MODE ); +writel (val |TG_SEN_MODE_CMOS_EN , p1_dev->regs +REG_TG_SEN_MODE ); + +/* Enable VF */ + val =readl (p1_dev->regs +REG_TG_VF_CON ); +writel (val |TG_VF_CON_VFDATA_EN , p1_dev->regs +REG_TG_VF_CON ); + +return 0 ; +} + +static int mtk_isp_runtime_suspend (struct device *dev) +{ +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); + +dev_dbg (dev,"%s:disable clock\n" , __func__); +clk_bulk_disable_unprepare (p1_dev->num_clks, p1_dev->clks); + +return 0 ; +} + +static int mtk_isp_runtime_resume (struct device *dev) +{ +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); +int ret; + +dev_dbg (dev,"%s:enable clock\n" , __func__); + ret =clk_bulk_prepare_enable (p1_dev->num_clks, p1_dev->clks); +if (ret) { +dev_err (dev,"failed to enable clock:%d\n" , ret); +return ret; + } + +return 0 ; +} + +static int mtk_isp_probe (struct platform_device *pdev) +{ +/* List of clocks required by isp cam */ +static const char *const clk_names[] = { +"camsys_cam_cgpdn" ,"camsys_camtg_cgpdn" + }; +struct mtk_isp_p1_device *p1_dev; +struct device *dev = &pdev->dev; +struct resource *res; +int irq, ret, i; + + p1_dev =devm_kzalloc (dev,sizeof (*p1_dev),GFP_KERNEL ); +if (!p1_dev) +return -ENOMEM ; + + p1_dev->dev = dev; +dev_set_drvdata (dev, p1_dev); + +/* +* Now only support single CAM with CAM B. +* Get CAM B register base with CAM B index. +* Support multiple CAMs in future. +*/ + res =platform_get_resource (pdev,IORESOURCE_MEM ,MTK_ISP_CAM_ID_B ); + p1_dev->regs =devm_ioremap_resource (dev, res); +if (IS_ERR (p1_dev->regs)) { +dev_err (dev,"failed to map reister base\n" ); +return PTR_ERR (p1_dev->regs); + } +dev_dbg (dev,"cam, map_addr=0x%pK\n" , p1_dev->regs); + +/* +* The cam_sys unit only supports reg., but has no IRQ support. +* The reg. & IRQ index is shifted with 1 for CAM B in DTS. +*/ + irq =platform_get_irq (pdev,MTK_ISP_CAM_ID_B -1 ); +if (!irq) { +dev_err (dev,"failed to get irq\n" ); +return -ENODEV ; + } + ret =devm_request_irq (dev, irq, isp_irq_cam,0 ,dev_name (dev), + p1_dev); +if (ret) { +dev_err (dev,"failed to request irq=%d\n" , irq); +return ret; + } +dev_dbg (dev,"registered irq=%d\n" , irq); +spin_lock_init (&p1_dev->spinlock_irq); + + p1_dev->num_clks =ARRAY_SIZE (clk_names); + p1_dev->clks =devm_kcalloc (dev, p1_dev->num_clks, +sizeof (*p1_dev->clks),GFP_KERNEL ); +if (!p1_dev->clks) +return -ENOMEM ; + +for (i =0 ; i < p1_dev->num_clks; ++i) + p1_dev->clks[i].id = clk_names[i]; + + ret =devm_clk_bulk_get (dev, p1_dev->num_clks, p1_dev->clks); +if (ret) { +dev_err (dev,"failed to get isp cam clock:%d\n" , ret); +return ret; + } + + ret =isp_setup_scp_rproc (p1_dev, pdev); +if (ret) +return ret; + +pm_runtime_set_autosuspend_delay (dev,MTK_ISP_AUTOSUSPEND_DELAY_MS ); +pm_runtime_use_autosuspend (dev); +pm_runtime_enable (dev); + +/* Initialize the v4l2 common part */ + ret =mtk_cam_dev_init (pdev, &p1_dev->cam_dev); +if (ret) { +isp_teardown_scp_rproc (p1_dev); +return ret; + } + +return 0 ; +} + +static int mtk_isp_remove (struct platform_device *pdev) +{ +struct device *dev = &pdev->dev; +struct mtk_isp_p1_device *p1_dev =dev_get_drvdata (dev); + +mtk_cam_dev_cleanup (&p1_dev->cam_dev); +pm_runtime_dont_use_autosuspend (dev); +pm_runtime_disable (dev); +dma_unmap_page_attrs (dev, p1_dev->composer_iova, +MTK_ISP_COMPOSER_MEM_SIZE ,DMA_TO_DEVICE , +DMA_ATTR_SKIP_CPU_SYNC ); +isp_teardown_scp_rproc (p1_dev); + +return 0 ; +} + +static const struct dev_pm_ops mtk_isp_pm_ops = { + SET_SYSTEM_SLEEP_PM_OPS(mtk_isp_pm_suspend, mtk_isp_pm_resume) +SET_RUNTIME_PM_OPS (mtk_isp_runtime_suspend, mtk_isp_runtime_resume, +NULL ) +}; + +static const struct of_device_id mtk_isp_of_ids[] = { + {.compatible ="mediatek,mt8183-camisp" ,}, + {} +}; +MODULE_DEVICE_TABLE (of, mtk_isp_of_ids); + +static struct platform_driver mtk_isp_driver = { + .probe = mtk_isp_probe, + .remove = mtk_isp_remove, + .driver = { + .name ="mtk-cam-p1" , + .of_match_table =of_match_ptr (mtk_isp_of_ids), + .pm = &mtk_isp_pm_ops, + } +}; + +module_platform_driver (mtk_isp_driver); + +MODULE_DESCRIPTION ("Mediatek ISP P1 driver" ); +MODULE_LICENSE ("GPL v2" );drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h new file +64
-0@@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2019 MediaTek Inc. +*/ + +#ifndef __MTK_CAM_HW_H__ +#define __MTK_CAM_HW_H__ + +#include <linux/types.h> + +#include "mtk_cam.h" +#include "mtk_cam-ipi.h" + +/* +* struct mtk_isp_p1_device - the Mediatek ISP P1 device information +* +* @dev: Pointer to device. +* @scp_pdev: Pointer to SCP platform device. +* @rproc_handle: Pointer to new remoteproc instance. +* @cam_dev: Embedded struct cam_dev +* @regs: Camera ISP HW base register address +* @num_clks: The number of driver's clocks +* @clks: The clock data array +* @spinlock_irq: Used to protect register read/write data +* @enqueued_frame_seq_no: Frame sequence number of enqueued frame +* @dequeued_frame_seq_no: Frame sequence number of dequeued frame +* @composed_frame_seq_no: Frame sequence number of composed frame +* @timestamp: Frame timestamp in ns +* @sof_count: SOF counter +* @composer_wq: The work queue for frame request composing +* @composer_scp_addr: SCP address of ISP composer memory +* @composer_iova: DMA address of ISP composer memory +* @virt_addr: Virtual address of ISP composer memory +* +*/ +struct mtk_isp_p1_device { +struct device *dev; +struct mtk_scp *scp; +struct rproc *rproc_handle; +struct mtk_cam_dev cam_dev; +void __iomem *regs; +unsigned int num_clks; +struct clk_bulk_data *clks; +/* Used to protect register read/write data */ +spinlock_t spinlock_irq; +unsigned int enqueued_frame_seq_no; +unsigned int dequeued_frame_seq_no; +unsigned int composed_frame_seq_no; +u8 sof_count; +struct workqueue_struct *composer_wq; +dma_addr_t composer_scp_addr; +dma_addr_t composer_iova; +void *composer_virt_addr; +}; + +int mtk_isp_hw_init (struct mtk_cam_dev *cam_dev); +int mtk_isp_hw_release (struct mtk_cam_dev *cam_dev); +void mtk_isp_hw_config (struct mtk_cam_dev *cam_dev, +struct p1_config_param *config_param); +void mtk_isp_stream (struct mtk_cam_dev *cam_dev,int on); +void mtk_isp_req_enqueue (struct mtk_cam_dev *cam_dev, +struct mtk_cam_dev_request *req); + +#endif /* __MTK_CAM_HW_H__ */ drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h new file +222
-0@@ -0,0 +1,222 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2019 MediaTek Inc. +*/ + +#ifndef __MTK_CAM_IPI_H__ +#define __MTK_CAM_IPI_H__ + +#include <linux/types.h> + +/* +* struct img_size - Image size information. +* +* @w: Image width, the unit is pixel +* @h: Image height, the unit is pixel +* @xsize: Bytes per line based on width. +* @stride: Bytes per line when changing line. +* Stride is based on xsize + HW constrain(byte align). +* +*/ +struct img_size { +u32 w; +u32 h; +u32 xsize; +u32 stride; +} __packed; + +/* +* struct p1_img_crop - image corp information +* +* @left: The left of crop area. +* @top: The top of crop area. +* @width: The width of crop area. +* @height: The height of crop area. +* +*/ +struct p1_img_crop { +u32 left; +u32 top; +u32 width; +u32 height; +} __packed; + +/* +* struct dma_buffer - DMA buffer address information +* +* @iova: DMA address for ISP DMA device +* @scp_addr: SCP address for external co-process unit +* +*/ +struct dma_buffer { +u32 iova; +u32 scp_addr; +} __packed; + +/* +* struct p1_img_output - ISP P1 image output information +* +* @buffer: DMA buffer address of image. +* @size: The image size configuration. +* @crop: The crop configuration. +* @pixel_bits: The bits per image pixel. +* @img_fmt: The image format. +* +*/ +struct p1_img_output { +struct dma_buffer buffer; +struct img_size size; +struct p1_img_crop crop; +u8 pixel_bits; +u32 img_fmt; +} __packed; + +/* +* struct cfg_in_param - Image input parameters structure. +* Normally, it comes from sensor information. +* +* @continuous: Indicate the sensor mode. Continuous or single shot. +* @subsample: Indicate to enables SOF subsample or not. +* @pixel_mode: Describe 1/2/4 pixels per clock cycle. +* @data_pattern: Describe input data pattern. +* @raw_pixel_id: Bayer sequence. +* @tg_fps: The fps rate of TG (time generator). +* @img_fmt: The image format of input source. +* @p1_img_crop: The crop configuration of input source. +* +*/ +struct cfg_in_param { +u8 continuous; +u8 subsample; +u8 pixel_mode; +u8 data_pattern; +u8 raw_pixel_id; +u16 tg_fps; +u32 img_fmt; +struct p1_img_crop crop; +} __packed; + +/* +* struct cfg_main_out_param - The image output parameters of main stream. +* +* @bypass: Indicate this device is enabled or disabled or not. +* @pure_raw: Indicate the image path control. +* True: pure raw +* False: processing raw +* @pure_raw_pack: Indicate the image is packed or not. +* True: packed mode +* False: unpacked mode +* @p1_img_output: The output image information. +* +*/ +struct cfg_main_out_param { +u8 bypass; +u8 pure_raw; +u8 pure_raw_pack; +struct p1_img_output output; +} __packed; + +/* +* struct cfg_resize_out_param - The image output parameters of +* packed out stream. +* +* @bypass: Indicate this device is enabled or disabled or not. +* @p1_img_output: The output image information. +* +*/ +struct cfg_resize_out_param { +u8 bypass; +struct p1_img_output output; +} __packed; + +/* +* struct p1_config_param - ISP P1 configuration parameters. +* +* @cfg_in_param: The Image input parameters. +* @cfg_main_param: The main output image parameters. +* @cfg_resize_out_param: The packed output image parameters. +* @enabled_dmas: The enabled DMA port information. +* +*/ +struct p1_config_param { +struct cfg_in_param cfg_in_param; +struct cfg_main_out_param cfg_main_param; +struct cfg_resize_out_param cfg_resize_param; +u32 enabled_dmas; +} __packed; + +/* +* struct P1_meta_frame - ISP P1 meta frame information. +* +* @enabled_dma: The enabled DMA port information. +* @vb_index: The VB2 index of meta buffer. +* @meta_addr: DMA buffer address of meta buffer. +* +*/ +struct P1_meta_frame { +u32 enabled_dma; +u32 vb_index; +struct dma_buffer meta_addr; +} __packed; + +/* +* struct isp_init_info - ISP P1 composer init information. +* +* @hw_module: The ISP Camera HW module ID. +* @cq_addr: The DMA address of composer memory. +* +*/ +struct isp_init_info { +u8 hw_module; +struct dma_buffer cq_addr; +} __packed; + +/* +* struct isp_ack_info - ISP P1 IPI command ack information. +* +* @cmd_id: The IPI command ID is acked. +* @frame_seq_no: The IPI frame sequence number is acked. +* +*/ +struct isp_ack_info { +u8 cmd_id; +u32 frame_seq_no; +} __packed; + +/* +* The IPI command enumeration. +*/ +enum mtk_isp_scp_cmds { +ISP_CMD_INIT , +ISP_CMD_CONFIG , +ISP_CMD_STREAM , +ISP_CMD_DEINIT , +ISP_CMD_ACK , +ISP_CMD_FRAME_ACK , +ISP_CMD_RESERVED , +}; + +/* +* struct mtk_isp_scp_p1_cmd - ISP P1 IPI command strcture. +* +* @cmd_id: The IPI command ID. +* @init_param: The init formation for ISP_CMD_INIT. +* @config_param: The cmd configuration for ISP_CMD_CONFIG. +* @enabled_dmas: The meta configuration information for ISP_CMD_CONFIG_META. +* @is_stream_on: The stream information for ISP_CMD_STREAM. +* @ack_info: The cmd ack. information for ISP_CMD_ACK. +* +*/ +struct mtk_isp_scp_p1_cmd { +u8 cmd_id; +union { +struct isp_init_info init_param; +struct p1_config_param config_param; +u32 enabled_dmas; +struct P1_meta_frame meta_frame; +u8 is_stream_on; +struct isp_ack_info ack_info; + }; +} __packed; + +#endif /* __MTK_CAM_IPI_H__ */ drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h new file +95
-0@@ -0,0 +1,95 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2019 MediaTek Inc. +*/ + +#ifndef __MTK_CAM_REGS_H__ +#define __MTK_CAM_REGS_H__ + +/* ISP interrupt enable */ +#define REG_CTL_RAW_INT_EN 0x0020 +#define DMA_ERR_INT_EN BIT(29) + +/* ISP interrupt status */ +#define REG_CTL_RAW_INT_STAT 0x0024 +#define VS_INT_ST BIT(0) +#define TG_ERR_ST BIT(4) +#define TG_GBERR_ST BIT(5) +#define CQ_CODE_ERR_ST BIT(6) +#define CQ_APB_ERR_ST BIT(7) +#define CQ_VS_ERR_ST BIT(8) +#define HW_PASS1_DON_ST BIT(11) +#define SOF_INT_ST BIT(12) +#define AMX_ERR_ST BIT(15) +#define RMX_ERR_ST BIT(16) +#define BMX_ERR_ST BIT(17) +#define RRZO_ERR_ST BIT(18) +#define AFO_ERR_ST BIT(19) +#define IMGO_ERR_ST BIT(20) +#define AAO_ERR_ST BIT(21) +#define PSO_ERR_ST BIT(22) +#define LCSO_ERR_ST BIT(23) +#define BNR_ERR_ST BIT(24) +#define LSCI_ERR_ST BIT(25) +#define DMA_ERR_ST BIT(29) +#define SW_PASS1_DON_ST BIT(30) + +/* ISP interrupt 2 status */ +#define REG_CTL_RAW_INT2_STAT 0x0034 +#define AFO_DONE_ST BIT(5) +#define AAO_DONE_ST BIT(7) + +/* Configures sensor mode */ +#define REG_TG_SEN_MODE 0x0230 +#define TG_SEN_MODE_CMOS_EN BIT(0) + +/* View finder mode control */ +#define REG_TG_VF_CON 0x0234 +#define TG_VF_CON_VFDATA_EN BIT(0) + +/* View finder mode control */ +#define REG_TG_INTER_ST 0x026c +#define TG_CS_MASK 0x3f00 +#define TG_IDLE_ST BIT(8) + +/* IMGO error status register */ +#define REG_IMGO_ERR_STAT 0x1360 +/* RRZO error status register */ +#define REG_RRZO_ERR_STAT 0x1364 +/* AAO error status register */ +#define REG_AAO_ERR_STAT 0x1368 +/* AFO error status register */ +#define REG_AFO_ERR_STAT 0x136c +/* LCSO error status register */ +#define REG_LCSO_ERR_STAT 0x1370 +/* BPCI error status register */ +#define REG_BPCI_ERR_STAT 0x137c +/* LSCI error status register */ +#define REG_LSCI_ERR_STAT 0x1384 +/* LMVO error status register */ +#define REG_LMVO_ERR_STAT 0x1390 +/* FLKO error status register */ +#define REG_FLKO_ERR_STAT 0x1394 +/* PSO error status register */ +#define REG_PSO_ERR_STAT 0x13a0 + +/* CQ0 base address */ +#define REG_CQ_THR0_BASEADDR 0x0198 +/* Frame sequence number */ +#define REG_FRAME_SEQ_NUM 0x13b8 + +/* IRQ Error Mask */ +#define INT_ST_MASK_CAM_ERR ( \ + TG_ERR_ST |\ + TG_GBERR_ST |\ + CQ_CODE_ERR_ST |\ + CQ_APB_ERR_ST |\ + CQ_VS_ERR_ST |\ + BNR_ERR_ST |\ + RMX_ERR_ST |\ + BMX_ERR_ST |\ + BNR_ERR_ST |\ + LSCI_ERR_ST |\ + DMA_ERR_ST) + +#endif /* __MTK_CAM_REGS_H__ */ drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c new file +136
-0@@ -0,0 +1,2087 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2019 MediaTek Inc. + +#include <linux/device.h> +#include <linux/dma-mapping.h> +#include <linux/of.h> +#include <linux/of_graph.h> +#include <linux/of_platform.h> +#include <linux/module.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <linux/videodev2.h> +#include <media/media-entity.h> +#include <media/v4l2-async.h> +#include <media/v4l2-common.h> +#include <media/v4l2-event.h> +#include <media/v4l2-fwnode.h> +#include <media/v4l2-ioctl.h> +#include <media/v4l2-mc.h> +#include <media/v4l2-subdev.h> +#include <media/videobuf2-dma-contig.h> + +#include "mtk_cam.h" +#include "mtk_cam-hw.h" + +#define R_IMGO BIT(0) +#define R_RRZO BIT(1) +#define R_AAO BIT(3) +#define R_AFO BIT(4) +#define R_LCSO BIT(5) +#define R_LMVO BIT(7) +#define R_FLKO BIT(8) +#define R_PSO BIT(10) + +#define MTK_ISP_ONE_PIXEL_MODE 1 +#define MTK_ISP_MIN_RESIZE_RATIO 6 +#define MTK_ISP_MAX_RUNNING_JOBS 3 + +#define MTK_CAM_CIO_PAD_SRC 4 +#define MTK_CAM_CIO_PAD_SINK 11 + +static inline struct mtk_cam_video_device * +file_to_mtk_cam_node (struct file *__file) +{ +return container_of (video_devdata (__file), + struct mtk_cam_video_device, vdev); +} + +static inline struct mtk_cam_video_device * +mtk_cam_vbq_to_vdev (struct vb2_queue *__vq) +{ + return container_of(__vq, struct mtk_cam_video_device, vbq); +} + +static inline struct mtk_cam_dev_request * +mtk_cam_req_to_dev_req (struct media_request *__req) +{ + return container_of(__req, struct mtk_cam_dev_request, req); +} + +static inline struct mtk_cam_dev_buffer * +mtk_cam_vb2_buf_to_dev_buf (struct vb2_buffer *__vb) +{ + return container_of(__vb, struct mtk_cam_dev_buffer, vbb.vb2_buf); +} + +static void mtk_cam_dev_job_done (struct mtk_cam_dev *cam, +struct mtk_cam_dev_request *req, +enum vb2_buffer_state state) +{ +struct media_request_object *obj, *obj_prev; +unsigned long flags; +u64 ts_eof =ktime_get_boottime_ns (); + +if (!cam->streaming) +return ; + +dev_dbg (cam->dev,"job done request:%s frame_seq:%d state:%d\n" , + req->req.debug_str, req->frame_params.frame_seq_no, state); + +list_for_each_entry_safe (obj, obj_prev, &req->req.objects, list) { +struct vb2_buffer *vb; +struct mtk_cam_dev_buffer *buf; +struct mtk_cam_video_device *node; + +if (!vb2_request_object_is_buffer (obj)) +continue ; + vb = container_of(obj, struct vb2_buffer, req_obj); + buf =mtk_cam_vb2_buf_to_dev_buf (vb); + node =mtk_cam_vbq_to_vdev (vb->vb2_queue); +spin_lock_irqsave (&node->buf_list_lock, flags); +list_del (&buf->list); +spin_unlock_irqrestore (&node->buf_list_lock, flags); + buf->vbb.sequence = req->frame_params.frame_seq_no; +if (V4L2_TYPE_IS_OUTPUT (vb->vb2_queue->type)) + vb->timestamp = ts_eof; +else + vb->timestamp = req->timestamp; +vb2_buffer_done (&buf->vbb.vb2_buf, state); + } +} + +struct mtk_cam_dev_request *mtk_cam_dev_get_req (struct mtk_cam_dev *cam, +unsigned int frame_seq_no) +{ +struct mtk_cam_dev_request *req, *req_prev; +unsigned long flags; + +spin_lock_irqsave (&cam->running_job_lock, flags); +list_for_each_entry_safe (req, req_prev, &cam->running_job_list, list) { +dev_dbg (cam->dev,"frame_seq:%d, get frame_seq:%d\n" , + req->frame_params.frame_seq_no, frame_seq_no); + +/* Match by the en-queued request number */ +if (req->frame_params.frame_seq_no == frame_seq_no) { +spin_unlock_irqrestore (&cam->running_job_lock, flags); +return req; + } + } +spin_unlock_irqrestore (&cam->running_job_lock, flags); + +return NULL ; +} + +void mtk_cam_dev_dequeue_req_frame (struct mtk_cam_dev *cam, +unsigned int frame_seq_no) +{ +struct mtk_cam_dev_request *req, *req_prev; +unsigned long flags; + +spin_lock_irqsave (&cam->running_job_lock, flags); +list_for_each_entry_safe (req, req_prev, &cam->running_job_list, list) { +dev_dbg (cam->dev,"frame_seq:%d, de-queue frame_seq:%d\n" , + req->frame_params.frame_seq_no, frame_seq_no); + +/* Match by the en-queued request number */ drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c line 146
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c new file +10
-0+if (req->frame_params.frame_seq_no == frame_seq_no) { + cam->running_job_count--; +/* Pass to user space */ +mtk_cam_dev_job_done (cam, req,VB2_BUF_STATE_DONE ); +list_del (&req->list); +break ; + }else if (req->frame_params.frame_seq_no < frame_seq_no) { + cam->running_job_count--; +/* Pass to user space for frame drop */ +mtk_cam_dev_job_done (cam, req,VB2_BUF_STATE_ERROR );
Quoted 9 lines
Hi, I see that frame_params.frame_seq_no is incremented when a request is queued and
frame_seq_nois read from a register, so if the first is lower than the latter it means userspace was queueing request too slowly and missed frames right? So userspace will have to catch up in order not to get "ERROR" buffers. Maybe the driver can just skip lost frames. In the rkisp1 for example, if there is no buffer available, the driver just write to a dummy buffer that is never sent to userspace. This way userspace always get valid buffers back when dequeueing.
Q1. We will update frame_params.frame_seq_no into HW per frame. So the frame_seq_no is read from HW register should not be large than frame_params.frame_seq_no. If userspace was queueing request too slowly, ISP HW just skip frame output due to no available buffers.
Q2. For this code block, it handles the heavy system loading. e.g abnormal ISR execution. In this scenario, ISP HW will keep output frame buffers and update frame_seq_no into HW. So ISP P1 driver miss some interrupt timing and just got the latest frame_seq_no from HW. With this check, we will return all frame buffers which have be proceed by HW. Otherwise, userspace may not en-queue any frame buffers due to some frame buffers are not returned from kernel driver.
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c line 151
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c new file +5
-0+dev_warn (cam->dev,"frame_seq:%d drop\n" , + req->frame_params.frame_seq_no); +list_del (&req->list); + }else { +break ;Does this case can ever occur?
Thanks,
Dafna
To be honest, it never happened.
I will remove this.
Best regards,
Jungo
Quoted 2,192 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h
Quoted 2,187 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c new file +1936
-0+ } + } +spin_unlock_irqrestore (&cam->running_job_lock, flags); +} + +static void mtk_cam_dev_req_cleanup (struct mtk_cam_dev *cam) +{ +struct mtk_cam_dev_request *req, *req_prev; +unsigned long flags; + +dev_dbg (cam->dev,"%s\n" , __func__); + +spin_lock_irqsave (&cam->pending_job_lock, flags); +list_for_each_entry_safe (req, req_prev, &cam->pending_job_list, list) +list_del (&req->list); +spin_unlock_irqrestore (&cam->pending_job_lock, flags); + +spin_lock_irqsave (&cam->running_job_lock, flags); +list_for_each_entry_safe (req, req_prev, &cam->running_job_list, list) +list_del (&req->list); +spin_unlock_irqrestore (&cam->running_job_lock, flags); +} + +void mtk_cam_dev_req_try_queue (struct mtk_cam_dev *cam) +{ +struct mtk_cam_dev_request *req, *req_prev; +unsigned long flags; + +if (!cam->streaming) { +dev_dbg (cam->dev,"stream is off\n" ); +return ; + } + +spin_lock_irqsave (&cam->pending_job_lock, flags); +spin_lock_irqsave (&cam->running_job_lock, flags); +list_for_each_entry_safe (req, req_prev, &cam->pending_job_list, list) { +if (cam->running_job_count >=MTK_ISP_MAX_RUNNING_JOBS ) { +dev_dbg (cam->dev,"jobs are full\n" ); +break ; + } + cam->running_job_count++; +list_del (&req->list); +list_add_tail (&req->list, &cam->running_job_list); +mtk_isp_req_enqueue (cam, req); + } +spin_unlock_irqrestore (&cam->running_job_lock, flags); +spin_unlock_irqrestore (&cam->pending_job_lock, flags); +} + +static struct media_request *mtk_cam_req_alloc (struct media_device *mdev) +{ +struct mtk_cam_dev_request *cam_dev_req; + + cam_dev_req =kzalloc (sizeof (*cam_dev_req),GFP_KERNEL ); + +return &cam_dev_req->req; +} + +static void mtk_cam_req_free (struct media_request *req) +{ +struct mtk_cam_dev_request *cam_dev_req =mtk_cam_req_to_dev_req (req); + +kfree (cam_dev_req); +} + +static void mtk_cam_req_queue (struct media_request *req) +{ +struct mtk_cam_dev_request *cam_req =mtk_cam_req_to_dev_req (req); + struct mtk_cam_dev *cam = container_of(req->mdev, struct mtk_cam_dev, + media_dev); +unsigned long flags; + +/* update frame_params's dma_bufs in mtk_cam_vb2_buf_queue */ +vb2_request_queue (req); + +/* add to pending job list */ +spin_lock_irqsave (&cam->pending_job_lock, flags); +list_add_tail (&cam_req->list, &cam->pending_job_list); +spin_unlock_irqrestore (&cam->pending_job_lock, flags); + +mtk_cam_dev_req_try_queue (cam); +} + +static unsigned int get_pixel_bits (unsigned int pix_fmt) +{ +switch (pix_fmt) { +case V4L2_PIX_FMT_MTISP_SBGGR8 : +case V4L2_PIX_FMT_MTISP_SGBRG8 : +case V4L2_PIX_FMT_MTISP_SGRBG8 : +case V4L2_PIX_FMT_MTISP_SRGGB8 : +case V4L2_PIX_FMT_MTISP_SBGGR8F : +case V4L2_PIX_FMT_MTISP_SGBRG8F : +case V4L2_PIX_FMT_MTISP_SGRBG8F : +case V4L2_PIX_FMT_MTISP_SRGGB8F : +return 8 ; +case V4L2_PIX_FMT_MTISP_SBGGR10 : +case V4L2_PIX_FMT_MTISP_SGBRG10 : +case V4L2_PIX_FMT_MTISP_SGRBG10 : +case V4L2_PIX_FMT_MTISP_SRGGB10 : +case V4L2_PIX_FMT_MTISP_SBGGR10F : +case V4L2_PIX_FMT_MTISP_SGBRG10F : +case V4L2_PIX_FMT_MTISP_SGRBG10F : +case V4L2_PIX_FMT_MTISP_SRGGB10F : +return 10 ; +case V4L2_PIX_FMT_MTISP_SBGGR12 : +case V4L2_PIX_FMT_MTISP_SGBRG12 : +case V4L2_PIX_FMT_MTISP_SGRBG12 : +case V4L2_PIX_FMT_MTISP_SRGGB12 : +case V4L2_PIX_FMT_MTISP_SBGGR12F : +case V4L2_PIX_FMT_MTISP_SGBRG12F : +case V4L2_PIX_FMT_MTISP_SGRBG12F : +case V4L2_PIX_FMT_MTISP_SRGGB12F : +return 12 ; +case V4L2_PIX_FMT_MTISP_SBGGR14 : +case V4L2_PIX_FMT_MTISP_SGBRG14 : +case V4L2_PIX_FMT_MTISP_SGRBG14 : +case V4L2_PIX_FMT_MTISP_SRGGB14 : +case V4L2_PIX_FMT_MTISP_SBGGR14F : +case V4L2_PIX_FMT_MTISP_SGBRG14F : +case V4L2_PIX_FMT_MTISP_SGRBG14F : +case V4L2_PIX_FMT_MTISP_SRGGB14F : +return 14 ; +default : +return 0 ; + } +} + +static void cal_image_pix_mp (struct mtk_cam_dev *cam,unsigned int node_id, +struct v4l2_pix_format_mplane *mp) +{ +unsigned int bpl, ppl; +unsigned int pixel_bits =get_pixel_bits (mp->pixelformat); +unsigned int width = mp->width; + + bpl =0 ; +if (node_id ==MTK_CAM_P1_MAIN_STREAM_OUT ) { +/* Bayer encoding format & 2 bytes alignment */ + bpl =ALIGN (DIV_ROUND_UP (width * pixel_bits,8 ),2 ); + }else if (node_id ==MTK_CAM_P1_PACKED_BIN_OUT ) { +/* +* The FULL-G encoding format +* 1 G component per pixel +* 1 R component per 4 pixel +* 1 B component per 4 pixel +* Total 4G/1R/1B in 4 pixel (pixel per line:ppl) +*/ + ppl =DIV_ROUND_UP (width *6 ,4 ); + bpl =DIV_ROUND_UP (ppl * pixel_bits,8 ); + +/* 4 bytes alignment for 10 bit & others are 8 bytes */ +if (pixel_bits ==10 ) + bpl =ALIGN (bpl,4 ); +else + bpl =ALIGN (bpl,8 ); + } +/* +* This image output buffer will be input buffer of MTK CAM DIP HW +* For MTK CAM DIP HW constrained, it needs 4 bytes alignment +*/ + bpl =ALIGN (bpl,4 ); + + mp->plane_fmt[0 ].bytesperline = bpl; + mp->plane_fmt[0 ].sizeimage = bpl * mp->height; + +dev_dbg (cam->dev,"node:%d width:%d bytesperline:%d sizeimage:%d\n" , + node_id, width, bpl, mp->plane_fmt[0 ].sizeimage); +} + +static const struct v4l2_format * +mtk_cam_dev_find_fmt (struct mtk_cam_dev_node_desc *desc,u32 format) +{ +int i; +const struct v4l2_format *dev_fmt; + +for (i =0 ; i < desc->num_fmts; i++) { + dev_fmt = &desc->fmts[i]; +if (dev_fmt->fmt.pix_mp.pixelformat == format) +return dev_fmt; + } + +return NULL ; +} + +/* Get the default format setting */ +static void +mtk_cam_dev_load_default_fmt (struct mtk_cam_dev *cam, +struct mtk_cam_dev_node_desc *queue_desc, +struct v4l2_format *dest) +{ +const struct v4l2_format *default_fmt = + &queue_desc->fmts[queue_desc->default_fmt_idx]; + + dest->type = queue_desc->buf_type; + +/* Configure default format based on node type */ +if (!queue_desc->image) { + dest->fmt.meta.dataformat = default_fmt->fmt.meta.dataformat; + dest->fmt.meta.buffersize = default_fmt->fmt.meta.buffersize; +return ; + } + + dest->fmt.pix_mp.pixelformat = default_fmt->fmt.pix_mp.pixelformat; + dest->fmt.pix_mp.width = default_fmt->fmt.pix_mp.width; + dest->fmt.pix_mp.height = default_fmt->fmt.pix_mp.height; +/* bytesperline & sizeimage calculation */ +cal_image_pix_mp (cam, queue_desc->id, &dest->fmt.pix_mp); + dest->fmt.pix_mp.num_planes =1 ; + + dest->fmt.pix_mp.colorspace =V4L2_COLORSPACE_SRGB ; + dest->fmt.pix_mp.field =V4L2_FIELD_NONE ; + dest->fmt.pix_mp.ycbcr_enc =V4L2_YCBCR_ENC_DEFAULT ; + dest->fmt.pix_mp.quantization =V4L2_QUANTIZATION_DEFAULT ; + dest->fmt.pix_mp.xfer_func =V4L2_XFER_FUNC_SRGB ; +} + +/* Utility functions */ +static unsigned int get_sensor_pixel_id (unsigned int fmt) +{ +switch (fmt) { +case MEDIA_BUS_FMT_SBGGR8_1X8 : +case MEDIA_BUS_FMT_SBGGR10_1X10 : +case MEDIA_BUS_FMT_SBGGR12_1X12 : +case MEDIA_BUS_FMT_SBGGR14_1X14 : +return MTK_CAM_RAW_PXL_ID_B ; +case MEDIA_BUS_FMT_SGBRG8_1X8 : +case MEDIA_BUS_FMT_SGBRG10_1X10 : +case MEDIA_BUS_FMT_SGBRG12_1X12 : +case MEDIA_BUS_FMT_SGBRG14_1X14 : +return MTK_CAM_RAW_PXL_ID_GB ; +case MEDIA_BUS_FMT_SGRBG8_1X8 : +case MEDIA_BUS_FMT_SGRBG10_1X10 : +case MEDIA_BUS_FMT_SGRBG12_1X12 : +case MEDIA_BUS_FMT_SGRBG14_1X14 : +return MTK_CAM_RAW_PXL_ID_GR ; +case MEDIA_BUS_FMT_SRGGB8_1X8 : +case MEDIA_BUS_FMT_SRGGB10_1X10 : +case MEDIA_BUS_FMT_SRGGB12_1X12 : +case MEDIA_BUS_FMT_SRGGB14_1X14 : +return MTK_CAM_RAW_PXL_ID_R ; +default : +return MTK_CAM_RAW_PXL_ID_UNKNOWN ; + } +} + +static unsigned int get_sensor_fmt (unsigned int fmt) +{ +switch (fmt) { +case MEDIA_BUS_FMT_SBGGR8_1X8 : +case MEDIA_BUS_FMT_SGBRG8_1X8 : +case MEDIA_BUS_FMT_SGRBG8_1X8 : +case MEDIA_BUS_FMT_SRGGB8_1X8 : +return MTK_CAM_IMG_FMT_BAYER8 ; +case MEDIA_BUS_FMT_SBGGR10_1X10 : +case MEDIA_BUS_FMT_SGBRG10_1X10 : +case MEDIA_BUS_FMT_SGRBG10_1X10 : +case MEDIA_BUS_FMT_SRGGB10_1X10 : +return MTK_CAM_IMG_FMT_BAYER10 ; +case MEDIA_BUS_FMT_SBGGR12_1X12 : +case MEDIA_BUS_FMT_SGBRG12_1X12 : +case MEDIA_BUS_FMT_SGRBG12_1X12 : +case MEDIA_BUS_FMT_SRGGB12_1X12 : +return MTK_CAM_IMG_FMT_BAYER12 ; +case MEDIA_BUS_FMT_SBGGR14_1X14 : +case MEDIA_BUS_FMT_SGBRG14_1X14 : +case MEDIA_BUS_FMT_SGRBG14_1X14 : +case MEDIA_BUS_FMT_SRGGB14_1X14 : +return MTK_CAM_IMG_FMT_BAYER14 ; +default : +return MTK_CAM_IMG_FMT_UNKNOWN ; + } +} + +static unsigned int get_img_fmt (unsigned int fourcc) +{ +switch (fourcc) { +case V4L2_PIX_FMT_MTISP_SBGGR8 : +case V4L2_PIX_FMT_MTISP_SGBRG8 : +case V4L2_PIX_FMT_MTISP_SGRBG8 : +case V4L2_PIX_FMT_MTISP_SRGGB8 : +return MTK_CAM_IMG_FMT_BAYER8 ; +case V4L2_PIX_FMT_MTISP_SBGGR8F : +case V4L2_PIX_FMT_MTISP_SGBRG8F : +case V4L2_PIX_FMT_MTISP_SGRBG8F : +case V4L2_PIX_FMT_MTISP_SRGGB8F : +return MTK_CAM_IMG_FMT_FG_BAYER8 ; +case V4L2_PIX_FMT_MTISP_SBGGR10 : +case V4L2_PIX_FMT_MTISP_SGBRG10 : +case V4L2_PIX_FMT_MTISP_SGRBG10 : +case V4L2_PIX_FMT_MTISP_SRGGB10 : +return MTK_CAM_IMG_FMT_BAYER10 ; +case V4L2_PIX_FMT_MTISP_SBGGR10F : +case V4L2_PIX_FMT_MTISP_SGBRG10F : +case V4L2_PIX_FMT_MTISP_SGRBG10F : +case V4L2_PIX_FMT_MTISP_SRGGB10F : +return MTK_CAM_IMG_FMT_FG_BAYER10 ; +case V4L2_PIX_FMT_MTISP_SBGGR12 : +case V4L2_PIX_FMT_MTISP_SGBRG12 : +case V4L2_PIX_FMT_MTISP_SGRBG12 : +case V4L2_PIX_FMT_MTISP_SRGGB12 : +return MTK_CAM_IMG_FMT_BAYER12 ; +case V4L2_PIX_FMT_MTISP_SBGGR12F : +case V4L2_PIX_FMT_MTISP_SGBRG12F : +case V4L2_PIX_FMT_MTISP_SGRBG12F : +case V4L2_PIX_FMT_MTISP_SRGGB12F : +return MTK_CAM_IMG_FMT_FG_BAYER12 ; +case V4L2_PIX_FMT_MTISP_SBGGR14 : +case V4L2_PIX_FMT_MTISP_SGBRG14 : +case V4L2_PIX_FMT_MTISP_SGRBG14 : +case V4L2_PIX_FMT_MTISP_SRGGB14 : +return MTK_CAM_IMG_FMT_BAYER14 ; +case V4L2_PIX_FMT_MTISP_SBGGR14F : +case V4L2_PIX_FMT_MTISP_SGBRG14F : +case V4L2_PIX_FMT_MTISP_SGRBG14F : +case V4L2_PIX_FMT_MTISP_SRGGB14F : +return MTK_CAM_IMG_FMT_FG_BAYER14 ; +default : +return MTK_CAM_IMG_FMT_UNKNOWN ; + } +} + +static int config_img_fmt (struct mtk_cam_dev *cam,unsigned int node_id, +struct p1_img_output *out_fmt,int sd_width, +int sd_height) +{ +const struct v4l2_format *cfg_fmt = &cam->vdev_nodes[node_id].vdev_fmt; + +/* Check output & input image size dimension */ +if (cfg_fmt->fmt.pix_mp.width > sd_width || + cfg_fmt->fmt.pix_mp.height > sd_height) { +dev_err (cam->dev,"node:%d cfg size is larger than sensor\n" , + node_id); +return -EINVAL ; + } + +/* Check resize ratio for resize out stream due to HW constraint */ +if (((cfg_fmt->fmt.pix_mp.width *100 / sd_width) < +MTK_ISP_MIN_RESIZE_RATIO ) || + ((cfg_fmt->fmt.pix_mp.height *100 / sd_height) < +MTK_ISP_MIN_RESIZE_RATIO )) { +dev_err (cam->dev,"node:%d resize ratio is less than %d%%\n" , + node_id,MTK_ISP_MIN_RESIZE_RATIO ); +return -EINVAL ; + } + + out_fmt->img_fmt =get_img_fmt (cfg_fmt->fmt.pix_mp.pixelformat); + out_fmt->pixel_bits =get_pixel_bits (cfg_fmt->fmt.pix_mp.pixelformat); +if (out_fmt->img_fmt ==MTK_CAM_IMG_FMT_UNKNOWN || + !out_fmt->pixel_bits) { +dev_err (cam->dev,"node:%d unknown pixel fmt:%d\n" , + node_id, cfg_fmt->fmt.pix_mp.pixelformat); +return -EINVAL ; + } +dev_dbg (cam->dev,"node:%d pixel_bits:%d img_fmt:0x%x\n" , + node_id, out_fmt->pixel_bits, out_fmt->img_fmt); + + out_fmt->size.w = cfg_fmt->fmt.pix_mp.width; + out_fmt->size.h = cfg_fmt->fmt.pix_mp.height; + out_fmt->size.stride = cfg_fmt->fmt.pix_mp.plane_fmt[0 ].bytesperline; + out_fmt->size.xsize = cfg_fmt->fmt.pix_mp.plane_fmt[0 ].bytesperline; + + out_fmt->crop.left =0 ; + out_fmt->crop.top =0 ; + out_fmt->crop.width = sd_width; + out_fmt->crop.height = sd_height; + +dev_dbg (cam->dev, +"node:%d size=%0dx%0d, stride:%d, xsize:%d, crop=%0dx%0d\n" , + node_id, out_fmt->size.w, out_fmt->size.h, + out_fmt->size.stride, out_fmt->size.xsize, + out_fmt->crop.width, out_fmt->crop.height); + +return 0 ; +} + +static void mtk_cam_dev_init_stream (struct mtk_cam_dev *cam) +{ +int i; + + cam->enabled_count =0 ; + cam->enabled_dmas =0 ; + cam->stream_count =0 ; + cam->running_job_count =0 ; + +/* Get the enabled meta DMA ports */ +for (i =0 ; i <MTK_CAM_P1_TOTAL_NODES ; i++) { +if (!cam->vdev_nodes[i].enabled) +continue ; + cam->enabled_count++; + cam->enabled_dmas |= cam->vdev_nodes[i].desc.dma_port; + } + +dev_dbg (cam->dev,"%s:%d:0x%x\n" , __func__, cam->enabled_count, + cam->enabled_dmas); +} + +static int mtk_cam_dev_isp_config (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +struct p1_config_param config_param; +struct cfg_in_param *cfg_in_param; +struct v4l2_subdev_format sd_fmt; +int sd_width, sd_height, sd_code; +unsigned int enabled_dma_ports = cam->enabled_dmas; +int ret; + +/* Get sensor format configuration */ + sd_fmt.which =V4L2_SUBDEV_FORMAT_ACTIVE ; + ret =v4l2_subdev_call (cam->sensor, pad, get_fmt,NULL , &sd_fmt); +if (ret) { +dev_dbg (dev,"sensor g_fmt failed:%d\n" , ret); +return ret; + } + sd_width = sd_fmt.format.width; + sd_height = sd_fmt.format.height; + sd_code = sd_fmt.format.code; +dev_dbg (dev,"sd fmt w*h=%d*%d, code=0x%x\n" , sd_width, sd_height, + sd_code); + +memset (&config_param,0 ,sizeof (config_param)); + +/* Update cfg_in_param */ + cfg_in_param = &config_param.cfg_in_param; + cfg_in_param->continuous = true; +/* Fix to one pixel mode in default */ + cfg_in_param->pixel_mode =MTK_ISP_ONE_PIXEL_MODE ; + cfg_in_param->crop.width = sd_width; + cfg_in_param->crop.height = sd_height; + cfg_in_param->raw_pixel_id =get_sensor_pixel_id (sd_code); + cfg_in_param->img_fmt =get_sensor_fmt (sd_code); +if (cfg_in_param->img_fmt ==MTK_CAM_IMG_FMT_UNKNOWN || + cfg_in_param->raw_pixel_id ==MTK_CAM_RAW_PXL_ID_UNKNOWN ) { +dev_err (dev,"unknown sd code:%d\n" , sd_code); +return -EINVAL ; + } + +/* Update cfg_main_param */ + config_param.cfg_main_param.pure_raw = true; + config_param.cfg_main_param.pure_raw_pack = true; + ret =config_img_fmt (cam,MTK_CAM_P1_MAIN_STREAM_OUT , + &config_param.cfg_main_param.output, + sd_width, sd_height); +if (ret) +return ret; + +/* Update cfg_resize_param */ +if (enabled_dma_ports &R_RRZO ) { + ret =config_img_fmt (cam,MTK_CAM_P1_PACKED_BIN_OUT , + &config_param.cfg_resize_param.output, + sd_width, sd_height); +if (ret) +return ret; + }else { + config_param.cfg_resize_param.bypass = true; + } + +/* Update enabled_dmas */ + config_param.enabled_dmas = enabled_dma_ports; +mtk_isp_hw_config (cam, &config_param); +dev_dbg (dev,"%s done\n" , __func__); + +return 0 ; +} + +void mtk_cam_dev_event_frame_sync (struct mtk_cam_dev *cam, +unsigned int frame_seq_no) +{ +struct v4l2_event event = { + .type =V4L2_EVENT_FRAME_SYNC , + .u.frame_sync.frame_sequence = frame_seq_no, + }; + +v4l2_event_queue (cam->subdev.devnode, &event); +} + +static struct v4l2_subdev * +mtk_cam_cio_get_active_sensor (struct mtk_cam_dev *cam) +{ +struct media_device *mdev = cam->seninf->entity.graph_obj.mdev; +struct device *dev = cam->dev; +struct media_entity *entity; +struct v4l2_subdev *sensor; + + sensor =NULL ; +media_device_for_each_entity (entity, mdev) { +dev_dbg (dev,"media entity: %s:0x%x:%d\n" , + entity->name, entity->function, entity->stream_count); +if (entity->function ==MEDIA_ENT_F_CAM_SENSOR && + entity->stream_count) { + sensor =media_entity_to_v4l2_subdev (entity); +dev_dbg (dev,"sensor found: %s\n" , entity->name); +break ; + } + } + +if (!sensor) +dev_err (dev,"no seninf connected\n" ); + +return sensor; +} + +static int mtk_cam_cio_stream_on (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +int ret; + +if (!cam->seninf) { +dev_err (dev,"no seninf connected\n" ); +return -ENODEV ; + } + +/* Get active sensor from graph topology */ + cam->sensor =mtk_cam_cio_get_active_sensor (cam); +if (!cam->sensor) +return -ENODEV ; + +/* Seninf must stream on first */ + ret =v4l2_subdev_call (cam->seninf, video, s_stream,1 ); +if (ret) { +dev_err (dev,"failed to stream on %s:%d\n" , + cam->seninf->entity.name, ret); +return ret; + } + + ret =v4l2_subdev_call (cam->sensor, video, s_stream,1 ); +if (ret) { +dev_err (dev,"failed to stream on %s:%d\n" , + cam->sensor->entity.name, ret); + goto fail_seninf_off; + } + + ret =mtk_cam_dev_isp_config (cam); +if (ret) + goto fail_sensor_off; + + cam->streaming = true; +mtk_isp_stream (cam,1 ); +mtk_cam_dev_req_try_queue (cam); +dev_dbg (dev,"streamed on Pass 1\n" ); + +return 0 ; + +fail_sensor_off: +v4l2_subdev_call (cam->sensor, video, s_stream,0 ); +fail_seninf_off: +v4l2_subdev_call (cam->seninf, video, s_stream,0 ); + +return ret; +} + +static int mtk_cam_cio_stream_off (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +int ret; + + ret =v4l2_subdev_call (cam->sensor, video, s_stream,0 ); +if (ret) { +dev_err (dev,"failed to stream off %s:%d\n" , + cam->sensor->entity.name, ret); +return -EPERM ; + } + + ret =v4l2_subdev_call (cam->seninf, video, s_stream,0 ); +if (ret) { +dev_err (dev,"failed to stream off %s:%d\n" , + cam->seninf->entity.name, ret); +return -EPERM ; + } + + cam->streaming = false; +mtk_isp_stream (cam,0 ); +mtk_isp_hw_release (cam); + +dev_dbg (dev,"streamed off Pass 1\n" ); + +return 0 ; +} + +static int mtk_cam_sd_s_stream (struct v4l2_subdev *sd,int enable) +{ + struct mtk_cam_dev *cam = container_of(sd, struct mtk_cam_dev, subdev); + +if (enable) { +/* Align vb2_core_streamon design */ +if (cam->streaming) { +dev_warn (cam->dev,"already streaming on\n" ); +return 0 ; + } +return mtk_cam_cio_stream_on (cam); + } + +if (!cam->streaming) { +dev_warn (cam->dev,"already streaming off\n" ); +return 0 ; + } +return mtk_cam_cio_stream_off (cam); +} + +static int mtk_cam_sd_subscribe_event (struct v4l2_subdev *subdev, +struct v4l2_fh *fh, +struct v4l2_event_subscription *sub) +{ +switch (sub->type) { +case V4L2_EVENT_FRAME_SYNC : +return v4l2_event_subscribe (fh, sub,0 ,NULL ); +default : +return -EINVAL ; + } +} + +static int mtk_cam_media_link_setup (struct media_entity *entity, +const struct media_pad *local, +const struct media_pad *remote,u32 flags) +{ +struct mtk_cam_dev *cam = + container_of(entity, struct mtk_cam_dev, subdev.entity); +u32 pad = local->index; + +dev_dbg (cam->dev,"%s: %d->%d flags:0x%x\n" , + __func__, pad, remote->index, flags); + +/* +* The video nodes exposed by the driver have pads indexes +* from 0 to MTK_CAM_P1_TOTAL_NODES - 1. +*/ +if (pad <MTK_CAM_P1_TOTAL_NODES ) + cam->vdev_nodes[pad].enabled = + !!(flags &MEDIA_LNK_FL_ENABLED ); + +return 0 ; +} + +static void mtk_cam_vb2_buf_queue (struct vb2_buffer *vb) +{ +struct mtk_cam_dev *cam =vb2_get_drv_priv (vb->vb2_queue); +struct mtk_cam_dev_buffer *buf =mtk_cam_vb2_buf_to_dev_buf (vb); +struct mtk_cam_dev_request *req =mtk_cam_req_to_dev_req (vb->request); +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vb->vb2_queue); +struct device *dev = cam->dev; +unsigned long flags; + +dev_dbg (dev,"%s: node:%d fd:%d idx:%d\n" , __func__, + node->id, buf->vbb.request_fd, buf->vbb.vb2_buf.index); + +/* added the buffer into the tracking list */ +spin_lock_irqsave (&node->buf_list_lock, flags); +list_add_tail (&buf->list, &node->buf_list); +spin_unlock_irqrestore (&node->buf_list_lock, flags); + +/* update buffer internal address */ + req->frame_params.dma_bufs[buf->node_id].iova = buf->daddr; + req->frame_params.dma_bufs[buf->node_id].scp_addr = buf->scp_addr; +} + +static int mtk_cam_vb2_buf_init (struct vb2_buffer *vb) +{ +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vb->vb2_queue); +struct mtk_cam_dev *cam =vb2_get_drv_priv (vb->vb2_queue); +struct device *dev = cam->dev; +struct mtk_cam_dev_buffer *buf; +dma_addr_t addr; + + buf =mtk_cam_vb2_buf_to_dev_buf (vb); + buf->node_id = node->id; + buf->daddr =vb2_dma_contig_plane_dma_addr (vb,0 ); + buf->scp_addr =0 ; + +/* SCP address is only valid for meta input buffer */ +if (!node->desc.smem_alloc) +return 0 ; + + buf =mtk_cam_vb2_buf_to_dev_buf (vb); +/* Use coherent address to get iova address */ + addr =dma_map_resource (dev, buf->daddr, vb->planes[0 ].length, +DMA_BIDIRECTIONAL ,DMA_ATTR_SKIP_CPU_SYNC ); +if (dma_mapping_error (dev, addr)) { +dev_err (dev,"failed to map meta addr:%pad\n" , &buf->daddr); +return -EFAULT ; + } + buf->scp_addr = buf->daddr; + buf->daddr = addr; + +return 0 ; +} + +static int mtk_cam_vb2_buf_prepare (struct vb2_buffer *vb) +{ +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vb->vb2_queue); +struct mtk_cam_dev *cam =vb2_get_drv_priv (vb->vb2_queue); +struct vb2_v4l2_buffer *v4l2_buf =to_vb2_v4l2_buffer (vb); +const struct v4l2_format *fmt = &node->vdev_fmt; +unsigned int size; + +if (vb->vb2_queue->type ==V4L2_BUF_TYPE_META_OUTPUT || + vb->vb2_queue->type ==V4L2_BUF_TYPE_META_CAPTURE ) + size = fmt->fmt.meta.buffersize; +else + size = fmt->fmt.pix_mp.plane_fmt[0 ].sizeimage; + +if (vb2_plane_size (vb,0 ) < size) { +dev_dbg (cam->dev,"plane size is too small:%lu<%u\n" , +vb2_plane_size (vb,0 ), size); +return -EINVAL ; + } + +if (V4L2_TYPE_IS_OUTPUT (vb->vb2_queue->type)) { +if (vb2_get_plane_payload (vb,0 ) != size) { +dev_dbg (cam->dev,"plane payload is mismatch:%lu:%u\n" , +vb2_get_plane_payload (vb,0 ), size); +return -EINVAL ; + } +return 0 ; + } + + v4l2_buf->field =V4L2_FIELD_NONE ; +vb2_set_plane_payload (vb,0 , size); + +return 0 ; +} + +static void mtk_cam_vb2_buf_cleanup (struct vb2_buffer *vb) +{ +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vb->vb2_queue); +struct mtk_cam_dev *cam =vb2_get_drv_priv (vb->vb2_queue); +struct mtk_cam_dev_buffer *buf; +struct device *dev = cam->dev; + +if (!node->desc.smem_alloc) +return ; + + buf =mtk_cam_vb2_buf_to_dev_buf (vb); +dma_unmap_page_attrs (dev, buf->daddr, + vb->planes[0 ].length, +DMA_BIDIRECTIONAL , +DMA_ATTR_SKIP_CPU_SYNC ); +} + +static void mtk_cam_vb2_request_complete (struct vb2_buffer *vb) +{ +struct mtk_cam_dev *cam =vb2_get_drv_priv (vb->vb2_queue); + +dev_dbg (cam->dev,"%s\n" , __func__); +} + +static int mtk_cam_vb2_queue_setup (struct vb2_queue *vq, +unsigned int *num_buffers, +unsigned int *num_planes, +unsigned int sizes[], +struct device *alloc_devs[]) +{ +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vq); +unsigned int max_buffer_count = node->desc.max_buf_count; +const struct v4l2_format *fmt = &node->vdev_fmt; +unsigned int size; + +/* Check the limitation of buffer size */ +if (max_buffer_count) + *num_buffers =clamp_val (*num_buffers,1 , max_buffer_count); + +if (node->desc.smem_alloc) + vq->dma_attrs |=DMA_ATTR_NO_KERNEL_MAPPING ; + +if (vq->type ==V4L2_BUF_TYPE_META_OUTPUT || + vq->type ==V4L2_BUF_TYPE_META_CAPTURE ) + size = fmt->fmt.meta.buffersize; +else + size = fmt->fmt.pix_mp.plane_fmt[0 ].sizeimage; + +/* Add for q.create_bufs with fmt.g_sizeimage(p) / 2 test */ +if (*num_planes) { +if (sizes[0 ] < size || *num_planes !=1 ) +return -EINVAL ; + }else { + *num_planes =1 ; + sizes[0 ] = size; + } + +return 0 ; +} + +static void mtk_cam_vb2_return_all_buffers (struct mtk_cam_dev *cam, +struct mtk_cam_video_device *node, +enum vb2_buffer_state state) +{ +struct mtk_cam_dev_buffer *buf, *buf_prev; +unsigned long flags; + +spin_lock_irqsave (&node->buf_list_lock, flags); +list_for_each_entry_safe (buf, buf_prev, &node->buf_list, list) { +list_del (&buf->list); +vb2_buffer_done (&buf->vbb.vb2_buf, state); + } +spin_unlock_irqrestore (&node->buf_list_lock, flags); +} + +static int mtk_cam_vb2_start_streaming (struct vb2_queue *vq, +unsigned int count) +{ +struct mtk_cam_dev *cam =vb2_get_drv_priv (vq); +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vq); +struct device *dev = cam->dev; +int ret; + +if (!node->enabled) { +dev_err (dev,"Node:%d is not enabled\n" , node->id); + ret = -ENOLINK ; + goto fail_ret_buf; + } + +mutex_lock (&cam->op_lock); +/* Start streaming of the whole pipeline now*/ +if (!cam->pipeline.streaming_count) { + ret =media_pipeline_start (&node->vdev.entity, &cam->pipeline); +if (ret) { +dev_err (dev,"failed to start pipeline:%d\n" , ret); + goto fail_unlock; + } +mtk_cam_dev_init_stream (cam); + ret =mtk_isp_hw_init (cam); +if (ret) { +dev_err (dev,"failed to init HW:%d\n" , ret); + goto fail_stop_pipeline; + } + } + +/* Media links are fixed after media_pipeline_start */ + cam->stream_count++; +dev_dbg (dev,"%s: count info:%d:%d\n" , __func__, cam->stream_count, + cam->enabled_count); +if (cam->stream_count < cam->enabled_count) { +mutex_unlock (&cam->op_lock); +return 0 ; + } + +/* Stream on sub-devices node */ + ret =v4l2_subdev_call (&cam->subdev, video, s_stream,1 ); +if (ret) + goto fail_no_stream; +mutex_unlock (&cam->op_lock); + +return 0 ; + +fail_no_stream: + cam->stream_count--; +fail_stop_pipeline: +if (cam->stream_count ==0 ) +media_pipeline_stop (&node->vdev.entity); +fail_unlock: +mutex_unlock (&cam->op_lock); +fail_ret_buf: +mtk_cam_vb2_return_all_buffers (cam, node,VB2_BUF_STATE_QUEUED ); + +return ret; +} + +static void mtk_cam_vb2_stop_streaming (struct vb2_queue *vq) +{ +struct mtk_cam_dev *cam =vb2_get_drv_priv (vq); +struct mtk_cam_video_device *node =mtk_cam_vbq_to_vdev (vq); +struct device *dev = cam->dev; + +mutex_lock (&cam->op_lock); +dev_dbg (dev,"%s node:%d count info:%d\n" , __func__, node->id, + cam->stream_count); +/* Check the first node to stream-off */ +if (cam->stream_count == cam->enabled_count) +v4l2_subdev_call (&cam->subdev, video, s_stream,0 ); + +mtk_cam_vb2_return_all_buffers (cam, node,VB2_BUF_STATE_ERROR ); + cam->stream_count--; +if (cam->stream_count) { +mutex_unlock (&cam->op_lock); +return ; + } +mutex_unlock (&cam->op_lock); + +mtk_cam_dev_req_cleanup (cam); +media_pipeline_stop (&node->vdev.entity); +} + +static int mtk_cam_vidioc_querycap (struct file *file,void *fh, +struct v4l2_capability *cap) +{ +struct mtk_cam_dev *cam =video_drvdata (file); + +strscpy (cap->driver,dev_driver_string (cam->dev),sizeof (cap->driver)); +strscpy (cap->card,dev_driver_string (cam->dev),sizeof (cap->card)); +snprintf (cap->bus_info,sizeof (cap->bus_info),"platform:%s" , +dev_name (cam->dev)); + +return 0 ; +} + +static int mtk_cam_vidioc_enum_fmt (struct file *file,void *fh, +struct v4l2_fmtdesc *f) +{ +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); + +if (f->index >= node->desc.num_fmts) +return -EINVAL ; + +/* f->description is filled in v4l_fill_fmtdesc function */ + f->pixelformat = node->desc.fmts[f->index].fmt.pix_mp.pixelformat; + f->flags =0 ; + +return 0 ; +} + +static int mtk_cam_vidioc_g_fmt (struct file *file,void *fh, +struct v4l2_format *f) +{ +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); + + f->fmt = node->vdev_fmt.fmt; + +return 0 ; +} + +static int mtk_cam_vidioc_try_fmt (struct file *file,void *fh, +struct v4l2_format *f) +{ +struct mtk_cam_dev *cam =video_drvdata (file); +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); +struct device *dev = cam->dev; +const struct v4l2_format *dev_fmt; +struct v4l2_format try_fmt; + +memset (&try_fmt,0 ,sizeof (try_fmt)); + try_fmt.type = f->type; + +/* Validate pixelformat */ + dev_fmt =mtk_cam_dev_find_fmt (&node->desc, f->fmt.pix_mp.pixelformat); +if (!dev_fmt) { +dev_dbg (dev,"unknown fmt:%d\n" , f->fmt.pix_mp.pixelformat); + dev_fmt = &node->desc.fmts[node->desc.default_fmt_idx]; + } + try_fmt.fmt.pix_mp.pixelformat = dev_fmt->fmt.pix_mp.pixelformat; + +/* Validate image width & height range */ + try_fmt.fmt.pix_mp.width =clamp_val (f->fmt.pix_mp.width, +IMG_MIN_WIDTH ,IMG_MAX_WIDTH ); + try_fmt.fmt.pix_mp.height =clamp_val (f->fmt.pix_mp.height, +IMG_MIN_HEIGHT ,IMG_MAX_HEIGHT ); +/* 4 bytes alignment for width */ + try_fmt.fmt.pix_mp.width =ALIGN (try_fmt.fmt.pix_mp.width,4 ); + +/* Only support one plane */ + try_fmt.fmt.pix_mp.num_planes =1 ; + +/* bytesperline & sizeimage calculation */ +cal_image_pix_mp (cam, node->id, &try_fmt.fmt.pix_mp); + +/* Constant format fields */ + try_fmt.fmt.pix_mp.colorspace =V4L2_COLORSPACE_SRGB ; + try_fmt.fmt.pix_mp.field =V4L2_FIELD_NONE ; + try_fmt.fmt.pix_mp.ycbcr_enc =V4L2_YCBCR_ENC_DEFAULT ; + try_fmt.fmt.pix_mp.quantization =V4L2_QUANTIZATION_DEFAULT ; + try_fmt.fmt.pix_mp.xfer_func =V4L2_XFER_FUNC_SRGB ; + + *f = try_fmt; + +return 0 ; +} + +static int mtk_cam_vidioc_s_fmt (struct file *file,void *fh, +struct v4l2_format *f) +{ +struct mtk_cam_dev *cam =video_drvdata (file); +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); + +if (vb2_is_busy (node->vdev.queue)) { +dev_dbg (cam->dev,"%s: queue is busy\n" , __func__); +return -EBUSY ; + } + +/* Get the valid format */ +mtk_cam_vidioc_try_fmt (file, fh, f); +/* Configure to video device */ + node->vdev_fmt = *f; + +return 0 ; +} + +static int mtk_cam_vidioc_enum_framesizes (struct file *filp,void *priv, +struct v4l2_frmsizeenum *sizes) +{ +struct mtk_cam_video_device *node =file_to_mtk_cam_node (filp); +const struct v4l2_format *dev_fmt; + + dev_fmt =mtk_cam_dev_find_fmt (&node->desc, sizes->pixel_format); +if (!dev_fmt || sizes->index) +return -EINVAL ; + + sizes->type = node->desc.frmsizes->type; +memcpy (&sizes->stepwise, &node->desc.frmsizes->stepwise, +sizeof (sizes->stepwise)); + +return 0 ; +} + +static int mtk_cam_vidioc_meta_enum_fmt (struct file *file,void *fh, +struct v4l2_fmtdesc *f) +{ +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); + +if (f->index) +return -EINVAL ; + +/* f->description is filled in v4l_fill_fmtdesc function */ + f->pixelformat = node->vdev_fmt.fmt.meta.dataformat; + f->flags =0 ; + +return 0 ; +} + +static int mtk_cam_vidioc_g_meta_fmt (struct file *file,void *fh, +struct v4l2_format *f) +{ +struct mtk_cam_video_device *node =file_to_mtk_cam_node (file); + + f->fmt.meta.dataformat = node->vdev_fmt.fmt.meta.dataformat; + f->fmt.meta.buffersize = node->vdev_fmt.fmt.meta.buffersize; + +return 0 ; +} + +static const struct v4l2_subdev_core_ops mtk_cam_subdev_core_ops = { + .subscribe_event = mtk_cam_sd_subscribe_event, + .unsubscribe_event = v4l2_event_subdev_unsubscribe, +}; + +static const struct v4l2_subdev_video_ops mtk_cam_subdev_video_ops = { + .s_stream = mtk_cam_sd_s_stream, +}; + +static const struct v4l2_subdev_ops mtk_cam_subdev_ops = { + .core = &mtk_cam_subdev_core_ops, + .video = &mtk_cam_subdev_video_ops, +}; + +static const struct media_entity_operations mtk_cam_media_entity_ops = { + .link_setup = mtk_cam_media_link_setup, + .link_validate = v4l2_subdev_link_validate, +}; + +static const struct vb2_ops mtk_cam_vb2_ops = { + .queue_setup = mtk_cam_vb2_queue_setup, + .wait_prepare = vb2_ops_wait_prepare, + .wait_finish = vb2_ops_wait_finish, + .buf_init = mtk_cam_vb2_buf_init, + .buf_prepare = mtk_cam_vb2_buf_prepare, + .start_streaming = mtk_cam_vb2_start_streaming, + .stop_streaming = mtk_cam_vb2_stop_streaming, + .buf_queue = mtk_cam_vb2_buf_queue, + .buf_cleanup = mtk_cam_vb2_buf_cleanup, + .buf_request_complete = mtk_cam_vb2_request_complete, +}; + +static const struct v4l2_file_operations mtk_cam_v4l2_fops = { + .unlocked_ioctl = video_ioctl2, + .open = v4l2_fh_open, + .release = vb2_fop_release, + .poll = vb2_fop_poll, + .mmap = vb2_fop_mmap, +#ifdef CONFIG_COMPAT + .compat_ioctl32 = v4l2_compat_ioctl32, +#endif +}; + +static const struct media_device_ops mtk_cam_media_ops = { + .req_alloc = mtk_cam_req_alloc, + .req_free = mtk_cam_req_free, + .req_validate = vb2_request_validate, + .req_queue = mtk_cam_req_queue, +}; + +static int mtk_cam_media_register (struct mtk_cam_dev *cam, +struct media_device *media_dev) +{ +/* Reserved MTK_CAM_CIO_PAD_SINK + 1 pads to use */ +unsigned int num_pads =MTK_CAM_CIO_PAD_SINK +1 ; +struct device *dev = cam->dev; +int i, ret; + + media_dev->dev = cam->dev; +strscpy (media_dev->model,dev_driver_string (dev), +sizeof (media_dev->model)); +snprintf (media_dev->bus_info,sizeof (media_dev->bus_info), +"platform:%s" ,dev_name (dev)); + media_dev->hw_revision =0 ; +media_device_init (media_dev); + media_dev->ops = &mtk_cam_media_ops; + + ret =media_device_register (media_dev); +if (ret) { +dev_err (dev,"failed to register media device:%d\n" , ret); +return ret; + } + +/* Initialize subdev pads */ + cam->subdev_pads =devm_kcalloc (dev, num_pads, +sizeof (*cam->subdev_pads), +GFP_KERNEL ); +if (!cam->subdev_pads) { +dev_err (dev,"failed to allocate subdev_pads\n" ); + ret = -ENOMEM ; + goto fail_media_unreg; + } + + ret =media_entity_pads_init (&cam->subdev.entity, num_pads, + cam->subdev_pads); +if (ret) { +dev_err (dev,"failed to initialize media pads:%d\n" , ret); + goto fail_media_unreg; + } + +/* Initialize all pads with MEDIA_PAD_FL_SOURCE */ +for (i =0 ; i < num_pads; i++) + cam->subdev_pads[i].flags =MEDIA_PAD_FL_SOURCE ; + +/* Customize the last one pad as CIO sink pad. */ + cam->subdev_pads[MTK_CAM_CIO_PAD_SINK ].flags =MEDIA_PAD_FL_SINK ; + +return 0 ; + +fail_media_unreg: +media_device_unregister (&cam->media_dev); +media_device_cleanup (&cam->media_dev); + +return ret; +} + +static int +mtk_cam_video_register_device (struct mtk_cam_dev *cam, +struct mtk_cam_video_device *node) +{ +struct device *dev = cam->dev; +struct video_device *vdev = &node->vdev; +struct vb2_queue *vbq = &node->vbq; +unsigned int output =V4L2_TYPE_IS_OUTPUT (node->desc.buf_type); +unsigned int link_flags = node->desc.link_flags; +int ret; + +/* Initialize mtk_cam_video_device */ +if (link_flags &MEDIA_LNK_FL_IMMUTABLE ) + node->enabled = true; +else + node->enabled = false; +mtk_cam_dev_load_default_fmt (cam, &node->desc, &node->vdev_fmt); + + cam->subdev_pads[node->id].flags = output ? +MEDIA_PAD_FL_SINK :MEDIA_PAD_FL_SOURCE ; + +/* Initialize media entities */ + ret =media_entity_pads_init (&vdev->entity,1 , &node->vdev_pad); +if (ret) { +dev_err (dev,"failed to initialize media pad:%d\n" , ret); +return ret; + } + node->vdev_pad.flags = output ?MEDIA_PAD_FL_SOURCE :MEDIA_PAD_FL_SINK ; + +/* Initialize vbq */ + vbq->type = node->desc.buf_type; +if (vbq->type ==V4L2_BUF_TYPE_META_OUTPUT ) + vbq->io_modes =VB2_MMAP ; +else + vbq->io_modes =VB2_MMAP |VB2_DMABUF ; + +if (node->desc.smem_alloc) { + vbq->bidirectional =1 ; + vbq->dev = cam->smem_dev; + }else { + vbq->dev = dev; + } + vbq->ops = &mtk_cam_vb2_ops; + vbq->mem_ops = &vb2_dma_contig_memops; + vbq->buf_struct_size =sizeof (struct mtk_cam_dev_buffer ); + vbq->timestamp_flags =V4L2_BUF_FLAG_TIMESTAMP_BOOTIME ; +if (output) + vbq->timestamp_flags |=V4L2_BUF_FLAG_TSTAMP_SRC_EOF ; +else + vbq->timestamp_flags |=V4L2_BUF_FLAG_TSTAMP_SRC_SOE ; +/* No minimum buffers limitation */ + vbq->min_buffers_needed =0 ; + vbq->drv_priv = cam; + vbq->lock = &node->vdev_lock; + vbq->supports_requests = true; + vbq->requires_requests = true; + + ret =vb2_queue_init (vbq); +if (ret) { +dev_err (dev,"failed to init. vb2 queue:%d\n" , ret); + goto fail_media_clean; + } + +/* Initialize vdev */ +snprintf (vdev->name,sizeof (vdev->name),"%s %s" , +dev_driver_string (dev), node->desc.name); +/* set cap/type/ioctl_ops of the video device */ + vdev->device_caps = node->desc.cap |V4L2_CAP_STREAMING ; + vdev->ioctl_ops = node->desc.ioctl_ops; + vdev->fops = &mtk_cam_v4l2_fops; + vdev->release = video_device_release_empty; + vdev->lock = &node->vdev_lock; + vdev->v4l2_dev = &cam->v4l2_dev; + vdev->queue = &node->vbq; + vdev->vfl_dir = output ?VFL_DIR_TX :VFL_DIR_RX ; + vdev->entity.function =MEDIA_ENT_F_IO_V4L ; + vdev->entity.ops =NULL ; +video_set_drvdata (vdev, cam); +dev_dbg (dev,"registered vdev:%d:%s\n" , node->id, vdev->name); + +/* Initialize miscellaneous variables */ +mutex_init (&node->vdev_lock); +INIT_LIST_HEAD (&node->buf_list); +spin_lock_init (&node->buf_list_lock); + + ret =video_register_device (vdev,VFL_TYPE_GRABBER ,-1 ); +if (ret) { +dev_err (dev,"failed to register vde:%d\n" , ret); + goto fail_vb2_rel; + } + +/* Create link between video node and the subdev pad */ +if (output) { + ret =media_create_pad_link (&vdev->entity,0 , + &cam->subdev.entity, + node->id, link_flags); + }else { + ret =media_create_pad_link (&cam->subdev.entity, + node->id, &vdev->entity,0 , + link_flags); + } +if (ret) + goto fail_vdev_ureg; + +return 0 ; + +fail_vdev_ureg: +video_unregister_device (vdev); +fail_vb2_rel: +mutex_destroy (&node->vdev_lock); +vb2_queue_release (vbq); +fail_media_clean: +media_entity_cleanup (&vdev->entity); + +return ret; +} + +static void +mtk_cam_video_unregister_device (struct mtk_cam_video_device *node) +{ +video_unregister_device (&node->vdev); +vb2_queue_release (&node->vbq); +media_entity_cleanup (&node->vdev.entity); +mutex_destroy (&node->vdev_lock); +} + +static int mtk_cam_v4l2_register (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +int i, ret; + +/* Set up media device & pads */ + ret =mtk_cam_media_register (cam, &cam->media_dev); +if (ret) +return ret; +dev_info (dev,"Registered media%d\n" , cam->media_dev.devnode->minor); + +/* Set up v4l2 device */ + cam->v4l2_dev.mdev = &cam->media_dev; + ret =v4l2_device_register (dev, &cam->v4l2_dev); +if (ret) { +dev_err (dev,"failed to register V4L2 device:%d\n" , ret); + goto fail_media_unreg; + } +dev_info (dev,"Registered %s\n" , cam->v4l2_dev.name); + +/* Initialize subdev */ +v4l2_subdev_init (&cam->subdev, &mtk_cam_subdev_ops); + cam->subdev.entity.function =MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER ; + cam->subdev.entity.ops = &mtk_cam_media_entity_ops; + cam->subdev.flags =V4L2_SUBDEV_FL_HAS_DEVNODE | +V4L2_SUBDEV_FL_HAS_EVENTS ; +snprintf (cam->subdev.name,sizeof (cam->subdev.name), +"%s" ,dev_driver_string (dev)); +v4l2_set_subdevdata (&cam->subdev, cam); + + ret =v4l2_device_register_subdev (&cam->v4l2_dev, &cam->subdev); +if (ret) { +dev_err (dev,"failed to initialize subdev:%d\n" , ret); + goto fail_clean_media_entiy; + } +dev_dbg (dev,"registered %s\n" , cam->subdev.name); + +/* Create video nodes and links */ +for (i =0 ; i <MTK_CAM_P1_TOTAL_NODES ; i++) { +struct mtk_cam_video_device *node = &cam->vdev_nodes[i]; + + node->id = node->desc.id; + ret =mtk_cam_video_register_device (cam, node); +if (ret) + goto fail_vdev_unreg; + } +vb2_dma_contig_set_max_seg_size (dev,DMA_BIT_MASK (32 )); + +return 0 ; + +fail_vdev_unreg: +for (i--; i >=0 ; i--) +mtk_cam_video_unregister_device (&cam->vdev_nodes[i]); +fail_clean_media_entiy: +media_entity_cleanup (&cam->subdev.entity); +v4l2_device_unregister (&cam->v4l2_dev); +fail_media_unreg: +media_device_unregister (&cam->media_dev); +media_device_cleanup (&cam->media_dev); + +return ret; +} + +static int mtk_cam_v4l2_unregister (struct mtk_cam_dev *cam) +{ +int i; + +for (i =0 ; i <MTK_CAM_P1_TOTAL_NODES ; i++) +mtk_cam_video_unregister_device (&cam->vdev_nodes[i]); + +vb2_dma_contig_clear_max_seg_size (cam->dev); +v4l2_device_unregister_subdev (&cam->subdev); +v4l2_device_unregister (&cam->v4l2_dev); +media_entity_cleanup (&cam->subdev.entity); +media_device_unregister (&cam->media_dev); +media_device_cleanup (&cam->media_dev); + +return 0 ; +} + +static int mtk_cam_dev_notifier_bound (struct v4l2_async_notifier *notifier, +struct v4l2_subdev *sd, +struct v4l2_async_subdev *asd) +{ +struct mtk_cam_dev *cam = + container_of(notifier, struct mtk_cam_dev, notifier); + +if (!(sd->entity.function &MEDIA_ENT_F_VID_IF_BRIDGE )) { +dev_dbg (cam->dev,"no MEDIA_ENT_F_VID_IF_BRIDGE function\n" ); +return -ENODEV ; + } + + cam->seninf = sd; +dev_dbg (cam->dev,"%s is bound\n" , sd->entity.name); + +return 0 ; +} + +static void mtk_cam_dev_notifier_unbind (struct v4l2_async_notifier *notifier, +struct v4l2_subdev *sd, +struct v4l2_async_subdev *asd) +{ +struct mtk_cam_dev *cam = + container_of(notifier, struct mtk_cam_dev, notifier); + + cam->seninf =NULL ; +dev_dbg (cam->dev,"%s is unbound\n" , sd->entity.name); +} + +static int mtk_cam_dev_notifier_complete (struct v4l2_async_notifier *notifier) +{ +struct mtk_cam_dev *cam = + container_of(notifier, struct mtk_cam_dev, notifier); +struct device *dev = cam->dev; +int ret; + +if (!cam->seninf) { +dev_err (dev,"No seninf subdev\n" ); +return -ENODEV ; + } + + ret =media_create_pad_link (&cam->seninf->entity,MTK_CAM_CIO_PAD_SRC , + &cam->subdev.entity,MTK_CAM_CIO_PAD_SINK , +MEDIA_LNK_FL_IMMUTABLE | +MEDIA_LNK_FL_ENABLED ); +if (ret) { +dev_err (dev,"failed to create pad link %s %s err:%d\n" , + cam->seninf->entity.name, cam->subdev.entity.name, + ret); +return ret; + } + + ret =v4l2_device_register_subdev_nodes (&cam->v4l2_dev); +if (ret) { +dev_err (dev,"failed to initialize subdev nodes:%d\n" , ret); +return ret; + } + +return ret; +} + +static const struct v4l2_async_notifier_operations mtk_cam_v4l2_async_ops = { + .bound = mtk_cam_dev_notifier_bound, + .unbind = mtk_cam_dev_notifier_unbind, + .complete = mtk_cam_dev_notifier_complete, +}; + +static int mtk_cam_v4l2_async_register (struct mtk_cam_dev *cam) +{ +struct device *dev = cam->dev; +int ret; + +v4l2_async_notifier_init (&cam->notifier); + ret =v4l2_async_notifier_parse_fwnode_endpoints (dev, + &cam->notifier,sizeof (struct v4l2_async_subdev ),NULL ); +if (ret) { +dev_err (dev,"failed to parse fwnode endpoints:%d\n" , ret); +return ret; + } + + cam->notifier.ops = &mtk_cam_v4l2_async_ops; +dev_dbg (dev,"mtk_cam v4l2_async_notifier_register\n" ); + ret =v4l2_async_notifier_register (&cam->v4l2_dev, &cam->notifier); +if (ret) { +dev_err (dev,"failed to register async notifier : %d\n" , ret); +v4l2_async_notifier_cleanup (&cam->notifier); + } + +return ret; +} + +static void mtk_cam_v4l2_async_unregister (struct mtk_cam_dev *cam) +{ +v4l2_async_notifier_unregister (&cam->notifier); +v4l2_async_notifier_cleanup (&cam->notifier); +} + +static const struct v4l2_ioctl_ops mtk_cam_v4l2_vcap_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_framesizes = mtk_cam_vidioc_enum_framesizes, + .vidioc_enum_fmt_vid_cap = mtk_cam_vidioc_enum_fmt, + .vidioc_g_fmt_vid_cap_mplane = mtk_cam_vidioc_g_fmt, + .vidioc_s_fmt_vid_cap_mplane = mtk_cam_vidioc_s_fmt, + .vidioc_try_fmt_vid_cap_mplane = mtk_cam_vidioc_try_fmt, + .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf, + .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, + .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, + .vidioc_unsubscribe_event = v4l2_event_unsubscribe, +}; + +static const struct v4l2_ioctl_ops mtk_cam_v4l2_meta_cap_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_fmt_meta_cap = mtk_cam_vidioc_meta_enum_fmt, + .vidioc_g_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_s_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_try_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf, + .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, +}; + +static const struct v4l2_ioctl_ops mtk_cam_v4l2_meta_out_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_fmt_meta_out = mtk_cam_vidioc_meta_enum_fmt, + .vidioc_g_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_s_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_try_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf, + .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, +}; + +static const struct v4l2_format meta_fmts[] = { + { + .fmt.meta = { + .dataformat =V4L2_META_FMT_MTISP_PARAMS , + .buffersize =512 *SZ_1K , + }, + }, + { + .fmt.meta = { + .dataformat =V4L2_META_FMT_MTISP_3A , + .buffersize =1200 *SZ_1K , + }, + }, + { + .fmt.meta = { + .dataformat =V4L2_META_FMT_MTISP_AF , + .buffersize =640 *SZ_1K , + }, + }, + { + .fmt.meta = { + .dataformat =V4L2_META_FMT_MTISP_LCS , + .buffersize =288 *SZ_1K , + }, + }, + { + .fmt.meta = { + .dataformat =V4L2_META_FMT_MTISP_LMV , + .buffersize =256 , + }, + }, +}; + +static const struct v4l2_format stream_out_fmts[] = { +/* This is a default image format */ + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR10 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR8 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR12 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR14 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG8 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG10 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG12 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG14 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG8 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG10 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG12 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG14 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB8 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB10 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB12 , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB14 , + }, + }, +}; + +static const struct v4l2_format bin_out_fmts[] = { + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR8F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR10F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR12F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SBGGR14F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG8F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG10F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG12F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGBRG14F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG8F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG10F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG12F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SGRBG14F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB8F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB10F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB12F , + }, + }, + { + .fmt.pix_mp = { + .width =IMG_MAX_WIDTH , + .height =IMG_MAX_HEIGHT , + .pixelformat =V4L2_PIX_FMT_MTISP_SRGGB14F , + }, + }, +}; + +static const struct +mtk_cam_dev_node_desc output_queues[] = { + { + .id =MTK_CAM_P1_META_IN_0 , + .name ="meta input" , + .cap =V4L2_CAP_META_OUTPUT , + .buf_type =V4L2_BUF_TYPE_META_OUTPUT , + .link_flags =0 , + .image = false, + .smem_alloc = true, + .fmts = meta_fmts, + .default_fmt_idx =0 , + .max_buf_count =10 , + .ioctl_ops = &mtk_cam_v4l2_meta_out_ioctl_ops, + }, +}; + +static const struct +mtk_cam_dev_node_desc capture_queues[] = { + { + .id =MTK_CAM_P1_MAIN_STREAM_OUT , + .name ="main stream" , + .cap =V4L2_CAP_VIDEO_CAPTURE_MPLANE , + .buf_type =V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE , + .link_flags =MEDIA_LNK_FL_IMMUTABLE |MEDIA_LNK_FL_ENABLED , + .image = true, + .smem_alloc = false, + .dma_port =R_IMGO , + .fmts = stream_out_fmts, + .num_fmts =ARRAY_SIZE (stream_out_fmts), + .default_fmt_idx =0 , + .ioctl_ops = &mtk_cam_v4l2_vcap_ioctl_ops, + .frmsizes = &(struct v4l2_frmsizeenum ) { + .index =0 , + .type =V4L2_FRMSIZE_TYPE_CONTINUOUS , + .stepwise = { + .max_width =IMG_MAX_WIDTH , + .min_width =IMG_MIN_WIDTH , + .max_height =IMG_MAX_HEIGHT , + .min_height =IMG_MIN_HEIGHT , + .step_height =1 , + .step_width =1 , + }, + }, + }, + { + .id =MTK_CAM_P1_PACKED_BIN_OUT , + .name ="packed out" , + .cap =V4L2_CAP_VIDEO_CAPTURE_MPLANE ,Lines of this file are not shown. View the raw message.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h new file +244
-0Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Part of the diff is not shown here. View the raw message.
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
In reply to Jungo LinHi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:
I would be nice if you could provide a branch with those applied.
Quoted 13 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serial
Quoted 6 lines
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)
If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Quoted 4 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []
I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Quoted 2 lines
pad1: Source -> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]
Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Quoted 2 lines
pad2: Source -> "mtk-cam-p1 packed out":0 []
Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Quoted 8 lines
pad3: Source -> "mtk-cam-p1 partial meta 0":0 [] pad4: Source -> "mtk-cam-p1 partial meta 1":0 [] pad5: Source -> "mtk-cam-p1 partial meta 2":0 [] pad6: Source -> "mtk-cam-p1 partial meta 3":0 []
Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: Source
Why source pads that are not connected to anything? (I guess I need to check the last patch better).
Regards,
Helen
Quoted 1,954 lines
pad11: Sink <- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED] pad1: Sink [fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 [] pad2: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad3: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad4: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE] pad5: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad6: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad7: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad8: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad9: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad10: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad11: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none] -> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.67 Capabilities : 0x8c200000Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x8c200000Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000016 Type : V4L Video Entity Info: ID : 0x00000014 (20) Name : mtk-cam-p1 main stream Function : V4L2 I/O Pad 0x01000015 : 0: Sink Link 0x02000018: from remote pad 0x1000003 of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300001c Type : V4L Video Entity Info: ID : 0x0000001a (26) Name : mtk-cam-p1 packed out Function : V4L2 I/O Pad 0x0100001b : 0: Sink Link 0x0200001e: from remote pad 0x1000004 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000022 Type : V4L Video Entity Info: ID : 0x00000020 (32) Name : mtk-cam-p1 partial meta 0 Function : V4L2 I/O Pad 0x01000021 : 0: Sink Link 0x02000024: from remote pad 0x1000005 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000028 Type : V4L Video Entity Info: ID : 0x00000026 (38) Name : mtk-cam-p1 partial meta 1 Function : V4L2 I/O Pad 0x01000027 : 0: Sink Link 0x0200002a: from remote pad 0x1000006 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300002e Type : V4L Video Entity Info: ID : 0x0000002c (44) Name : mtk-cam-p1 partial meta 2 Function : V4L2 I/O Pad 0x0100002d : 0: Sink Link 0x02000030: from remote pad 0x1000007 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000034 Type : V4L Video Entity Info: ID : 0x00000032 (50) Name : mtk-cam-p1 partial meta 3 Function : V4L2 I/O Pad 0x01000033 : 0: Sink Link 0x02000036: from remote pad 0x1000008 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000050 Type : V4L Sub-Device Entity Info: ID : 0x00000001 (1) Name : mtk-cam-p1 Function : Video Pixel Formatter Pad 0x01000002 : 0: Sink Link 0x02000012: from remote pad 0x100000f of entity 'mtk-cam-p1 meta input': Data Pad 0x01000003 : 1: Source Link 0x02000018: to remote pad 0x1000015 of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable Pad 0x01000004 : 2: Source Link 0x0200001e: to remote pad 0x100001b of entity 'mtk-cam-p1 packed out': Data Pad 0x01000005 : 3: Source Link 0x02000024: to remote pad 0x1000021 of entity 'mtk-cam-p1 partial meta 0': Data Pad 0x01000006 : 4: Source Link 0x0200002a: to remote pad 0x1000027 of entity 'mtk-cam-p1 partial meta 1': Data Pad 0x01000007 : 5: Source Link 0x02000030: to remote pad 0x100002d of entity 'mtk-cam-p1 partial meta 2': Data Pad 0x01000008 : 6: Source Link 0x02000036: to remote pad 0x1000033 of entity 'mtk-cam-p1 partial meta 3': Data Pad 0x01000009 : 7: Source Pad 0x0100000a : 8: Source Pad 0x0100000b : 9: Source Pad 0x0100000c : 10: Source Pad 0x0100000d : 11: Sink Link 0x0200004e: from remote pad 0x100003d of entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000052 Type : V4L Sub-Device Entity Info: ID : 0x00000038 (56) Name : 1a040000.seninf Function : Video Interface Bridge Pad 0x01000039 : 0: Sink Link 0x02000047: from remote pad 0x1000046 of entity 'ov8856 2-0010': Data, Enabled Pad 0x0100003a : 1: Sink Link 0x0200004c: from remote pad 0x100004b of entity 'ov02a10 4-003d': Data Pad 0x0100003b : 2: Sink Pad 0x0100003c : 3: Sink Pad 0x0100003d : 4: Source Link 0x0200004e: to remote pad 0x100000d of entity 'mtk-cam-p1': Data, Enabled, Immutable Pad 0x0100003e : 5: Source Pad 0x0100003f : 6: Source Pad 0x01000040 : 7: Source Pad 0x01000041 : 8: Source Pad 0x01000042 : 9: Source Pad 0x01000043 : 10: Source Pad 0x01000044 : 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000054 Type : V4L Sub-Device Entity Info: ID : 0x00000045 (69) Name : ov8856 2-0010 Function : Camera Sensor Pad 0x01000046 : 0: Source Link 0x02000047: to remote pad 0x1000039 of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)
test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000056 Type : V4L Sub-Device Entity Info: ID : 0x00000049 (73) Name : dw9768 2-000c Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000058 Type : V4L Sub-Device Entity Info: ID : 0x0000004a (74) Name : ov02a10 4-003d Function : Camera Sensor Pad 0x0100004b : 0: Source Link 0x0200004c: to remote pad 0x100003a of entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/Kconfig create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Hi Helen:
Thanks for your comment.
Quoted 58 lines · Helen Koike
Hi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.
Quoted 6 lines
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:I would be nice if you could provide a branch with those applied.
We apply those patches in the chromeos-4.19 to test.
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-4.19
Quoted 17 lines
Quoted 17 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serialbus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89
Quoted 8 lines
Quoted 2 lines
Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Currently, we only support single-cam in this SoC with upstream driver. It is plan in next Mediatek SoC to support multi-cam capabilities. So we'd like to keep the naming to avoid confusion.
Quoted 7 lines
Quoted 4 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Ok, we will revise our naming in next patch.
Quoted 5 lines
Quoted 2 lines
pad1: Source -> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Yes, you are right. We will remove IMMUTABLE flag in next patch.
Quoted 5 lines
Quoted 2 lines
pad2: Source -> "mtk-cam-p1 packed out":0 []Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Comparing with V4L2_PIX_FMT_SGBRG8, we packed the color bits without no padding in the memory. We may revise the naming in next patch.
Quoted 9 lines
Quoted 8 lines
pad3: Source -> "mtk-cam-p1 partial meta 0":0 [] pad4: Source -> "mtk-cam-p1 partial meta 1":0 [] pad5: Source -> "mtk-cam-p1 partial meta 2":0 [] pad6: Source -> "mtk-cam-p1 partial meta 3":0 []
Quoted 9 lines
Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
No, these links are optional to setup for userspace. For naming part, we will align with driver source codes.
Quoted 7 lines
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: SourceWhy source pads that are not connected to anything? (I guess I need to check the last patch better).
These pads are just reserved purpose.
We will plan to remove them in next patch.
Thanks,
Jungo
Quoted 1,962 lines
Regards,
HelenQuoted 1,945 lines
pad11: Sink <- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED] pad1: Sink [fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 [] pad2: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad3: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad4: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE] pad5: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad6: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad7: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad8: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad9: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad10: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad11: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none] -> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.67 Capabilities : 0x8c200000Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x8c200000Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000016 Type : V4L Video Entity Info: ID : 0x00000014 (20) Name : mtk-cam-p1 main stream Function : V4L2 I/O Pad 0x01000015 : 0: Sink Link 0x02000018: from remote pad 0x1000003 of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300001c Type : V4L Video Entity Info: ID : 0x0000001a (26) Name : mtk-cam-p1 packed out Function : V4L2 I/O Pad 0x0100001b : 0: Sink Link 0x0200001e: from remote pad 0x1000004 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000022 Type : V4L Video Entity Info: ID : 0x00000020 (32) Name : mtk-cam-p1 partial meta 0 Function : V4L2 I/O Pad 0x01000021 : 0: Sink Link 0x02000024: from remote pad 0x1000005 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000028 Type : V4L Video Entity Info: ID : 0x00000026 (38) Name : mtk-cam-p1 partial meta 1 Function : V4L2 I/O Pad 0x01000027 : 0: Sink Link 0x0200002a: from remote pad 0x1000006 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300002e Type : V4L Video Entity Info: ID : 0x0000002c (44) Name : mtk-cam-p1 partial meta 2 Function : V4L2 I/O Pad 0x0100002d : 0: Sink Link 0x02000030: from remote pad 0x1000007 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000034 Type : V4L Video Entity Info: ID : 0x00000032 (50) Name : mtk-cam-p1 partial meta 3 Function : V4L2 I/O Pad 0x01000033 : 0: Sink Link 0x02000036: from remote pad 0x1000008 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000050 Type : V4L Sub-Device Entity Info: ID : 0x00000001 (1) Name : mtk-cam-p1 Function : Video Pixel Formatter Pad 0x01000002 : 0: Sink Link 0x02000012: from remote pad 0x100000f of entity 'mtk-cam-p1 meta input': Data Pad 0x01000003 : 1: Source Link 0x02000018: to remote pad 0x1000015 of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable Pad 0x01000004 : 2: Source Link 0x0200001e: to remote pad 0x100001b of entity 'mtk-cam-p1 packed out': Data Pad 0x01000005 : 3: Source Link 0x02000024: to remote pad 0x1000021 of entity 'mtk-cam-p1 partial meta 0': Data Pad 0x01000006 : 4: Source Link 0x0200002a: to remote pad 0x1000027 of entity 'mtk-cam-p1 partial meta 1': Data Pad 0x01000007 : 5: Source Link 0x02000030: to remote pad 0x100002d of entity 'mtk-cam-p1 partial meta 2': Data Pad 0x01000008 : 6: Source Link 0x02000036: to remote pad 0x1000033 of entity 'mtk-cam-p1 partial meta 3': Data Pad 0x01000009 : 7: Source Pad 0x0100000a : 8: Source Pad 0x0100000b : 9: Source Pad 0x0100000c : 10: Source Pad 0x0100000d : 11: Sink Link 0x0200004e: from remote pad 0x100003d of entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000052 Type : V4L Sub-Device Entity Info: ID : 0x00000038 (56) Name : 1a040000.seninf Function : Video Interface Bridge Pad 0x01000039 : 0: Sink Link 0x02000047: from remote pad 0x1000046 of entity 'ov8856 2-0010': Data, Enabled Pad 0x0100003a : 1: Sink Link 0x0200004c: from remote pad 0x100004b of entity 'ov02a10 4-003d': Data Pad 0x0100003b : 2: Sink Pad 0x0100003c : 3: Sink Pad 0x0100003d : 4: Source Link 0x0200004e: to remote pad 0x100000d of entity 'mtk-cam-p1': Data, Enabled, Immutable Pad 0x0100003e : 5: Source Pad 0x0100003f : 6: Source Pad 0x01000040 : 7: Source Pad 0x01000041 : 8: Source Pad 0x01000042 : 9: Source Pad 0x01000043 : 10: Source Pad 0x01000044 : 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000054 Type : V4L Sub-Device Entity Info: ID : 0x00000045 (69) Name : ov8856 2-0010 Function : Camera Sensor Pad 0x01000046 : 0: Source Link 0x02000047: to remote pad 0x1000039 of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)
test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000056 Type : V4L Sub-Device Entity Info: ID : 0x00000049 (73) Name : dw9768 2-000c Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000058 Type : V4L Sub-Device Entity Info: ID : 0x0000004a (74) Name : ov02a10 4-003d Function : Camera Sensor Pad 0x0100004b : 0: Source Link 0x0200004c: to remote pad 0x100003a of entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/KconfigQuoted 9 lines
create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Hi Jungo,
Quoted 97 lines · Jungo Lin
Hi Helen:
Thanks for your comment.
Quoted 58 lines · Helen Koike
Hi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.Quoted 6 lines
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:I would be nice if you could provide a branch with those applied.
We apply those patches in the chromeos-4.19 to test.
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-4.19Quoted 23 lines
Quoted 13 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serialQuoted 6 lines
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
Quoted 6 lines
Quoted 2 lines
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Currently, we only support single-cam in this SoC with upstream driver. It is plan in next Mediatek SoC to support multi-cam capabilities. So we'd like to keep the naming to avoid confusion.
I suppose this new Mediatek SoC would use this same driver?
I'm just thinking about backwards compatibility. When you add support for this other SoC, the topology naming will be different then, right? (I guess it's ok).
Quoted 42 lines
Quoted 8 lines
Quoted 5 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Ok, we will revise our naming in next patch.
Quoted 5 lines
Quoted 2 lines
pad1: Source -> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Yes, you are right. We will remove IMMUTABLE flag in next patch.
Quoted 5 lines
Quoted 2 lines
pad2: Source -> "mtk-cam-p1 packed out":0 []Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Comparing with
V4L2_PIX_FMT_SGBRG8, we packed the color bits without no padding in the memory. We may revise the naming in next patch.Quoted 14 lines
Quoted 8 lines
pad3: Source -> "mtk-cam-p1 partial meta 0":0 [] pad4: Source -> "mtk-cam-p1 partial meta 1":0 [] pad5: Source -> "mtk-cam-p1 partial meta 2":0 [] pad6: Source -> "mtk-cam-p1 partial meta 3":0 []Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
Quoted 6 lines
Quoted 4 lines
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
No, these links are optional to setup for userspace.
Right, I just saw in the patch that you use links to know which video nodes should participate in the stream, and you wait for STREAM_ON to be called in all video nodes before actually enabling the stream, correct?
I'm not sure if using the link state is the best option (please see my comment on 5/5). Instead of waiting for them to call STREAM_ON, userspace could do a request to enable the stream in all the interesting nodes at once.
Regards,
Helen
Quoted 10 lines
For naming part, we will align with driver source codes.
Quoted 7 lines
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: SourceWhy source pads that are not connected to anything? (I guess I need to check the last patch better).
Quoted 1,970 lines
These pads are just reserved purpose.
We will plan to remove them in next patch.Thanks,
Jungo
Quoted 1,962 lines
Regards,
HelenQuoted 1,945 lines
pad11: Sink <- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED] pad1: Sink [fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 [] pad2: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad3: Sink [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad4: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE] pad5: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad6: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad7: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad8: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad9: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad10: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] pad11: Source [fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none] -> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.67 Capabilities : 0x8c200000Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67 Hardware revision: 0x00000000 (0) Driver version : 4.19.67 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x8c200000Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000010 Type : V4L Video Entity Info: ID : 0x0000000e (14) Name : mtk-cam-p1 meta input Function : V4L2 I/O Pad 0x0100000f : 0: Source Link 0x02000012: to remote pad 0x1000002 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000016 Type : V4L Video Entity Info: ID : 0x00000014 (20) Name : mtk-cam-p1 main stream Function : V4L2 I/O Pad 0x01000015 : 0: Sink Link 0x02000018: from remote pad 0x1000003 of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84201000Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300001c Type : V4L Video Entity Info: ID : 0x0000001a (26) Name : mtk-cam-p1 packed out Function : V4L2 I/O Pad 0x0100001b : 0: Sink Link 0x0200001e: from remote pad 0x1000004 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000022 Type : V4L Video Entity Info: ID : 0x00000020 (32) Name : mtk-cam-p1 partial meta 0 Function : V4L2 I/O Pad 0x01000021 : 0: Sink Link 0x02000024: from remote pad 0x1000005 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000028 Type : V4L Video Entity Info: ID : 0x00000026 (38) Name : mtk-cam-p1 partial meta 1 Function : V4L2 I/O Pad 0x01000027 : 0: Sink Link 0x0200002a: from remote pad 0x1000006 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x0300002e Type : V4L Video Entity Info: ID : 0x0000002c (44) Name : mtk-cam-p1 partial meta 2 Function : V4L2 I/O Pad 0x0100002d : 0: Sink Link 0x02000030: from remote pad 0x1000007 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1 Card type : mtk-cam-p1 Bus info : platform:1a000000.camisp Driver version : 4.19.89 Capabilities : 0x84a00000Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000034 Type : V4L Video Entity Info: ID : 0x00000032 (50) Name : mtk-cam-p1 partial meta 3 Function : V4L2 I/O Pad 0x01000033 : 0: Sink Link 0x02000036: from remote pad 0x1000008 of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests.
testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000050 Type : V4L Sub-Device Entity Info: ID : 0x00000001 (1) Name : mtk-cam-p1 Function : Video Pixel Formatter Pad 0x01000002 : 0: Sink Link 0x02000012: from remote pad 0x100000f of entity 'mtk-cam-p1 meta input': Data Pad 0x01000003 : 1: Source Link 0x02000018: to remote pad 0x1000015 of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable Pad 0x01000004 : 2: Source Link 0x0200001e: to remote pad 0x100001b of entity 'mtk-cam-p1 packed out': Data Pad 0x01000005 : 3: Source Link 0x02000024: to remote pad 0x1000021 of entity 'mtk-cam-p1 partial meta 0': Data Pad 0x01000006 : 4: Source Link 0x0200002a: to remote pad 0x1000027 of entity 'mtk-cam-p1 partial meta 1': Data Pad 0x01000007 : 5: Source Link 0x02000030: to remote pad 0x100002d of entity 'mtk-cam-p1 partial meta 2': Data Pad 0x01000008 : 6: Source Link 0x02000036: to remote pad 0x1000033 of entity 'mtk-cam-p1 partial meta 3': Data Pad 0x01000009 : 7: Source Pad 0x0100000a : 8: Source Pad 0x0100000b : 9: Source Pad 0x0100000c : 10: Source Pad 0x0100000d : 11: Sink Link 0x0200004e: from remote pad 0x100003d of entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000052 Type : V4L Sub-Device Entity Info: ID : 0x00000038 (56) Name : 1a040000.seninf Function : Video Interface Bridge Pad 0x01000039 : 0: Sink Link 0x02000047: from remote pad 0x1000046 of entity 'ov8856 2-0010': Data, Enabled Pad 0x0100003a : 1: Sink Link 0x0200004c: from remote pad 0x100004b of entity 'ov02a10 4-003d': Data Pad 0x0100003b : 2: Sink Pad 0x0100003c : 3: Sink Pad 0x0100003d : 4: Source Link 0x0200004e: to remote pad 0x100000d of entity 'mtk-cam-p1': Data, Enabled, Immutable Pad 0x0100003e : 5: Source Pad 0x0100003f : 6: Source Pad 0x01000040 : 7: Source Pad 0x01000041 : 8: Source Pad 0x01000042 : 9: Source Pad 0x01000043 : 10: Source Pad 0x01000044 : 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000054 Type : V4L Sub-Device Entity Info: ID : 0x00000045 (69) Name : ov8856 2-0010 Function : Camera Sensor Pad 0x01000046 : 0: Source Link 0x02000047: to remote pad 0x1000039 of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)
test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000056 Type : V4L Sub-Device Entity Info: ID : 0x00000049 (73) Name : dw9768 2-000c Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1 Model : mtk-cam-p1 Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89 Hardware revision: 0x00000000 (0) Driver version : 4.19.89 Interface Info: ID : 0x03000058 Type : V4L Sub-Device Entity Info: ID : 0x0000004a (74) Name : ov02a10 4-003d Function : Camera Sensor Pad 0x0100004b : 0: Source Link 0x0200004c: to remote pad 0x100003a of entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) testVIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/KconfigQuoted 9 lines
create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Hi Helen;
Sorry for late reply.
Please check my feedback & questions below.
Quoted 104 lines · Helen Koike
Hi Jungo,
Quoted 100 lines · Jungo Lin
Hi Helen:
Thanks for your comment.
Quoted 58 lines · Helen Koike
Hi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.Quoted 6 lines
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:I would be nice if you could provide a branch with those applied.
We apply those patches in the chromeos-4.19 to test.
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-4.19Quoted 25 lines
Quoted 13 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serialQuoted 6 lines
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Quoted 8 lines
Quoted 3 lines
Currently, we only support single-cam in this SoC with upstream driver. It is plan in next Mediatek SoC to support multi-cam capabilities. So we'd like to keep the naming to avoid confusion.
I suppose this new Mediatek SoC would use this same driver?
I'm just thinking about backwards compatibility. When you add support for this other SoC, the topology naming will be different then, right? (I guess it's ok).
Sorry, my last comment should be corrected.
The new Mediatek SoC with new ISP HW version will support multi-cam capabilities with new upstream driver. Due to the new enrich function, it may not reuse current driver.
Quoted 52 lines
Quoted 42 lines
Quoted 8 lines
Quoted 5 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Ok, we will revise our naming in next patch.
Quoted 5 lines
Quoted 2 lines
pad1: Source
-> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Yes, you are right. We will remove IMMUTABLE flag in next patch.
Quoted 5 lines
Quoted 2 lines
pad2: Source
-> "mtk-cam-p1 packed out":0 []Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Comparing with
V4L2_PIX_FMT_SGBRG8, we packed the color bits without no padding in the memory. We may revise the naming in next patch.Quoted 14 lines
Quoted 8 lines
pad3: Source
-> "mtk-cam-p1 partial meta 0":0 []
pad4: Source
-> "mtk-cam-p1 partial meta 1":0 []
pad5: Source
-> "mtk-cam-p1 partial meta 2":0 []
pad6: Source
-> "mtk-cam-p1 partial meta 3":0 []Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
Quoted 6 lines
Quoted 4 lines
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
No, these links are optional to setup for userspace.
Right, I just saw in the patch that you use links to know which video nodes should participate in the stream, and you wait for
STREAM_ONto be called in all video nodes before actually enabling the stream, correct?
Quoted 8 lines
I'm not sure if using the link state is the best option (please see my comment on 5/5). Instead of waiting for them to call
STREAM_ON, userspace could do a request to enable the stream in all the interesting nodes at once.Regards,
Helen
According to your suggestion, do you have sample code about "userspace could do a request to enable the stream in all the interesting nodes at once"? If this supports, it is helpful for us to simply our current implementation.
Thanks,
Jungo
Quoted 1,979 lines
Quoted 1,979 lines
For naming part, we will align with driver source codes.
Quoted 7 lines
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: SourceWhy source pads that are not connected to anything? (I guess I need to check the last patch better).
These pads are just reserved purpose.
We will plan to remove them in next patch.Thanks,
Jungo
Quoted 1,962 lines
Regards,
HelenQuoted 1,945 lines
pad11: Sink
<- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links) type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev1
pad0: Sink
[fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED]
pad1: Sink
[fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 []
pad2: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad3: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad4: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE]
pad5: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad6: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad7: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad8: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad9: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad10: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad11: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0 device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none]
-> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.67
Capabilities :0x8c200000
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x8c200000
Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000016
Type : V4L Video
Entity Info:
ID :0x00000014(20)
Name : mtk-cam-p1 main stream
Function : V4L2 I/O
Pad0x01000015: 0: Sink
Link0x02000018: from remote pad0x1000003of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300001c
Type : V4L Video
Entity Info:
ID :0x0000001a(26)
Name : mtk-cam-p1 packed out
Function : V4L2 I/O
Pad0x0100001b: 0: Sink
Link0x0200001e: from remote pad0x1000004of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000022
Type : V4L Video
Entity Info:
ID :0x00000020(32)
Name : mtk-cam-p1 partial meta 0
Function : V4L2 I/O
Pad0x01000021: 0: Sink
Link0x02000024: from remote pad0x1000005of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000028
Type : V4L Video
Entity Info:
ID :0x00000026(38)
Name : mtk-cam-p1 partial meta 1
Function : V4L2 I/O
Pad0x01000027: 0: Sink
Link0x0200002a: from remote pad0x1000006of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300002e
Type : V4L Video
Entity Info:
ID :0x0000002c(44)
Name : mtk-cam-p1 partial meta 2
Function : V4L2 I/O
Pad0x0100002d: 0: Sink
Link0x02000030: from remote pad0x1000007of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000034
Type : V4L Video
Entity Info:
ID :0x00000032(50)
Name : mtk-cam-p1 partial meta 3
Function : V4L2 I/O
Pad0x01000033: 0: Sink
Link0x02000036: from remote pad0x1000008of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000050
Type : V4L Sub-Device
Entity Info:
ID :0x00000001(1)
Name : mtk-cam-p1
Function : Video Pixel Formatter
Pad0x01000002: 0: Sink
Link0x02000012: from remote pad0x100000fof entity 'mtk-cam-p1 meta input': Data
Pad0x01000003: 1: Source
Link0x02000018: to remote pad0x1000015of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable
Pad0x01000004: 2: Source
Link0x0200001e: to remote pad0x100001bof entity 'mtk-cam-p1 packed out': Data
Pad0x01000005: 3: Source
Link0x02000024: to remote pad0x1000021of entity 'mtk-cam-p1 partial meta 0': Data
Pad0x01000006: 4: Source
Link0x0200002a: to remote pad0x1000027of entity 'mtk-cam-p1 partial meta 1': Data
Pad0x01000007: 5: Source
Link0x02000030: to remote pad0x100002dof entity 'mtk-cam-p1 partial meta 2': Data
Pad0x01000008: 6: Source
Link0x02000036: to remote pad0x1000033of entity 'mtk-cam-p1 partial meta 3': Data
Pad0x01000009: 7: Source
Pad0x0100000a: 8: Source
Pad0x0100000b: 9: Source
Pad0x0100000c: 10: Source
Pad0x0100000d: 11: Sink
Link0x0200004e: from remote pad0x100003dof entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000052
Type : V4L Sub-Device
Entity Info:
ID :0x00000038(56)
Name : 1a040000.seninf
Function : Video Interface Bridge
Pad0x01000039: 0: Sink
Link0x02000047: from remote pad0x1000046of entity 'ov8856 2-0010': Data, Enabled
Pad0x0100003a: 1: Sink
Link0x0200004c: from remote pad0x100004bof entity 'ov02a10 4-003d': Data
Pad0x0100003b: 2: Sink
Pad0x0100003c: 3: Sink
Pad0x0100003d: 4: Source
Link0x0200004e: to remote pad0x100000dof entity 'mtk-cam-p1': Data, Enabled, Immutable
Pad0x0100003e: 5: Source
Pad0x0100003f: 6: Source
Pad0x01000040: 7: Source
Pad0x01000041: 8: Source
Pad0x01000042: 9: Source
Pad0x01000043: 10: Source
Pad0x01000044: 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000054
Type : V4L Sub-Device
Entity Info:
ID :0x00000045(69)
Name : ov8856 2-0010
Function : Camera Sensor
Pad0x01000046: 0: Source
Link0x02000047: to remote pad0x1000039of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000056
Type : V4L Sub-Device
Entity Info:
ID :0x00000049(73)
Name : dw9768 2-000c
Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000058
Type : V4L Sub-Device
Entity Info:
ID :0x0000004a(74)
Name : ov02a10 4-003d
Function : Camera Sensor
Pad0x0100004b: 0: Source
Link0x0200004c: to remote pad0x100003aof entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/KconfigQuoted 9 lines
create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Hi Jungo,
Quoted 120 lines · Jungo Lin
Hi Helen;
Sorry for late reply.
Please check my feedback & questions below.Quoted 104 lines · Helen Koike
Hi Jungo,
Quoted 100 lines · Jungo Lin
Hi Helen:
Thanks for your comment.
Quoted 58 lines · Helen Koike
Hi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.Quoted 6 lines
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:I would be nice if you could provide a branch with those applied.
We apply those patches in the chromeos-4.19 to test.
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-4.19Quoted 25 lines
Quoted 13 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serialQuoted 6 lines
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Quoted 8 lines
Quoted 3 lines
Currently, we only support single-cam in this SoC with upstream driver. It is plan in next Mediatek SoC to support multi-cam capabilities. So we'd like to keep the naming to avoid confusion.
I suppose this new Mediatek SoC would use this same driver?
I'm just thinking about backwards compatibility. When you add support for this other SoC, the topology naming will be different then, right? (I guess it's ok).
Quoted 4 lines
Sorry, my last comment should be corrected.
The new Mediatek SoC with new ISP HW version will support multi-cam capabilities with new upstream driver. Due to the new enrich function, it may not reuse current driver.
right, thanks for the clarification.
Quoted 63 lines
Quoted 53 lines
Quoted 43 lines
Quoted 9 lines
Quoted 6 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Ok, we will revise our naming in next patch.
Quoted 5 lines
Quoted 2 lines
pad1: Source
-> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Yes, you are right. We will remove IMMUTABLE flag in next patch.
Quoted 5 lines
Quoted 2 lines
pad2: Source
-> "mtk-cam-p1 packed out":0 []Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Comparing with
V4L2_PIX_FMT_SGBRG8, we packed the color bits without no padding in the memory. We may revise the naming in next patch.Quoted 14 lines
Quoted 8 lines
pad3: Source
-> "mtk-cam-p1 partial meta 0":0 []
pad4: Source
-> "mtk-cam-p1 partial meta 1":0 []
pad5: Source
-> "mtk-cam-p1 partial meta 2":0 []
pad6: Source
-> "mtk-cam-p1 partial meta 3":0 []Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
Quoted 6 lines
Quoted 4 lines
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
No, these links are optional to setup for userspace.
Right, I just saw in the patch that you use links to know which video nodes should participate in the stream, and you wait for
STREAM_ONto be called in all video nodes before actually enabling the stream, correct?Quoted 8 lines
I'm not sure if using the link state is the best option (please see my comment on 5/5). Instead of waiting for them to call
STREAM_ON, userspace could do a request to enable the stream in all the interesting nodes at once.Regards,
Helen
Quoted 4 lines
According to your suggestion, do you have sample code about "userspace could do a request to enable the stream in all the interesting nodes at once"? If this supports, it is helpful for us to simply our current implementation.
I was checking the request api docs [1] in more details and it seems this isn't possible, since "A request must contain at least one buffer, otherwise ENOENT is returned", and STREAMON is not listed on MEDIA_IOC_REQUEST_ALLOC doc[2].
[1] https://www.kernel.org/doc/html/latest/media/uapi/mediactl/request-api.html
[2] https://www.kernel.org/doc/html/latest/media/uapi/mediactl/media-ioc-request-alloc.html#media-ioc-request-alloc
What bothers me with the current implementation is that users could correctly configure the topology, but when calling VIDIOC_STREAMON in one capture node, if userspace doesn't call VIDIOC_STREAMON in all other capture nodes with enabled link, streaming will just "hang" (waiting for other nodes) without providing any feedback for userspace about what is wrong.
So I was trying to think about how this could be done differently.
I wonder it if would make sense to extend the Request API to allow calling VIDIOC_STREAMON to multiple nodes at once. If not, I guess we could at least add documentation somewhere explaining that calling VIDIOC_STREAMON in all capture nodes with enabled link is required to use this driver. Or/And add a dev_info() to print every time VIDIOC_STREAMON is called to inform that streaming is being held because it is waiting for other VIDIOC_STREAMON calls.
Regards,
Helen
Quoted 1,989 lines
Thanks,
Jungo
Quoted 1,979 lines
Quoted 1,979 lines
For naming part, we will align with driver source codes.
Quoted 7 lines
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: SourceWhy source pads that are not connected to anything? (I guess I need to check the last patch better).
These pads are just reserved purpose.
We will plan to remove them in next patch.Thanks,
Jungo
Quoted 1,962 lines
Regards,
HelenQuoted 1,945 lines
pad11: Sink
<- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links) type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev1
pad0: Sink
[fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED]
pad1: Sink
[fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 []
pad2: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad3: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad4: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE]
pad5: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad6: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad7: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad8: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad9: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad10: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad11: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0 device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none]
-> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.67
Capabilities :0x8c200000
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x8c200000
Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000016
Type : V4L Video
Entity Info:
ID :0x00000014(20)
Name : mtk-cam-p1 main stream
Function : V4L2 I/O
Pad0x01000015: 0: Sink
Link0x02000018: from remote pad0x1000003of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300001c
Type : V4L Video
Entity Info:
ID :0x0000001a(26)
Name : mtk-cam-p1 packed out
Function : V4L2 I/O
Pad0x0100001b: 0: Sink
Link0x0200001e: from remote pad0x1000004of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000022
Type : V4L Video
Entity Info:
ID :0x00000020(32)
Name : mtk-cam-p1 partial meta 0
Function : V4L2 I/O
Pad0x01000021: 0: Sink
Link0x02000024: from remote pad0x1000005of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000028
Type : V4L Video
Entity Info:
ID :0x00000026(38)
Name : mtk-cam-p1 partial meta 1
Function : V4L2 I/O
Pad0x01000027: 0: Sink
Link0x0200002a: from remote pad0x1000006of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300002e
Type : V4L Video
Entity Info:
ID :0x0000002c(44)
Name : mtk-cam-p1 partial meta 2
Function : V4L2 I/O
Pad0x0100002d: 0: Sink
Link0x02000030: from remote pad0x1000007of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000034
Type : V4L Video
Entity Info:
ID :0x00000032(50)
Name : mtk-cam-p1 partial meta 3
Function : V4L2 I/O
Pad0x01000033: 0: Sink
Link0x02000036: from remote pad0x1000008of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000050
Type : V4L Sub-Device
Entity Info:
ID :0x00000001(1)
Name : mtk-cam-p1
Function : Video Pixel Formatter
Pad0x01000002: 0: Sink
Link0x02000012: from remote pad0x100000fof entity 'mtk-cam-p1 meta input': Data
Pad0x01000003: 1: Source
Link0x02000018: to remote pad0x1000015of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable
Pad0x01000004: 2: Source
Link0x0200001e: to remote pad0x100001bof entity 'mtk-cam-p1 packed out': Data
Pad0x01000005: 3: Source
Link0x02000024: to remote pad0x1000021of entity 'mtk-cam-p1 partial meta 0': Data
Pad0x01000006: 4: Source
Link0x0200002a: to remote pad0x1000027of entity 'mtk-cam-p1 partial meta 1': Data
Pad0x01000007: 5: Source
Link0x02000030: to remote pad0x100002dof entity 'mtk-cam-p1 partial meta 2': Data
Pad0x01000008: 6: Source
Link0x02000036: to remote pad0x1000033of entity 'mtk-cam-p1 partial meta 3': Data
Pad0x01000009: 7: Source
Pad0x0100000a: 8: Source
Pad0x0100000b: 9: Source
Pad0x0100000c: 10: Source
Pad0x0100000d: 11: Sink
Link0x0200004e: from remote pad0x100003dof entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000052
Type : V4L Sub-Device
Entity Info:
ID :0x00000038(56)
Name : 1a040000.seninf
Function : Video Interface Bridge
Pad0x01000039: 0: Sink
Link0x02000047: from remote pad0x1000046of entity 'ov8856 2-0010': Data, Enabled
Pad0x0100003a: 1: Sink
Link0x0200004c: from remote pad0x100004bof entity 'ov02a10 4-003d': Data
Pad0x0100003b: 2: Sink
Pad0x0100003c: 3: Sink
Pad0x0100003d: 4: Source
Link0x0200004e: to remote pad0x100000dof entity 'mtk-cam-p1': Data, Enabled, Immutable
Pad0x0100003e: 5: Source
Pad0x0100003f: 6: Source
Pad0x01000040: 7: Source
Pad0x01000041: 8: Source
Pad0x01000042: 9: Source
Pad0x01000043: 10: Source
Pad0x01000044: 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000054
Type : V4L Sub-Device
Entity Info:
ID :0x00000045(69)
Name : ov8856 2-0010
Function : Camera Sensor
Pad0x01000046: 0: Source
Link0x02000047: to remote pad0x1000039of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000056
Type : V4L Sub-Device
Entity Info:
ID :0x00000049(73)
Name : dw9768 2-000c
Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000058
Type : V4L Sub-Device
Entity Info:
ID :0x0000004a(74)
Name : ov02a10 4-003d
Function : Camera Sensor
Pad0x0100004b: 0: Source
Link0x0200004c: to remote pad0x100003aof entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/KconfigQuoted 9 lines
create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Re: [v6, 0/5] media: media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Quoted 203 lines · Helen Koike
Hi Jungo,
Quoted 120 lines · Jungo Lin
Hi Helen;
Sorry for late reply.
Please check my feedback & questions below.Quoted 104 lines · Helen Koike
Hi Jungo,
Quoted 100 lines · Jungo Lin
Hi Helen:
Thanks for your comment.
Quoted 58 lines · Helen Koike
Hi Jungo,
I was taking a look at this patchset, please see my comments below.
Quoted 53 lines · Jungo Lin
Hello,
This patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 adds new timestamp type for Camera AR (Augmented Reality) application
* Patch 4 extends the original V4L2 image & meta formats for ISP P1 driver.
* Patch 5 is the heart of ISP P1 driver. It handles the ISP HW configuration. Moreover, implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. Communicate with co-process via SCP communication to compose ISP registers in the firmware.Quoted 6 lines
Quoted 3 lines
Here is ISP P1 media topology:
It is included the main/sub sensor, sen-inf sub-devices and len device which are implemented in below patch[1][2][3][4]:I would be nice if you could provide a branch with those applied.
We apply those patches in the chromeos-4.19 to test.
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/chromeos-4.19Quoted 25 lines
Quoted 13 lines
For Mediatek ISP P1 driver, it also depends on MT8183 SCP[5] & IOMMU[6] patch sets.
/usr/bin/media-ctl-p -d/dev/media2Media controller API version 4.19.89
Media device information
------------------------
driver mtk-cam-p1
model mtk-cam-p1
serialQuoted 6 lines
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.89Device topology
- entity 1: mtk-cam-p1 (12 pads, 8 links)If I understand correctly, the hardware supports 3 ISP instances, A, B, and C, and only B is being used. Is this correct?
So maybe, rename it to mtk-isp-p1-b, to allow mtk-isp-p1-a and mtk-isp-p1-c to be added in the future.
Quoted 8 lines
Quoted 3 lines
Currently, we only support single-cam in this SoC with upstream driver. It is plan in next Mediatek SoC to support multi-cam capabilities. So we'd like to keep the naming to avoid confusion.
I suppose this new Mediatek SoC would use this same driver?
I'm just thinking about backwards compatibility. When you add support for this other SoC, the topology naming will be different then, right? (I guess it's ok).Quoted 4 lines
Sorry, my last comment should be corrected.
The new Mediatek SoC with new ISP HW version will support multi-cam capabilities with new upstream driver. Due to the new enrich function, it may not reuse current driver.right, thanks for the clarification.
Quoted 63 lines
Quoted 53 lines
Quoted 43 lines
Quoted 9 lines
Quoted 6 lines
type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev0
pad0: Sink
<- "mtk-cam-p1 meta input":0 []I would prefer the name params, or parameters, since input/output is confusing, since this is a output video node.
Ok, we will revise our naming in next patch.
Quoted 5 lines
Quoted 2 lines
pad1: Source
-> "mtk-cam-p1 main stream":0 [ENABLED,IMMUTABLE]Is there any reason for this link to be IMMUTABLE? Can't a use "mtk-cam-p1 packed out" without configuring "mtk-cam-p1 main stream" ?
Yes, you are right. We will remove IMMUTABLE flag in next patch.
Quoted 5 lines
Quoted 2 lines
pad2: Source
-> "mtk-cam-p1 packed out":0 []Same here, maybe "packed stream" ? Just for curiosity, why is it called packed?
Comparing with
V4L2_PIX_FMT_SGBRG8, we packed the color bits without no padding in the memory. We may revise the naming in next patch.Quoted 14 lines
Quoted 8 lines
pad3: Source
-> "mtk-cam-p1 partial meta 0":0 []
pad4: Source
-> "mtk-cam-p1 partial meta 1":0 []
pad5: Source
-> "mtk-cam-p1 partial meta 2":0 []
pad6: Source
-> "mtk-cam-p1 partial meta 3":0 []Shouldn't those links be [ENABLED,IMMUTABLE] ?
It would be better to have a more intuitive naming, e.g. "mtk-cam-p1 AE/AWB stats", "mtk-cam-p1 AF stats", "mtk-cam-p1 contrast stats", "mtk-cam-p1 motion stats", what do you think?
Quoted 6 lines
Quoted 4 lines
I also would prefer to remove blank spaces.
And maybe the prefix could be mtkisp-p1 ? (just to be similar with rkisp1), but I don't have strong feelings about this.
No, these links are optional to setup for userspace.
Right, I just saw in the patch that you use links to know which video nodes should participate in the stream, and you wait for
STREAM_ONto be called in all video nodes before actually enabling the stream, correct?Quoted 8 lines
I'm not sure if using the link state is the best option (please see my comment on 5/5). Instead of waiting for them to call
STREAM_ON, userspace could do a request to enable the stream in all the interesting nodes at once.Regards,
HelenQuoted 4 lines
According to your suggestion, do you have sample code about "userspace could do a request to enable the stream in all the interesting nodes at once"? If this supports, it is helpful for us to simply our current implementation.
I was checking the request api docs [1] in more details and it seems this isn't possible, since "A request must contain at least one buffer, otherwise ENOENT is returned", and STREAMON is not listed on
MEDIA_IOC_REQUEST_ALLOCdoc[2].
Quoted 7 lines
[1] https://www.kernel.org/doc/html/latest/media/uapi/mediactl/request-api.html
[2] https://www.kernel.org/doc/html/latest/media/uapi/mediactl/media-ioc-request-alloc.html#media-ioc-request-allocWhat bothers me with the current implementation is that users could correctly configure the topology, but when calling
VIDIOC_STREAMONin one capture node, if userspace doesn't callVIDIOC_STREAMONin all other capture nodes with enabled link, streaming will just "hang" (waiting for other nodes) without providing any feedback for userspace about what is wrong.
The problem isn't specific to Request API or ISPs. The same would happen in case of memory to memory devices, which need streaming on both OUTPUT and CAPTURE queues to be started.
Quoted 6 lines
So I was trying to think about how this could be done differently.
I wonder it if would make sense to extend the Request API to allow callingVIDIOC_STREAMONto multiple nodes at once. If not, I guess we could at least add documentation somewhere explaining that callingVIDIOC_STREAMONin all capture nodes with enabled link is required to use this driver. Or/And add adev_info()to print every timeVIDIOC_STREAMONis called to inform that streaming is being held because it is waiting for otherVIDIOC_STREAMONcalls.
I'd envision some API to tell the userspace which nodes are required for streaming. This could be perhaps inferred from the media controller topology. Then if there are some nodes not started yet, poll()/DQBUF could return some error.
Quoted 1,994 lines
Regards,
HelenQuoted 1,989 lines
Thanks,
Jungo
Quoted 1,979 lines
Quoted 1,979 lines
For naming part, we will align with driver source codes.
Quoted 7 lines
Quoted 4 lines
pad7: Source
pad8: Source
pad9: Source
pad10: SourceWhy source pads that are not connected to anything? (I guess I need to check the last patch better).
These pads are just reserved purpose.
We will plan to remove them in next patch.Thanks,
Jungo
Quoted 1,962 lines
Regards,
HelenQuoted 1,945 lines
pad11: Sink
<- "1a040000.seninf":4 [ENABLED,IMMUTABLE]- entity 14: mtk-cam-p1 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video2
pad0: Source
-> "mtk-cam-p1":0 []- entity 20: mtk-cam-p1 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video3
pad0: Sink
<- "mtk-cam-p1":1 [ENABLED,IMMUTABLE]- entity 26: mtk-cam-p1 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video4
pad0: Sink
<- "mtk-cam-p1":2 []- entity 32: mtk-cam-p1 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video5
pad0: Sink
<- "mtk-cam-p1":3 []- entity 38: mtk-cam-p1 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video6
pad0: Sink
<- "mtk-cam-p1":4 []- entity 44: mtk-cam-p1 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video7
pad0: Sink
<- "mtk-cam-p1":5 []- entity 50: mtk-cam-p1 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name
/dev/video8
pad0: Sink
<- "mtk-cam-p1":6 []- entity 56: 1a040000.seninf (12 pads, 3 links) type V4L2 subdev subtype Unknown flags 0 device node name
/dev/v4l-subdev1
pad0: Sink
[fmt:SGRBG10_1X10/3264x2448 field:none colorspace:srgb] <- "ov8856 2-0010":0 [ENABLED]
pad1: Sink
[fmt:SRGGB10_1X10/1600x1200 field:none colorspace:srgb] <- "ov02a10 4-003d":0 []
pad2: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad3: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad4: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "mtk-cam-p1":11 [ENABLED,IMMUTABLE]
pad5: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad6: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad7: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad8: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad9: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad10: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad11: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov8856 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0 device node name/dev/v4l-subdev2
pad0: Source
[fmt:SBGGR10_1X10/3264x2448 field:none colorspace:unknown ycbcr:709] -> "1a040000.seninf":0 [ENABLED]- entity 73: dw9768 2-000c (0 pad, 0 link) type V4L2 subdev subtype Lens flags 0 device node name
/dev/v4l-subdev3- entity 74: ov02a10 4-003d (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name
/dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/1600x1200 field:none]
-> "1a040000.seninf":1 []===========
= history =
===========version 6:
- Add port node description in the dt-binding document and device tree by Tomasz Figa.
- Remove RGB format definitions inpixfmt-rgb.rstfor kernel v5.5-rc1 version.
- Revise help description forVIDEO_MEDIATEK_ISP_PASS1.
- Apply SCP v21 change in P1 driver by Pi-Hsun Shih.
- Correct auto suspend timer value for suspend/resume issue.
- Increase IPI guard timer to 1 second to avoid false alarm command timeout event.
- Fix KE due to no sen-inf sub-device.Todo:
- vb2_ops'sbuf_request_completecallback function implementation.
- Add rst documents for Mediatek meta formats.
- New meta buffer structure design & re-factoring.version 5:
- Fixed Rob's comment on dt-binding format
- Fix Tomasz's comment inmtk_isp_pm_suspendfunction
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag and new timestamp type in driver
- Fix buffer en-queue timing issue in v4
- Remove defaultlink_notifycallback function inmtk_cam_media_opsTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- Align and pack IPI command structures for EC ROM size shrinkversion 4:
- Fix Tomasz's comments which are addressed in MTK ISP P1 driver v3 patch[4]
- Fix some Tomasz comments which are addressed in DIP's v2 patch[5]
- Extend Mediatek proprietary image formats to support bayer order
- SupportV4L2_BUF_FLAG_TSTAMP_SRC_SOEfor capture devicesTodo:
- vb2_ops'sbuf_request_completecallback function implementation
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
- SupportV4L2_BUF_FLAG_TIMESTAMP_BOOTTIMEtimestamp flag
- Align and pack IPI command structures for EC ROM size shrinkversion 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when runningv4l2_compliancetest
- Move AFO buffer enqueue & de-queue from request API to non-request
-mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil)
SplitGET_BIN_INFOcontrol into two controls to get width & height in-dependently (Hans Verkuil)
-mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Mergingmtk_cam-dev.candmtk_cam-v4l2-util.c. (Drew Davenport)
Remove thepix_modeargument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3] Refactoringmtk_isp_config&mtk_isp_req_enqueuefunctions
-mtk_cam-scp.h/mtk_cam-scp.c
Move function declarations frommtk_cam.htomtk_cam-scp.h(Drew Davenport) Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoringversion 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt &cam_smemdts node inmt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Removemtk_cam-ctx.h&mtk_cam-dev-ctx-core.cand move these source codes tomtk_cam-dev.h&mtk_cam-dev.c.
-mtk_cam-dev.h/mtk_cam-dev.c
Revisedmtk_cam_video_device&mtk_cam_devto remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Addvb2_dma_contig_set_max_seg_sizeto configure DMA max segment size.
-mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
-mtk_cam-regs.h/mtk_cam.h/mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Addisp_setup_scp_rprocfunction to get RPC handle
Addmtk_cam_reserved_memory_initfor shared memory management
-mtk_cam-scp.h/mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhanceisp_composer_dma_sg_initfunction flow
Shorten overall IPI command structure size
Removescp_statestate checking
Improve code readability
-mtk_cam-smem.h/mtk_cam-smem-dev.c
Addmtk_cam_alloc_smem_devto allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.TODOs:
- 3A enhancement feature bug fixingversion 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoringmtk_cam_scp.cto use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.TODOs:
- Removemtk_cam_smem_drv.c&mtk_cam_smem.hand implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffersversion 0:
- Initial submission==================
Dependent patch set
==================Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/11145845/[2]. media: ov8856: Add YAML binding and sensor mode support
https://patchwork.kernel.org/cover/11220785/[3]. media: i2c: Add support for OV02A10 sensor
https://patchwork.kernel.org/cover/11284779/[4]. media: i2c: add support for DW9768 VCM driver
https://patchwork.kernel.org/cover/11132299/[5]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/11239065/[6]. MT8183 IOMMU SUPPORT
https://patchwork.kernel.org/cover/11112765/==================
Compliance test
==================The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/?id=e9a7593ec6ae98704ecb35ea64948d34c23a5158Note 1.
This testing depends on the above seninf, sensors and len patches[1][2][3][4].Note 2.
For failed test csaes in video2~8, it is caused by new V4L2 timestamp calledV4L2_BUF_FLAG_TIMESTAMP_BOOTIME.Note 3.
The current some failure items are related to Mediatek sensors/len driver [2][3][3]
/usr/bin/v4l2-compliance-m/dev/media2v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam-p1 device
/dev/media1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media1open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video25:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.67
Capabilities :0x8c200000
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.67Hardware revision:
0x00000000(0)
Driver version : 4.19.67
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video25open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composiv4l2-compliance SHA: not available, 32 bitsCompliance test for mtk-cam-p1 device
/dev/media2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89Required ioctls:
testMEDIA_IOC_DEVICE_INFO: OKAllow for multiple opens:
test second/dev/media2open: OK
testMEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OKMedia Controller ioctls:
testMEDIA_IOC_G_TOPOLOGY: OK
Entities: 12 Interfaces: 12 Pads: 33 Links: 22
test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK
testMEDIA_IOC_SETUP_LINK: OKTotal for mtk-cam-p1 device
/dev/media2: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video2:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x8c200000
Metadata Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x0c200000
Metadata Output
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000010
Type : V4L Video
Entity Info:
ID :0x0000000e(14)
Name : mtk-cam-p1 meta input
Function : V4L2 I/O
Pad0x0100000f: 0: Source
Link0x02000012: to remote pad0x1000002of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video2open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video2: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video3:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000016
Type : V4L Video
Entity Info:
ID :0x00000014(20)
Name : mtk-cam-p1 main stream
Function : V4L2 I/O
Pad0x01000015: 0: Sink
Link0x02000018: from remote pad0x1000003of entity 'mtk-cam-p1': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video3open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video3: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video4:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300001c
Type : V4L Video
Entity Info:
ID :0x0000001a(26)
Name : mtk-cam-p1 packed out
Function : V4L2 I/O
Pad0x0100001b: 0: Sink
Link0x0200001e: from remote pad0x1000004of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video4open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OKCodec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video4: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video5:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000022
Type : V4L Video
Entity Info:
ID :0x00000020(32)
Name : mtk-cam-p1 partial meta 0
Function : V4L2 I/O
Pad0x01000021: 0: Sink
Link0x02000024: from remote pad0x1000005of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video5open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video5: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video6:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000028
Type : V4L Video
Entity Info:
ID :0x00000026(38)
Name : mtk-cam-p1 partial meta 1
Function : V4L2 I/O
Pad0x01000027: 0: Sink
Link0x0200002a: from remote pad0x1000006of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video6open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video6: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video7:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x0300002e
Type : V4L Video
Entity Info:
ID :0x0000002c(44)
Name : mtk-cam-p1 partial meta 2
Function : V4L2 I/O
Pad0x0100002d: 0: Sink
Link0x02000030: from remote pad0x1000007of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video7open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video7: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/video8:Driver Info:
Driver name : mtk-cam-p1
Card type : mtk-cam-p1
Bus info : platform:1a000000.camisp
Driver version : 4.19.89
Capabilities :0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps :0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000034
Type : V4L Video
Entity Info:
ID :0x00000032(50)
Name : mtk-cam-p1 partial meta 3
Function : V4L2 I/O
Pad0x01000033: 0: Sink
Link0x02000036: from remote pad0x1000008of entity 'mtk-cam-p1': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK testVIDIOC_QUERYCAP: OKAllow for multiple opens:
test second/dev/video8open: OK
testVIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OKDebug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) testVIDIOC_G_FBUF: OK (Not Supported) testVIDIOC_G_FMT: OK
testVIDIOC_TRY_FMT: OK
testVIDIOC_S_FMT: OK
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
fail: v4l2-test-buffers.cpp(370): timestamp !=V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC&& timestamp !=V4L2_BUF_FLAG_TIMESTAMP_COPY
fail: v4l2-test-buffers.cpp(486):buf.check(Unqueued, i)
fail: v4l2-test-buffers.cpp(615):testQueryBuf(node, i, q.g_buffers())
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(747):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(748):VIDIOC_EXPBUFis supported, but theV4L2_MEMORY_MMAPsupport is missing, probably due to earlier failing format tests. testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OKTotal for mtk-cam-p1 device
/dev/video8: 45, Succeeded: 44, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev0:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000050
Type : V4L Sub-Device
Entity Info:
ID :0x00000001(1)
Name : mtk-cam-p1
Function : Video Pixel Formatter
Pad0x01000002: 0: Sink
Link0x02000012: from remote pad0x100000fof entity 'mtk-cam-p1 meta input': Data
Pad0x01000003: 1: Source
Link0x02000018: to remote pad0x1000015of entity 'mtk-cam-p1 main stream': Data, Enabled, Immutable
Pad0x01000004: 2: Source
Link0x0200001e: to remote pad0x100001bof entity 'mtk-cam-p1 packed out': Data
Pad0x01000005: 3: Source
Link0x02000024: to remote pad0x1000021of entity 'mtk-cam-p1 partial meta 0': Data
Pad0x01000006: 4: Source
Link0x0200002a: to remote pad0x1000027of entity 'mtk-cam-p1 partial meta 1': Data
Pad0x01000007: 5: Source
Link0x02000030: to remote pad0x100002dof entity 'mtk-cam-p1 partial meta 2': Data
Pad0x01000008: 6: Source
Link0x02000036: to remote pad0x1000033of entity 'mtk-cam-p1 partial meta 3': Data
Pad0x01000009: 7: Source
Pad0x0100000a: 8: Source
Pad0x0100000b: 9: Source
Pad0x0100000c: 10: Source
Pad0x0100000d: 11: Sink
Link0x0200004e: from remote pad0x100003dof entity '1a040000.seninf': Data, Enabled, ImmutableRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev0open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) testVIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev0: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev1:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000052
Type : V4L Sub-Device
Entity Info:
ID :0x00000038(56)
Name : 1a040000.seninf
Function : Video Interface Bridge
Pad0x01000039: 0: Sink
Link0x02000047: from remote pad0x1000046of entity 'ov8856 2-0010': Data, Enabled
Pad0x0100003a: 1: Sink
Link0x0200004c: from remote pad0x100004bof entity 'ov02a10 4-003d': Data
Pad0x0100003b: 2: Sink
Pad0x0100003c: 3: Sink
Pad0x0100003d: 4: Source
Link0x0200004e: to remote pad0x100000dof entity 'mtk-cam-p1': Data, Enabled, Immutable
Pad0x0100003e: 5: Source
Pad0x0100003f: 6: Source
Pad0x01000040: 7: Source
Pad0x01000041: 8: Source
Pad0x01000042: 9: Source
Pad0x01000043: 10: Source
Pad0x01000044: 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev1open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev1: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev2:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000054
Type : V4L Sub-Device
Entity Info:
ID :0x00000045(69)
Name : ov8856 2-0010
Function : Camera Sensor
Pad0x01000046: 0: Source
Link0x02000047: to remote pad0x1000039of entity '1a040000.seninf': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev2open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL
fail: v4l2-test-subdevs.cpp(313): fmt.code == 0 || fmt.code == ~0U
fail: v4l2-test-subdevs.cpp(356):checkMBusFrameFmt(node, fmt.format)test Try VIDIOC_SUBDEV_G/S_FMT: FAIL
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
fail: v4l2-test-subdevs.cpp(147):doioctl(node, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, &fse)
fail: v4l2-test-subdevs.cpp(248): ret && ret != ENOTTY
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: FAIL test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev2: 48, Succeeded: 44, Failed: 4, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev3:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000056
Type : V4L Sub-Device
Entity Info:
ID :0x00000049(73)
Name : dw9768 2-000c
Function : Lens ControllerRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev3open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
fail: v4l2-test-controls.cpp(830): subscribe event for control 'Camera Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev3: 41, Succeeded: 40, Failed: 1, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam-p1 device/dev/v4l-subdev4:Media Driver Info:
Driver name : mtk-cam-p1
Model : mtk-cam-p1Serial : Bus info : platform:1a000000.camisp Media version : 4.19.89Hardware revision:
0x00000000(0)
Driver version : 4.19.89
Interface Info:
ID :0x03000058
Type : V4L Sub-Device
Entity Info:
ID :0x0000004a(74)
Name : ov02a10 4-003d
Function : Camera Sensor
Pad0x0100004b: 0: Source
Link0x0200004c: to remote pad0x100003aof entity '1a040000.seninf': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OKAllow for multiple opens:
test second/dev/v4l-subdev4open: OK
test for unlimited opens: OKDebug ioctls:
testVIDIOC_LOG_STATUS: OK (Not Supported)Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) testVIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) testVIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
testVIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) testVIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
testVIDIOC_QUERYCTRL: OK
fail: v4l2-test-controls.cpp(362): returned control value out of range
fail: v4l2-test-controls.cpp(431): invalid control009e0902
test VIDIOC_G/S_CTRL: FAIL
fail: v4l2-test-controls.cpp(549): returned control value out of range
fail: v4l2-test-controls.cpp(665): invalid control009e0902
test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(830): subscribe event for control 'User Controls' failed test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
testVIDIOC_G_FBUF: OK (Not Supported)
testVIDIOC_G_FMT: OK (Not Supported)
testVIDIOC_TRY_FMT: OK (Not Supported)
testVIDIOC_S_FMT: OK (Not Supported)
testVIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
testVIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) testVIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)Total for mtk-cam-p1 device
/dev/v4l-subdev4: 48, Succeeded: 45, Failed: 3, Warnings: 0Grand Total for mtk-cam-p1 device
/dev/media2: 709, Succeeded: 694, Failed: 15, Warnings: 0Jungo Lin (5):
media: dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media:videodev2.h: Add new boottime timestamp type
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 device driver.../bindings/media/mediatek,camisp.txt | 83 + Documentation/media/uapi/v4l/buffer.rst | 11 +- .../media/uapi/v4l/pixfmt-mtisp-sbggr10.rst | 65 + .../media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst | 90 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12.rst | 61 + .../media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14.rst | 73 + .../media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst | 110 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8.rst | 51 + .../media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst | 78 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 38 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/mtk-isp/Kconfig | 20 + .../media/platform/mtk-isp/isp_50/Makefile | 3 + .../platform/mtk-isp/isp_50/cam/Makefile | 6 + .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.c | 636 +++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-hw.h | 64 + .../platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h | 222 ++ .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 95 + .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 2087 +++++++++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 244 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 37 + include/uapi/linux/videodev2.h | 41 + 24 files changed, 4226 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr10f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr12f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr14f.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtisp-sbggr8f.rst create mode 100644 drivers/media/platform/mtk-isp/KconfigQuoted 9 lines
create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-hw.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ipi.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
v3 cover media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver
Hello,
This RFC patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which
will be used in camera features of CrOS. It's the first time Mediatek develops ISP kernel drivers based on V4L2 and media controller framework. I posted the main part of the ISP Pass 1 driver as RFC to discuss first and would like some review comments on the overall architecture of the driver.
Pass 1 unit processes image signal from sensor devices and accepts the tuning parameters to adjust the image quality. It performs optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction for RAW processing.
The driver is implemented with V4L2 and media controller framework so we have the following entities to describe the ISP pass 1 path.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
1. meta input (output video device): connect to ISP P1 sub device. It accepts the tuning buffer from user.
2. ISP P1 (sub device): connect to partial meta 0/1/2/3, main stream and packed out video devices. When processing an image, Pass 1 hardware supports multiple output images with different sizes and formats so it needs two capture video devices ("main stream" and "packed out") to return the image data to the user.
3. main stream (capture video device): return the processed image data which is used in capture scenario.
4. packed out (capture video device): return the processed image data which is used in preview scenario.
5. partial meta 0 (capture video device): return the AE/AWB statistics.
6. partial meta 1 (capture video device): return the AF statistics.
7. partial meta 2 (capture video device): return the local contrast enhanced statistics.
8. partial meta 3 (capture video device): return the local motion vector statistics.
The overall patches of the series is:
* Patch 1 & 2 are dt-bindings & dts information related to ISP P1 driver.
* Patch 3 is Kconfig configuration for ISP P1 driver.
* Patch 4 extends the original V4L2 image & meta formats.
* Patch 5 add Mediatek specific v4l2 control ID for ISP P1 driver.
* Patch 6 provides V4L2 utility functions & default video devices configuration & initialization for ISP P1 driver.
* Patch 7 is the heart of ISP P1 driver. It handles the ISP HW configuration, provides interrupt handling and initializes the V4L2 device nodes and other functions.
* Patch 8 adds communication with the co-processor on the SoC through the SCP driver[2].
* Patch 9 provides ISP P1 shard memory management between ISP P1 & co-processor. It is controlled by child device of ISP P1 driver.
Here is ISP P1 media topology:
It is included the main/sub sensor & sen-inf sub-devices which are implemented in below patch[1][4][5]:
/usr/bin/media-ctl -p -d /dev/media1
Media controller API version 4.19.43
Media device information
------------------------
driver mtk-cam
model MTK-ISP-P1-V4L2
serial
bus info platform:1a000000.camisp hw revision 0x0 driver version 4.19.43
Device topology
- entity 1: MTK-ISP-P1-V4L2 (12 pads, 8 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
<- "MK-ISP-P1-V4L2 meta input":0 []
pad1: Source
-> "MTK-ISP-P1-V4L2 main stream":0 [ENABLED]
pad2: Source
-> "MTK-ISP-P1-V4L2 packed out":0 [ENABLED]
pad3: Source
-> "MTK-ISP-P1-V4L2 partial meta 0":0 []
pad4: Source
-> "MTK-ISP-P1-V4L2 partial meta 1":0 []
pad5: Source
-> "MTK-ISP-P1-V4L2 partial meta 2":0 []
pad6: Source
-> "MTK-ISP-P1-V4L2 partial meta 3":0 []
pad7: Source
pad8: Source
pad9: Source
pad10: Source
pad11: Sink
<- "1a040000.seninf.mipi-csi":4 []- entity 14: MTK-ISP-P1-V4L2 meta input (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video12
pad0: Sink
-> "MTK-ISP-P1-V4L2":0 []
- entity 20: MTK-ISP-P1-V4L2 main stream (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video13
pad0: Source
<- "MTK-ISP-P1-V4L2":1 [ENABLED]
- entity 26: MTK-ISP-P1-V4L2 packed out (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video14
pad0: Source
<- "MTK-ISP-P1-V4L2":2 [ENABLED]
- entity 32: MTK-ISP-P1-V4L2 partial meta 0 (1 pad, 1 link) type Node subtype V4L flags 0
device node name /dev/video15
pad0: Source
<- "MTK-ISP-P1-V4L2":3 []
- entity 38: MTK-ISP-P1-V4L2 partial meta 1 (1 pad, 1 link) type Node subtype V4L flags 0
device node name /dev/video16
pad0: Source
<- "MTK-ISP-P1-V4L2":4 []
- entity 44: MTK-ISP-P1-V4L2 partial meta 2 (1 pad, 1 link) type Node subtype V4L flags 0
device node name /dev/video17
pad0: Source
<- "MTK-ISP-P1-V4L2":5 []
- entity 50: MTK-ISP-P1-V4L2 partial meta 3 (1 pad, 1 link) type Node subtype V4L flags 0
device node name /dev/video18
pad0: Source
<- "MTK-ISP-P1-V4L2":6 []
- entity 56: 1a040000.seninf.mipi-csi (12 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
<- "ov5695 2-0036":0 []
pad1: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
<- "ov2685 4-003c":0 []
pad2: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad3: Sink
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad4: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
-> "MTK-ISP-P1-V4L2":11 []
pad5: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad6: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad7: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad8: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad9: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad10: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]
pad11: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb]- entity 69: ov5695 2-0036 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev7
pad0: Source
[fmt:SBGGR10_1X10/2592x1944 field:none colorspace:srgb] -> "1a040000.seninf.mipi-csi":0 []
- entity 73: ov2685 4-003c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev8
pad0: Source
[fmt:SBGGR10_1X10/1600x1200 field:none colorspace:srgb] -> "1a040000.seninf.mipi-csi":1 []
===========
= history =
===========
version 3:
- Remove ISP Pass 1 reserved memory device node and change to use SCP's
reserved memory region. (Rob Herring)
- Fix comments of ISP Pass 1 device node & dt-bindings document (Rob Herring)
- Revise ISP Pass1 Kconfig
- Add rst documents for Mediatek image formats (Hans Verkuil)
- Fix kernel warning messages when running v4l2_compliance test
- Move AFO buffer enqueue & de-queue from request API to non-request
- mtk_cam-ctrl.h/mtk_cam-ctrl.c
Revise Mediatek ISP Pass1 specific V4L2 control naming & file licence declaration (Hans Verkuil) Split GET_BIN_INFO control into two controls to get width & height in-dependently (Hans Verkuil)
- mtk_cam-v4l2-util.h/mtk_cam-v4l2-util.c
Merging mtk_cam-dev.c and mtk_cam-v4l2-util.c. (Drew Davenport)
Remove the pix_mode argument in related functions and unreachable code. (Drew Davenport) Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
- mtk_cam-regs.h / mtk_cam.h / mtk_cam.c
Fix Drew's comments which are addressed in v2 patch
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Refactoring mtk_isp_config & mtk_isp_req_enqueue functions
- mtk_cam-scp.h / mtk_cam-scp.c
Move function declarations from mtk_cam.h to mtk_cam-scp.h (Drew Davenport)
Fix some Tomasz comments which are addressed in DIP's v1 patch[3]
Fix ISP de-initialize timing KE issue
- mtk_cam-smem.h / mtk_cam-smem-dev.c
Get the reserved shared memory via SCP driver (Tomasz Figa)
Todo:
- Add rst documents for Mediatek meta formats
- New meta buffer structure design & re-factoring
version 2:
- Add 3A enhancement feature which includes:
Separates 3A pipeline out of frame basis to improve
AE/AWB (exposure and white balance) performance.
Add 2 SCP sub-commands for 3A meta buffers.
- Add new child device to manage P1 shared memory between P1 HW unit and co-processor.
- Remove mediatek,cam_smem.txt & cam_smem dts node in mt8183.dtsi.
- Revised document wording for dt-bindings documents & dts information.
- Remove mtk_cam-ctx.h & mtk_cam-dev-ctx-core.c and move these source codes to mtk_cam-dev.h & mtk_cam-dev.c.
- mtk_cam-dev.h / mtk_cam-dev.c
Revised mtk_cam_video_device & mtk_cam_dev to remove unused structure fields or add comments.
Revised buffer size for LMVO & LCSO.
Fix pixel format utility function.
Add vb2_dma_contig_set_max_seg_size to configure DMA max segment size.
- mtk_cam-v4l2-util.c
Refactoring V4L2 async mechanism with seninf driver only Refactoring CIO (Connection IO) implementation with active sensor Revised stream on function for 3A enhancement feature
Add new V4L2 en-queue/de-queue utility functions for 3A enhancement feature
- mtk_cam-regs.h / mtk_cam.h / mtk_cam.c
Add meta buffer index register definitions
Add meta DMA configuration function.
Separate with frame-base and non-frame-base en-queue/de-queue functions Add isp_setup_scp_rproc function to get RPC handle
Add mtk_cam_reserved_memory_init for shared memory management
- mtk_cam-scp.h / mtk_cam-scp.c
Add new meta strictures for 3A enhancement feature
Add new IPI command utility function for 3A enhancement feature Enhance isp_composer_dma_sg_init function flow
Shorten overall IPI command structure size
Remove scp_state state checking
Improve code readability
- mtk_cam-smem.h / mtk_cam-smem-dev.c
Add mtk_cam_alloc_smem_dev to allocate one new child device of ISP driver. Handling P1 driver 's reserved memory & allocate DMA buffers based on this memory region.
TODOs:
- 3A enhancement feature bug fixing
version 1:
- Revised driver sources based on Tomasz's comments including part1/2/3/4 in RFC V0 patch.
- Remove DMA cache mechanism.
Support two new video devices (LCSO/LMVO) for advance camera features.
- Fixed v4l2-compliance test failure items.
- Add private controls for Mediatek camera middle-ware.
- Replace VPU driver's APIs with new SCP driver interface for co-processor communication.
- Refactoring mtk_cam_scp.c to use ring-buffers mechanism for IPI commands RX handling.
- Fix internal bugs.
TODOs:
- Remove mtk_cam_smem_drv.c & mtk_cam_smem.h and implement DMA pool for shared memory management.
- Revised file names.
- Support non frame-sync AFO/AAO DMA buffers
version 0:
- Initial submission
==================
Dependent patch
==================
Camera ISP P1 driver depends on seninf driver, SCP driver. The patches are listed as following:
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/10979135/
[2]. Add support for mt8183 SCP
https://patchwork.kernel.org/cover/10972143/
[3]. [RFC,V1,6/6] platform: mtk-isp: Add Mediatek DIP driver
https://patchwork.kernel.org/patch/10905223/
[4]. WIP: media: ov5695: support ov5695 sensor in mt8183
https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1614887
[5]. WIP: media: ov2685: support ov2685 sensor in mt8183
https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1614885
==================
Compliance test
==================
The v4l2-compliance is built with the below lastest patch.
https://git.linuxtv.org/v4l-utils.git/commit/utils/v4l2-compliance?id=2aff3ef768c42cfdbb31d143ee2286a6b46e9db0
Note 1.
This testing depends on the above sensors[4][5] patches.
Note 2.
Before passing streaming on testing, need to enable media links between entity 1: MTK-ISP-P1-V4L2, entity 20: MTK-ISP-P1-V4L2 main stream and entity 26: MTK-ISP-P1-V4L2 packed out.
/usr/bin/media-ctl -i -d /dev/media1
Enter a link to modify or enter to stop
1:1->20:0[1]
1:1->20:0[1]
Enter a link to modify or enter to stop
1:2->26:0[1]
1:2->26:0[1]
Enter a link to modify or enter to stop
v4l2-compliance test output:/usr/bin/v4l2-compliance -m /dev/media1
v4l2-compliance SHA: not available, 32 bits
Compliance test for mtk-cam device /dev/media1:
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Required ioctls:
test MEDIA_IOC_DEVICE_INFO: OK
Allow for multiple opens:
test second /dev/media1 open: OK
test MEDIA_IOC_DEVICE_INFO: OK
test for unlimited opens: OK
Media Controller ioctls:
test MEDIA_IOC_G_TOPOLOGY: OK
Entities: 11 Interfaces: 11 Pads: 33 Links: 21 test MEDIA_IOC_ENUM_ENTITIES/LINKS: OK test MEDIA_IOC_SETUP_LINK: OK
Total for mtk-cam device /dev/media1: 7, Succeeded: 7, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video12:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x8c200000 Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x0c200000
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000010
Type : V4L Video
Entity Info:
ID : 0x0000000e (14)
Name : MTK-ISP-P1-V4L2 meta input
Function : V4L2 I/O
Pad 0x0100000f : 0: Sink
Link 0x02000012: to remote pad 0x1000002 of entity 'MTK-ISP-P1-V4L2': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video12 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video12: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video13:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84201000 Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000016
Type : V4L Video
Entity Info:
ID : 0x00000014 (20)
Name : MTK-ISP-P1-V4L2 main stream
Function : V4L2 I/O
Pad 0x01000015 : 0: Source
Link 0x02000018: from remote pad 0x1000003 of entity 'MTK-ISP-P1-V4L2': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video13 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls (Input 0):
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 1 Private Controls: 3
Format ioctls (Input 0):
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK
Codec ioctls (Input 0):
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls (Input 0):
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video13: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video14:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84201000 Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x0300001c
Type : V4L Video
Entity Info:
ID : 0x0000001a (26)
Name : MTK-ISP-P1-V4L2 packed out
Function : V4L2 I/O
Pad 0x0100001b : 0: Source
Link 0x0200001e: from remote pad 0x1000004 of entity 'MTK-ISP-P1-V4L2': Data, EnabledRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video14 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls (Input 0):
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 1 Private Controls: 3
Format ioctls (Input 0):
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK
Codec ioctls (Input 0):
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls (Input 0):
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video14: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video15:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84a00000 Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000022
Type : V4L Video
Entity Info:
ID : 0x00000020 (32)
Name : MTK-ISP-P1-V4L2 partial meta 0
Function : V4L2 I/O
Pad 0x01000021 : 0: Source
Link 0x02000024: from remote pad 0x1000005 of entity 'MTK-ISP-P1-V4L2': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video15 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video15: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video16:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84a00000 Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000028
Type : V4L Video
Entity Info:
ID : 0x00000026 (38)
Name : MTK-ISP-P1-V4L2 partial meta 1
Function : V4L2 I/O
Pad 0x01000027 : 0: Source
Link 0x0200002a: from remote pad 0x1000006 of entity 'MTK-ISP-P1-V4L2': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video16 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video16: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video17:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84a00000 Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x0300002e
Type : V4L Video
Entity Info:
ID : 0x0000002c (44)
Name : MTK-ISP-P1-V4L2 partial meta 2
Function : V4L2 I/O
Pad 0x0100002d : 0: Source
Link 0x02000030: from remote pad 0x1000007 of entity 'MTK-ISP-P1-V4L2': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video17 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video17: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for MTK-ISP-P1-V4L2 device /dev/video18:
Driver Info:
Driver name : MTK-ISP-P1-V4L2
Card type : MTK-ISP-P1-V4L2
Bus info : platform:1a000000.camisp
Driver version : 4.19.43
Capabilities : 0x84a00000 Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000034
Type : V4L Video
Entity Info:
ID : 0x00000032 (50)
Name : MTK-ISP-P1-V4L2 partial meta 3
Function : V4L2 I/O
Pad 0x01000033 : 0: Source
Link 0x02000036: from remote pad 0x1000008 of entity 'MTK-ISP-P1-V4L2': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video18 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK
Total for MTK-ISP-P1-V4L2 device /dev/video18: 45, Succeeded: 45, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam device /dev/v4l-subdev5:
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x0300004f
Type : V4L Sub-Device
Entity Info:
ID : 0x00000001 (1)
Name : MTK-ISP-P1-V4L2
Function : Video Statistics
Pad 0x01000002 : 0: Sink
Link 0x02000012: from remote pad 0x100000f of entity 'MTK-ISP-P1-V4L2 meta input': Data
Pad 0x01000003 : 1: Source
Link 0x02000018: to remote pad 0x1000015 of entity 'MTK-ISP-P1-V4L2 main stream': Data, Enabled
Pad 0x01000004 : 2: Source
Link 0x0200001e: to remote pad 0x100001b of entity 'MTK-ISP-P1-V4L2 packed out': Data, Enabled
Pad 0x01000005 : 3: Source
Link 0x02000024: to remote pad 0x1000021 of entity 'MTK-ISP-P1-V4L2 partial meta 0': Data
Pad 0x01000006 : 4: Source
Link 0x0200002a: to remote pad 0x1000027 of entity 'MTK-ISP-P1-V4L2 partial meta 1': Data
Pad 0x01000007 : 5: Source
Link 0x02000030: to remote pad 0x100002d of entity 'MTK-ISP-P1-V4L2 partial meta 2': Data
Pad 0x01000008 : 6: Source
Link 0x02000036: to remote pad 0x1000033 of entity 'MTK-ISP-P1-V4L2 partial meta 3': Data
Pad 0x01000009 : 7: Source
Pad 0x0100000a : 8: Source
Pad 0x0100000b : 9: Source
Pad 0x0100000c : 10: Source
Pad 0x0100000d : 11: Sink
Link 0x0200004d: from remote pad 0x100003d of entity '1a040000.seninf.mipi-csi': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK
Allow for multiple opens:
test second /dev/v4l-subdev5 open: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Sink Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK (Not Supported)
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported)
test VIDIOC_G/S_CTRL: OK (Not Supported)
test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK (Not Supported)
test VIDIOC_TRY_FMT: OK (Not Supported)
test VIDIOC_S_FMT: OK (Not Supported)
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)
Total for mtk-cam device /dev/v4l-subdev5: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam device /dev/v4l-subdev6:
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000051
Type : V4L Sub-Device
Entity Info:
ID : 0x00000038 (56)
Name : 1a040000.seninf.mipi-csi
Function : Video Interface Bridge
Pad 0x01000039 : 0: Sink
Link 0x02000047: from remote pad 0x1000046 of entity 'ov5695 2-0036': Data
Pad 0x0100003a : 1: Sink
Link 0x0200004b: from remote pad 0x100004a of entity 'ov2685 4-003c': Data
Pad 0x0100003b : 2: Sink
Pad 0x0100003c : 3: Sink
Pad 0x0100003d : 4: Source
Link 0x0200004d: to remote pad 0x100000d of entity 'MTK-ISP-P1-V4L2': Data
Pad 0x0100003e : 5: Source
Pad 0x0100003f : 6: Source
Pad 0x01000040 : 7: Source
Pad 0x01000041 : 8: Source
Pad 0x01000042 : 9: Source
Pad 0x01000043 : 10: Source
Pad 0x01000044 : 11: SourceRequired ioctls:
test MC information (see 'Media Driver Info' above): OK
Allow for multiple opens:
test second /dev/v4l-subdev6 open: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Sub-Device ioctls (Sink Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Sink Pad 1):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Sink Pad 2):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Sink Pad 3):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 4):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 5):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 6):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 7):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 8):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 9):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 10):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Sub-Device ioctls (Source Pad 11):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK (Not Supported) test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)
test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 2 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK (Not Supported)
test VIDIOC_TRY_FMT: OK (Not Supported)
test VIDIOC_S_FMT: OK (Not Supported)
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)
Total for mtk-cam device /dev/v4l-subdev6: 125, Succeeded: 125, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam device /dev/v4l-subdev7:
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000053
Type : V4L Sub-Device
Entity Info:
ID : 0x00000045 (69)
Name : ov5695 2-0036
Function : Camera Sensor
Pad 0x01000046 : 0: Source
Link 0x02000047: to remote pad 0x1000039 of entity '1a040000.seninf.mipi-csi': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK
Allow for multiple opens:
test second /dev/v4l-subdev7 open: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 11 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK (Not Supported)
test VIDIOC_TRY_FMT: OK (Not Supported)
test VIDIOC_S_FMT: OK (Not Supported)
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)
Total for mtk-cam device /dev/v4l-subdev7: 48, Succeeded: 48, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Compliance test for mtk-cam device /dev/v4l-subdev8:
Media Driver Info:
Driver name : mtk-cam
Model : MTK-ISP-P1-V4L2
Serial :
Bus info : platform:1a000000.camisp
Media version : 4.19.43
Hardware revision: 0x00000000 (0)
Driver version : 4.19.43Interface Info:
ID : 0x03000055
Type : V4L Sub-Device
Entity Info:
ID : 0x00000049 (73)
Name : ov2685 4-003c
Function : Camera Sensor
Pad 0x0100004a : 0: Source
Link 0x0200004b: to remote pad 0x100003a of entity '1a040000.seninf.mipi-csi': DataRequired ioctls:
test MC information (see 'Media Driver Info' above): OK
Allow for multiple opens:
test second /dev/v4l-subdev8 open: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Sub-Device ioctls (Source Pad 0):
test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Try VIDIOC_SUBDEV_G/S_FMT: OK
test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK test Active VIDIOC_SUBDEV_G/S_FMT: OK
test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 10 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK (Not Supported)
test VIDIOC_TRY_FMT: OK (Not Supported)
test VIDIOC_S_FMT: OK (Not Supported)
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)
Total for mtk-cam device /dev/v4l-subdev8: 48, Succeeded: 48, Failed: 0, Warnings: 0
Grand Total for mtk-cam device /dev/media1: 668, Succeeded: 668, Failed: 0, Warnings: 0
--------------------------------------------------------------------------------
Jungo Lin (9):
dt-bindings: mt8183: Added camera ISP Pass 1
dts: arm64: mt8183: Add ISP Pass 1 nodes
media: platform: Add Mediatek ISP Pass 1 driver Kconfig
media: platform: Add Mediatek ISP P1 image & meta formats
media: platform: Add Mediatek ISP P1 V4L2 control
media: platform: Add Mediatek ISP P1 V4L2 functions
media: platform: Add Mediatek ISP P1 device driver
media: platform: Add Mediatek ISP P1 SCP communication
media: platform: Add Mediatek ISP P1 shared memory device
.../bindings/media/mediatek,camisp.txt | 57 + Documentation/media/uapi/v4l/pixfmt-mtb8.rst | 49 + Documentation/media/uapi/v4l/pixfmt-mtba.rst | 62 + Documentation/media/uapi/v4l/pixfmt-mtbc.rst | 58 + Documentation/media/uapi/v4l/pixfmt-mtbe.rst | 70 + Documentation/media/uapi/v4l/pixfmt-mtf8.rst | 75 + Documentation/media/uapi/v4l/pixfmt-mtfa.rst | 87 + Documentation/media/uapi/v4l/pixfmt-mtfc.rst | 107 ++ Documentation/media/uapi/v4l/pixfmt-mtfe.rst | 107 ++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 24 + drivers/media/platform/Kconfig | 2 + drivers/media/platform/mtk-isp/Kconfig | 17 + drivers/media/platform/mtk-isp/Makefile | 3 + .../media/platform/mtk-isp/isp_50/Makefile | 5 + .../platform/mtk-isp/isp_50/cam/Makefile | 9 + .../mtk-isp/isp_50/cam/mtk_cam-ctrl.c | 138 ++ .../mtk-isp/isp_50/cam/mtk_cam-ctrl.h | 38 + .../mtk-isp/isp_50/cam/mtk_cam-regs.h | 126 ++ .../platform/mtk-isp/isp_50/cam/mtk_cam-scp.c | 371 ++++ .../platform/mtk-isp/isp_50/cam/mtk_cam-scp.h | 207 ++ .../mtk-isp/isp_50/cam/mtk_cam-smem.c | 304 +++ .../mtk-isp/isp_50/cam/mtk_cam-smem.h | 18 + .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c | 1674 +++++++++++++++++ .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h | 173 ++ .../platform/mtk-isp/isp_50/cam/mtk_cam.c | 1087 +++++++++++ .../platform/mtk-isp/isp_50/cam/mtk_cam.h | 251 +++ drivers/media/v4l2-core/v4l2-ioctl.c | 13 + include/uapi/linux/v4l2-controls.h | 4 + include/uapi/linux/videodev2.h | 17 + 29 files changed, 5153 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtb8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtba.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtbc.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtbe.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtf8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfa.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfc.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfe.rst create mode 100644 drivers/media/platform/mtk-isp/Kconfig create mode 100644 drivers/media/platform/mtk-isp/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-regs.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-scp.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-scp.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-smem.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-smem.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam.h
Signature · 1 line
2.18.0
RFC v3 1/9 dt-bindings: mt8183: Added camera ISP Pass 1
This patch adds DT binding document for the Pass 1 (P1) unit in Mediatek's camera ISP system. The Pass 1 unit grabs the sensor data out from the sensor interface, applies ISP image effects from tuning data and outputs the image data or statistics data to DRAM.
--- .../bindings/media/mediatek,camisp.txt | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,camisp.txt
Documentation/devicetree/bindings/media/mediatek,camisp.txt new file +57 -0
@@ -0,0 +1,57 @@ +* Mediatek Image Signal Processor Pass 1 (ISP P1) + +The Pass 1 unit of Mediatek's camera ISP system grabs the sensor data out +from the sensor interface, applies ISP effects from tuning data and outputs +the image data and statistics data to DRAM. Furthermore, Pass 1 unit has +the ability to output two different resolutions frames at the same time to +increase the performance of the camera application. + +Required properties: +- compatible: Must be "mediatek,mt8183-camisp" for MT8183. +- reg: Physical base address of the camera function block registers and + length of memory mapped region. Must contain an entry for each entry + in reg-names. +- reg-names: Must include the following entries: + "cam_sys": Camsys base function block + "cam_uni": Camera UNI function block + "cam_a": Single camera ISP P1 hardware module A + "cam_b": Single camera ISP P1 hardware module B +- interrupts: Interrupt number to the CPU. +- iommus: Shall point to the respective IOMMU block with master port + as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt + for details. +- clocks: A list of phandle and clock specifier pairs as listed + in clock-names property, see + Documentation/devicetree/bindings/clock/clock-bindings.txt for details. +- clock-names: Must be "camsys_cam_cgpdn" and "camsys_camtg_cgpdn". +- mediatek,larb: Must contain the local arbiters in the current SoCs, see + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt + for details. +- mediatek,scp : The node of system control processor (SCP), see + Documentation/devicetree/bindings/remoteproc/mtk,scp.txt for details. + +Example: +SoC specific DT entry: + + camisp: camisp@1a000000 { + compatible = "mediatek,mt8183-camisp", "syscon"; + reg = <0 0x1a000000 0 0x1000>, + <0 0x1a003000 0 0x1000>, + <0 0x1a004000 0 0x2000>, + <0 0x1a006000 0 0x2000>; + reg-names = "cam_sys", + "cam_uni", + "cam_a", + "cam_b"; + interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 254 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 255 IRQ_TYPE_LEVEL_LOW>; + iommus = <&iommu M4U_PORT_CAM_IMGO>; + clocks = <&camsys CLK_CAM_CAM>, + <&camsys CLK_CAM_CAMTG>; + clock-names = "camsys_cam_cgpdn", + "camsys_camtg_cgpdn"; + mediatek,larb = <&larb3>, + <&larb6>; + mediatek,scp = <&scp>; + };
Signature · 1 line
2.18.0
RFC v3 2/9 dts: arm64: mt8183: Add ISP Pass 1 nodes
In reply to Jungo LinAdd nodes for Pass 1 unit of Mediatek's camera ISP system. Pass 1 unit embedded in Mediatek SoCs, works with the co-processor to process image signal from the image sensor and output RAW image data.
--- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +24 -0
@@ -369,5 +369,29 @@ reg = <0 0x1a000000 0 0x1000>; #clock-cells = <1>; }; + + camisp: camisp@1a000000 { + compatible = "mediatek,mt8183-camisp", "syscon"; + reg = <0 0x1a000000 0 0x1000>, + <0 0x1a003000 0 0x1000>, + <0 0x1a004000 0 0x2000>, + <0 0x1a006000 0 0x2000>; + reg-names = "cam_sys", + "cam_uni", + "cam_a", + "cam_b"; + interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 254 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 255 IRQ_TYPE_LEVEL_LOW>; + iommus = <&iommu M4U_PORT_CAM_IMGO>; + clocks = <&camsys CLK_CAM_CAM>, + <&camsys CLK_CAM_CAMTG>; + clock-names = "camsys_cam_cgpdn", + "camsys_camtg_cgpdn"; + mediatek,larb = <&larb3>, + <&larb6>; + mediatek,scp = <&scp>; + }; + }; };
Signature · 1 line
2.18.0
RFC v3 3/9 media: platform: Add Mediatek ISP Pass 1 driver Kconfig
In reply to Jungo LinThis patch adds Kconfig for Pass 1 (P1) unit driver of Mediatek's camera ISP system. ISP P1 unit is embedded in Mediatek SoCs. It provides RAW processing which includes optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction.
--- drivers/media/platform/Kconfig | 2 ++ drivers/media/platform/mtk-isp/Kconfig | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 drivers/media/platform/mtk-isp/Kconfig
drivers/media/platform/Kconfig +2 -0
@@ -32,6 +32,8 @@ source "drivers/media/platform/davinci/Kconfig" source "drivers/media/platform/omap/Kconfig" +source "drivers/media/platform/mtk-isp/Kconfig" + config VIDEO_ASPEED tristate "Aspeed AST2400 and AST2500 Video Engine driver" depends on VIDEO_V4L2
drivers/media/platform/mtk-isp/Kconfig new file +17 -0
@@ -0,0 +1,17 @@ +config VIDEO_MEDIATEK_ISP_PASS1 + bool "Mediatek Pass 1 image processing function" + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API + depends on MEDIA_CONTROLLER && VIDEO_V4L2_SUBDEV_API + select V4L2_FWNODE + select VIDEOBUF2_DMA_CONTIG + default n + help + Pass 1 driver controls 3A (auto-focus, exposure, + and white balance) with tuning feature and outputs + the captured image buffers in Mediatek's camera system. + + Choose y if you want to use Mediatek SoCs to create image + captured application such as video recording and still image + capturing. + +
Signature · 1 line
2.18.0
RFC v3 4/9 media: platform: Add Mediatek ISP P1 image & meta formats
In reply to Jungo LinAdd packed/full-g bayer formats with 8/10/12/14 bit for image output. Add Pass 1 (P1) specific meta formats for parameter processing and 3A/other statistics.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
--- Documentation/media/uapi/v4l/pixfmt-mtb8.rst | 49 +++++++++ Documentation/media/uapi/v4l/pixfmt-mtba.rst | 62 +++++++++++ Documentation/media/uapi/v4l/pixfmt-mtbc.rst | 58 ++++++++++ Documentation/media/uapi/v4l/pixfmt-mtbe.rst | 70 ++++++++++++ Documentation/media/uapi/v4l/pixfmt-mtf8.rst | 75 +++++++++++++ Documentation/media/uapi/v4l/pixfmt-mtfa.rst | 87 +++++++++++++++ Documentation/media/uapi/v4l/pixfmt-mtfc.rst | 107 +++++++++++++++++++ Documentation/media/uapi/v4l/pixfmt-mtfe.rst | 107 +++++++++++++++++++ drivers/media/v4l2-core/v4l2-ioctl.c | 13 +++ include/uapi/linux/videodev2.h | 17 +++ 10 files changed, 645 insertions(+) create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtb8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtba.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtbc.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtbe.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtf8.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfa.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfc.rst create mode 100644 Documentation/media/uapi/v4l/pixfmt-mtfe.rst
Documentation/media/uapi/v4l/pixfmt-mtb8.rst new file +49 -0
@@ -0,0 +1,49 @@ +.. -*- coding: utf-8; mode: rst -*- + +.. _V4L2-PIX-FMT-MTISP_B8: + +******************************* +V4L2_PIX_FMT_MTISP_B8 ('MTB8') +******************************* + +8-bit Packed Bayer formats. + + +Description +=========== + +The four pixel formats are used by Mediatek ISP. +This is a packed format, meaning all the data for a pixel lie +next to each other in memory, with a depth of 8 bits per pixel. +Each sample is stored in a byte. +The least significant byte is stored at lower memory addresses (little-endian). +The RGB byte order follows raw sRGB / Bayer format from sensor. +Below is an example of conventional RGB byte order BGGR. + +**Byte Order.** +Each cell is one byte. + +.. flat-table:: + :header-rows: 0 + :stub-columns: 0 + + * - start + 0: + - B\ :sub:`00` + - G\ :sub:`01` + - B\ :sub:`02` + - G\ :sub:`03` + * - start + 4: + - G\ :sub:`10` + - R\ :sub:`11` + - G\ :sub:`12` + - R\ :sub:`13` + * - start + 8: + - B\ :sub:`20` + - G\ :sub:`21` + - B\ :sub:`22` + - G\ :sub:`23` + * - start + 12: + - G\ :sub:`30` + - R\ :sub:`31` + - G\ :sub:`32` + - R\ :sub:`33`
Documentation/media/uapi/v4l/pixfmt-mtba.rst new file +62 -0
63 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtbc.rst new file +58 -0
58 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtbe.rst new file +70 -0
71 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtf8.rst new file +75 -0
76 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtfa.rst new file +87 -0
88 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtfc.rst new file +107 -0
108 lines not on this page · raw message
Documentation/media/uapi/v4l/pixfmt-mtfe.rst new file +107 -0
108 lines not on this page · raw message
drivers/media/v4l2-core/v4l2-ioctl.c +13 -0
@@ -1297,6 +1297,14 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)case V4L2_PIX_FMT_KONICA420 : descr ="GSPCA KONICA420" ;break ;case V4L2_PIX_FMT_HSV24 : descr ="24-bit HSV 8-8-8" ;break ;case V4L2_PIX_FMT_HSV32 : descr ="32-bit XHSV 8-8-8-8" ;break ; +case V4L2_PIX_FMT_MTISP_B8 : descr ="8-bit Packed Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_F8 : descr ="8-bit Packed Full-G Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_B10 : descr ="10-bit Packed Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_F10 : descr ="10-bit Packed Full-G Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_B12 : descr ="12-bit Packed Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_F12 : descr ="12-bit Packed Full-G Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_B14 : descr ="14-bit Packed Bayer format" ;break ; +case V4L2_PIX_FMT_MTISP_F14 : descr ="14-bit Packed Full-G Bayer format" ;break ;case V4L2_SDR_FMT_CU8 : descr ="Complex U8" ;break ;case V4L2_SDR_FMT_CU16LE : descr ="Complex U16LE" ;break ;case V4L2_SDR_FMT_CS8 : descr ="Complex S8" ;break ;
@@ -1312,6 +1320,11 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)case V4L2_META_FMT_VSP1_HGO : descr ="R-Car VSP1 1-D Histogram" ;break ;case V4L2_META_FMT_VSP1_HGT : descr ="R-Car VSP1 2-D Histogram" ;break ;case V4L2_META_FMT_UVC : descr ="UVC payload header metadata" ;break ; +case V4L2_META_FMT_MTISP_3A : descr ="AE/AWB Histogram" ;break ; +case V4L2_META_FMT_MTISP_AF : descr ="AF Histogram" ;break ; +case V4L2_META_FMT_MTISP_LCS : descr ="Local contrast enhanced statistics" ;break ; +case V4L2_META_FMT_MTISP_LMV : descr ="Local motion vector Histogram" ;break ; +case V4L2_META_FMT_MTISP_PARAMS : descr ="MTK ISP tuning metadata" ;break ;default :/* Compressed formats */
include/uapi/linux/videodev2.h +17 -0
@@ -728,6 +728,16 @@ struct v4l2_pix_format {#define V4L2_PIX_FMT_IPU3_SGRBG10 v4l2_fourcc('i', 'p', '3', 'G')/* IPU3 packed 10-bit GRBG bayer */ #define V4L2_PIX_FMT_IPU3_SRGGB10 v4l2_fourcc('i', 'p', '3', 'r')/* IPU3 packed 10-bit RGGB bayer */ +/* Vendor specific - Mediatek ISP bayer formats */ +#define V4L2_PIX_FMT_MTISP_B8 v4l2_fourcc('M', 'T', 'B', '8')/* Packed bayer format, 8-bit */ +#define V4L2_PIX_FMT_MTISP_B10 v4l2_fourcc('M', 'T', 'B', 'A')/* Packed bayer format, 10-bit */ +#define V4L2_PIX_FMT_MTISP_B12 v4l2_fourcc('M', 'T', 'B', 'C')/* Packed bayer format, 12-bit */ +#define V4L2_PIX_FMT_MTISP_B14 v4l2_fourcc('M', 'T', 'B', 'E')/* Packed bayer format, 14-bit */ +#define V4L2_PIX_FMT_MTISP_F8 v4l2_fourcc('M', 'T', 'F', '8')/* Full-G bayer format, 8-bit */ +#define V4L2_PIX_FMT_MTISP_F10 v4l2_fourcc('M', 'T', 'F', 'A')/* Full-G bayer format, 10-bit */ +#define V4L2_PIX_FMT_MTISP_F12 v4l2_fourcc('M', 'T', 'F', 'C')/* Full-G bayer format, 12-bit */ +#define V4L2_PIX_FMT_MTISP_F14 v4l2_fourcc('M', 'T', 'F', 'E')/* Full-G bayer format, 14-bit */ +/* SDR formats - used only for Software Defined Radio devices */ #define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8')/* IQ u8 */ #define V4L2_SDR_FMT_CU16LE v4l2_fourcc('C', 'U', '1', '6')/* IQ u16le */
@@ -750,6 +760,13 @@ struct v4l2_pix_format {#define V4L2_META_FMT_UVC v4l2_fourcc('U', 'V', 'C', 'H')/* UVC Payload Header metadata */ #define V4L2_META_FMT_D4XX v4l2_fourcc('D', '4', 'X', 'X')/* D4XX Payload Header metadata */ +/* Vendor specific - Mediatek ISP parameters for firmware */ +#define V4L2_META_FMT_MTISP_PARAMS v4l2_fourcc('M', 'T', 'f', 'p')/* ISP tuning parameters */ +#define V4L2_META_FMT_MTISP_3A v4l2_fourcc('M', 'T', 'f', 'a')/* AE/AWB histogram */ +#define V4L2_META_FMT_MTISP_AF v4l2_fourcc('M', 'T', 'f', 'f')/* AF histogram */ +#define V4L2_META_FMT_MTISP_LCS v4l2_fourcc('M', 'T', 'f', 'c')/* Local contrast enhanced statistics */ +#define V4L2_META_FMT_MTISP_LMV v4l2_fourcc('M', 'T', 'f', 'm')/* Local motion vector histogram */ +/* priv field value to indicates that subsequent fields are valid. */ #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe
Signature · 1 line
2.18.0
RFC v3 5/9 media: platform: Add Mediatek ISP P1 V4L2 control
In reply to Jungo LinReserved Mediatek ISP P1 V4L2 control number with 16. Moreover, add two V4L2 controls for ISP P1 user space usage.
1. V4L2_CID_MTK_GET_BIN_INFO
- Provide the image output width & height in case
camera binning mode is enabled.
2. V4L2_CID_MTK_RAW_PATH
- Export the path control of the main stream to user space. One is pure raw and the other is processing raw. The default value is 0 which outputs the pure raw bayer image from sesnor, without image processing in ISP HW.
--- drivers/media/platform/mtk-isp/Makefile | 3 + .../media/platform/mtk-isp/isp_50/Makefile | 5 + .../platform/mtk-isp/isp_50/cam/Makefile | 5 + .../mtk-isp/isp_50/cam/mtk_cam-ctrl.c | 138 ++++++++++++++++++ .../mtk-isp/isp_50/cam/mtk_cam-ctrl.h | 38 +++++ include/uapi/linux/v4l2-controls.h | 4 + 6 files changed, 193 insertions(+) create mode 100644 drivers/media/platform/mtk-isp/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/Makefile create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.h
drivers/media/platform/mtk-isp/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += isp_50/
drivers/media/platform/mtk-isp/isp_50/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 + +ifeq ($(CONFIG_VIDEO_MEDIATEK_ISP_PASS1),y) +obj-y += cam/ +endif
drivers/media/platform/mtk-isp/isp_50/cam/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 + +mtk-cam-isp-objs += mtk_cam-ctrl.o + +obj-$(CONFIG_VIDEO_MEDIATEK_ISP_PASS1) += mtk-cam-isp.o
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +138 -0
138 lines not on this page · raw message
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.h new file +38 -0
@@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2018 MediaTek Inc. +*/ + +#ifndef __MTK_CAM_CTRL_H__ +#define __MTK_CAM_CTRL_H__ + +#include <media/v4l2-ctrls.h> + +#include "mtk_cam-v4l2-util.h" + +/* The base for the MTK Camera ISP P1 driver controls. +* We reserve 16 controls for this driver. +*/ +#define V4L2_CID_MTK_CAM_BASE V4L2_CID_USER_MTK_CAM_BASE + +/* Control MTK ISP P1 main stream to process raw image data or not. +* The default value is 0 which outputs the pure raw bayer data from sensor, +* without image processing in ISP HW. +*/ +#define V4L2_CID_MTK_PROCESSING_RAW (V4L2_CID_MTK_CAM_BASE + 1) + +/* MTK ISP P1 HW supports frontal binning function. +* If this function is enabled, the 3A algo. may get the new image resolution +* which is binned by ISP P1. If this function is disabled or no supported, +* the image resolution will be equal to configured image format. +* For this control, it is read only. +*/ +#define V4L2_CID_MTK_GET_BIN_WIDTH (V4L2_CID_MTK_CAM_BASE + 2) +#define V4L2_CID_MTK_GET_BIN_HEIGTH (V4L2_CID_MTK_CAM_BASE + 3) + +#define V4L2_CID_MTK_CAM_MAX 16 + +int mtk_cam_ctrl_init (struct mtk_cam_dev *cam_dev, +struct v4l2_ctrl_handler *hdl); + +#endif /* __MTK_CAM_CTRL_H__ */
include/uapi/linux/v4l2-controls.h +4 -0
@@ -192,6 +192,10 @@ enum v4l2_colorfx {* We reserve 16 controls for this driver. */ #define V4L2_CID_USER_IMX_BASE (V4L2_CID_USER_BASE + 0x10b0) +/* The base for the mediatek ISP Pass 1 driver controls */ +/* We reserve 16 controls for this driver. */ +#define V4L2_CID_USER_MTK_CAM_BASE (V4L2_CID_USER_BASE + 0x10c0) +/* MPEG-class control IDs */ /* The MPEG controls are applicable to all codec controls * and the 'MPEG' part of the define is historical */
Signature · 1 line
2.18.0
Re: [RFC,v3 5/9] media: platform: Add Mediatek ISP P1 V4L2 control
Hi Jungo,
Quoted 7 lines · Jungo Lin
Reserved Mediatek ISP P1 V4L2 control number with 16. Moreover, add two V4L2 controls for ISP P1 user space usage.
1.
V4L2_CID_MTK_GET_BIN_INFO
- Provide the image output width & height in case camera binning mode is enabled.
Could you explain with a bit more details what these binned width and height would mean? How would they relate to the video CAPTURE node width and height? Isn't this something that should be rather exposed as an appropriate selection rectangle, instead of custom controls?
Quoted 6 lines
2.
V4L2_CID_MTK_RAW_PATH
- Export the path control of the main stream to user space. One is pure raw and the other is processing raw. The default value is 0 which outputs the pure raw bayer image from sesnor, without image processing in ISP HW.
Is it just effectively a full processing bypass? The driver seems to only update the related configuration when the streaming starts. Can it be controlled per-frame?
Generally this sounds more like something that should be modelled using the media topology, similar to the example below.
/----------------\ /-------------------\ /--------------\
| |---| | | |
| Capture Subdev | | Processing Subdev |-o-| CAPTURE node |
| |-\ | | | | |
\----------------/ | \-------------------/ | \--------------/
| |
\-----------------------/Then the userspace can select whether it wants the image from the capture interface directly or procesed by the ISP by configuring the media links appropriately.
The current limitation of this model is that it can't be easily configured per-frame, as media configurations are not included in the requests yet.
[snip]
Quoted 4 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +4
-0+static int handle_ctrl_get_bin_info (struct v4l2_ctrl *ctrl,int is_width) +{ +struct mtk_cam_dev *cam_dev = ctrl->priv; +struct v4l2_format *fmt;
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 24
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +10
-0+ + fmt = &cam_dev->vdev_nodes[MTK_CAM_P1_MAIN_STREAM_OUT ].vdev_fmt; + +dev_dbg (&cam_dev->pdev->dev,"Get bin info w*h:%d*%d is_width:%d" , + fmt->fmt.pix_mp.width, fmt->fmt.pix_mp.height, is_width); + +if (is_width) + ctrl->val = fmt->fmt.pix_mp.width; +else + ctrl->val = fmt->fmt.pix_mp.height;
This seems to contradict to what the comment in the header says, because it just always returns the video node format and doesn't seem to care about whether binning is enabled or not.
Quoted 18 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +18
-0+ +return 0 ; +} + +static int handle_ctrl_get_process_raw (struct v4l2_ctrl *ctrl) +{ +struct mtk_cam_dev *cam_dev = ctrl->priv; +struct isp_p1_device *p1_dev =get_p1_device (&cam_dev->pdev->dev); + + ctrl->val = (p1_dev->isp_ctx.isp_raw_path ==ISP_PROCESS_RAW_PATH ); + +dev_dbg (&cam_dev->pdev->dev,"Get process raw:%d" , ctrl->val); + +return 0 ; +} + +static int handle_ctrl_set_process_raw (struct v4l2_ctrl *ctrl) +{
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 52
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +10
-0+struct mtk_cam_dev *cam_dev = ctrl->priv; +struct isp_p1_device *p1_dev =get_p1_device (&cam_dev->pdev->dev); + + p1_dev->isp_ctx.isp_raw_path = (ctrl->val) ? +ISP_PROCESS_RAW_PATH :ISP_PURE_RAW_PATH ; +dev_dbg (&cam_dev->pdev->dev,"Set process raw:%d" , ctrl->val); +return 0 ; +} + +static int mtk_cam_dev_g_ctrl (struct v4l2_ctrl *ctrl)
This is g_volatile_ctrl not, g_ctrl.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 57
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +5
-0+{ +switch (ctrl->id) { +case V4L2_CID_MTK_PROCESSING_RAW : +handle_ctrl_get_process_raw (ctrl); +break ;
No need to provide getters for non-volatile controls. The framework manages them.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 62
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +5
-0+case V4L2_CID_MTK_GET_BIN_WIDTH : +handle_ctrl_get_bin_info (ctrl,1 ); +break ; +case V4L2_CID_MTK_GET_BIN_HEIGTH : +handle_ctrl_get_bin_info (ctrl,0 );
It's trivial to get the value, so there isn't much benefit in having a function to do so, especially if one needs something like a is_width argument that further complicates the code.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 74
Quoted 12 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +12
-0+break ; +default : +return -EINVAL ; + } +return 0 ; +} + +static int mtk_cam_dev_s_ctrl (struct v4l2_ctrl *ctrl) +{ +switch (ctrl->id) { +case V4L2_CID_MTK_PROCESSING_RAW : +return handle_ctrl_set_process_raw (ctrl);
Same as above. The operation is too trivial to deserve a function.
Quoted 43 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +43
-0+default : +return -EINVAL ; + } +} + +static const struct v4l2_ctrl_ops mtk_cam_dev_ctrl_ops = { + .g_volatile_ctrl = mtk_cam_dev_g_ctrl, + .s_ctrl = mtk_cam_dev_s_ctrl, +}; + +struct v4l2_ctrl_config mtk_cam_controls[] = { + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_PROCESSING_RAW , + .name ="MTK CAM PROCESSING RAW" , + .type =V4L2_CTRL_TYPE_BOOLEAN , + .min =0 , + .max =1 , + .step =1 , + .def =1 , + }, + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_GET_BIN_WIDTH , + .name ="MTK CAM GET BIN WIDTH" , + .type =V4L2_CTRL_TYPE_INTEGER , + .min =IMG_MIN_WIDTH , + .max =IMG_MAX_WIDTH , + .step =1 , + .def =IMG_MAX_WIDTH , + .flags =V4L2_CTRL_FLAG_READ_ONLY |V4L2_CTRL_FLAG_VOLATILE , + }, + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_GET_BIN_HEIGTH , + .name ="MTK CAM GET BIN HEIGHT" , + .type =V4L2_CTRL_TYPE_INTEGER , + .min =IMG_MIN_HEIGHT , + .max =IMG_MAX_HEIGHT , + .step =1 , + .def =IMG_MAX_HEIGHT , + .flags =V4L2_CTRL_FLAG_READ_ONLY |V4L2_CTRL_FLAG_VOLATILE , + },
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 127
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +10
-0+}; + +int mtk_cam_ctrl_init (struct mtk_cam_dev *cam_dev, +struct v4l2_ctrl_handler *hdl) +{ +unsigned int i; + +/* Initialized HW controls, allow V4L2_CID_MTK_CAM_MAX ctrls */ +v4l2_ctrl_handler_init (hdl,V4L2_CID_MTK_CAM_MAX ); +if (hdl->error) {
This should be checked at the end, after all the controls are added.
Best regards,
Tomasz
Re: [RFC,v3 5/9] media: platform: Add Mediatek ISP P1 V4L2 control
Hi Tomasz,
Quoted 7 lines · Tomasz Figa
Hi Jungo,
Quoted 4 lines · Jungo Lin
Reserved Mediatek ISP P1 V4L2 control number with 16. Moreover, add two V4L2 controls for ISP P1 user space usage.
Quoted 9 lines
Quoted 3 lines
1.
V4L2_CID_MTK_GET_BIN_INFO
- Provide the image output width & height in case camera binning mode is enabled.Could you explain with a bit more details what these binned width and height would mean? How would they relate to the video CAPTURE node width and height? Isn't this something that should be rather exposed as an appropriate selection rectangle, instead of custom controls?
Frontal binning is Mediatek ISP P1 HW function and it is designed for low power saving. The input sensor resolution will be divided by 2 including width & height in the source side of ISP HW and lower the overall ISP throughput. So the ISP clock could be running in the low speed for power saving. However, the image quality will be bad in this mode. If the frontal binning is enabled by ISP driver, user space 3A algorithm needs to know the new resolution of TG. Btw, current ISP driver doesn't support this function. We just export this V4L2 contorl for future support. But, after internal discussing, we will remove this v4l2 control in next patch.
Quoted 22 lines
Quoted 6 lines
2.
V4L2_CID_MTK_RAW_PATH
- Export the path control of the main stream to user space. One is pure raw and the other is processing raw. The default value is 0 which outputs the pure raw bayer image from sesnor, without image processing in ISP HW.Is it just effectively a full processing bypass? The driver seems to only update the related configuration when the streaming starts. Can it be controlled per-frame?
Generally this sounds more like something that should be modelled using the media topology, similar to the example below.
/----------------\ /-------------------\ /--------------\ | |---| | | | | Capture Subdev | | Processing Subdev |-o-| CAPTURE node | | |-\ | | | | | \----------------/ | \-------------------/ | \--------------/ | | \-----------------------/
Quoted 9 lines
Then the userspace can select whether it wants the image from the capture interface directly or procesed by the ISP by configuring the media links appropriately.
The current limitation of this model is that it can't be easily configured per-frame, as media configurations are not included in the requests yet.
[snip]
For this V4L2 control, it is designed for per stream, not per frame and just implemented for future usage. As the same conclusion with the above one, we will remove this, either in current version. If we have strong requirement on this, we could adopt your suggestion to use media topology to per stream control.
Quoted 10 lines
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +10
-0+static int handle_ctrl_get_bin_info (struct v4l2_ctrl *ctrl,int is_width) +{ +struct mtk_cam_dev *cam_dev = ctrl->priv; +struct v4l2_format *fmt; + + fmt = &cam_dev->vdev_nodes[MTK_CAM_P1_MAIN_STREAM_OUT ].vdev_fmt; + +dev_dbg (&cam_dev->pdev->dev,"Get bin info w*h:%d*%d is_width:%d" , + fmt->fmt.pix_mp.width, fmt->fmt.pix_mp.height, is_width); +
Quoted 9 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 24
Quoted 4 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +4
-0+if (is_width) + ctrl->val = fmt->fmt.pix_mp.width; +else + ctrl->val = fmt->fmt.pix_mp.height;This seems to contradict to what the comment in the header says, because it just always returns the video node format and doesn't seem to care about whether binning is enabled or not.
This is because binning mode is not supported in current driver's implementation and no request on this function. We just create this for future usage. In order to avoid confusion, we will remove this.
Quoted 22 lines
Quoted 22 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +22
-0+ +return 0 ; +} + +static int handle_ctrl_get_process_raw (struct v4l2_ctrl *ctrl) +{ +struct mtk_cam_dev *cam_dev = ctrl->priv; +struct isp_p1_device *p1_dev =get_p1_device (&cam_dev->pdev->dev); + + ctrl->val = (p1_dev->isp_ctx.isp_raw_path ==ISP_PROCESS_RAW_PATH ); + +dev_dbg (&cam_dev->pdev->dev,"Get process raw:%d" , ctrl->val); + +return 0 ; +} + +static int handle_ctrl_set_process_raw (struct v4l2_ctrl *ctrl) +{ +struct mtk_cam_dev *cam_dev = ctrl->priv; +struct isp_p1_device *p1_dev =get_p1_device (&cam_dev->pdev->dev); + + p1_dev->isp_ctx.isp_raw_path = (ctrl->val) ?
Quoted 9 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 52
Quoted 6 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +6
-0+ ISP_PROCESS_RAW_PATH :ISP_PURE_RAW_PATH ; +dev_dbg (&cam_dev->pdev->dev,"Set process raw:%d" , ctrl->val); +return 0 ; +} + +static int mtk_cam_dev_g_ctrl (struct v4l2_ctrl *ctrl)This is
g_volatile_ctrlnot,g_ctrl.
Ok, thanks for your correction.
Quoted 9 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 57
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +5
-0+{ +switch (ctrl->id) { +case V4L2_CID_MTK_PROCESSING_RAW : +handle_ctrl_get_process_raw (ctrl); +break ;No need to provide getters for non-volatile controls. The framework manages them.
Ok, thanks for your correction.
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 62
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +5
-0+case V4L2_CID_MTK_GET_BIN_WIDTH : +handle_ctrl_get_bin_info (ctrl,1 ); +break ; +case V4L2_CID_MTK_GET_BIN_HEIGTH : +handle_ctrl_get_bin_info (ctrl,0 );It's trivial to get the value, so there isn't much benefit in having a function to do so, especially if one needs something like a
is_widthargument that further complicates the code.
Ok, we will pay attention in this of implementation next time.
Quoted 6 lines
Quoted 6 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +6
-0+break ; +default : +return -EINVAL ; + } +return 0 ; +}
Quoted 9 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 74
Quoted 6 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +6
-0+ +static int mtk_cam_dev_s_ctrl (struct v4l2_ctrl *ctrl) +{ +switch (ctrl->id) { +case V4L2_CID_MTK_PROCESSING_RAW : +return handle_ctrl_set_process_raw (ctrl);Same as above. The operation is too trivial to deserve a function.
Ok, got it.
Quoted 47 lines
Quoted 47 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +47
-0+default : +return -EINVAL ; + } +} + +static const struct v4l2_ctrl_ops mtk_cam_dev_ctrl_ops = { + .g_volatile_ctrl = mtk_cam_dev_g_ctrl, + .s_ctrl = mtk_cam_dev_s_ctrl, +}; + +struct v4l2_ctrl_config mtk_cam_controls[] = { + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_PROCESSING_RAW , + .name ="MTK CAM PROCESSING RAW" , + .type =V4L2_CTRL_TYPE_BOOLEAN , + .min =0 , + .max =1 , + .step =1 , + .def =1 , + }, + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_GET_BIN_WIDTH , + .name ="MTK CAM GET BIN WIDTH" , + .type =V4L2_CTRL_TYPE_INTEGER , + .min =IMG_MIN_WIDTH , + .max =IMG_MAX_WIDTH , + .step =1 , + .def =IMG_MAX_WIDTH , + .flags =V4L2_CTRL_FLAG_READ_ONLY |V4L2_CTRL_FLAG_VOLATILE , + }, + { + .ops = &mtk_cam_dev_ctrl_ops, + .id =V4L2_CID_MTK_GET_BIN_HEIGTH , + .name ="MTK CAM GET BIN HEIGHT" , + .type =V4L2_CTRL_TYPE_INTEGER , + .min =IMG_MIN_HEIGHT , + .max =IMG_MAX_HEIGHT , + .step =1 , + .def =IMG_MAX_HEIGHT , + .flags =V4L2_CTRL_FLAG_READ_ONLY |V4L2_CTRL_FLAG_VOLATILE , + }, +}; + +int mtk_cam_ctrl_init (struct mtk_cam_dev *cam_dev, +struct v4l2_ctrl_handler *hdl)
Quoted 9 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c line 127
Quoted 6 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-ctrl.c new file +6
-0+{ +unsigned int i; + +/* Initialized HW controls, allow V4L2_CID_MTK_CAM_MAX ctrls */ +v4l2_ctrl_handler_init (hdl,V4L2_CID_MTK_CAM_MAX ); +if (hdl->error) {This should be checked at the end, after all the controls are added.
Ok, got it.
Quoted 3 lines
Best regards,
Tomasz
Based on above comments, we will remove mtk_cam_ctrl.h & mtk_cam_ctrl.c in next patch to avoid over design.
Thanks for your comments.
Jungo
RFC v3 6/9 media: platform: Add Mediatek ISP P1 V4L2 functions
In reply to Jungo LinImplement standard V4L2 video driver that utilizes V4L2 and media framework APIs. In this driver, supports one media device, one sub-device and seven video devices during initialization. Moreover, it also connects with sensor and seninf drivers with V4L2 async APIs.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
---
This patch depends on "media: support Mediatek sensor interface driver"[1].
ISP P1 sub-device communicates with seninf sub-device with CIO.
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/10979135/
--- .../platform/mtk-isp/isp_50/cam/Makefile | 1 + .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c | 1674 +++++++++++++++++ .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h | 173 ++ 3 files changed, 1848 insertions(+) create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
drivers/media/platform/mtk-isp/isp_50/cam/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 mtk-cam-isp-objs += mtk_cam-ctrl.o +mtk-cam-isp-objs += mtk_cam-v4l2-util.o obj-$(CONFIG_VIDEO_MEDIATEK_ISP_PASS1) += mtk-cam-isp.o
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c new file +1674 -0
1,674 lines not on this page · raw message
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.18.0
Re: [RFC,v3 6/9] media: platform: Add Mediatek ISP P1 V4L2 functions
Hi Jungo,
Quoted 18 lines · Jungo Lin
Implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. In this driver, supports one media device, one sub-device and seven video devices during initialization. Moreover, it also connects with sensor and seninf drivers with V4L2 async APIs.
(The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development and is not ready to be reviewed yet.)
Signed-off-by Jungo Lin <[email protected]>---
This patch depends on "media: support Mediatek sensor interface driver"[1].ISP P1 sub-device communicates with seninf sub-device with CIO.
[1]. media: support Mediatek sensor interface driver
https://patchwork.kernel.org/cover/10979135/
Quoted 8 lines
--- .../platform/mtk-isp/isp_50/cam/Makefile | 1 + .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c | 1674 +++++++++++++++++ .../mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h | 173 ++ 3 files changed, 1848 insertions(+) create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.c create mode 100644 drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Thanks for the patch. Please see my comments inline.
[snip]
Quoted 19 lines
(quoted diff) +19
-0+static void mtk_cam_req_try_isp_queue(struct mtk_cam_dev *cam_dev, + struct media_request *new_req) +{ + struct mtk_cam_dev_request *req, *req_safe, *cam_dev_req; + struct device *dev = &cam_dev->pdev->dev; + + dev_dbg(dev, "%s new req:%d", __func__, !new_req); + + if (!cam_dev->streaming) { + cam_dev_req = mtk_cam_req_to_dev_req(new_req); + spin_lock(&cam_dev->req_lock); + list_add_tail(&cam_dev_req->list, &cam_dev->req_list); + spin_unlock(&cam_dev->req_lock); + dev_dbg(dev, "%s: stream off, no ISP enqueue\n", __func__); + return; + } + + /* Normal enqueue flow */ + if (new_req) {
Review
Quoted 10 lines
(quoted diff) +10
-0+ mtk_isp_req_enqueue(dev, new_req); + return; + } + + /* Flush all media requests wehen first stream on */ + list_for_each_entry_safe(req, req_safe, &cam_dev->req_list, list) { + list_del(&req->list); + mtk_isp_req_enqueue(dev, &req->req); + } +}
This will have to be redone, as per the other suggestions, but generally one would have a function that tries to queue as much as possible from a list to the hardware and another function that adds a request to the list and calls the first function.
Review
Quoted 7 lines
(quoted diff) +7
-0+ +static void mtk_cam_req_queue(struct media_request *req) +{ + struct mtk_cam_dev *cam_dev = mtk_cam_mdev_to_dev(req->mdev); + + vb2_request_queue(req); + mtk_cam_req_try_isp_queue(cam_dev, req);
Looks like this driver is suffering from versy similar problems in request handling as the DIP driver used to.
I'd prefer to save my time and avoid repeating the same comments, so please check my comments for the DIP driver and apply them to this one too:
Quoted 9 lines
(quoted diff) +9
-0+} + +static struct media_request *mtk_cam_req_alloc(struct media_device *mdev) +{ + struct mtk_cam_dev_request *cam_dev_req; + + cam_dev_req = kzalloc(sizeof(*cam_dev_req), GFP_KERNEL); + + return &cam_dev_req->req;
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +static void mtk_cam_req_free(struct media_request *req) +{ + struct mtk_cam_dev_request *cam_dev_req = mtk_cam_req_to_dev_req(req); + + kfree(cam_dev_req); +} + +static __u32 img_get_pixel_byte_by_fmt(__u32 pix_fmt)
Doesn't this function return bits not bytes?
Quoted 14 lines
(quoted diff) +14
-0+{ + switch (pix_fmt) { + case V4L2_PIX_FMT_MTISP_B8: + case V4L2_PIX_FMT_MTISP_F8: + return 8; + case V4L2_PIX_FMT_MTISP_B10: + case V4L2_PIX_FMT_MTISP_F10: + return 10; + case V4L2_PIX_FMT_MTISP_B12: + case V4L2_PIX_FMT_MTISP_F12: + return 12; + case V4L2_PIX_FMT_MTISP_B14: + case V4L2_PIX_FMT_MTISP_F14: + return 14;
Review
Quoted 10 lines
(quoted diff) +10
-0+ default: + return 0; + } +} + +static __u32 img_cal_main_stream_stride(struct device *dev, __u32 width, + __u32 pix_fmt) +{ + __u32 stride; + __u32 pixel_byte = img_get_pixel_byte_by_fmt(pix_fmt);
The __ prefixed types should be used only inside UAPI. Please change the driver to use the normal ones.
Review
Quoted 2 lines
(quoted diff) +2
-0+ + width = ALIGN(width, 4);
If there is some alignment requirement for width, it should be handled by TRY_/S_FMT and here we should already assume everything properly aligned.
Quoted 4 lines
(quoted diff) +4
-0+ stride = ALIGN(DIV_ROUND_UP(width * pixel_byte, 8), 2); + + dev_dbg(dev, "main width:%d, stride:%d\n", width, stride); +
Review
Quoted 10 lines
(quoted diff) +10
-0+ return stride; +} + +static __u32 img_cal_packed_out_stride(struct device *dev, __u32 width, + __u32 pix_fmt) +{ + __u32 stride; + __u32 pixel_byte = img_get_pixel_byte_by_fmt(pix_fmt); + + width = ALIGN(width, 4);
Ditto.
Review
Quoted 1 line
(quoted diff) +1
-0+ stride = DIV_ROUND_UP(width * 3, 2);
Could we introduce a local variable for this intermediate value, so that its name could explain what the value is?
Review
Quoted 4 lines
(quoted diff) +4
-0+ stride = DIV_ROUND_UP(stride * pixel_byte, 8); + + if (pix_fmt == V4L2_PIX_FMT_MTISP_F10) + stride = ALIGN(stride, 4);
Is it expected that only the F10 format needs this alignment?
Quoted 38 lines
(quoted diff) +38
-0+ + dev_dbg(dev, "packed width:%d, stride:%d\n", width, stride); + + return stride; +} + +static __u32 img_cal_stride(struct device *dev, + int node_id, + __u32 width, + __u32 pix_fmt) +{ + __u32 bpl; + + /* Currently, only support one_pixel_mode */ + if (node_id == MTK_CAM_P1_MAIN_STREAM_OUT) + bpl = img_cal_main_stream_stride(dev, width, pix_fmt); + else if (node_id == MTK_CAM_P1_PACKED_BIN_OUT) + bpl = img_cal_packed_out_stride(dev, width, pix_fmt); + + /* For DIP HW constrained, it needs 4 byte alignment */ + bpl = ALIGN(bpl, 4); + + return bpl; +} + +static const struct v4l2_format * +mtk_cam_dev_find_fmt(struct mtk_cam_dev_node_desc *desc, u32 format) +{ + unsigned int i; + const struct v4l2_format *dev_fmt; + + for (i = 0; i < desc->num_fmts; i++) { + dev_fmt = &desc->fmts[i]; + if (dev_fmt->fmt.pix_mp.pixelformat == format) + return dev_fmt; + } + + return NULL;
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +/* Calcuate mplane pix format */ +static void +mtk_cam_dev_cal_mplane_fmt(struct device *dev, + struct v4l2_pix_format_mplane *dest_fmt, + unsigned int node_id) +{ + unsigned int i; + __u32 bpl, sizeimage, imagsize;
Perhaps s/sizeimage/plane_size/ and s/imagsize/total_size/?
Review
Quoted 13 lines
(quoted diff) +13
-0+ + imagsize = 0; + for (i = 0 ; i < dest_fmt->num_planes; ++i) { + bpl = img_cal_stride(dev, + node_id, + dest_fmt->width, + dest_fmt->pixelformat); + sizeimage = bpl * dest_fmt->height; + imagsize += sizeimage; + dest_fmt->plane_fmt[i].bytesperline = bpl; + dest_fmt->plane_fmt[i].sizeimage = sizeimage; + memset(dest_fmt->plane_fmt[i].reserved, + 0, sizeof(dest_fmt->plane_fmt[i].reserved));
This memset is not needed. The core clears the reserved fields automatically:
https://elixir.bootlin.com/linux/v5.2/source/drivers/media/v4l2-core/v4l2-ioctl.c#L1559
(We may want to backport the patch that added that to our 4.19 branch.)
Review
Quoted 6 lines
(quoted diff) +6
-0+ dev_dbg(dev, "plane:%d,bpl:%d,sizeimage:%u\n", + i, bpl, dest_fmt->plane_fmt[i].sizeimage); + } + + if (dest_fmt->num_planes == 1) + dest_fmt->plane_fmt[0].sizeimage = imagsize;
Hmm, we only seem to support 1 plane raw formats in this driver. Does the hardware support any formats with more than 1 plane? If not, all the code should be simplified to just assume 1 plane.
Quoted 10 lines
(quoted diff) +10
-0+} + +static void +mtk_cam_dev_set_img_fmt(struct device *dev, + struct v4l2_pix_format_mplane *dest_fmt, + const struct v4l2_pix_format_mplane *src_fmt, + unsigned int node_id) +{ + dest_fmt->width = src_fmt->width; + dest_fmt->height = src_fmt->height;
Review
Quoted 10 lines
(quoted diff) +10
-0+ dest_fmt->pixelformat = src_fmt->pixelformat; + dest_fmt->field = src_fmt->field; + dest_fmt->colorspace = src_fmt->colorspace; + dest_fmt->num_planes = src_fmt->num_planes; + /* Use default */ + dest_fmt->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; + dest_fmt->quantization = V4L2_QUANTIZATION_DEFAULT; + dest_fmt->xfer_func = + V4L2_MAP_XFER_FUNC_DEFAULT(dest_fmt->colorspace); + memset(dest_fmt->reserved, 0, sizeof(dest_fmt->reserved));
Given that src_fmt should already be validated and have any fields adjusted to match the driver requirements, wouldn't all the lines above be equivalent to *dest_fmt = *src_fmt?
We probably want to move setting all the constant fields to mtk_cam_vidioc_try_fmt().
Review
Quoted 11 lines
(quoted diff) +11
-0+ + dev_dbg(dev, "%s: Dest Fmt:%c%c%c%c, w*h:%d*%d\n", + __func__, + (dest_fmt->pixelformat & 0xFF), + (dest_fmt->pixelformat >> 8) & 0xFF, + (dest_fmt->pixelformat >> 16) & 0xFF, + (dest_fmt->pixelformat >> 24) & 0xFF, + dest_fmt->width, + dest_fmt->height); + + mtk_cam_dev_cal_mplane_fmt(dev, dest_fmt, node_id);
This should have been called already before this function was called, because src_fmt should be already expected to contain valid settings. In fact, this is already called in mtk_cam_vidioc_try_fmt().
Review
Quoted 5 lines
(quoted diff) +5
-0+} + +/* Get the default format setting */ +static void +mtk_cam_dev_load_default_fmt(struct device *dev,
Please don't pass struct device pointer around, but instead just the main driver data struct, which should be much more convenient for accessing various driver data. Please fix the other functions as well.
Quoted 4 lines
(quoted diff) +4
-0+ struct mtk_cam_dev_node_desc *queue_desc, + struct v4l2_format *dest) +{ + const struct v4l2_format *default_fmt =
Review
Quoted 10 lines
(quoted diff) +10
-0+ &queue_desc->fmts[queue_desc->default_fmt_idx]; + + dest->type = queue_desc->buf_type; + + /* Configure default format based on node type */ + if (queue_desc->image) { + mtk_cam_dev_set_img_fmt(dev, + &dest->fmt.pix_mp, + &default_fmt->fmt.pix_mp, + queue_desc->id);
We should probably just call mtk_cam_vidioc_s_fmt() here, with a dummy v4l2_format struct and have any incorrect fields replaced by mtk_cam_vidioc_try_fmt(), since it's the same logic, as if setting invalid v4l2_format at runtime.
Quoted 9 lines
(quoted diff) +9
-0+ } else { + dest->fmt.meta.dataformat = default_fmt->fmt.meta.dataformat; + dest->fmt.meta.buffersize = default_fmt->fmt.meta.buffersize; + } +} + +static int mtk_cam_isp_open(struct file *file) +{ + struct mtk_cam_dev *cam_dev = video_drvdata(file);
Review
Quoted 10 lines
(quoted diff) +10
-0+ struct device *dev = &cam_dev->pdev->dev; + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + int ret; + + mutex_lock(&cam_dev->lock); + ret = v4l2_fh_open(file); + if (ret) + goto unlock; + + ret = v4l2_pipeline_pm_use(&node->vdev.entity, 1);
Please don't power on open. Normally applications keep the device nodes open all the time, so they would keep everything powered on.
Normally this should be done as late as possible, ideally when starting the streaming.
Quoted 11 lines
(quoted diff) +11
-0+ if (ret) + dev_err(dev, "%s fail:%d", __func__, ret); + +unlock: + mutex_unlock(&cam_dev->lock); + + return ret; +} + +static int mtk_cam_isp_release(struct file *file) +{
Review
Quoted 10 lines
(quoted diff) +10
-0+ struct mtk_cam_dev *cam_dev = video_drvdata(file); + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + mutex_lock(&cam_dev->lock); + v4l2_pipeline_pm_use(&node->vdev.entity, 0); + vb2_fop_release(file); + mutex_unlock(&cam_dev->lock); + + return 0; +}
If we remove power handling from open and release, we should be able to just use v4l2_fh_open() and vb2_fop_release() directly in the v4l2_file_operations struct.
Review
Quoted 8 lines
(quoted diff) +8
-0+ +static struct v4l2_subdev * +mtk_cam_cio_get_active_sensor(struct mtk_cam_dev *cam_dev) +{ + struct media_device *mdev = cam_dev->seninf->entity.graph_obj.mdev; + struct media_entity *entity; + struct device *dev = &cam_dev->pdev->dev; + struct v4l2_subdev *sensor;
This variable would be unitialized if there is no streaming sensor. Was there no compiler warning generated for this?
Quoted 18 lines
(quoted diff) +18
-0+ + media_device_for_each_entity(entity, mdev) { + dev_dbg(dev, "media entity: %s:0x%x\n", + entity->name, entity->function); + if (entity->function == MEDIA_ENT_F_CAM_SENSOR && + entity->stream_count) { + sensor = media_entity_to_v4l2_subdev(entity); + dev_dbg(dev, "Sensor found: %s\n", entity->name); + break; + } + } + + if (!sensor) + dev_err(dev, "Sensor is not connected\n"); + + return sensor; +} +
Review
Quoted 10 lines
(quoted diff) +10
-0+static int mtk_cam_cio_stream_on(struct mtk_cam_dev *cam_dev) +{ + struct device *dev = &cam_dev->pdev->dev; + int ret; + + /* Align vb2_core_streamon design */ + if (cam_dev->streaming) { + dev_warn(dev, "already streaming\n", dev); + return 0; + }
Could we check this in the caller?
Review
Quoted 4 lines
(quoted diff) +4
-0+ + if (!cam_dev->seninf) { + dev_err(dev, "no seninf connected:%d\n", ret); + return -EPERM;
I don't think -EPERM is a good error code here. It's about a missing seninf device, so perhaps -ENODEV?
Review
Quoted 13 lines
(quoted diff) +10
-1+ } + + /* Get active sensor from graph topology */ + cam_dev->sensor = mtk_cam_cio_get_active_sensor(cam_dev); + if (!cam_dev->sensor) + return -EPERM; -ENODEV + + ret = mtk_isp_config(dev); + if (ret) + return -EPERM;
Maybe just return ret?
Review
Quoted 7 lines
(quoted diff) +7
-0+ + /* Seninf must stream on first */ + ret = v4l2_subdev_call(cam_dev->seninf, video, s_stream, 1); + if (ret) { + dev_err(dev, "%s stream on failed:%d\n", + cam_dev->seninf->entity.name, ret); + return -EPERM;
return ret?
Quoted 10 lines
(quoted diff) +10
-0+ } + + ret = v4l2_subdev_call(cam_dev->sensor, video, s_stream, 1); + if (ret) { + dev_err(dev, "%s stream on failed:%d\n", + cam_dev->sensor->entity.name, ret); + goto fail_sensor_on; + } + + cam_dev->streaming = true;
Review
Quoted 10 lines
(quoted diff) +10
-0+ mtk_cam_req_try_isp_queue(cam_dev, NULL); + isp_composer_stream(dev, 1); + dev_dbg(dev, "streamed on Pass 1\n"); + + return 0; + +fail_sensor_on: + v4l2_subdev_call(cam_dev->seninf, video, s_stream, 0); + + return -EPERM;
return ret?
Review
Quoted 11 lines
(quoted diff) +11
-0+} + +static int mtk_cam_cio_stream_off(struct mtk_cam_dev *cam_dev) +{ + struct device *dev = &cam_dev->pdev->dev; + int ret; + + if (!cam_dev->streaming) { + dev_warn(dev, "already stream off"); + return 0; + }
Could we check this in the caller?
Quoted 6 lines
(quoted diff) +6
-0+ + ret = v4l2_subdev_call(cam_dev->sensor, video, s_stream, 0); + if (ret) { + dev_err(dev, "%s stream off failed:%d\n", + cam_dev->sensor->entity.name, ret); + return -EPERM;
Review
Quoted 10 lines
(quoted diff) +10
-0+ } + + ret = v4l2_subdev_call(cam_dev->seninf, video, s_stream, 0); + if (ret) { + dev_err(dev, "%s stream off failed:%d\n", + cam_dev->seninf->entity.name, ret); + return -EPERM; + } + + isp_composer_stream(dev, 0);
Shouldn't we synchronously wait for the streaming to stop here? Otherwise we can't guarantee that the hardware releases all the memory that we're going to free once this function returns.
Quoted 26 lines
(quoted diff) +26
-0+ cam_dev->streaming = false; + dev_dbg(dev, "streamed off Pass 1\n"); + + return 0; +} + +static int mtk_cam_sd_s_stream(struct v4l2_subdev *sd, int enable) +{ + struct mtk_cam_dev *cam_dev = mtk_cam_subdev_to_dev(sd); + + if (enable) + return mtk_cam_cio_stream_on(cam_dev); + else + return mtk_cam_cio_stream_off(cam_dev); +} + +static int mtk_cam_sd_subscribe_event(struct v4l2_subdev *subdev, + struct v4l2_fh *fh, + struct v4l2_event_subscription *sub) +{ + switch (sub->type) { + case V4L2_EVENT_FRAME_SYNC: + return v4l2_event_subscribe(fh, sub, 0, NULL); + default: + return -EINVAL; + }
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +static int mtk_cam_sd_s_power(struct v4l2_subdev *sd, int on) +{ + struct mtk_cam_dev *cam_dev = mtk_cam_subdev_to_dev(sd); + + dev_dbg(&cam_dev->pdev->dev, "%s:%d", __func__, on); + + return on ? mtk_isp_power_init(cam_dev) : + mtk_isp_power_release(&cam_dev->pdev->dev);
s_power is a historical thing and we shouldn't be implementing it. Instead, we should use runtime PM and call pm_runtime_get_sync(), pm_runtime_put() whenever we start and stop streaming respectively.
Quoted 4 lines
(quoted diff) +4
-0+} + +static int mtk_cam_media_link_setup(struct media_entity *entity, + const struct media_pad *local,
Review
Quoted 10 lines
(quoted diff) +10
-0+ const struct media_pad *remote, u32 flags) +{ + struct mtk_cam_dev *cam_dev = + container_of(entity, struct mtk_cam_dev, subdev.entity); + u32 pad = local->index; + + dev_dbg(&cam_dev->pdev->dev, "%s: %d -> %d flags:0x%x\n", + __func__, pad, remote->index, flags); + + if (pad < MTK_CAM_P1_TOTAL_NODES)
I assume this check is needed, because the pads with higher indexes are not video nodes? If so, a comment would be helpful here.
Quoted 4 lines
(quoted diff) +4
-0+ cam_dev->vdev_nodes[pad].enabled = + !!(flags & MEDIA_LNK_FL_ENABLED); + + return 0;
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +static void mtk_cam_vb2_buf_queue(struct vb2_buffer *vb) +{ + struct mtk_cam_dev *mtk_cam_dev = vb2_get_drv_priv(vb->vb2_queue); + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vb->vb2_queue); + struct device *dev = &mtk_cam_dev->pdev->dev; + struct mtk_cam_dev_buffer *buf; + + buf = mtk_cam_vb2_buf_to_dev_buf(vb);
This can be folded into the declaration.
Review
Quoted 10 lines
(quoted diff) +10
-0+ + dev_dbg(dev, "%s: node:%d fd:%d idx:%d\n", + __func__, + node->id, + buf->vbb.request_fd, + buf->vbb.vb2_buf.index); + + /* For request buffers en-queue, handled in mtk_cam_req_try_queue */ + if (vb->vb2_queue->uses_requests) + return;
I'd suggest removing non-request support from this driver. Even if we end up with a need to provide compatibility for non-request mode, then it should be built on top of the requests mode, so that the driver itself doesn't have to deal with two modes.
Quoted 10 lines
(quoted diff) +10
-0+ + /* Added the buffer into the tracking list */ + spin_lock(&node->slock); + list_add_tail(&buf->list, &node->pending_list); + spin_unlock(&node->slock); + + mtk_isp_enqueue(dev, node->desc.dma_port, buf); +} + +static int mtk_cam_vb2_buf_init(struct vb2_buffer *vb)
Review
Quoted 10 lines
(quoted diff) +10
-0+{ + struct mtk_cam_dev *cam_dev = vb2_get_drv_priv(vb->vb2_queue); + struct device *smem_dev = cam_dev->smem_dev; + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vb->vb2_queue); + struct mtk_cam_dev_buffer *buf; + + buf = mtk_cam_vb2_buf_to_dev_buf(vb); + buf->node_id = node->id; + buf->daddr = vb2_dma_contig_plane_dma_addr(&buf->vbb.vb2_buf, 0); + buf->scp_addr = 0;
Just a reminder that this will have to be reworked according to my comments for the memory allocation patch.
Quoted 14 lines
(quoted diff) +14
-0+ + /* scp address is only valid for meta input buffer */ + if (node->desc.smem_alloc) + buf->scp_addr = mtk_cam_smem_iova_to_scp_addr(smem_dev, + buf->daddr); + + return 0; +} + +static int mtk_cam_vb2_buf_prepare(struct vb2_buffer *vb) +{ + struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb); + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vb->vb2_queue); + const struct v4l2_format *fmt = &node->vdev_fmt;
Review
Quoted 10 lines
(quoted diff) +10
-0+ unsigned int size; + + if (vb->vb2_queue->type == V4L2_BUF_TYPE_META_OUTPUT || + vb->vb2_queue->type == V4L2_BUF_TYPE_META_CAPTURE) + size = fmt->fmt.meta.buffersize; + else + size = fmt->fmt.pix_mp.plane_fmt[0].sizeimage; + + if (vb2_plane_size(vb, 0) < size) + return -EINVAL;
For OUTPUT buffers we need to check if vb2_get_plane_payload() == size. Otherwise we could get not enough or invalid data.
Review
Quoted 3 lines
(quoted diff) +3
-0+ + v4l2_buf->field = V4L2_FIELD_NONE; + vb2_set_plane_payload(vb, 0, size);
This shouldn't be called on OUTPUT buffers.
Quoted 17 lines
(quoted diff) +17
-0+ + return 0; +} + +static int mtk_cam_vb2_queue_setup(struct vb2_queue *vq, + unsigned int *num_buffers, + unsigned int *num_planes, + unsigned int sizes[], + struct device *alloc_devs[]) +{ + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vq); + unsigned int max_buffer_count = node->desc.max_buf_count; + const struct v4l2_format *fmt = &node->vdev_fmt; + unsigned int size; + + /* Check the limitation of buffer size */ + if (max_buffer_count)
Review
Quoted 10 lines
(quoted diff) +10
-0+ *num_buffers = clamp_val(*num_buffers, 1, max_buffer_count); + + if (vq->type == V4L2_BUF_TYPE_META_OUTPUT || + vq->type == V4L2_BUF_TYPE_META_CAPTURE) + size = fmt->fmt.meta.buffersize; + else + size = fmt->fmt.pix_mp.plane_fmt[0].sizeimage; + + /* Add for q.create_bufs with fmt.g_sizeimage(p) / 2 test */ + if (*num_planes) {
We should also verify that *num_planes == 1, as we don't support more planes in this driver.
Quoted 14 lines
(quoted diff) +14
-0+ if (sizes[0] < size) + return -EINVAL; + } else { + *num_planes = 1; + sizes[0] = size; + } + + return 0; +} + +static void mtk_cam_vb2_return_all_buffers(struct mtk_cam_dev *cam_dev, + struct mtk_cam_video_device *node, + enum vb2_buffer_state state) +{
Review
Quoted 10 lines
(quoted diff) +10
-0+ struct mtk_cam_dev_buffer *b, *b0; + struct mtk_cam_dev_request *req, *req0; + struct media_request_object *obj, *obj0; + struct vb2_buffer *vb; + + dev_dbg(&cam_dev->pdev->dev, "%s: node:%s", __func__, node->vdev.name); + + /* Return all buffers */ + spin_lock(&node->slock); + list_for_each_entry_safe(b, b0, &node->pending_list, list) {
nit: One would normally call the second argument "prev", or "b_prev".
Review
Quoted 2 lines
(quoted diff) +2
-0+ vb = &b->vbb.vb2_buf; + if (vb->state == VB2_BUF_STATE_ACTIVE)
We shouldn't need to check the buffer state.
Review
Quoted 7 lines
(quoted diff) +7
-0+ vb2_buffer_done(vb, state); + list_del(&b->list); + } + spin_unlock(&node->slock); + + spin_lock(&cam_dev->req_lock); + list_for_each_entry_safe(req, req0, &cam_dev->req_list, list) {
nit: Ditto.
Review
Quoted 1 line
(quoted diff) +1
-0+ list_for_each_entry_safe(obj, obj0, &req->req.objects, list) {
Need to check if the object is a buffer.
Review
Quoted 2 lines
(quoted diff) +2
-0+ vb = container_of(obj, struct vb2_buffer, req_obj); + if (vb->state == VB2_BUF_STATE_ACTIVE)
vb->state shouldn't be accessed directly from the drivers.
Generally, the need to check the state here would suggest that there is something wrong with how the driver manages the requests. The list that is being iterated here shouldn't contain any requests that have buffers that aren't active. That will be achieved if my comments for the request handling in the DIP driver are applied to this driver as well.
Quoted 10 lines
(quoted diff) +10
-0+ vb2_buffer_done(vb, state); + } + list_del(&req->list); + } + spin_unlock(&cam_dev->req_lock); + + if (node->vbq.uses_requests) + mtk_isp_req_flush_buffers(&cam_dev->pdev->dev); +} +
Review
Quoted 10 lines
(quoted diff) +10
-0+static int mtk_cam_vb2_start_streaming(struct vb2_queue *vq, + unsigned int count) +{ + struct mtk_cam_dev *cam_dev = vb2_get_drv_priv(vq); + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vq); + struct device *dev = &cam_dev->pdev->dev; + unsigned int node_count = cam_dev->subdev.entity.use_count; + int ret; + + if (!node->enabled) {
How is this synchronized with mtk_cam_media_link_setup()?
Review
Quoted 10 lines
(quoted diff) +10
-0+ dev_err(dev, "Node:%d is not enable\n", node->id); + ret = -ENOLINK; + goto fail_no_link; + } + + dev_dbg(dev, "%s: count info:%d:%d", __func__, + atomic_read(&cam_dev->streamed_node_count), node_count); + + if (atomic_inc_return(&cam_dev->streamed_node_count) < node_count) + return 0;
How do we guarantee that cam_dev->subdev.entity.use_count doesn't change between calls to this function on different video nodes?
Review
Quoted 8 lines
(quoted diff) +8
-0+ + /* Start streaming of the whole pipeline now */ + ret = media_pipeline_start(&node->vdev.entity, &cam_dev->pipeline); + if (ret) { + dev_err(dev, "%s: Node:%d failed\n", __func__, node->id); + goto fail_start_pipeline; + } +
Related to the above comment: If we start the media pipeline when we start streaming on the first node, we would naturally prevent the link configuration changes until the last node stops streaming (as long as the link is not DYNAMIC). Note that it would only mark the entities as streaming, but it wouldn't call their s_stream, which I believe is exactly what we would need to solve the problem above.
Quoted 17 lines
(quoted diff) +17
-0+ /* Stream on sub-devices node */ + ret = v4l2_subdev_call(&cam_dev->subdev, video, s_stream, 1); + if (ret) { + dev_err(dev, "Node:%d s_stream on failed:%d\n", node->id, ret); + goto fail_stream_on; + } + + return 0; + +fail_stream_on: + media_pipeline_stop(&node->vdev.entity); +fail_start_pipeline: + atomic_dec(&cam_dev->streamed_node_count); +fail_no_link: + mtk_cam_vb2_return_all_buffers(cam_dev, node, VB2_BUF_STATE_QUEUED); + + return ret;
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +static void mtk_cam_vb2_stop_streaming(struct vb2_queue *vq) +{ + struct mtk_cam_dev *cam_dev = vb2_get_drv_priv(vq); + struct mtk_cam_video_device *node = mtk_cam_vbq_to_vdev(vq); + struct device *dev = &cam_dev->pdev->dev; + + if (!node->enabled) + return;
It shouldn't be possible for this to happen, because nobody could have called start_streaming on a disabled node.
Review
Quoted 2 lines
(quoted diff) +2
-0+ + mtk_cam_vb2_return_all_buffers(cam_dev, node, VB2_BUF_STATE_ERROR);
Shouldn't we stop streaming first, so that the hardware operation is cancelled and any buffers owned by the hardware are released?
Quoted 10 lines
(quoted diff) +10
-0+ + dev_dbg(dev, "%s: count info:%d", __func__, + cam_dev->subdev.entity.stream_count); + + /* Check the first node to stream-off */ + if (!cam_dev->subdev.entity.stream_count) + return; + + media_pipeline_stop(&node->vdev.entity); +
Review
Quoted 10 lines
(quoted diff) +10
-0+ if (v4l2_subdev_call(&cam_dev->subdev, video, s_stream, 0)) + dev_err(dev, "failed to stop streaming\n"); +} + +static void mtk_cam_vb2_buf_request_complete(struct vb2_buffer *vb) +{ + struct mtk_cam_dev *dev = vb2_get_drv_priv(vb->vb2_queue); + + v4l2_ctrl_request_complete(vb->req_obj.req, + dev->v4l2_dev.ctrl_handler);
This would end up being called multiple times, once for each video node. Instead, this should be called explicitly by the driver when it completed the request - perhaps in the frame completion handler?
With that, we probably wouldn't even need this callback.
Review
Quoted 9 lines
(quoted diff) +9
-0+} + +static int mtk_cam_vidioc_querycap(struct file *file, void *fh, + struct v4l2_capability *cap) +{ + struct mtk_cam_dev *cam_dev = video_drvdata(file); + + strscpy(cap->driver, MTK_CAM_DEV_P1_NAME, sizeof(cap->driver)); + strscpy(cap->card, MTK_CAM_DEV_P1_NAME, sizeof(cap->card));
We could just use dev_driver_name(cam_dev->dev) for both.
Review
Quoted 2 lines
(quoted diff) +2
-0+ snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", + dev_name(cam_dev->media_dev.dev));
We should just store dev in cam_dev.
Review
Quoted 13 lines
(quoted diff) +13
-0+ + return 0; +} + +static int mtk_cam_vidioc_enum_fmt(struct file *file, void *fh, + struct v4l2_fmtdesc *f) +{ + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + if (f->index >= node->desc.num_fmts) + return -EINVAL; + + f->pixelformat = node->desc.fmts[f->index].fmt.pix_mp.pixelformat;
Is the set of formats available always the same regardless of the sensor format?
Review
Quoted 1 line
(quoted diff) +1
-0+ f->flags = 0;
We need f->description too.
Review
Quoted 11 lines
(quoted diff) +11
-0+ + return 0; +} + +static int mtk_cam_vidioc_g_fmt(struct file *file, void *fh, + struct v4l2_format *f) +{ + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + if (!node->desc.num_fmts) + return -EINVAL;
When would that condition happen?
Review
Quoted 13 lines
(quoted diff) +13
-0+ + f->fmt = node->vdev_fmt.fmt; + + return 0; +} + +static int mtk_cam_vidioc_try_fmt(struct file *file, void *fh, + struct v4l2_format *in_fmt) +{ + struct mtk_cam_dev *cam_dev = video_drvdata(file); + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + const struct v4l2_format *dev_fmt; + __u32 width, height;
Don't use __ types in implementation, they are here for UAPI purposes. There is u32, which you could use instead, but for width and height you don't need explicit size, so unsigned int should be good.
Quoted 12 lines
(quoted diff) +12
-0+ + dev_dbg(&cam_dev->pdev->dev, "%s: fmt:%c%c%c%c, w*h:%u*%u\n", + __func__, + (in_fmt->fmt.pix_mp.pixelformat & 0xFF), + (in_fmt->fmt.pix_mp.pixelformat >> 8) & 0xFF, + (in_fmt->fmt.pix_mp.pixelformat >> 16) & 0xFF, + (in_fmt->fmt.pix_mp.pixelformat >> 24) & 0xFF, + in_fmt->fmt.pix_mp.width, in_fmt->fmt.pix_mp.height); + + width = in_fmt->fmt.pix_mp.width; + height = in_fmt->fmt.pix_mp.height; +
Review
Quoted 10 lines
(quoted diff) +10
-0+ dev_fmt = mtk_cam_dev_find_fmt(&node->desc, + in_fmt->fmt.pix_mp.pixelformat); + if (dev_fmt) { + mtk_cam_dev_set_img_fmt(&cam_dev->pdev->dev, + &in_fmt->fmt.pix_mp, + &dev_fmt->fmt.pix_mp, + node->id); + } else { + mtk_cam_dev_load_default_fmt(&cam_dev->pdev->dev, + &node->desc, in_fmt);
We shouldn't just load a default format. This function should validate all the fields one by one and adjust them to something appropriate.
Review
Quoted 1 line
(quoted diff) +1
-0+ }
CodingStyle: No braces if both if and else bodies have only 1 statement each.
Review
Quoted 4 lines
(quoted diff) +4
-0+ in_fmt->fmt.pix_mp.width = clamp_t(u32, + width, + CAM_MIN_WIDTH, + in_fmt->fmt.pix_mp.width);
Shouldn't we clamp this with some maximum value too?
Review
Quoted 4 lines
(quoted diff) +4
-0+ in_fmt->fmt.pix_mp.height = clamp_t(u32, + height, + CAM_MIN_HEIGHT, + in_fmt->fmt.pix_mp.height);
Ditto.
Quoted 4 lines
(quoted diff) +4
-0+ mtk_cam_dev_cal_mplane_fmt(&cam_dev->pdev->dev, + &in_fmt->fmt.pix_mp, node->id); + + return 0;
Review
Quoted 10 lines
(quoted diff) +10
-0+} + +static int mtk_cam_vidioc_s_fmt(struct file *file, void *fh, + struct v4l2_format *f) +{ + struct mtk_cam_dev *cam_dev = video_drvdata(file); + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + if (cam_dev->streaming) + return -EBUSY;
I think this should rather be something like vb2_queue_is_busy(), which would prevent format changes if buffers are allocated.
Quoted 89 lines
(quoted diff) +89
-0+ + /* Get the valid format */ + mtk_cam_vidioc_try_fmt(file, fh, f); + + /* Configure to video device */ + mtk_cam_dev_set_img_fmt(&cam_dev->pdev->dev, + &node->vdev_fmt.fmt.pix_mp, + &f->fmt.pix_mp, + node->id); + + return 0; +} + +static int mtk_cam_vidioc_enum_input(struct file *file, void *fh, + struct v4l2_input *input) +{ + if (input->index) + return -EINVAL; + + strscpy(input->name, "camera", sizeof(input->name)); + input->type = V4L2_INPUT_TYPE_CAMERA; + + return 0; +} + +static int mtk_cam_vidioc_g_input(struct file *file, void *fh, + unsigned int *input) +{ + *input = 0; + + return 0; +} + +static int mtk_cam_vidioc_s_input(struct file *file, + void *fh, unsigned int input) +{ + return input == 0 ? 0 : -EINVAL; +} + +static int mtk_cam_vidioc_enum_framesizes(struct file *filp, void *priv, + struct v4l2_frmsizeenum *sizes) +{ + struct mtk_cam_video_device *node = file_to_mtk_cam_node(filp); + const struct v4l2_format *dev_fmt; + + dev_fmt = mtk_cam_dev_find_fmt(&node->desc, sizes->pixel_format); + if (!dev_fmt || sizes->index) + return -EINVAL; + + sizes->type = node->desc.frmsizes->type; + memcpy(&sizes->stepwise, &node->desc.frmsizes->stepwise, + sizeof(sizes->stepwise)); + + return 0; +} + +static int mtk_cam_vidioc_meta_enum_fmt(struct file *file, void *fh, + struct v4l2_fmtdesc *f) +{ + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + if (f->index) + return -EINVAL; + + strscpy(f->description, node->desc.description, + sizeof(node->desc.description)); + f->pixelformat = node->vdev_fmt.fmt.meta.dataformat; + f->flags = 0; + + return 0; +} + +static int mtk_cam_vidioc_g_meta_fmt(struct file *file, void *fh, + struct v4l2_format *f) +{ + struct mtk_cam_video_device *node = file_to_mtk_cam_node(file); + + f->fmt.meta.dataformat = node->vdev_fmt.fmt.meta.dataformat; + f->fmt.meta.buffersize = node->vdev_fmt.fmt.meta.buffersize; + + return 0; +} + +static const struct v4l2_subdev_core_ops mtk_cam_subdev_core_ops = { + .subscribe_event = mtk_cam_sd_subscribe_event, + .unsubscribe_event = v4l2_event_subdev_unsubscribe, + .s_power = mtk_cam_sd_s_power, +}; +
Review
Quoted 10 lines
(quoted diff) +10
-0+static const struct v4l2_subdev_video_ops mtk_cam_subdev_video_ops = { + .s_stream = mtk_cam_sd_s_stream, +}; + +static const struct v4l2_subdev_ops mtk_cam_subdev_ops = { + .core = &mtk_cam_subdev_core_ops, + .video = &mtk_cam_subdev_video_ops, +}; + +static const struct media_entity_operations mtk_cam_media_ops = {
nit: mtk_cam_media_entity_ops?
Quoted 18 lines
(quoted diff) +18
-0+ .link_setup = mtk_cam_media_link_setup, + .link_validate = v4l2_subdev_link_validate, +}; + +static const struct vb2_ops mtk_cam_vb2_ops = { + .queue_setup = mtk_cam_vb2_queue_setup, + .wait_prepare = vb2_ops_wait_prepare, + .wait_finish = vb2_ops_wait_finish, + .buf_init = mtk_cam_vb2_buf_init, + .buf_prepare = mtk_cam_vb2_buf_prepare, + .start_streaming = mtk_cam_vb2_start_streaming, + .stop_streaming = mtk_cam_vb2_stop_streaming, + .buf_queue = mtk_cam_vb2_buf_queue, + .buf_request_complete = mtk_cam_vb2_buf_request_complete, +}; + +static const struct v4l2_file_operations mtk_cam_v4l2_fops = { + .unlocked_ioctl = video_ioctl2,
Review
Quoted 10 lines
(quoted diff) +10
-0+ .open = mtk_cam_isp_open, + .release = mtk_cam_isp_release, + .poll = vb2_fop_poll, + .mmap = vb2_fop_mmap, +#ifdef CONFIG_COMPAT + .compat_ioctl32 = v4l2_compat_ioctl32, +#endif +}; + +static const struct media_device_ops mtk_cam_media_req_ops = {
nit: Those are media ops, so perhaps just mtk_cam_media_ops?
Review
Quoted 12 lines
(quoted diff) +12
-0+ .link_notify = v4l2_pipeline_link_notify, + .req_alloc = mtk_cam_req_alloc, + .req_free = mtk_cam_req_free, + .req_validate = vb2_request_validate, + .req_queue = mtk_cam_req_queue, +}; + +static int mtk_cam_media_register(struct device *dev, + struct media_device *media_dev) +{ + media_dev->dev = dev; + strscpy(media_dev->model, MTK_CAM_DEV_P1_NAME,
Could we replace any use of this macro with dev_driver_string(dev) and then delete the macro? The less name strings in the driver the better, as there is less change for confusing the userspace if few different names are used at the same time.
Quoted 4 lines
(quoted diff) +4
-0+ sizeof(media_dev->model)); + snprintf(media_dev->bus_info, sizeof(media_dev->bus_info), + "platform:%s", dev_name(dev)); + media_dev->hw_revision = 0;
Review
Quoted 10 lines
(quoted diff) +10
-0+ media_device_init(media_dev); + media_dev->ops = &mtk_cam_media_req_ops; + + return media_device_register(media_dev); +} + +static int mtk_cam_video_register_device(struct mtk_cam_dev *cam_dev, u32 i) +{ + struct device *dev = &cam_dev->pdev->dev; + struct mtk_cam_video_device *node = &cam_dev->vdev_nodes[i];
Would it make sense to pass node as an argument to this function instead of (or in addition to) i?
Review
Quoted 3 lines
(quoted diff) +3
-0+ struct video_device *vdev = &node->vdev; + struct vb2_queue *vbq = &node->vbq; + u32 output = !cam_dev->vdev_nodes[i].desc.capture;
Why not call it capture instead and avoid the inversion?
Review
Quoted 13 lines
(quoted diff) +13
-0+ u32 link_flags = cam_dev->vdev_nodes[i].desc.link_flags; + int ret; + + cam_dev->subdev_pads[i].flags = output ? + MEDIA_PAD_FL_SINK : MEDIA_PAD_FL_SOURCE; + + /* Initialize media entities */ + ret = media_entity_pads_init(&vdev->entity, 1, &node->vdev_pad); + if (ret) { + dev_err(dev, "failed initialize media pad:%d\n", ret); + return ret; + } + node->enabled = false;
Are all the nodes optional? If there is any required node, it should be always enabled and have the MEDIA_LNK_FL_IMMUTABLE flag set.
Review
Quoted 2 lines
(quoted diff) +2
-0+ node->id = i; + node->vdev_pad.flags = cam_dev->subdev_pads[i].flags;
Hmm, shouldn't the subdev pads have opposite directions (sink vs source)?
Quoted 11 lines
(quoted diff) +11
-0+ mtk_cam_dev_load_default_fmt(&cam_dev->pdev->dev, + &node->desc, + &node->vdev_fmt); + + /* Initialize vbq */ + vbq->type = node->vdev_fmt.type; + if (vbq->type == V4L2_BUF_TYPE_META_OUTPUT) + vbq->io_modes = VB2_MMAP; + else + vbq->io_modes = VB2_MMAP | VB2_DMABUF; +
Review
Quoted 10 lines
(quoted diff) +10
-0+ if (node->desc.smem_alloc) { + vbq->bidirectional = 1; + vbq->dev = cam_dev->smem_dev; + } else { + vbq->dev = &cam_dev->pdev->dev; + } + + if (vbq->type == V4L2_BUF_TYPE_META_CAPTURE) + vdev->entity.function = + MEDIA_ENT_F_PROC_VIDEO_STATISTICS;
This is a video node, so it's just a DMA, not a processing entity. I believe all the entities corresponding to video nodes should use MEDIA_ENT_F_IO_V4L.
Review
Quoted 6 lines
(quoted diff) +6
-0+ vbq->ops = &mtk_cam_vb2_ops; + vbq->mem_ops = &vb2_dma_contig_memops; + vbq->buf_struct_size = sizeof(struct mtk_cam_dev_buffer); + vbq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; + vbq->min_buffers_needed = 0; /* Can streamon w/o buffers */ + /* Put the process hub sub device in the vb2 private data */
What is "process hub" and what "sub device" is this about?
Quoted 44 lines
(quoted diff) +44
-0+ vbq->drv_priv = cam_dev; + vbq->lock = &node->lock; + vbq->supports_requests = true; + + ret = vb2_queue_init(vbq); + if (ret) { + dev_err(dev, "failed to init. vb2 queue:%d\n", ret); + goto fail_vb2_queue; + } + + /* Initialize vdev */ + snprintf(vdev->name, sizeof(vdev->name), "%s %s", + MTK_CAM_DEV_P1_NAME, node->desc.name); + /* set cap/type/ioctl_ops of the video device */ + vdev->device_caps = node->desc.cap | V4L2_CAP_STREAMING; + vdev->ioctl_ops = node->desc.ioctl_ops; + vdev->fops = &mtk_cam_v4l2_fops; + vdev->release = video_device_release_empty; + vdev->lock = &node->lock; + vdev->v4l2_dev = &cam_dev->v4l2_dev; + vdev->queue = &node->vbq; + vdev->vfl_dir = output ? VFL_DIR_TX : VFL_DIR_RX; + vdev->entity.ops = NULL; + /* Enable private control for image video devices */ + if (node->desc.image) { + mtk_cam_ctrl_init(cam_dev, &node->ctrl_handler); + vdev->ctrl_handler = &node->ctrl_handler; + } + video_set_drvdata(vdev, cam_dev); + dev_dbg(dev, "register vdev:%d:%s\n", i, vdev->name); + + ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); + if (ret) { + dev_err(dev, "failed to register vde:%d\n", ret); + goto fail_vdev; + } + + /* Create link between video node and the subdev pad */ + if (output) { + ret = media_create_pad_link(&vdev->entity, 0, + &cam_dev->subdev.entity, + i, link_flags); + } else { + ret = media_create_pad_link(&cam_dev->subdev.entity,
Review
Quoted 10 lines
(quoted diff) +10
-0+ i, &vdev->entity, 0, + link_flags); + } + if (ret) + goto fail_link; + + /* Initialize miscellaneous variables */ + mutex_init(&node->lock); + spin_lock_init(&node->slock); + INIT_LIST_HEAD(&node->pending_list);
This should be all initialized before registering the video device. Otherwise userspace could open the device before these are initialized.
Quoted 4 lines
(quoted diff) +4
-0+ + return 0; + +fail_link:
Review
Quoted 10 lines
(quoted diff) +10
-0+ video_unregister_device(vdev); +fail_vdev: + vb2_queue_release(vbq); +fail_vb2_queue: + media_entity_cleanup(&vdev->entity); + + return ret; +} + +static int mtk_cam_mem2mem2_v4l2_register(struct mtk_cam_dev *cam_dev)
This function doesn't have anything to do with mem2mem. How about mtk_cam_v4l2_register()?
Perhaps it would make sense to move any media related code into into mtk_cam_media_register(), keep only V4L2 related code here and have the caller call the former first and then this one, rather than having such deep sequence of nested calls, which makes the driver harder to read.
Review
Quoted 2 lines
(quoted diff) +2
-0+{ + struct device *dev = &cam_dev->pdev->dev;
How about just storing dev, instead of pdev in the struct? Also, calling the argument "cam", would make it as short as cam->dev.
Review
Quoted 13 lines
(quoted diff) +13
-0+ /* Total pad numbers is video devices + one seninf pad */ + unsigned int num_subdev_pads = MTK_CAM_CIO_PAD_SINK + 1; + unsigned int i; + int ret; + + ret = mtk_cam_media_register(dev, + &cam_dev->media_dev); + if (ret) { + dev_err(dev, "failed to register media device:%d\n", ret); + return ret; + } + dev_info(dev, "Register media device: %s, 0x%pK", + MTK_CAM_DEV_P1_NAME, cam_dev->media_dev);
An info message should be useful to the user in some way. Printing kernel pointers isn't useful. Something like "registered media0" could be useful to let the user know which media device is associated with this driver if there is more than one in the system.
Review
Quoted 7 lines
(quoted diff) +7
-0+ + /* Set up v4l2 device */ + cam_dev->v4l2_dev.mdev = &cam_dev->media_dev; + ret = v4l2_device_register(dev, &cam_dev->v4l2_dev); + if (ret) { + dev_err(dev, "failed to register V4L2 device:%d\n", ret); + goto fail_v4l2_dev;
Please call the labels after the cleanup step that needs to be done. It makes it easier to spot any ordering errors.
Review
Quoted 2 lines
(quoted diff) +2
-0+ } + dev_info(dev, "Register v4l2 device: 0x%pK", cam_dev->v4l2_dev);
Same as above.
Quoted 5 lines
(quoted diff) +5
-0+ + /* Initialize subdev media entity */ + cam_dev->subdev_pads = devm_kcalloc(dev, num_subdev_pads, + sizeof(*cam_dev->subdev_pads), + GFP_KERNEL);
Review
Quoted 10 lines
(quoted diff) +10
-0+ if (!cam_dev->subdev_pads) { + ret = -ENOMEM; + goto fail_subdev_pads; + } + + ret = media_entity_pads_init(&cam_dev->subdev.entity, + num_subdev_pads, + cam_dev->subdev_pads); + if (ret) { + dev_err(dev, "failed initialize media pads:%d:\n", ret);
Stray ":" at the end of the message.
Quoted 30 lines
(quoted diff) +30
-0+ goto fail_subdev_pads; + } + + /* Initialize all pads with MEDIA_PAD_FL_SOURCE */ + for (i = 0; i < num_subdev_pads; i++) + cam_dev->subdev_pads[i].flags = MEDIA_PAD_FL_SOURCE; + + /* Customize the last one pad as CIO sink pad. */ + cam_dev->subdev_pads[MTK_CAM_CIO_PAD_SINK].flags = MEDIA_PAD_FL_SINK; + + /* Initialize subdev */ + v4l2_subdev_init(&cam_dev->subdev, &mtk_cam_subdev_ops); + cam_dev->subdev.entity.function = MEDIA_ENT_F_PROC_VIDEO_STATISTICS; + cam_dev->subdev.entity.ops = &mtk_cam_media_ops; + cam_dev->subdev.flags = V4L2_SUBDEV_FL_HAS_DEVNODE | + V4L2_SUBDEV_FL_HAS_EVENTS; + snprintf(cam_dev->subdev.name, sizeof(cam_dev->subdev.name), + "%s", MTK_CAM_DEV_P1_NAME); + v4l2_set_subdevdata(&cam_dev->subdev, cam_dev); + + ret = v4l2_device_register_subdev(&cam_dev->v4l2_dev, &cam_dev->subdev); + if (ret) { + dev_err(dev, "failed initialize subdev:%d\n", ret); + goto fail_subdev; + } + dev_info(dev, "register subdev: %s\n", cam_dev->subdev.name); + + /* Create video nodes and links */ + for (i = 0; i < MTK_CAM_P1_TOTAL_NODES; i++) { + ret = mtk_cam_video_register_device(cam_dev, i);
Review
Quoted 10 lines
(quoted diff) +10
-0+ if (ret) + goto fail_video_register; + } + + vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32)); + + return 0; + +fail_video_register: + i--;
This could be moved into the for clause, as the initialization statement.
Review
Quoted 1 line
(quoted diff) +1
-0+ for (; i >= 0; i--) {
i is unsigned. Did this compile without warnings?
Review
Quoted 3 lines
(quoted diff) +3
-0+ video_unregister_device(&cam_dev->vdev_nodes[i].vdev); + media_entity_cleanup(&cam_dev->vdev_nodes[i].vdev.entity); + mutex_destroy(&cam_dev->vdev_nodes[i].lock);
Should we move this into mtk_cam_video_unregister_device() to be consistent with registration?
Review
Quoted 7 lines
(quoted diff) +7
-0+ } +fail_subdev: + media_entity_cleanup(&cam_dev->subdev.entity); +fail_subdev_pads: + v4l2_device_unregister(&cam_dev->v4l2_dev); +fail_v4l2_dev: + dev_err(dev, "fail_v4l2_dev mdev: 0x%pK:%d", &cam_dev->media_dev, ret);
Please print errors only where they actually happen, not at the cleanup.
Review
Quoted 10 lines
(quoted diff) +10
-0+ media_device_unregister(&cam_dev->media_dev); + media_device_cleanup(&cam_dev->media_dev); + + return ret; +} + +static int mtk_cam_v4l2_unregister(struct mtk_cam_dev *cam_dev) +{ + unsigned int i; + struct mtk_cam_video_device *dev;
nit: Move the declaration inside the for loop, since the variable is only used there.
Quoted 5 lines
(quoted diff) +5
-0+ + for (i = 0; i < MTK_CAM_P1_TOTAL_NODES; i++) { + dev = &cam_dev->vdev_nodes[i]; + video_unregister_device(&dev->vdev); + media_entity_cleanup(&dev->vdev.entity);
Review
Quoted 10 lines
(quoted diff) +10
-0+ mutex_destroy(&dev->lock); + if (dev->desc.image) + v4l2_ctrl_handler_free(&dev->ctrl_handler); + } + + vb2_dma_contig_clear_max_seg_size(&cam_dev->pdev->dev); + + v4l2_device_unregister_subdev(&cam_dev->subdev); + media_entity_cleanup(&cam_dev->subdev.entity); + kfree(cam_dev->subdev_pads);
This was allocated using devm_kcalloc(), so no need to free it explicitly.
Quoted 19 lines
(quoted diff) +19
-0+ + v4l2_device_unregister(&cam_dev->v4l2_dev); + media_device_unregister(&cam_dev->media_dev); + media_device_cleanup(&cam_dev->media_dev); + + return 0; +} + +static int mtk_cam_dev_complete(struct v4l2_async_notifier *notifier) +{ + struct mtk_cam_dev *cam_dev = + container_of(notifier, struct mtk_cam_dev, notifier); + struct device *dev = &cam_dev->pdev->dev; + int ret; + + ret = media_create_pad_link(&cam_dev->seninf->entity, + MTK_CAM_CIO_PAD_SRC, + &cam_dev->subdev.entity, + MTK_CAM_CIO_PAD_SINK,
Review
Quoted 10 lines
(quoted diff) +10
-0+ 0); + if (ret) { + dev_err(dev, "fail to create pad link %s %s err:%d\n", + cam_dev->seninf->entity.name, + cam_dev->subdev.entity.name, + ret); + return ret; + } + + dev_info(dev, "Complete the v4l2 registration\n");
dev_dbg()
Review
Quoted 9 lines
(quoted diff) +9
-0+ + ret = v4l2_device_register_subdev_nodes(&cam_dev->v4l2_dev); + if (ret) { + dev_err(dev, "failed initialize subdev nodes:%d\n", ret); + return ret; + } + + return ret; +}
Why not just put the contents of this function inside mtk_cam_dev_notifier_complete()?
Review
Quoted 8 lines
(quoted diff) +8
-0+ +static int mtk_cam_dev_notifier_bound(struct v4l2_async_notifier *notifier, + struct v4l2_subdev *sd, + struct v4l2_async_subdev *asd) +{ + struct mtk_cam_dev *cam_dev = + container_of(notifier, struct mtk_cam_dev, notifier); +
Should we somehow check that the entity we got is seninf indeed and there was no mistake in DT?
Review
Quoted 2 lines
(quoted diff) +2
-0+ cam_dev->seninf = sd; + dev_info(&cam_dev->pdev->dev, "%s is bounded\n", sd->entity.name);
bound
Also please make this dev_dbg().
Review
Quoted 12 lines
(quoted diff) +12
-0+ return 0; +} + +static void mtk_cam_dev_notifier_unbind(struct v4l2_async_notifier *notifier, + struct v4l2_subdev *sd, + struct v4l2_async_subdev *asd) +{ + struct mtk_cam_dev *cam_dev = + container_of(notifier, struct mtk_cam_dev, notifier); + + cam_dev->seninf = NULL; + dev_dbg(&cam_dev->pdev->dev, "%s is unbounded\n", sd->entity.name);
unbound
Quoted 16 lines
(quoted diff) +16
-0+} + +static int mtk_cam_dev_notifier_complete(struct v4l2_async_notifier *notifier) +{ + return mtk_cam_dev_complete(notifier); +} + +static const struct v4l2_async_notifier_operations mtk_cam_async_ops = { + .bound = mtk_cam_dev_notifier_bound, + .unbind = mtk_cam_dev_notifier_unbind, + .complete = mtk_cam_dev_notifier_complete, +}; + +static int mtk_cam_v4l2_async_register(struct mtk_cam_dev *cam_dev) +{ + struct device *dev = &cam_dev->pdev->dev;
Review
Quoted 10 lines
(quoted diff) +10
-0+ int ret; + + ret = v4l2_async_notifier_parse_fwnode_endpoints(dev, + &cam_dev->notifier, sizeof(struct v4l2_async_subdev), + NULL); + if (ret) + return ret; + + if (!cam_dev->notifier.num_subdevs) + return -ENODEV;
Could we print some error messages for the 2 cases above?
Review
Quoted 3 lines
(quoted diff) +3
-0+ + cam_dev->notifier.ops = &mtk_cam_async_ops; + dev_info(&cam_dev->pdev->dev, "mtk_cam v4l2_async_notifier_register\n");
dev_dbg()
Quoted 17 lines
(quoted diff) +17
-0+ ret = v4l2_async_notifier_register(&cam_dev->v4l2_dev, + &cam_dev->notifier); + if (ret) { + dev_err(&cam_dev->pdev->dev, + "failed to register async notifier : %d\n", ret); + v4l2_async_notifier_cleanup(&cam_dev->notifier); + } + + return ret; +} + +static void mtk_cam_v4l2_async_unregister(struct mtk_cam_dev *cam_dev) +{ + v4l2_async_notifier_unregister(&cam_dev->notifier); + v4l2_async_notifier_cleanup(&cam_dev->notifier); +} +
Review
Quoted 10 lines
(quoted diff) +10
-0+static const struct v4l2_ioctl_ops mtk_cam_v4l2_vcap_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_framesizes = mtk_cam_vidioc_enum_framesizes, + .vidioc_enum_fmt_vid_cap_mplane = mtk_cam_vidioc_enum_fmt, + .vidioc_g_fmt_vid_cap_mplane = mtk_cam_vidioc_g_fmt, + .vidioc_s_fmt_vid_cap_mplane = mtk_cam_vidioc_s_fmt, + .vidioc_try_fmt_vid_cap_mplane = mtk_cam_vidioc_try_fmt, + .vidioc_enum_input = mtk_cam_vidioc_enum_input, + .vidioc_g_input = mtk_cam_vidioc_g_input, + .vidioc_s_input = mtk_cam_vidioc_s_input,
I don't think we need vidioc_*_input. At least the current implementation in this patch doesn't seem to do anything useful.
Review
Quoted 1 line
(quoted diff) +1
-0+ /* buffer queue management */
Drop this comment, as it's obvious that the callbacks with "buf" in the name are related to buffers, there are some non-buffer callbacks below too (e.g. vidioc_subscribe_event) and also the other ops structs below don't have such comment.
Quoted 42 lines
(quoted diff) +42
-0+ .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf, + .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, + .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, + .vidioc_unsubscribe_event = v4l2_event_unsubscribe, +}; + +static const struct v4l2_ioctl_ops mtk_cam_v4l2_meta_cap_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_fmt_meta_cap = mtk_cam_vidioc_meta_enum_fmt, + .vidioc_g_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_s_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_try_fmt_meta_cap = mtk_cam_vidioc_g_meta_fmt, + .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf, + .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, +}; + +static const struct v4l2_ioctl_ops mtk_cam_v4l2_meta_out_ioctl_ops = { + .vidioc_querycap = mtk_cam_vidioc_querycap, + .vidioc_enum_fmt_meta_out = mtk_cam_vidioc_meta_enum_fmt, + .vidioc_g_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_s_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_try_fmt_meta_out = mtk_cam_vidioc_g_meta_fmt, + .vidioc_reqbufs = vb2_ioctl_reqbufs, + .vidioc_create_bufs = vb2_ioctl_create_bufs, + .vidioc_prepare_buf = vb2_ioctl_prepare_buf, + .vidioc_querybuf = vb2_ioctl_querybuf, + .vidioc_qbuf = vb2_ioctl_qbuf, + .vidioc_dqbuf = vb2_ioctl_dqbuf,
Review
Quoted 10 lines
(quoted diff) +10
-0+ .vidioc_streamon = vb2_ioctl_streamon, + .vidioc_streamoff = vb2_ioctl_streamoff, + .vidioc_expbuf = vb2_ioctl_expbuf, +}; + +static const struct v4l2_format meta_fmts[] = { + { + .fmt.meta = { + .dataformat = V4L2_META_FMT_MTISP_PARAMS, + .buffersize = 128 * PAGE_SIZE,
PAGE_SIZE is a weird unit for specifying generic buffer sizes. How about making it 512 * SZ_1K?
That said, it should normally be just sizeof(struct some_struct_used_here).
Same for the other entries below.
Quoted 166 lines
(quoted diff) +166
-0+ }, + }, + { + .fmt.meta = { + .dataformat = V4L2_META_FMT_MTISP_3A, + .buffersize = 300 * PAGE_SIZE, + }, + }, + { + .fmt.meta = { + .dataformat = V4L2_META_FMT_MTISP_AF, + .buffersize = 160 * PAGE_SIZE, + }, + }, + { + .fmt.meta = { + .dataformat = V4L2_META_FMT_MTISP_LCS, + .buffersize = 72 * PAGE_SIZE, + }, + }, + { + .fmt.meta = { + .dataformat = V4L2_META_FMT_MTISP_LMV, + .buffersize = 256, + }, + }, +}; + +static const struct v4l2_format stream_out_fmts[] = { + { + .fmt.pix_mp = { + .width = IMG_MAX_WIDTH, + .height = IMG_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_B8, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_SRGB, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = IMG_MAX_WIDTH, + .height = IMG_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_B10, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_SRGB, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = IMG_MAX_WIDTH, + .height = IMG_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_B12, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_SRGB, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = IMG_MAX_WIDTH, + .height = IMG_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_B14, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_SRGB, + .num_planes = 1, + }, + }, +}; + +static const struct v4l2_format bin_out_fmts[] = { + { + .fmt.pix_mp = { + .width = RRZ_MAX_WIDTH, + .height = RRZ_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_F8, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_RAW, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = RRZ_MAX_WIDTH, + .height = RRZ_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_F10, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_RAW, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = RRZ_MAX_WIDTH, + .height = RRZ_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_F12, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_RAW, + .num_planes = 1, + }, + }, + { + .fmt.pix_mp = { + .width = RRZ_MAX_WIDTH, + .height = RRZ_MAX_HEIGHT, + .pixelformat = V4L2_PIX_FMT_MTISP_F14, + .field = V4L2_FIELD_NONE, + .colorspace = V4L2_COLORSPACE_RAW, + .num_planes = 1, + }, + }, +}; + +static const struct v4l2_frmsizeenum img_frm_size_nums[] = { + { + .index = 0, + .type = V4L2_FRMSIZE_TYPE_CONTINUOUS, + .stepwise = { + .max_width = IMG_MAX_WIDTH, + .min_width = IMG_MIN_WIDTH, + .max_height = IMG_MAX_HEIGHT, + .min_height = IMG_MIN_HEIGHT, + .step_height = 1, + .step_width = 1, + }, + }, + { + .index = 0, + .type = V4L2_FRMSIZE_TYPE_CONTINUOUS, + .stepwise = { + .max_width = RRZ_MAX_WIDTH, + .min_width = RRZ_MIN_WIDTH, + .max_height = RRZ_MAX_HEIGHT, + .min_height = RRZ_MIN_HEIGHT, + .step_height = 1, + .step_width = 1, + }, + }, +}; + +static const struct +mtk_cam_dev_node_desc output_queues[MTK_CAM_P1_TOTAL_OUTPUT] = { + { + .id = MTK_CAM_P1_META_IN_0, + .name = "meta input", + .description = "ISP tuning parameters", + .cap = V4L2_CAP_META_OUTPUT, + .buf_type = V4L2_BUF_TYPE_META_OUTPUT, + .link_flags = 0, + .capture = false, + .image = false, + .smem_alloc = true, + .fmts = meta_fmts, + .num_fmts = ARRAY_SIZE(meta_fmts), + .default_fmt_idx = 0, + .max_buf_count = 10, + .ioctl_ops = &mtk_cam_v4l2_meta_out_ioctl_ops, + }, +}; + +static const struct +mtk_cam_dev_node_desc capture_queues[MTK_CAM_P1_TOTAL_CAPTURE] = { + { + .id = MTK_CAM_P1_MAIN_STREAM_OUT, + .name = "main stream",
Review
Quoted 10 lines
(quoted diff) +10
-0+ .cap = V4L2_CAP_VIDEO_CAPTURE_MPLANE, + .buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .link_flags = 0, + .capture = true, + .image = true, + .smem_alloc = false, + .dma_port = R_IMGO, + .fmts = stream_out_fmts, + .num_fmts = ARRAY_SIZE(stream_out_fmts), + .default_fmt_idx = 1,
Why not just make it always 0 and move the default format to the beginning of stream_out_fmts[]?
Review
Quoted 2 lines
(quoted diff) +2
-0+ .ioctl_ops = &mtk_cam_v4l2_vcap_ioctl_ops, + .frmsizes = &img_frm_size_nums[0],
nit: If you only need to point to these data once, you could define them in place, as a compound literal, like
Quoted 69 lines
.frmsizes = &(struct v4l2_framesizeenum) { // initialize here },(quoted diff) +65
-0+ }, + { + .id = MTK_CAM_P1_PACKED_BIN_OUT, + .name = "packed out", + .cap = V4L2_CAP_VIDEO_CAPTURE_MPLANE, + .buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .link_flags = 0, + .capture = true, + .image = true, + .smem_alloc = false, + .dma_port = R_RRZO, + .fmts = bin_out_fmts, + .num_fmts = ARRAY_SIZE(bin_out_fmts), + .default_fmt_idx = 1, + .ioctl_ops = &mtk_cam_v4l2_vcap_ioctl_ops, + .frmsizes = &img_frm_size_nums[1], + }, + { + .id = MTK_CAM_P1_META_OUT_0, + .name = "partial meta 0", + .description = "AE/AWB histogram", + .cap = V4L2_CAP_META_CAPTURE, + .buf_type = V4L2_BUF_TYPE_META_CAPTURE, + .link_flags = 0, + .capture = true, + .image = false, + .smem_alloc = false, + .dma_port = R_AAO | R_FLKO | R_PSO, + .fmts = meta_fmts, + .num_fmts = ARRAY_SIZE(meta_fmts), + .default_fmt_idx = 1, + .max_buf_count = 5, + .ioctl_ops = &mtk_cam_v4l2_meta_cap_ioctl_ops, + }, + { + .id = MTK_CAM_P1_META_OUT_1, + .name = "partial meta 1", + .description = "AF histogram", + .cap = V4L2_CAP_META_CAPTURE, + .buf_type = V4L2_BUF_TYPE_META_CAPTURE, + .link_flags = 0, + .capture = true, + .image = false, + .smem_alloc = false, + .dma_port = R_AFO, + .fmts = meta_fmts, + .num_fmts = ARRAY_SIZE(meta_fmts), + .default_fmt_idx = 2, + .max_buf_count = 5, + .ioctl_ops = &mtk_cam_v4l2_meta_cap_ioctl_ops, + }, + { + .id = MTK_CAM_P1_META_OUT_2, + .name = "partial meta 2", + .description = "Local contrast enhanced statistics", + .cap = V4L2_CAP_META_CAPTURE, + .buf_type = V4L2_BUF_TYPE_META_CAPTURE, + .link_flags = 0, + .capture = true, + .image = false, + .smem_alloc = false, + .dma_port = R_LCSO, + .fmts = meta_fmts, + .num_fmts = ARRAY_SIZE(meta_fmts), + .default_fmt_idx = 3,
Review
Quoted 10 lines
(quoted diff) +10
-0+ .max_buf_count = 10, + .ioctl_ops = &mtk_cam_v4l2_meta_cap_ioctl_ops, + }, + { + .id = MTK_CAM_P1_META_OUT_3, + .name = "partial meta 3", + .description = "Local motion vector histogram", + .cap = V4L2_CAP_META_CAPTURE, + .buf_type = V4L2_BUF_TYPE_META_CAPTURE, + .link_flags = 0,
link_flags seems to be 0 for all nodes.
Review
Quoted 1 line
(quoted diff) +1
-0+ .capture = true,
We already know this from .buf_type. We can check using the V4L2_TYPE_IS_OUTPUT() macro.
Review
Quoted 5 lines
(quoted diff) +5
-0+ .image = false, + .smem_alloc = false, + .dma_port = R_LMVO, + .fmts = meta_fmts, + .num_fmts = ARRAY_SIZE(meta_fmts),
I don't think this is correct. The description suggests one specific format (local motion vector histogram), so the queue should probably be hardwired to that format?
Review
Quoted 2 lines
(quoted diff) +2
-0+ .default_fmt_idx = 4, + .max_buf_count = 10,
Where does this number come from?
Review
Quoted 13 lines
(quoted diff) +13
-0+ .ioctl_ops = &mtk_cam_v4l2_meta_cap_ioctl_ops, + }, +}; + +/* The helper to configure the device context */ +static void mtk_cam_dev_queue_setup(struct mtk_cam_dev *cam_dev) +{ + unsigned int i, node_idx; + + node_idx = 0; + + /* Setup the output queue */ + for (i = 0; i < MTK_CAM_P1_TOTAL_OUTPUT; i++)
< ARRAY_SIZE(output_queues)
Review
Quoted 4 lines
(quoted diff) +4
-0+ cam_dev->vdev_nodes[node_idx++].desc = output_queues[i]; + + /* Setup the capture queue */ + for (i = 0; i < MTK_CAM_P1_TOTAL_CAPTURE; i++)
< ARRAY_SIZE(capture_queues)
Review
Quoted 9 lines
(quoted diff) +9
-0+ cam_dev->vdev_nodes[node_idx++].desc = capture_queues[i]; +} + +int mtk_cam_dev_init(struct platform_device *pdev, + struct mtk_cam_dev *cam_dev) +{ + int ret; + + cam_dev->pdev = pdev;
Do we need this additional mtk_cam_dev struct? Couldn't we just use mtk_isp_p1 here?
Review
Quoted 5 lines
(quoted diff) +5
-0+ mtk_cam_dev_queue_setup(cam_dev); + /* v4l2 sub-device registration */ + + dev_dbg(&cam_dev->pdev->dev, "mem2mem2.name: %s\n", + MTK_CAM_DEV_P1_NAME);
This debugging message doesn't seem very useful. Please remove.
Review
Quoted 7 lines
(quoted diff) +7
-0+ ret = mtk_cam_mem2mem2_v4l2_register(cam_dev); + if (ret) + return ret; + + ret = mtk_cam_v4l2_async_register(cam_dev); + if (ret) { + mtk_cam_v4l2_unregister(cam_dev);
Please use an error path on the bottom of the function instead. With goto labels named after the next clean-up step that needs to be performed.
Review
Quoted 11 lines
(quoted diff) +11
-0+ return ret; + } + + spin_lock_init(&cam_dev->req_lock); + INIT_LIST_HEAD(&cam_dev->req_list); + mutex_init(&cam_dev->lock); + + return 0; +} + +int mtk_cam_dev_release(struct platform_device *pdev,
"release" is normally used for file_operations. How about "cleanup"?
Review
Quoted 9 lines
(quoted diff) +9
-0+ struct mtk_cam_dev *cam_dev) +{ + mtk_cam_v4l2_async_unregister(cam_dev); + mtk_cam_v4l2_unregister(cam_dev); + + mutex_destroy(&cam_dev->lock); + + return 0; +}
I'd suggest moving any generic API implementation code (platform_device, V4L2, VB2, Media Controller, etc.) to mtk_cam.c and then moving any low level hardware/firmware-related code from mtk_cam.c and mtk_cam-scp.c to mtk_cam_hw.c.
Quoted 1 line
+
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +0 -0
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 2 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +0
-0
@@ -0,0 +1,173 @@
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2018 MediaTek Inc. +*/ + +#ifndef __MTK_CAM_DEV_V4L2_H__ +#define __MTK_CAM_DEV_V4L2_H__ + +#include <linux/device.h> +#include <linux/types.h>
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+#include <linux/platform_device.h> +#include <linux/spinlock.h> +#include <linux/videodev2.h> +#include <media/v4l2-device.h> +#include <media/v4l2-ctrls.h> +#include <media/v4l2-subdev.h> +#include <media/videobuf2-core.h> +#include <media/videobuf2-v4l2.h> + +#define MTK_CAM_DEV_P1_NAME "MTK-ISP-P1-V4L2"
Maybe it's not a critical thing, but generally it's a good practice to just explicitly specific this name somewhere, e.g. struct platform_driver::driver::name and then just refer to dev_driver_name(). It makes it easier to make sure that the name stays the same everywhere.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 3 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +3
-0+ +#define MTK_CAM_P1_META_IN_0 0 +#define MTK_CAM_P1_TOTAL_OUTPUT 1
Since these are just some utility definitions, we can use enum instead of assigning the values by hand.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 8 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +8
-0+ +#define MTK_CAM_P1_MAIN_STREAM_OUT 1 +#define MTK_CAM_P1_PACKED_BIN_OUT 2 +#define MTK_CAM_P1_META_OUT_0 3 +#define MTK_CAM_P1_META_OUT_1 4 +#define MTK_CAM_P1_META_OUT_2 5 +#define MTK_CAM_P1_META_OUT_3 6 +#define MTK_CAM_P1_TOTAL_CAPTURE 6
Ditto.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 2 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +2
-0+ +#define MTK_CAM_P1_TOTAL_NODES 7
Please just add the two totals together rather than manually specifying the value.
Quoted 4 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +4
-0+ +struct mtk_cam_dev_request { +struct media_request req; +struct list_head list;
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+}; + +struct mtk_cam_dev_buffer { +struct vb2_v4l2_buffer vbb; +struct list_head list; +/* Intenal part */ +dma_addr_t daddr; +dma_addr_t scp_addr; +unsigned int node_id; +};
Could you add kerneldoc comments for the 2 structs?
Quoted 39 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +39
-0+ +/* +* struct mtk_cam_dev_node_desc - node attributes +* +* @id: id of the context queue +* @name: media entity name +* @description: descritpion of node +* @cap: mapped to V4L2 capabilities +* @buf_type: mapped to V4L2 buffer type +* @dma_port: the dma port associated to the buffer +* @link_flags: default media link flags +* @smem_alloc: using the cam_smem_drv as alloc ctx or not +* @capture: true for capture queue (device to user) +* false for output queue (from user to device) +* @image: true for image node, false for meta node +* @num_fmts: the number of supported formats +* @default_fmt_idx: default format of this node +* @max_buf_count: maximum V4L2 buffer count +* @ioctl_ops: mapped to v4l2_ioctl_ops +* @fmts: supported format +* @frmsizes: supported frame size number +* +*/ +struct mtk_cam_dev_node_desc { +u8 id; +char *name; +char *description; +u32 cap; +u32 buf_type; +u32 dma_port; +u32 link_flags; +u8 smem_alloc:1 ; +u8 capture:1 ; +u8 image:1 ; +u8 num_fmts; +u8 default_fmt_idx; +u8 max_buf_count; +const struct v4l2_ioctl_ops *ioctl_ops; +const struct v4l2_format *fmts;
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+const struct v4l2_frmsizeenum *frmsizes; +}; + +/* +* struct mtk_cam_video_device - Mediatek video device structure. +* +* @id: Id for mtk_cam_dev_node_desc or mem2mem2_nodes array +* @enabled: Indicate the device is enabled or not +* @vdev_fmt: The V4L2 format of video device +* @vdev_apd: The media pad graph object of video device
vdev_pad?
Quoted 7 lines
+ * @vbq: A videobuf queue of video device
+ * @desc: The node attributes of video device
+ * @ctrl_handler: The control handler of video device
+ * @pending_list: List for pending buffers before enqueuing into driver
+ * @lock: Serializes vb2 queue and video device operations.
+ * @slock: Protect forpending_list.
+ *
Please fix the order of the documentation to match the order of the struct.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 7 lines
+ */
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +6
-0+struct mtk_cam_video_device { +unsigned int id; +unsigned int enabled; +struct v4l2_format vdev_fmt; +struct mtk_cam_dev_node_desc desc; +struct video_device vdev;
Not documented above.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +5
-0+struct media_pad vdev_pad; +struct vb2_queue vbq; +struct v4l2_ctrl_handler ctrl_handler; +struct list_head pending_list; +/* Used for vbq & vdev */
It's already documented in the kerneldoc comment.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 2 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +2
-0+struct mutex lock; +/* protect for pending_list */
It's already documented in the kerneldoc comment.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 1 line
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +1
-0+spinlock_t slock;
How about calling it pending_list_lock?
Quoted 16 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +16
-0+}; + +/* +* struct mtk_cam_dev - Mediatek camera device structure. +* +* @pdev: Pointer to platform device +* @smem_pdev: Pointer to shared memory platform device +* @pipeline: Media pipeline information +* @media_dev: Media device +* @subdev: The V4L2 sub-device +* @v4l2_dev: The V4L2 device driver +* @notifier: The v4l2_device notifier data +* @subdev_pads: Pointer to the number of media pads of this sub-device +* @ctrl_handler: The control handler +* @vdev_nodes: The array list of mtk_cam_video_device nodes +* @seninf: Pointer to the seninf sub-device
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+* @sensor: Pointer to the active sensor V4L2 sub-device when streaming on +* @lock: The mutex protecting video device open/release operations +* @streaming: Indicate the overall streaming status is on or off +* @streamed_node_count: The number of V4L2 video device nodes are streaming on +* @req_list: Lins to keep media requests before streaming on +* @req_lock: Protect the req_list data +* +* Below is the graph topology for Camera IO connection. +* sensor 1 (main) --> sensor IF --> P1 sub-device +* sensor 2 (sub) -->
This probably isn't the best place for graph topology description. I think we actually want a separate documentation file for this, similar to Documentation/media/v4l-drivers/ipu3.rst.
Quoted 6 lines
+ *
+ */drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +4
-0+struct mtk_cam_dev { +struct platform_device *pdev; +struct device *smem_dev; +struct media_pipeline pipeline;
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 10 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +10
-0+struct media_device media_dev; +struct v4l2_subdev subdev; +struct v4l2_device v4l2_dev; +struct v4l2_async_notifier notifier; +struct media_pad *subdev_pads; +struct v4l2_ctrl_handler ctrl_handler; +struct mtk_cam_video_device vdev_nodes[MTK_CAM_P1_TOTAL_NODES ]; +struct v4l2_subdev *seninf; +struct v4l2_subdev *sensor; +/* protect video device open/release operations */
It's already documented in the kerneldoc comment.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 5 lines
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +5
-0+struct mutex lock; + unsigned int streaming:1; +atomic_t streamed_node_count; +struct list_head req_list; +/* protect for req_list */
It's already documented in the kerneldoc comment.
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h
Quoted 1 line
drivers/media/platform/mtk-isp/isp_50/cam/mtk_cam-v4l2-util.h new file +1
-0+spinlock_t req_lock;
How about calling it req_list_lock?
Best regards,
Tomasz