- 14 3月, 2022 5 次提交
-
-
由 Mauro Carvalho Chehab 提交于
In order to cleanup the main platform media directory, move Intel driver to its own directory. Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Mauro Carvalho Chehab 提交于
In order to cleanup the main platform media directory, move NXP drivers to their own directory. Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Mauro Carvalho Chehab 提交于
In order to cleanup the main platform media directory, move Aspeed driver to its own directory. Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Mauro Carvalho Chehab 提交于
Right now, platform dependencies are organized by the type of the platform driver. Yet, things tend to become very messy with time. The better seems to organize the drivers per manufacturer, as other Kernel subsystems are doing. As a preparation for such purpose, get rid of menuconfigs, moving the per-menu dependencies to be at the driver-specifig config entires. This shoud give flexibility to reorganize the platform drivers per manufacturer and re-sort them. This patch removes all "if..endif" options from the platform Kconfig, converting them into depends on. Acked-by: NJernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Mauro Carvalho Chehab 提交于
There are lots of inconsistencies here: some directories are included as-is, and others included using one (or more) symbols that are inside it. Also, its entries are not sorted. That makes it harder to maintain. Reorganize it by placing everything on alphabetic order and providing some hints about how patches for such file is expected. Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
- 08 3月, 2022 11 次提交
-
-
由 Geert Uytterhoeven 提交于
It does not make sense to have a comma after a sentinel, as any new elements must be added before the sentinel. Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Souptick Joarder (HPE) 提交于
Kernel test robot reported below warning -> drivers/media/platform/qcom/camss/camss-csid-gen2.c:407:3: warning: Value stored to 'val' is never read [clang-analyzer-deadcode.DeadStores] Replace hard coded value with val. Reported-by: Nkernel test robot <lkp@intel.com> Signed-off-by: NSouptick Joarder (HPE) <jrdr.linux@gmail.com> Reviewed-by: NRobert Foss <robert.foss@linaro.org> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
Add V4L2 driver entry for the amphion vpu encoder/decoder. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
This part implements the malone decoder rpc interface. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
This part implements the windsor encoder rpc interface. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Reported-by: Nkernel test robot <lkp@intel.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
This consists of video decoder implementation plus decoder controls. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
This consists of video encoder implementation plus encoder controls. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
vpu_v4l2.c implements the v4l2 m2m driver methods. vpu_helpers.c implements the common helper functions vpu_color.c converts the v4l2 colorspace with the VUI parameters that specified by ITU-T | ISO/IEC Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Reported-by: Nkernel test robot <lkp@intel.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
driver use mailbox to communicate with vpu core. and there are a command buffer and a message buffer. driver will write commands to the command buffer, then trigger a vpu core interrupt vpu core will write messages to the message buffer, then trigger a cpu interrupt. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Reported-by: Nkernel test robot <lkp@intel.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
The vpu supports encoder and decoder. it needs vpu core to handle it. core will run either encoder or decoder firmware. This driver is for support the vpu core. Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
The amphion vpu codec ip contains encoder and decoder. Windsor is the encoder, it supports to encode H.264. Malone is the decoder, it features a powerful video processing unit able to decode many formats, such as H.264, HEVC, and other formats. This Driver is for this IP that is based on the v4l2 mem2mem framework. Supported SoCs are: IMX8QXP, IMX8QM Signed-off-by: NMing Qian <ming.qian@nxp.com> Signed-off-by: NShijie Qin <shijie.qin@nxp.com> Signed-off-by: NZhou Peng <eagle.zhou@nxp.com> Reported-by: Nkernel test robot <lkp@intel.com> Tested-by: NNicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
- 07 3月, 2022 12 次提交
-
-
由 Dmitry Osipenko 提交于
The TODO of tegra-vde driver has been completed, driver now supports V4L2 stateless video decoding API. Relocate driver to drivers/media. Signed-off-by: NDmitry Osipenko <digetx@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Yang Li 提交于
Fix following includecheck warning: ./drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c: linux/pm_runtime.h is included more than once. Reported-by: NAbaci Robot <abaci@linux.alibaba.com> Signed-off-by: NYang Li <yang.lee@linux.alibaba.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Bryan O'Donoghue 提交于
Reviewing the RB5 schematic its clear that we have missed out on defining both of the power-rails associated with the CSI PHY. Other PHYs such as the UFS, PCIe and USB connect to these rails and define each regulator individually. This means if we were to switch off the other various PHYs which enable these rails, the CAMSS would not appropriately power-on the CSI PHY. Reviewed-by: NRobert Foss <robert.foss@linaro.org> Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Bryan O'Donoghue 提交于
Reviewing the RB3 schematic its clear that we have missed out on defining one of the power-rails associated with the CSI PHY. Other PHYs such as the UFS, PCIe and USB connect to these rails and define each regulator individually. This means if we were to switch off the other various PHYs which enable these rails, the CAMSS would not appropriately power-on the CSI PHY. Reviewed-by: NRobert Foss <robert.foss@linaro.org> Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Bryan O'Donoghue 提交于
If a CAMSS block has no regulator set the regulator array to the empty set as opposed to setting the first element of the array to NULL. Suggested-by: NBjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: NRobert Foss <robert.foss@linaro.org> Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Bryan O'Donoghue 提交于
Add the ability to enable or disable multiple regulators in bulk with camss. This is useful for sm8250, sdm845 and it looks like sdm660 where we have more than one CSI regulator to do at once. It should just work for standalone existing vdda regulators and parts which don't have an explicitly defined CSI regulator. [hverkuil: fix camss-csid.c:163:13: warning: 'ret' may be used uninitialized in this function] Reported-by: NVladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: NRobert Foss <robert.foss@linaro.org> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Lad Prabhakar 提交于
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static allocation of IRQ resources in DT core code, this causes an issue when using hierarchical interrupt domains using "interrupts" property in the node as this bypasses the hierarchical setup and messes up the irq chaining. In preparation for removal of static setup of IRQ resource from DT core code use platform_get_irq_optional(). While at it, propagate error code in case devm_request_irq() fails instead of returning -EINVAL. Signed-off-by: NLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Xu Wang 提交于
'destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly. Remove the redundant 'flush_workqueue()' calls. Signed-off-by: NXu Wang <vulab@iscas.ac.cn> Reviewed-by: NAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Stanimir Varbanov 提交于
The HFI_PROPERTY_PARAM_VENC_HDR10_PQ_SEI HFI property is not supported on Venus v1 and v3. cc: stable@vger.kernel.org # 5.13+ Fixes: 9172652d ("media: venus: venc: Add support for CLL and Mastering display controls") Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Stanimir Varbanov 提交于
During encoder driver open controls are initialized via a call to v4l2_ctrl_handler_setup which returns EINVAL error for V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM v4l2 control. The control default value is disabled and because of firmware limitations 8x8 transform cannot be disabled for the supported HIGH and CONSTRAINED_HIGH profiles. To fix the issue change the control default value to enabled (this is fine because the firmware enables 8x8 transform for high and constrained_high profiles by default). Also, correct the checking of profile ids in s_ctrl from hfi to v4l2 ids. cc: stable@vger.kernel.org # 5.15+ Fixes: bfee75f7 ("media: venus: venc: add support for V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM control") Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Ameer Hamza 提交于
The venus_helper_alloc_dpb_bufs() implementation allows an early return on an error path when checking the id from ida_alloc_min() which would not release the earlier buffer allocation. Move the direct kfree() from the error checking of dma_alloc_attrs() to the common fail path to ensure that allocations are released on all error paths in this function. Addresses-Coverity: 1494120 ("Resource leak") cc: stable@vger.kernel.org # 5.16+ Fixes: 40d87aaf ("media: venus: vdec: decoded picture buffer handling during reconfig sequence") Signed-off-by: NAmeer Hamza <amhamza.mgc@gmail.com> Reviewed-by: NKieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Stanimir Varbanov 提交于
Describe missing structure members: core.h: warning: Function parameter or member 'sys_err_done' not described in 'venus_core' 'fw_min_cnt' not described in 'venus_inst' 'flags' not described in 'venus_inst' 'dpb_ids' not described in 'venus_inst' Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
- 04 3月, 2022 1 次提交
-
-
由 Laurent Pinchart 提交于
Add a function to test if a pad is part of a pipeline currently streaming, and use it through drivers to replace direct access to the stream_count field. This will help reworking pipeline start/stop without disturbing drivers. Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
-
- 23 2月, 2022 6 次提交
-
-
由 Jacopo Mondi 提交于
As the formats on the sink and source pad might be different store them separately. The pad format is used to configure the image width and height in mipi_csis_system_enable(). As the csis cannot downscale, using the sink or the source one isn't relevant. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Jacopo Mondi 提交于
Due to how pixel components are transmitted on the CSI-2 serial bus and how they are deserialized by the CSI-2 receiver, the component ordering might change and the image formats on the sink and source pads of the receiver should reflect it. For RGB24, in example, the component ordering on the wire as described by the CSI-2 specification matches the BGR888 format, while once deserialized by the CSIS receiver it matches the RGB888 format. Add an additional .output field to struct csis_pix_format to allow propagating the correct format to the source pad after a format configuration on the sink. The change is only relevant for RGB24 but paves the way for further format translations in future. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Jacopo Mondi 提交于
Add support for the BGR888_1X24 image format. No existing media bus codes describe exactly the way data is transferred on the CSI-2 bus. This is not a new issue, the CSI-2 YUV422 8-bit format is described by MEDIA_BUS_FMT_UYVY8_1X16 which is an arbitrary convention and not an exact match. Use the MEDIA_BUS_FMT_BGR888_1X24 to follow the same convention, based on the order in which bits are transmitted over the CSI-2 bus. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Jacopo Mondi 提交于
Add RGB565_1X16 to the enumeration of supported image formats. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Jacopo Mondi 提交于
Bits 13 and 12 of the ISP_CONFIGn register configure the PIXEL_MODE which specifies the sampling size, in pixel component units, on the CSI-2 output data interface when data are transferred to memory. The register description in the chip manual specifies that DUAL mode should be used for YUV422 data. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Signed-off-by: NXavier Roumegue <xavier.roumegue@oss.nxp.com> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Jacopo Mondi 提交于
Rename the imx7-mipi-csis.c driver to remove the reference to i.MX7. The driver is for an IP core found on i.MX7 and i.MX8 SoC, so do not specify a SoC version number in the driver name. Remove the references to the i.MX7 SoC in the driver symbols and expand the driver's header with more information about the IP core the driver controls. Also rename the associated bindings documentation. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
- 22 2月, 2022 5 次提交
-
-
由 Jacopo Mondi 提交于
The imx7-mipi-csis driver is in a good state and can be destaged. Move the imx7-mipi-csis.c driver to the newly created drivers/media/platform/imx directory and plumb the related options in Kconfig and in Makefile. Signed-off-by: NJacopo Mondi <jacopo@jmondi.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: NRui Miguel Silva <rmfrfs@gmail.com> Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
The V4L2_EVENT_EOS event is a deprecated behavior, the V4L2_BUF_FLAG_LAST buffer flag should be used instead. Signed-off-by: NMing Qian <ming.qian@nxp.com> Reviewed-by: NMirela Rabulea <mirela.rabulea@nxp.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Julia Lawall 提交于
Platform_driver probe functions aren't called with locks held and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead. Problem found with Coccinelle. Signed-off-by: NJulia Lawall <Julia.Lawall@inria.fr> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Ming Qian 提交于
When error occurs in parsing jpeg, the slot isn't acquired yet, it may be the default value MXC_MAX_SLOTS. If the driver access the slot using the incorrect slot number, it will access array out of bounds. The result is the driver will change num_domains, which follows slot_data in struct mxc_jpeg_dev. Then the driver won't detach the pm domain at rmmod, which will lead to kernel panic when trying to insmod again. Signed-off-by: NMing Qian <ming.qian@nxp.com> Reviewed-by: NMirela Rabulea <mirela.rabulea@nxp.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Mikhail Rudenko 提交于
With gstreamer 1.19.3 all attempts to capture video in YUV formats on our Allwinner H3-based custom board with an ov5640 sensor result in pipeline crashes with the following messages: Device '/dev/video0' does not support 2:0:0:0 colorimetry Additional debug info: Device wants 2:0:0:0 colorimetry Fix this by setting the correct colorspace in sun6i_video_try_fmt(). Signed-off-by: NMikhail Rudenko <mike.rudenko@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-