[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>

authored by

Mauro Carvalho Chehab and committed by
Linus Torvalds
59dcd948 f246a817

+9
+9
drivers/media/video/cx88/cx88-core.c
··· 736 736 { 737 737 static const unsigned int ntsc = 28636360; 738 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 744 return (norm->id & V4L2_STD_625_50) ? pal : ntsc; 741 745 } ··· 753 749 754 750 static unsigned int inline norm_htotal(struct cx88_tvnorm *norm) 755 751 { 752 + /* Should always be Line Draw Time / (4*FSC) */ 753 + 754 + if (norm->id & V4L2_STD_PAL_M) 755 + return 909; 756 + 756 757 return (norm->id & V4L2_STD_625_50) ? 1135 : 910; 757 758 } 758 759