public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH v2 03/11] uvcvideo: Add V4L2 debug module parameter
Date: Fri, 31 Oct 2014 16:43:43 +0200	[thread overview]
Message-ID: <7612779.HqLMMLZQzl@avalon> (raw)
In-Reply-To: <54539F08.3000104@xs4all.nl>

Hi Hans,

On Friday 31 October 2014 15:39:04 Hans Verkuil wrote:
> On 10/31/2014 02:54 PM, Laurent Pinchart wrote:
> > Add a new debug module parameter and use it to initialize the V4L2 debug
> > level for all video devices.
> 
> This patch is unnecessary and can be dropped. You can dynamically set it
> through echo 1 >/sys/class/video4linux/videoX/debug.
> 
> Drivers shouldn't touch debug themselves.

Good point and sorry for the noise. I'll drop the patch.

> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> > 
> >  drivers/media/usb/uvc/uvc_driver.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/drivers/media/usb/uvc/uvc_driver.c
> > b/drivers/media/usb/uvc/uvc_driver.c index 30163432..1cae974 100644
> > --- a/drivers/media/usb/uvc/uvc_driver.c
> > +++ b/drivers/media/usb/uvc/uvc_driver.c
> > @@ -34,6 +34,7 @@
> > 
> >  unsigned int uvc_clock_param = CLOCK_MONOTONIC;
> >  unsigned int uvc_no_drop_param;
> >  static unsigned int uvc_quirks_param = -1;
> > 
> > +static unsigned int uvc_debug_param;
> > 
> >  unsigned int uvc_trace_param;
> >  unsigned int uvc_timeout_param = UVC_CTRL_STREAMING_TIMEOUT;
> > 
> > @@ -1763,6 +1764,7 @@ static int uvc_register_video(struct uvc_device
> > *dev,
> > 
> >  	vdev->ioctl_ops = &uvc_ioctl_ops;
> >  	vdev->release = uvc_release;
> >  	vdev->prio = &stream->chain->prio;
> > 
> > +	vdev->debug = uvc_debug_param;
> > 
> >  	if (stream->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
> >  	
> >  		vdev->vfl_dir = VFL_DIR_TX;
> >  	
> >  	strlcpy(vdev->name, dev->name, sizeof vdev->name);
> > 
> > @@ -2080,6 +2082,8 @@ static int uvc_clock_param_set(const char *val,
> > struct kernel_param *kp)> 
> >  module_param_call(clock, uvc_clock_param_set, uvc_clock_param_get,
> >  
> >  		  &uvc_clock_param, S_IRUGO|S_IWUSR);
> >  
> >  MODULE_PARM_DESC(clock, "Video buffers timestamp clock");
> > 
> > +module_param_named(debug, uvc_debug_param, uint, S_IRUGO);
> > +MODULE_PARM_DESC(debug, "V4L2 debug level");
> > 
> >  module_param_named(nodrop, uvc_no_drop_param, uint, S_IRUGO|S_IWUSR);
> >  MODULE_PARM_DESC(nodrop, "Don't drop incomplete frames");
> >  module_param_named(quirks, uvc_quirks_param, uint, S_IRUGO|S_IWUSR);

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2014-10-31 14:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-31 13:54 [PATCH v2 00/11] uvcvideo: Move to video_ioctl2 Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 01/11] v4l2: get/set prio using video_dev prio structure Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 02/11] uvcvideo: Move to video_ioctl2 Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 03/11] uvcvideo: Add V4L2 debug module parameter Laurent Pinchart
2014-10-31 14:39   ` Hans Verkuil
2014-10-31 14:43     ` Laurent Pinchart [this message]
2014-10-31 13:54 ` [PATCH v2 04/11] uvcvideo: Set buffer field to V4L2_FIELD_NONE Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 05/11] uvcvideo: Separate video and queue enable/disable operations Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 06/11] uvcvideo: Add function to convert from queue to stream Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 07/11] uvcvideo: Implement vb2 queue start and stop stream operations Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 08/11] uvcvideo: Don't stop the stream twice at file handle release Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 09/11] uvcvideo: Rename uvc_alloc_buffers to uvc_request_buffers Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 10/11] uvcvideo: Rename and split uvc_queue_enable to uvc_queue_stream(on|off) Laurent Pinchart
2014-10-31 13:54 ` [PATCH v2 11/11] uvcvideo: Give back all buffers to userspace when stopping the stream Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7612779.HqLMMLZQzl@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox