public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15
@ 2011-10-20 15:24 Taylor Ralph
  2011-10-20 15:30 ` Devin Heitmueller
  0 siblings, 1 reply; 18+ messages in thread
From: Taylor Ralph @ 2011-10-20 15:24 UTC (permalink / raw)
  To: linux-media

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

I've attached a patch that correctly sets the max/min/default values
for the hdpvr picture controls. The reason the current values didn't
cause a problem until now is because any firmware <= 0.15 didn't
support them. The latest firmware releases properly support picture
controls and the values in the patch are derived from the windows
driver using SniffUSB2.0.

Thanks to Devin Heitmueller for helping me.

Regards.
--
Taylor

[-- Attachment #2: hdpvr.diff --]
[-- Type: text/x-diff, Size: 1502 bytes --]

diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr-core.c
--- a/linux/drivers/media/video/hdpvr/hdpvr-core.c	Fri Jul 02 00:38:54 2010 -0300
+++ b/linux/drivers/media/video/hdpvr/hdpvr-core.c	Thu Oct 20 11:14:25 2011 -0400
@@ -262,10 +262,10 @@
 	.bitrate_mode	= HDPVR_CONSTANT,
 	.gop_mode	= HDPVR_SIMPLE_IDR_GOP,
 	.audio_codec	= V4L2_MPEG_AUDIO_ENCODING_AAC,
-	.brightness	= 0x86,
-	.contrast	= 0x80,
-	.hue		= 0x80,
-	.saturation	= 0x80,
+	.brightness	= 0x80,
+	.contrast	= 0x40,
+	.hue		= 0xf,
+	.saturation	= 0x40,
 	.sharpness	= 0x80,
 };
 
diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr-video.c
--- a/linux/drivers/media/video/hdpvr/hdpvr-video.c	Fri Jul 02 00:38:54 2010 -0300
+++ b/linux/drivers/media/video/hdpvr/hdpvr-video.c	Thu Oct 20 11:14:25 2011 -0400
@@ -731,13 +731,13 @@
 
 	switch (qc->id) {
 	case V4L2_CID_BRIGHTNESS:
-		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x86);
+		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
 	case V4L2_CID_CONTRAST:
-		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
+		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x40);
 	case V4L2_CID_SATURATION:
-		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
+		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x40);
 	case V4L2_CID_HUE:
-		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
+		return v4l2_ctrl_query_fill(qc, 0x0, 0x1e, 1, 0xf);
 	case V4L2_CID_SHARPNESS:
 		return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
 	case V4L2_CID_MPEG_AUDIO_ENCODING:

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

end of thread, other threads:[~2012-02-15 12:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20 15:24 [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15 Taylor Ralph
2011-10-20 15:30 ` Devin Heitmueller
2011-10-20 16:09   ` Taylor Ralph
2011-10-20 16:23   ` Janne Grunau
2011-10-20 16:35     ` Devin Heitmueller
2011-10-20 17:08       ` Janne Grunau
2011-10-20 18:14         ` Devin Heitmueller
2011-10-20 19:26           ` Taylor Ralph
2011-10-21  3:33             ` Taylor Ralph
2011-11-07 12:21               ` Mauro Carvalho Chehab
2011-11-08  0:54                 ` Taylor Ralph
2011-12-21 22:14                   ` Taylor Ralph
2012-02-01  3:04                     ` Taylor Ralph
2012-02-14 20:43                   ` Jarod Wilson
2012-02-14 21:32                     ` Devin Heitmueller
2012-02-14 22:09                       ` Jarod Wilson
2012-02-15 11:46                         ` missing patches in patchwork (was Re: [PATCH] [media] hdpvr: update picture controls to support firmware versions > 0.15) Janne Grunau
2012-02-15 12:07                           ` Mauro Carvalho Chehab

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