All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [linuxtv-commits] [hg:v4l-dvb] gspca - vc032x: H and V flip controls added for mi13x0_soc sensors.
       [not found] <E1MWegK-00046z-Si@mail.linuxtv.org>
@ 2009-08-02  9:33 ` Hans Verkuil
  2009-08-02 10:14   ` Jean-Francois Moine
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2009-08-02  9:33 UTC (permalink / raw)
  To: linux-media, Jean-Francois Moine via Mercurial

On Friday 31 July 2009 01:05:04 Patch from Jean-Francois Moine wrote:
> The patch number 12354 was added via Jean-Francois Moine <moinejf@free.fr>
> to http://linuxtv.org/hg/v4l-dvb master development tree.
> 
> Kernel patches in this development tree may be modified to be backward
> compatible with older kernels. Compatibility modifications will be
> removed before inclusion into the mainstream Kernel
> 
> If anyone has any objections, please let us know by sending a message to:
> 	Linux Media Mailing List <linux-media@vger.kernel.org>
> 
> ------
> 
> From: Jean-Francois Moine  <moinejf@free.fr>
> gspca - vc032x: H and V flip controls added for mi13x0_soc sensors.
> 
> 
> Also, H/V flip default values adjusted according to the webcam IDs.
> 
> Priority: normal
> 
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> 
> 
> ---
> 
>  linux/drivers/media/video/gspca/vc032x.c |  109 +++++++++++++----------
>  1 file changed, 63 insertions(+), 46 deletions(-)
> 
> diff -r c9c025650ce7 -r 266dc538f544 linux/drivers/media/video/gspca/vc032x.c
> --- a/linux/drivers/media/video/gspca/vc032x.c	Mon Jul 27 10:52:27 2009 +0200
> +++ b/linux/drivers/media/video/gspca/vc032x.c	Mon Jul 27 11:00:03 2009 +0200
> @@ -3121,33 +3127,44 @@
>  	return 0;
>  }
>  
> -/* for OV7660 and OV7670 only */
> +/* some sensors only */
>  static void sethvflip(struct gspca_dev *gspca_dev)
>  {
>  	struct sd *sd = (struct sd *) gspca_dev;
> -	__u8 data;
> +	u8 data[2], hflip, vflip;
>  
> +	hflip = sd->hflip;
> +	if (sd->flags & FL_HFLIP)
> +		hflip != hflip;
> +	vflip = sd->vflip;
> +	if (sd->flags & FL_VFLIP)
> +		vflip != vflip;

Hi Jean-Francois,

The daily build produces this warning:

/marune/build/v4l-dvb-master/v4l/vc032x.c: In function 'sethvflip':
/marune/build/v4l-dvb-master/v4l/vc032x.c:3138: warning: statement with no effect
/marune/build/v4l-dvb-master/v4l/vc032x.c:3141: warning: statement with no effect

And looking at the code those warnings are correct. I think you wanted to do
'hflip = !hflip'.

Can you take a look at this?

Thanks,

        Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom

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

* Re: [linuxtv-commits] [hg:v4l-dvb] gspca - vc032x: H and V flip controls added for mi13x0_soc sensors.
  2009-08-02  9:33 ` [linuxtv-commits] [hg:v4l-dvb] gspca - vc032x: H and V flip controls added for mi13x0_soc sensors Hans Verkuil
@ 2009-08-02 10:14   ` Jean-Francois Moine
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Francois Moine @ 2009-08-02 10:14 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: linux-media

On Sun, 2 Aug 2009 11:33:25 +0200
Hans Verkuil <hverkuil@xs4all.nl> wrote:

> he daily build produces this warning:
> 
> /marune/build/v4l-dvb-master/v4l/vc032x.c: In function 'sethvflip':
> /marune/build/v4l-dvb-master/v4l/vc032x.c:3138: warning: statement
> with no effect /marune/build/v4l-dvb-master/v4l/vc032x.c:3141:
> warning: statement with no effect
> 
> And looking at the code those warnings are correct. I think you
> wanted to do 'hflip = !hflip'.
> 
> Can you take a look at this?

Hi Hans,

Sorry, I did not see that. It is fixed.

Many thanks.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

end of thread, other threads:[~2009-08-02 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1MWegK-00046z-Si@mail.linuxtv.org>
2009-08-02  9:33 ` [linuxtv-commits] [hg:v4l-dvb] gspca - vc032x: H and V flip controls added for mi13x0_soc sensors Hans Verkuil
2009-08-02 10:14   ` Jean-Francois Moine

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.