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

Commit b619ff7a authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] af9035: remove AVerMedia eeprom override



Reverts commit 3ab25123
[media] af9035: override tuner for AVerMedia A835B devices

Original commit itself is correct, but it was replaced by more
general solution (commit 1cbbf90d).
This old solution was committed by a accident and is not needed
anymore.

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 9e0a976e
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -802,25 +802,6 @@ static int af9035_read_config(struct dvb_usb_device *d)
		addr += 0x10; /* shift for the 2nd tuner params */
	}

	/*
	 * These AVerMedia devices has a bad EEPROM content :-(
	 * Override some wrong values here.
	 */
	if (le16_to_cpu(d->udev->descriptor.idVendor) == USB_VID_AVERMEDIA) {
		switch (le16_to_cpu(d->udev->descriptor.idProduct)) {
		case USB_PID_AVERMEDIA_A835B_1835:
		case USB_PID_AVERMEDIA_A835B_2835:
		case USB_PID_AVERMEDIA_A835B_3835:
			dev_info(&d->udev->dev,
				 "%s: overriding tuner from %02x to %02x\n",
				 KBUILD_MODNAME, state->af9033_config[0].tuner,
				 AF9033_TUNER_IT9135_60);

			state->af9033_config[0].tuner = AF9033_TUNER_IT9135_60;
			break;
		}
	}

skip_eeprom:
	/* get demod clock */
	ret = af9035_rd_reg(d, 0x00d800, &tmp);