public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gspca_ov534: Print only frame_rate actually used.
@ 2008-11-25 22:52 Antonio Ospite
  2008-11-27  9:23 ` Jean-Francois Moine
  0 siblings, 1 reply; 10+ messages in thread
From: Antonio Ospite @ 2008-11-25 22:52 UTC (permalink / raw)
  To: video4linux-list

Print only frame_rate actually used.

It is better to avoid altogether misleading prints of to be discarded values.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>

diff -r 8d178f462ba7 linux/drivers/media/video/gspca/ov534.c
--- a/linux/drivers/media/video/gspca/ov534.c	Mon Nov 24 10:38:21 2008 +0100
+++ b/linux/drivers/media/video/gspca/ov534.c	Tue Nov 25 23:41:10 2008 +0100
@@ -364,10 +364,9 @@
 	if (frame_rate > 0)
 		sd->frame_rate = frame_rate;
 
-	PDEBUG(D_PROBE, "frame_rate = %d", sd->frame_rate);
-
 	switch (sd->frame_rate) {
 	case 50:
+		PDEBUG(D_PROBE, "frame_rate = 50");
 		sccb_reg_write(gspca_dev->dev, 0x11, 0x01);
 		sccb_check_status(gspca_dev->dev);
 		sccb_reg_write(gspca_dev->dev, 0x0d, 0x41);
@@ -375,6 +374,7 @@
 		ov534_reg_verify_write(gspca_dev->dev, 0xe5, 0x02);
 		break;
 	case 40:
+		PDEBUG(D_PROBE, "frame_rate = 40");
 		sccb_reg_write(gspca_dev->dev, 0x11, 0x02);
 		sccb_check_status(gspca_dev->dev);
 		sccb_reg_write(gspca_dev->dev, 0x0d, 0xc1);
@@ -383,6 +383,7 @@
 		break;
 	case 30:
 	default:
+		PDEBUG(D_PROBE, "frame_rate = 30");
 		sccb_reg_write(gspca_dev->dev, 0x11, 0x04);
 		sccb_check_status(gspca_dev->dev);
 		sccb_reg_write(gspca_dev->dev, 0x0d, 0x81);
@@ -390,6 +391,7 @@
 		ov534_reg_verify_write(gspca_dev->dev, 0xe5, 0x02);
 		break;
 	case 15:
+		PDEBUG(D_PROBE, "frame_rate = 15");
 		sccb_reg_write(gspca_dev->dev, 0x11, 0x03);
 		sccb_check_status(gspca_dev->dev);
 		sccb_reg_write(gspca_dev->dev, 0x0d, 0x41);

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2008-12-04 11:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 22:52 [PATCH] gspca_ov534: Print only frame_rate actually used Antonio Ospite
2008-11-27  9:23 ` Jean-Francois Moine
2008-11-27 11:05   ` Antonio Ospite
2008-11-27 12:22     ` Jean-Francois Moine
2008-11-27 13:52       ` Antonio Ospite
2008-12-03 16:45         ` Antonio Ospite
2008-12-03 18:01           ` Jim Paris
2008-12-03 18:44             ` Antonio Ospite
2008-12-03 19:17               ` Jean-Francois Moine
2008-12-04 11:55                 ` Antonio Ospite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox