Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (5680): Tuner-simple.c fix suport for SECAM with FI1216MF

Allow to use SECAM-BG with the FI1216MF tuner.

The selection is done with the secam=B module argument.

The default behaviour should be the same as before.

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

matthieu castet and committed by
Mauro Carvalho Chehab
82c01d3d 4abdcf93

+7 -3
+7 -3
drivers/media/video/tuner-simple.c
··· 205 205 /* 0x01 -> ??? no change ??? */ 206 206 /* 0x02 -> PAL BDGHI / SECAM L */ 207 207 /* 0x04 -> ??? PAL others / SECAM others ??? */ 208 - cb &= ~0x02; 209 - if (t->std & V4L2_STD_SECAM) 210 - cb |= 0x02; 208 + cb &= ~0x03; 209 + if (t->std & V4L2_STD_SECAM_L) //also valid for V4L2_STD_SECAM 210 + cb |= PHILIPS_MF_SET_PAL_L; 211 + else if (t->std & V4L2_STD_SECAM_LC) 212 + cb |= PHILIPS_MF_SET_PAL_L2; 213 + else /* V4L2_STD_B|V4L2_STD_GH */ 214 + cb |= PHILIPS_MF_SET_BG; 211 215 break; 212 216 213 217 case TUNER_TEMIC_4046FM5: