Re: [PATCH 3/3] media: soc_camera: rcar_vin: Add NV16 horizontal scaling-up support

2014-10-14 Thread Simon Horman
On Tue, Oct 14, 2014 at 04:57:53PM +0400, Sergei Shtylyov wrote: > Hello. > > On 10/14/2014 10:26 AM, Yoshihiro Kaneko wrote: > > >From: Koji Matsuoka > > >The scaling function had been forbidden for the capture format of > >NV16 until now. With this patch, a horizontal scaling-up function > >i

ERROR: "cfb_fillrect" [drivers/media/platform/vivid/vivid.ko] undefined!

2014-10-14 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2d65a9f48fcdf7866aab6457bc707ca233e0c791 commit: e75420dd25bc9d7b6f4e3b4c4f6c778b610c8cda [media] vivid: enable the vivid driver date: 6 weeks ago config: i386-randconfig-ib0-10151216 (attached as .config) re

cron job: media_tree daily build: WARNINGS

2014-10-14 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: Wed Oct 15 04:00:21 CEST 2014 git branch: test git hash: cf3167cf1e969b17671a4d3d956d22718a8ceb85 gcc versi

Re: Hauppauge HVR-2200 (saa7164) problems (on Linux Mint 17)

2014-10-14 Thread serrin
Thanks for that, it's working now. I didn't realise you had to apply the patch before building it, silly me. Yours sincerely serrin On 14/10/2014 9:48 PM, Steven Toth wrote: Please keep the discussion on the mailing list at all times. I couldn't figure out how to apply the patch using the p

Re: [PATCH 1/3] media: soc_camera: rcar_vin: Add scaling support

2014-10-14 Thread Geert Uytterhoeven
Hi Kaneko-san, Matsuoka-san, On Tue, Oct 14, 2014 at 8:26 AM, Yoshihiro Kaneko wrote: > From: Koji Matsuoka Thanks for our patch! > --- a/drivers/media/platform/soc_camera/rcar_vin.c > +++ b/drivers/media/platform/soc_camera/rcar_vin.c > @@ -120,6 +144,326 @@ enum chip_id { > RCAR_E1,

[PATCH v2 2/6] media: v4l2-core changes to use media token api

2014-10-14 Thread Shuah Khan
Changes to v4l2-core to hold tuner and audio tokens in v4l2 ioctl that change the tuner modes, and release the token from fh exit. The changes are limited to vb2 calls that disrupt digital stream. vb1 changes are made in the driver. The following ioctls are changed: S_INPUT, S_FMT, S_TUNER, S_FREQ

[PATCH v2 0/6] media token resource framework

2014-10-14 Thread Shuah Khan
Add media token device resource framework to allow sharing resources such as tuner, dma, audio etc. across media drivers and non-media sound drivers that control media hardware. The Media token resource is created at the main struct device that is common to all drivers that claim various pieces of

[PATCH v2 3/6] media: au0828-video changes to use media token api

2014-10-14 Thread Shuah Khan
au0828-video driver uses vb1 api and needs changes to vb1 v4l2 interfaces that change the tuner status. In addition to that this driver initializes the tuner from a some ioctls that are query (read) tuner status. These ioctls are changed to hold the tuner and audio tokens to avoid disrupting digita

[PATCH v2 5/6] sound/usb: pcm changes to use media token api

2014-10-14 Thread Shuah Khan
Change snd_usb_capture_ops trigger to hold audio token prior starting endpoints for SNDRV_PCM_TRIGGER_START request and release after stopping endpoints for SNDRV_PCM_TRIGGER_STOP request. Audio token is released from snd_usb_capture_ops close interface to cover the case where an application exits

[PATCH v2 6/6] media: au0828-core changes to create and destroy media

2014-10-14 Thread Shuah Khan
Changed au0828-core to create media token resource in its usb_probe() and destroy it from usb_disconnect() interfaces. It creates the resource on the main struct device which is the parent device for the interface usb device. This is the main struct device that is common for all the drivers that co

[PATCH v2 4/6] media: dvb-core changes to use media token api

2014-10-14 Thread Shuah Khan
Change dvb_frontend_open() to hold tuner and audio tokens when frontend is opened in R/W mode. Tuner and audio tokens are released when frontend is released in frontend exit state. This change allows main dvb application process to hold the tokens for all threads it creates and be able to handle ch

[PATCH v2 1/6] media: add media token device resource framework

2014-10-14 Thread Shuah Khan
Add media token device resource framework to allow sharing resources such as tuner, dma, audio etc. across media drivers and non-media sound drivers that control media hardware. The Media token resource is created at the main struct device that is common to all drivers that claim various pieces of

Re: [Linaro-mm-sig] [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 14:05, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Devices sharing buffers using dma-buf could benefit from sharing their >> constraints via struct device, and dma-buf framework would manage the >> common constraints for all attached device

Re: [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Greg, Daniel! On 12 October 2014 00:10, Daniel Vetter wrote: > On Fri, Oct 10, 2014 at 04:09:00PM -0700, Greg Kroah-Hartman wrote: >> On Sat, Oct 11, 2014 at 01:37:56AM +0530, Sumit Semwal wrote: >> > Devices sharing buffers using dma-buf could benefit from sharing their >> > constraints via s

Re: [Linaro-mm-sig] [RFC 0/4] dma-buf Constraints-Enabled Allocation helpers

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 13:42, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Hi, >> >> Why: >> >> While sharing buffers using dma-buf, currently there's no mechanism to >> let >> devices share their memory access constraints with each other to allow for >> del

Re: [PATCH 3/3] media: soc_camera: rcar_vin: Add NV16 horizontal scaling-up support

2014-10-14 Thread Sergei Shtylyov
Hello. On 10/14/2014 10:26 AM, Yoshihiro Kaneko wrote: From: Koji Matsuoka The scaling function had been forbidden for the capture format of NV16 until now. With this patch, a horizontal scaling-up function is supported to the capture format of NV16. a vertical scaling-up by the capture for

Re: Hauppauge HVR-2200 (saa7164) problems (on Linux Mint 17)

2014-10-14 Thread Steven Toth
Please keep the discussion on the mailing list at all times. > I couldn't figure out how to apply the patch using the patch file, so I > manually edited the file (drivers/media/pci/saa7164/saa7164-fw.c), but I > kept getting the image corrupt message. That's probably the issue. Assuming you have

[PATCH v2] [media] s5p-fimc: Only build suspend/resume for PM

2014-10-14 Thread Thierry Reding
From: Thierry Reding If power management is disabled these functions become unused, so there is no reason to build them. This fixes a couple of build warnings when PM(_SLEEP,_RUNTIME) is not enabled. Signed-off-by: Thierry Reding --- Changes in v2: - add #endif comment for readability drivers

[PATCH v2] [media] s5p-jpeg: Only build suspend/resume for PM

2014-10-14 Thread Thierry Reding
From: Thierry Reding If power management is disabled these function become unused, so there is no reason to build them. This fixes a couple of build warnings when PM(_SLEEP,_RUNTIME) is not enabled. Acked-by: Geert Uytterhoeven Signed-off-by: Thierry Reding --- Changes in v2: - add #endif comm

[PATCH 2/2] media: soc_camera: rcar_vin: Add r8a7793 device support

2014-10-14 Thread Yoshihiro Kaneko
From: Koji Matsuoka Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko --- drivers/media/platform/soc_camera/rcar_vin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index 224604d0..55f

[PATCH 1/2] media: soc_camera: rcar_vin: Add r8a7794 device support

2014-10-14 Thread Yoshihiro Kaneko
From: Koji Matsuoka Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko --- drivers/media/platform/soc_camera/rcar_vin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index bf3588f..2246

[PATCH 0/2] media: soc_camera: rcar_vin: Add r8a7794, r8a7793 device support

2014-10-14 Thread Yoshihiro Kaneko
This series is against master branch of linuxtv.org/media_tree.git. Koji Matsuoka (2): media: soc_camera: rcar_vin: Add r8a7794 device support media: soc_camera: rcar_vin: Add r8a7793 device support drivers/media/platform/soc_camera/rcar_vin.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9

[PATCH 4/7] [media] exynos-gsc: Make runtime PM callbacks available for CONFIG_PM

2014-10-14 Thread Ulf Hansson
There are no need to set up the runtime PM callbacks unless they are being used. Let's make them available for CONFIG_PM. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/ex

[PATCH 2/7] [media] exynos-gsc: Convert gsc_m2m_resume() from int to void

2014-10-14 Thread Ulf Hansson
Since gsc_m2m_resume() always returns 0, convert it into void instead. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exy

[PATCH 5/7] [media] exynos-gsc: Fixup system PM

2014-10-14 Thread Ulf Hansson
We had several issues with the system PM support. 1) It were depending on CONFIG_PM_RUNTIME. 2) It unnecessarily tracked the suspend state in a flag. 3) If userspace through sysfs prevents runtime PM operations, could cause the device to stay in low power after a system PM resume, which is not refl

[PATCH 3/7] [media] exynos-gsc: Make driver functional without CONFIG_PM_RUNTIME

2014-10-14 Thread Ulf Hansson
The driver depended on CONFIG_PM_RUNTIME to be functional, which isn't necessary. The solution to the above is to enable all runtime PM resourses during probe and update the device's runtime PM status to active. Since driver core invokes pm_request_idle() after ->probe(), unused gsc devices will

[PATCH 6/7] [media] exynos-gsc: Fixup clock management at ->remove()

2014-10-14 Thread Ulf Hansson
We want to make sure that the clock is fully gated after ->remove(). To do this, we need to bring the device into full power and not only unprepare the clock, but also disable it. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 7 +-- 1 file changed, 5 insertion

[PATCH 1/7] [media] exynos-gsc: Simplify clock management

2014-10-14 Thread Ulf Hansson
Instead of having separate functions that fecthes, prepares and unprepares the clock, let's encapsulate this code into ->probe(). This makes error handling easier and decreases the lines of code. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 49 --

[PATCH 7/7] [media] exynos-gsc: Do full clock gating at runtime PM suspend

2014-10-14 Thread Ulf Hansson
To potentially save more power in runtime PM suspend state, let's also prepare/unprepare the clock from the runtime PM callbacks. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/plat

[PATCH 0/7] [media] exynos-gsc: Fixup PM support

2014-10-14 Thread Ulf Hansson
This patchset fixup the PM support and adds some minor improvements to potentially save some more power at runtime PM suspend. Some background to this patchset, which are related to the generic PM domain: http://marc.info/?l=linux-pm&m=141217452218592&w=2 http://marc.info/?t=141217462200011&r=1&w=