All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Krufky <mkrufky@m1k.net>
To: Andrew Morton <akpm@osdl.org>
Cc: Mauro Carvalho Chehab <mchehab@brturbo.com.br>,
	trivial@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: [TRIVIAL 2.6.12 / 2.6.13 PATCH] v4l cx88 hue offset fix
Date: Thu, 30 Jun 2005 12:17:15 -0400	[thread overview]
Message-ID: <42C41B0B.2080708@m1k.net> (raw)
In-Reply-To: <42C3F871.7060008@brturbo.com.br>

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

Mauro Carvalho Chehab wrote:

>Acked-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
>
>This small patch fixes top complaint about CX88 cards, which had a
>different behavior than other V4L cards for hue setting.
>
>It can also be applied also at 2.6.13 mainstream.
>
I must add:  Not only does this apply to 2.6.13, but it also applies to 
2.6.12 ... Can we have this put into the patch queue for 2.6.12.3 ?  
This IS a bug fix, and makes a HUGE improvement for cx88 boards.

I'd really like to see this in the mainstream kernel before the livecd 
distros make their next releases.

I would send this to Greg Kroah-Hartman / Chris Wright myself, but I 
don't know if that is proper protocol for doing this.  Andrew, please 
send this to the correct person.

Thank you.

Attached is a diff against 2.6.12.2

-- 
Michael Krufky


[-- Attachment #2: 2.6.12-trivial-v4l-cx88-video-hue-offset-fix.patch --]
[-- Type: text/plain, Size: 976 bytes --]

Changed hue offset to 128 to correct behavior in cx88 cards.  Previously, 
setting 0% or 100% hue was required to avoid blue/green people on screen.  
Now, 50% Hue means no offset, just like bt878 stuff.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>

 cx88-video.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -upr linux-2.6.12.2/drivers/media/video/cx88/cx88-video.c linux/drivers/media/video/cx88/cx88-video.c
--- linux-2.6.12.2/drivers/media/video/cx88/cx88-video.c	2005-06-17 15:48:29.000000000 -0400
+++ linux/drivers/media/video/cx88/cx88-video.c	2005-06-30 11:47:49.000000000 -0400
@@ -261,7 +261,7 @@ static struct cx88_ctrl cx8800_ctls[] = 
 			.default_value = 0,
 			.type          = V4L2_CTRL_TYPE_INTEGER,
 		},
-		.off                   = 0,
+		.off                   = 128,
 		.reg                   = MO_HUE,
 		.mask                  = 0x00ff,
 		.shift                 = 0,

  reply	other threads:[~2005-06-30 16:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30  2:43 [TRIVIAL PATCH] v4l cx88 hue offset fix Michael Krufky
2005-06-30 13:49 ` Mauro Carvalho Chehab
2005-06-30 16:17   ` Michael Krufky [this message]
2005-06-30 19:10     ` [TRIVIAL 2.6.12 / 2.6.13 " Jesper Juhl

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=42C41B0B.2080708@m1k.net \
    --to=mkrufky@m1k.net \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@brturbo.com.br \
    --cc=trivial@rustcorp.com.au \
    /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.