- Oct 01, 2020
-
-
Corentin Labbe authored
Remove the deprecated .vidioc_g_jpegcomp and replace it with corresponding v4l2_ctrl_ops code. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Add TODO for "TRY_FMT cannot handle an invalid pixelformat" We need to set pixelformat in some case. We should also handle some minimum requirement. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
buffer_size was not set when it should be. Furthermore, use it instead of recalculate it. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The test_interrupts function is useless, remove it. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Adding vidioc_g_parm made v4l compliance happy. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The framebuffer support is obsolete, so let's reduce code size. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch enables compilation of the zoran driver. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The zoran device only supports 32bit DMA address. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Zoran is picky about jpeg data it accepts. At least it seems to not support COM and APPn. So until a way to filter data will be done, disable output. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patchs adds a vb_queue without using it. This reduce the final VB2 conversion patch. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The zoran driver miss some sanity checks, and this made v4l compliance happy. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The codec_name could be const. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The structure tvnorm could be consified. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Adds the allocation of the stat_com buffer which be used later. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Using devm_ioremap simplify code. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Use pci_request_regions so now we can see zoran in /proc/iomem. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Let's use devm allocations for videocodec, this simplify code. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
As asked by checkpath, let's use udelay. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Allocate the zoran structure with devm_ functions permit to simplify code. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch convert zoran to pci_irq functions. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
In fact, zoran does not support V4L2_STD_ALL, so let's enumerate what we support. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Instead of using hardcoded numbers, let's use some define for ZR NORM. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Instead of using a fragile virt_to_bus, let's use proper DMA coherent for the stat_com entry. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Supporting overlay is not necessary today, so let's reduce the code size by removing it. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
We need to get rid of zoran_fh, so let's change function arguments. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Using video_drvdata() is proper and shorter than using directly fh pointers. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
We need to get rid of zoran_fh, so move the overlay_settings directly in the zoran structure. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
We need to get rid of zoran_fh, so move the jpg_settings directly in the zoran structure. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
We need to get rid of zoran_fh, so move the v4l_settings directly in the zoran structure. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
We need to get rid of zoran_fh, so move the buffer_size directly in the zoran structure. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The slot 0 of guest is never initialized and so we print later random data. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The ns_to_timeval function is removed, so replace it with v4l2_buffer_set_timestamp(). Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The VFL_TYPE_GRABBER type was removed, so let's use the new type. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
The zoran driver give some debug information in procfs, but this is not the right place. So let's remove them, we will use debugfs later. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch convert dprintk(debug) to pci_dbg. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch convert dprintk(info) to pci_info (or pci_dbg if the message is not important). Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch convert dprintk(warn) to pci_warn. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
This patch converts all errors dprintk to pci_err/pr_err. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-
Corentin Labbe authored
move function for avoiding forward declaration Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-