diff options
| author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2005-06-24 01:04:50 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:37 -0400 |
| commit | 59dcd9480d93aebdf41e29c46e6a8b4ceeaca75d (patch) | |
| tree | ff7a643f6ed0c2cc92355684c12b63231387afd6 | |
| parent | f246a8172a9e403b78c34568f766990f1506a0ab (diff) | |
[PATCH] v4l: PAL-M support fix for CX88 chipsets
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>
Cc: <video4linux-list@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 1ff79b5a8835..8c7f5589e92b 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
| @@ -736,6 +736,10 @@ static unsigned int inline norm_fsc8(struct cx88_tvnorm *norm) | |||
| 736 | { | 736 | { |
| 737 | static const unsigned int ntsc = 28636360; | 737 | static const unsigned int ntsc = 28636360; |
| 738 | static const unsigned int pal = 35468950; | 738 | static const unsigned int pal = 35468950; |
| 739 | static const unsigned int palm = 28604892; | ||
| 740 | |||
| 741 | if (norm->id & V4L2_STD_PAL_M) | ||
| 742 | return palm; | ||
| 739 | 743 | ||
| 740 | return (norm->id & V4L2_STD_625_50) ? pal : ntsc; | 744 | return (norm->id & V4L2_STD_625_50) ? pal : ntsc; |
| 741 | } | 745 | } |
| @@ -749,6 +753,11 @@ static unsigned int inline norm_notchfilter(struct cx88_tvnorm *norm) | |||
| 749 | 753 | ||
| 750 | static unsigned int inline norm_htotal(struct cx88_tvnorm *norm) | 754 | static unsigned int inline norm_htotal(struct cx88_tvnorm *norm) |
| 751 | { | 755 | { |
| 756 | /* Should always be Line Draw Time / (4*FSC) */ | ||
| 757 | |||
| 758 | if (norm->id & V4L2_STD_PAL_M) | ||
| 759 | return 909; | ||
| 760 | |||
| 752 | return (norm->id & V4L2_STD_625_50) ? 1135 : 910; | 761 | return (norm->id & V4L2_STD_625_50) ? 1135 : 910; |
| 753 | } | 762 | } |
| 754 | 763 | ||
