linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for v3.6] Fix mem2mem_testdev querycap regression
@ 2012-08-01  7:32 Hans Verkuil
  2012-08-01  9:19 ` Sylwester Nawrocki
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2012-08-01  7:32 UTC (permalink / raw)
  To: linux-media

Trival but important patch.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c
index 7efe9ad..0b91a5c 100644
--- a/drivers/media/video/mem2mem_testdev.c
+++ b/drivers/media/video/mem2mem_testdev.c
@@ -431,7 +431,7 @@ static int vidioc_querycap(struct file *file, void *priv,
 	strncpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver) - 1);
 	strncpy(cap->card, MEM2MEM_NAME, sizeof(cap->card) - 1);
 	strlcpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info));
-	cap->capabilities = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
+	cap->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
 	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
 	return 0;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH for v3.6] Fix mem2mem_testdev querycap regression
  2012-08-01  7:32 [PATCH for v3.6] Fix mem2mem_testdev querycap regression Hans Verkuil
@ 2012-08-01  9:19 ` Sylwester Nawrocki
  0 siblings, 0 replies; 2+ messages in thread
From: Sylwester Nawrocki @ 2012-08-01  9:19 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: linux-media

On 08/01/2012 09:32 AM, Hans Verkuil wrote:
> Trival but important patch.
> 
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> 
> diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c
> index 7efe9ad..0b91a5c 100644
> --- a/drivers/media/video/mem2mem_testdev.c
> +++ b/drivers/media/video/mem2mem_testdev.c
> @@ -431,7 +431,7 @@ static int vidioc_querycap(struct file *file, void *priv,
>  	strncpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver) - 1);
>  	strncpy(cap->card, MEM2MEM_NAME, sizeof(cap->card) - 1);
>  	strlcpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info));
> -	cap->capabilities = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
> +	cap->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
>  	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
>  	return 0;
>  }

Oops, my bad. Thanks for fixing this Hans!

Regards,
Sylwester

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-01  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01  7:32 [PATCH for v3.6] Fix mem2mem_testdev querycap regression Hans Verkuil
2012-08-01  9:19 ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).