Commit fabade54 authored by Dmitri Belimov's avatar Dmitri Belimov Committed by Mauro Carvalho Chehab
Browse files

[media] FM1216ME_MK3 AUX byte for FM mode



Write AUX byte to FM1216ME_MK3 when FM mode, better sensitivity. It can be
usefull for other tuners.

Signed-off-by: default avatarBeholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9c900f02
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -751,6 +751,17 @@ static int simple_set_radio_freq(struct dvb_frontend *fe,
	if (4 != rc)
	if (4 != rc)
		tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc);
		tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc);


	/* Write AUX byte */
	switch (priv->type) {
	case TUNER_PHILIPS_FM1216ME_MK3:
		buffer[2] = 0x98;
		buffer[3] = 0x20; /* set TOP AGC */
		rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4);
		if (4 != rc)
			tuner_warn("i2c i/o error: rc == %d (should be 4)\n", rc);
		break;
	}

	return 0;
	return 0;
}
}