Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82c01d3d authored by Matthieu CASTET's avatar Matthieu CASTET Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMatthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarHartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 4abdcf93
Loading
Loading
Loading
Loading
+7 −3
Original line number Original line Diff line number Diff line
@@ -205,9 +205,13 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
		/* 0x01 -> ??? no change ??? */
		/* 0x01 -> ??? no change ??? */
		/* 0x02 -> PAL BDGHI / SECAM L */
		/* 0x02 -> PAL BDGHI / SECAM L */
		/* 0x04 -> ??? PAL others / SECAM others ??? */
		/* 0x04 -> ??? PAL others / SECAM others ??? */
		cb &= ~0x02;
		cb &= ~0x03;
		if (t->std & V4L2_STD_SECAM)
		if (t->std & V4L2_STD_SECAM_L) //also valid for V4L2_STD_SECAM
			cb |= 0x02;
			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;
		break;


	case TUNER_TEMIC_4046FM5:
	case TUNER_TEMIC_4046FM5: