- 14 3月, 2022 6 次提交
-
-
由 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>
-
由 Mauro Carvalho Chehab 提交于
Alphabetically sort entries at the Makefiles per group, in ASCII order, e. g., using the output of: $ LC_ALL=C sort Makefile |grep obj-y ... $ LC_ALL=C sort Makefile |grep obj.*CONFIG ... Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
- 12 3月, 2022 2 次提交
-
-
由 Mauro Carvalho Chehab 提交于
It is hard to keep all those options aligned as newer config changes get added, and we really don't want to have patches adding new options also touching already existing entries. So, drop the extra spaces. Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Mauro Carvalho Chehab 提交于
This is the only tuner driver that has "tuner-" on its name. Rename it, in order to match all the other tuner drivers. Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
- 08 3月, 2022 15 次提交
-
-
由 Hans Verkuil 提交于
The VIDIOC_G_FBUF and related overlay ioctls no longer worked (-ENOTTY was returned). The root cause was the introduction of the caps field in ivtv-driver.h. While loading the ivtvfb module would update the video_device device_caps field with V4L2_CAP_VIDEO_OUTPUT_OVERLAY it would not update that caps field, and that's what the overlay ioctls would look at. It's a bad idea to keep information in two places, so drop the caps field and only use vdev.device_caps. Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: NMartin Dauskardt <martin.dauskardt@gmx.de> Fixes: 21615365 (media: media/pci: set device_caps in struct video_device)
-
由 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>
-
由 Jakob Koschel 提交于
'dev' will *always* be set by list_for_each_entry(). It is incorrect to assume that the iterator value will be NULL if the list is empty. Instead of checking the pointer it should be checked if the list is empty. Fixes: 79dd0c69 ("V4L: 925: saa7134 alsa is now a standalone module") Signed-off-by: NJakob Koschel <jakobkoschel@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
由 Mark Brown 提交于
The max2175 uses a flat register cache but supplies only a single default value and has many volatile registers. This is a poor fit for a flat cache since the cache will assume a default of zero for any register not yet written which can lead to bugs for example when regmap_update_bits() suppresses a noop write. A rbtree cache is a much better fit, this will only cache default values and values that have been written to the device with any reads of uncached values going to the hardware. Convert the driver to use a rbtree cache. Since the device is controlled via I2C the cost of manging the rbtree should be immaterial compared to the cost of accessing the device. Signed-off-by: NMark Brown <broonie@kernel.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>
-
由 Ming Qian 提交于
nv12m_8l128 is 8-bit tiled nv12 format used by amphion decoder. nv12m_10be_8l128 is 10-bit tiled format used by amphion decoder. The tile size is 8x128 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> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
-
- 07 3月, 2022 17 次提交
-
-
由 Sean Young 提交于
Calling udelay for than 1000us does not always yield the correct results. Cc: stable@vger.kernel.org Reported-by: NМихаил <vrserver1@gmail.com> Signed-off-by: NSean Young <sean@mess.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 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>
-
由 Dmitry Osipenko 提交于
BSEV DMA timeouts if VDE is downclocked by x10. Bump the timeout to allow DMA to complete. We don't support freq scaling yet, this is just a minor improvement which may become useful sometime later. 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>
-
由 Dmitry Osipenko 提交于
The legacy UAPI became unnecessary with the V4L stateless decoder API support addition to the Tegra decoder driver. Remove legacy UAPI support. 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>
-
由 Dmitry Osipenko 提交于
Expose Tegra video decoder as a generic V4L M2M stateless video decoder. 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>
-
由 Dmitry Osipenko 提交于
Factor out H.264 hardware programming code into separate source file in a preparation to support V4L API by the Tegra video decoder driver. 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>
-
由 Muhammad Usama Anjum 提交于
ret is constant in imx8mq_mipi_csi_pm_suspend(). This function cannot return error. Remove the return variable. Simplify other functions which are using this function. Signed-off-by: NMuhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: NFabio Estevam <festevam@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Colin Ian King 提交于
The static array fec_tab is read-only so it make sense to make it const. Signed-off-by: NColin Ian King <colin.i.king@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Colin Ian King 提交于
The static arrays notch and sine are read-only so it make sense to make them const. Signed-off-by: NColin Ian King <colin.i.king@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Colin Ian King 提交于
The static array DIB3000MC_I2C_ADDRESS is read-only so it make sense to make it const. Also add spaces to clean up checkpatch warnings. Signed-off-by: NColin Ian King <colin.i.king@gmail.com> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
-
由 Christophe JAILLET 提交于
In [1], Christoph Hellwig has proposed to remove the wrappers in include/linux/pci-dma-compat.h. Some reasons why this API should be removed have been given by Julia Lawall in [2]. A coccinelle script has been used to perform the needed transformation. It can be found in [3]. [1]: https://lore.kernel.org/kernel-janitors/20200421081257.GA131897@infradead.org/ [2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/ [3]: https://lore.kernel.org/kernel-janitors/20200716192821.321233-1-christophe.jaillet@wanadoo.fr/Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NMauro Carvalho Chehab <mchehab@kernel.org> Reviewed-by: NChristoph Hellwig <hch@lst.de> 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>
-
由 Dongliang Mu 提交于
hdpvr_register_videodev is responsible to initialize a worker in hdpvr_device. However, the worker is only initialized at hdpvr_start_streaming other than hdpvr_register_videodev. When hdpvr_probe does not initialize its worker, the hdpvr_disconnect will encounter one WARN in flush_work.The stack trace is as follows: hdpvr_disconnect+0xb8/0xf2 drivers/media/usb/hdpvr/hdpvr-core.c:425 usb_unbind_interface+0xbf/0x3a0 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1206 [inline] device_release_driver_internal+0x22a/0x230 drivers/base/dd.c:1237 bus_remove_device+0x108/0x160 drivers/base/bus.c:529 device_del+0x1fe/0x510 drivers/base/core.c:3592 usb_disable_device+0xd1/0x1d0 drivers/usb/core/message.c:1419 usb_disconnect+0x109/0x330 drivers/usb/core/hub.c:2228 Fix this by moving the initialization of dev->worker to the starting of hdpvr_register_videodev Reported-by: Nsyzkaller <syzkaller@googlegroups.com> Signed-off-by: NDongliang Mu <mudongliangabcd@gmail.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>
-