Skip to contentSkip to conversation

gspca - vc032x: H and V flip controls added for mi13x0_soc sensors.

linuxtv-commits Hans Verkuil 2 participants 2 messages Aug 2, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 39 lines · On Friday 31 July 2009 01:05:04 Patch from Jean-Francois Moine wrote:

The patch number 12354 was added via Jean-Francois Moine <[email protected]> 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 <[email protected]>

------

From: Jean-Francois Moine <[email protected]>
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

---

 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

linux/drivers/media/video/gspca/vc032x.c +1 -1
@@ -3121,33 +3127,44 @@
 	return 0;
 }
 
-/* for OV7660 and OV7670 only */
+/* some sensors only */
 static void sethvflip(struct gspca_dev *gspca_dev)
 {

linux/drivers/media/video/gspca/vc032x.c line 3141

Quoted 10 lines
linux/drivers/media/video/gspca/vc032x.c +7 -1
 	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

Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
#2 lore raw
Quoted 11 lines · On Sun, 2 Aug 2009 11:33:25 +0200 Hans Verkuil <[email protected]> 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.

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