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

Commit 0176fd4d authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

[media] tda10071: add tuner_i2c_addr to struct tda10071_config



The default i2c address for the tuner is 0x14,
allow this to be overridden with a configuration parameter

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5b7d8de7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1064,7 +1064,7 @@ static int tda10071_init(struct dvb_frontend *fe)
		cmd.args[2] = 0x00;
		cmd.args[3] = 0x00;
		cmd.args[4] = 0x00;
		cmd.args[5] = 0x14;
		cmd.args[5] = (priv->cfg.tuner_i2c_addr) ? priv->cfg.tuner_i2c_addr : 0x14;
		cmd.args[6] = 0x00;
		cmd.args[7] = 0x03;
		cmd.args[8] = 0x02;
+6 −0
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ struct tda10071_config {
	 */
	u8 i2c_address;

	/* Tuner I2C address.
	 * Default: 0x14
	 * Values: 0x14, 0x54, ...
	 */
	u8 tuner_i2c_addr;

	/* Max bytes I2C provider can write at once.
	 * Note: Buffer is taken from the stack currently!
	 * Default: none, must set