From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] v4l: soc-camera: fix multiple simultaneous user case
Date: Sat, 25 Dec 2010 22:58:21 -0200 [thread overview]
Message-ID: <4D16932D.7030902@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.64.1012252201520.5248@axis700.grange>
Em 25-12-2010 19:29, Guennadi Liakhovetski escreveu:
> A recent patch has introduced a regression, whereby a second open of an
> soc-camera video device breaks the running capture. This patch fixes this bug
> by guaranteeing, that video buffers get initialised only during the first open
> of the device node.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> ---
>
> Mauro, please, let's try to get it in 2.6.37, or we'll have to push it to
> stable after 2.6.37 is out. I'm just posting it quickly and will push it
> to linuxtv.org like tomorrow or on Monday...
Ok, I've applied it and sent it today to my linux-next tree. Stephen will only
pull from it at Dec, 27/28, likely in time for the last pull request for .37.
Cheers,
Mauro
>
> drivers/media/video/soc_camera.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
> index 335120c..052bd6d 100644
> --- a/drivers/media/video/soc_camera.c
> +++ b/drivers/media/video/soc_camera.c
> @@ -405,13 +405,13 @@ static int soc_camera_open(struct file *file)
> ret = soc_camera_set_fmt(icd, &f);
> if (ret < 0)
> goto esfmt;
> +
> + ici->ops->init_videobuf(&icd->vb_vidq, icd);
> }
>
> file->private_data = icd;
> dev_dbg(&icd->dev, "camera device open\n");
>
> - ici->ops->init_videobuf(&icd->vb_vidq, icd);
> -
> mutex_unlock(&icd->video_lock);
>
> return 0;
prev parent reply other threads:[~2010-12-26 0:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-25 21:29 [PATCH] v4l: soc-camera: fix multiple simultaneous user case Guennadi Liakhovetski
2010-12-26 0:58 ` Mauro Carvalho Chehab [this message]
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=4D16932D.7030902@infradead.org \
--to=mchehab@infradead.org \
--cc=g.liakhovetski@gmx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.