Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261493AbVECSFS (ORCPT ); Tue, 3 May 2005 14:05:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261495AbVECSFS (ORCPT ); Tue, 3 May 2005 14:05:18 -0400 Received: from smtp3.brturbo.com.br ([200.199.201.164]:43200 "EHLO smtp3.brturbo.com.br") by vger.kernel.org with ESMTP id S261493AbVECSEu (ORCPT ); Tue, 3 May 2005 14:04:50 -0400 Message-ID: <4277BD33.30009@brturbo.com.br> Date: Tue, 03 May 2005 15:04:35 -0300 From: Mauro Carvalho Chehab User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) X-Accept-Language: pt-br, pt, es, en-us, en MIME-Version: 1.0 To: "Randy.Dunlap" Cc: linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] PAL-M support fix for CX88 chipsets - final version :-) References: <42777318.2070508@brturbo.com.br> <20050503083822.68a116d4.rddunlap@osdl.org> <4277B833.9020109@brturbo.com.br> <20050503105202.42fa5ffb.rddunlap@osdl.org> In-Reply-To: <20050503105202.42fa5ffb.rddunlap@osdl.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------090108000003050401090901" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1678 Lines: 50 This is a multi-part message in MIME format. --------------090108000003050401090901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090108000003050401090901 Content-Type: text/plain; name="pal.dif" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pal.dif" --- 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; } --------------090108000003050401090901-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/