summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-05-21 11:15:09 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-21 11:15:09 -0300
commitd94cd97f381d28b4469c33036bbc00473c617742 (patch)
tree9378f89a4705fe85f42bcedd6ad33270f19d0821 /linux
parent070228c0669b1811ffba920ad1e5f81e4b357309 (diff)
downloadmediapointer-dvb-s2-d94cd97f381d28b4469c33036bbc00473c617742.tar.gz
mediapointer-dvb-s2-d94cd97f381d28b4469c33036bbc00473c617742.tar.bz2
Tuner-simple.c add suport for SECAM-BG with FI1216MF
From: matthieu castet <castet.matthieu@free.fr> 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>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/tuner-simple.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 16469d905..f91f8a690 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -230,9 +230,13 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
/* 0x01 -> ??? no change ??? */
/* 0x02 -> PAL BDGHI / SECAM L */
/* 0x04 -> ??? PAL others / SECAM others ??? */
- cb &= ~0x02;
- if (t->std & V4L2_STD_SECAM)
- cb |= 0x02;
+ cb &= ~0x03;
+ if (t->std & V4L2_STD_SECAM_L) //also valid for V4L2_STD_SECAM
+ cb |= PHILIPS_MF_SET_PAL_L;
+ else if (t->std & V4L2_STD_SECAM_LC)
+ cb |= PHILIPS_MF_SET_PAL_L2;
+ else /* V4L2_STD_B|V4L2_STD_GH */
+ cb |= PHILIPS_MF_SET_BG;
break;
case TUNER_TEMIC_4046FM5: