From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] PAL-M support fix for CX88 chipsets - final version :-)
Date: Tue, 03 May 2005 15:04:35 -0300 [thread overview]
Message-ID: <4277BD33.30009@brturbo.com.br> (raw)
In-Reply-To: <20050503105202.42fa5ffb.rddunlap@osdl.org>
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
This patch fixes PAL-M chroma subcarrier frequency (FSC) to its correct
value of 3.5756115 MHz and adjusts horizontal total samples for PAL-M,
according with formula Line Draw Time / (4*FSC).
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
[-- Attachment #2: pal.dif --]
[-- Type: text/plain, Size: 794 bytes --]
--- linux-2.6.12-rc3.org/drivers/media/video/cx88/cx88-core.c 2005-04-20 21:03:14.000000000 -0300
+++ linux-2.6.12-rc3/drivers/media/video/cx88/cx88-core.c 2005-05-03 14:59:21.000000000 -0300
@@ -736,6 +736,10 @@ static unsigned int inline norm_fsc8(str
{
static const unsigned int ntsc = 28636360;
static const unsigned int pal = 35468950;
+ static const unsigned int palm = 28604892;
+
+ if (V4L2_STD_PAL_M & norm->id)
+ return palm;
return (norm->id & V4L2_STD_625_50) ? pal : ntsc;
}
@@ -749,6 +753,11 @@ static unsigned int inline norm_notchfil
static unsigned int inline norm_htotal(struct cx88_tvnorm *norm)
{
+ /* Should always be Line Draw Time / (4*FSC) */
+
+ if (V4L2_STD_PAL_M & norm->id)
+ return 909;
+
return (norm->id & V4L2_STD_625_50) ? 1135 : 910;
}
next prev parent reply other threads:[~2005-05-03 18:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-03 12:48 [2.6 patch] PAL-M support fix for CX88 chipsets Mauro Carvalho Chehab
2005-05-03 15:38 ` Randy.Dunlap
2005-05-03 17:43 ` Mauro Carvalho Chehab
2005-05-03 17:52 ` Randy.Dunlap
2005-05-03 18:04 ` Mauro Carvalho Chehab [this message]
2005-05-03 18:11 ` [2.6 patch] PAL-M support fix for CX88 chipsets - final version :-) Randy.Dunlap
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=4277BD33.30009@brturbo.com.br \
--to=mchehab@brturbo.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
/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.