[PATCH] dma-buf/sw_sync: mark sync_timeline_create() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/dma-buf/sw_sync.c:87:23: warning: no previous prototype for 'sync_timeline_create' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this p

WARN at vb2_dma_sg_alloc since 4.8-rc1

2016-09-18 Thread Marton Balint
Hi all, Since 4.8-rc1, I am getting WARN-s when trying to capture from an AverMedia Hybrid+FM DVB-T card using dvbstream: [ cut here ] WARNING: CPU: 0 PID: 1889 at ../drivers/media/v4l2-core/videobuf2-dma-sg.c:107 vb2_dma_sg_alloc+0x284/0x4d0 [videobuf2_dma_sg] Module

[PATCH for v4.8] cx23885/saa7134: assign q->dev to the PCI device

2016-09-18 Thread Hans Verkuil
Fix a regression caused by commit 2bc46b3a (media/pci: convert drivers to use the new vb2_queue dev field). Three places where q->dev should be set were missed, causing a WARN. Signed-off-by: Hans Verkuil Reported-by: Marton Balint --- diff --git a/drivers/media/pci/cx23885/cx23885-417.c b/dr

Re: [PATCH 1/2] [media] pxa_camera: make soc_mbus_xlate_by_fourcc() static

2016-09-18 Thread Robert Jarzmik
Mauro Carvalho Chehab writes: > As warned by smatch: > > drivers/media/platform/pxa_camera.c:283:39: warning: no previous prototype > for 'soc_mbus_xlate_by_fourcc' [-Wmissing-prototypes] > const struct soc_camera_format_xlate *soc_mbus_xlate_by_fourcc( >

Re: [PATCH 2/2] [media] pxa_camera: remove an unused structure pointer

2016-09-18 Thread Robert Jarzmik
Mauro Carvalho Chehab writes: > As reported by smatch: > > drivers/media/platform/pxa_camera.c: In function 'pxa_dma_start_channels': > drivers/media/platform/pxa_camera.c:457:21: warning: variable 'active' set > but not used [-Wunused-but-set-variable] > struct pxa_buffer *active; >

Re: [PATCH v2 2/4] docs-rst: Add compressed video formats used on MT8173 codec driver

2016-09-18 Thread Tiffany Lin
Hi Hans, On Wed, 2016-09-14 at 13:51 +0200, Hans Verkuil wrote: > Hi Tiffany, > > On 09/09/2016 05:48 PM, Tiffany Lin wrote: > > Add V4L2_PIX_FMT_MT21C documentation > > > > Signed-off-by: Tiffany Lin > > --- > > Documentation/media/uapi/v4l/pixfmt-reserved.rst | 10 ++ > > 1 file ch

[RESEND PATCH 0/3] Add Mediatek JPEG Decoder

2016-09-18 Thread Rick Chang
This series of patches provide a v4l2 driver to control Mediatek JPEG hw for decoding JPEG image and Motion JPEG bitstream. * Dependency The patch "arm: dts: mt2701: Add node for JPEG decoder" depends on: CCF "arm: dts: mt2701: Add clock controller device nodes"[1] power domain patch "Mediate

[RESEND PATCH 3/3] arm: dts: mt2701: Add node for Mediatek JPEG Decoder

2016-09-18 Thread Rick Chang
Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- This patch depends on: CCF "arm: dts: mt2701: Add clock controller device nodes"[1] power domain patch "Mediatek MT2701 SCPSYS power domain support v7"[2] iommu and smi "Add the dtsi node of iommu and smi for mt2701"[3] [1] https:

[RESEND PATCH 2/3] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-09-18 Thread Rick Chang
Add v4l2 driver for Mediatek JPEG Decoder Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig | 15 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-jpeg/Makefile |4 + drivers/media/pla

[RESEND PATCH 1/3] dt-bindings: mediatek: Add a binding for Mediatek JPEG Decoder

2016-09-18 Thread Rick Chang
Add a DT binding documentation for Mediatek JPEG Decoder of MT2701 SoC. Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- .../bindings/media/mediatek-jpeg-codec.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindi

cron job: media_tree daily build: WARNINGS

2016-09-18 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Mon Sep 19 04:00:21 CEST 2016 git branch: test git hash: c3b809834db8b1a8891c7ff873a216eac119628d gcc versi

Re: [PATCH v6 0/6] Add MT8173 MDP Driver

2016-09-18 Thread Minghsiu Tsai
On Wed, 2016-09-14 at 14:43 +0200, Hans Verkuil wrote: > Hi Minghsiu, > > v6 looks good, but I get these warnings when compiling it for i686: > > linux-git-i686: WARNINGS > > /home/hans/work/build/media-git/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c: > In function 'mtk_mdp_vpu_handle_init_ack

[PATCH] [media] st-hva: fix a copy-and-paste variable name error

2016-09-18 Thread Colin King
From: Colin Ian King The second check for an error on hva->lmi_err_reg appears to be a copy-and-paste error, it should be hva->emi_err_reg instead. Signed-off-by: Colin Ian King --- drivers/media/platform/sti/hva/hva-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

Re: [PATCH] Potential fix for "[BUG] process stuck when closing saa7146 [dvb_ttpci]"

2016-09-18 Thread Philipp Hahn
Hello Andrey, Am 16.09.2016 um 12:00 schrieb Andrey Utkin: > Please try this patch. It is purely speculative as I don't have the hardware, > but I hope my approach is right. Thanks you for the patch; I've built a new kernel but didn't have the time to test it yet; I'll mail you again as soon as I

[PATCH 0/2] Fix build warning and error in Mediatek MDP driver

2016-09-18 Thread Minghsiu Tsai
- Fix build warning in arch x86 - Fix build warning in kzalloc() and kfree() in arch x86 - Fix build error without CONFIG_PM_RUNTIME and CONFIG_PM_SLEEP v4l2-compliance test output: v4l2-compliance SHA : abc1453dfe89f244dccd3460d8e1a2e3091cbadb Driver Info: Driver name : mtk-mdp

[PATCH 2/2] media: mtk-mdp: fix build error

2016-09-18 Thread Minghsiu Tsai
This patch fix build error without CONFIG_PM_RUNTIME and CONFIG_PM_SLEEP Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platfo

[PATCH 1/2] media: mtk-mdp: fix build warning in arch x86

2016-09-18 Thread Minghsiu Tsai
This patch fix build warning in arch x86 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |1 + drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c | 10 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m

[GIT PULL v2 FOR v4.10] Media IOCTL handling rework

2016-09-18 Thread Sakari Ailus
Hi Mauro, These four patches rework Media controller IOCTL handling for cleanups and preparation for variable sized IOCTL arguments. What's changed since the previous set is that