summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-05-15 18:49:52 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-05-15 18:49:52 +0000
commite9e115b00e96550d7861f784cab0dc0b9bce9898 (patch)
treec25031bf553db0ca192d32d97283b186b9f98206 /linux/drivers/media/video/cx88/cx88-core.c
parent46ea498a519401300c3d4617be685282a0e64a14 (diff)
downloadmediapointer-dvb-s2-e9e115b00e96550d7861f784cab0dc0b9bce9898.tar.gz
mediapointer-dvb-s2-e9e115b00e96550d7861f784cab0dc0b9bce9898.tar.bz2
Mauro Chehab(mchehab@brturbo.com.br): Added support for PAL-M FSC.
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-core.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-core.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c
index 827f3c388..7f81b8c69 100644
--- a/linux/drivers/media/video/cx88/cx88-core.c
+++ b/linux/drivers/media/video/cx88/cx88-core.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-core.c,v 1.24 2005/01/19 12:01:55 kraxel Exp $
+ * $Id: cx88-core.c,v 1.25 2005/05/15 18:49:52 mchehab Exp $
*
* device driver for Conexant 2388x based TV cards
* driver core
@@ -742,6 +742,10 @@ static unsigned int inline norm_fsc8(struct cx88_tvnorm *norm)
{
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;
}
@@ -755,6 +759,9 @@ static unsigned int inline norm_notchfilter(struct cx88_tvnorm *norm)
static unsigned int inline norm_htotal(struct cx88_tvnorm *norm)
{
+ /* Should be Line Draw Time / (4*FSC) */
+ if (V4L2_STD_PAL_M & norm->id)
+ return 909;
return (norm->id & V4L2_STD_625_50) ? 1135 : 910;
}