Skip to contentSkip to conversation

em28xx: MaxMedia UB425-TC offer firmware for demodulator

PATCH New Antti Palosaari 1 participant 3 messages Oct 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 em28xx: MaxMedia UB425-TC offer firmware for demodulator

Downloading new firmware for DRX-K demodulator is not obligatory but usually it offers important bug fixes compared to default firmware burned into chip rom. DRX-K demod driver will continue even without the firmware, but in that case it will print warning to system log to tip user he should install firmware.

---
 drivers/media/usb/em28xx/em28xx-dvb.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/media/usb/em28xx/em28xx-dvb.c +2 -5
index bb1e8dc..f8a2212 100644
@@ -384,6 +384,8 @@ static struct drxk_config maxmedia_ub425_tc_drxk = {
 	.adr = 0x29,
 	.single_master = 1,
 	.no_i2c_bridge = 1,
+	.microcode_name = "dvb-demod-drxk-01.fw",
+	.chunk_size = 62,
 	.load_firmware_sync = true,
 };
 
@@ -1234,11 +1236,6 @@ static int em28xx_dvb_init(struct em28xx *dev)
 				goto out_free;
 			}
 		}
-
-		/* TODO: we need drx-3913k firmware in order to support DVB-T */
-		em28xx_info("MaxMedia UB425-TC/Delock 61959: only DVB-C " \
-				"supported by that driver version\n");
-
 		break;
 	case EM2884_BOARD_PCTV_510E:
 	case EM2884_BOARD_PCTV_520E:
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 2/3 em28xx: MaxMedia UB425-TC switch RF tuner driver to another

tda18271c2dd => tda18271
tda18271 is more complete than tda18271c2dd.

---
 drivers/media/usb/em28xx/em28xx-dvb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/media/usb/em28xx/em28xx-dvb.c +3 -2
index f8a2212..0697aad 100644
@@ -1229,8 +1229,9 @@ static int em28xx_dvb_init(struct em28xx *dev)
 			dvb->fe[0]->ops.i2c_gate_ctrl = NULL;
 
 			/* attach tuner */
-			if (!dvb_attach(tda18271c2dd_attach, dvb->fe[0],
-					&dev->i2c_adap[dev->def_i2c_bus], 0x60)) {
+			if (!dvb_attach(tda18271_attach, dvb->fe[0], 0x60,
+					&dev->i2c_adap[dev->def_i2c_bus],
+					&em28xx_cxd2820r_tda18271_config)) {
 				dvb_frontend_detach(dvb->fe[0]);
 				result = -EINVAL;
 				goto out_free;
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 3/3 em28xx: MaxMedia UB425-TC change demod settings

In reply to Antti Palosaari

That version of DRX-K chip supports only 2.

drxk: SCU_RESULT_INVPAR while sending cmd 0x0203 with params:
drxk: Warning -22 on qam_demodulator_command

---
 drivers/media/usb/em28xx/em28xx-dvb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/usb/em28xx/em28xx-dvb.c +1 -0
index 0697aad..2324ac6 100644
@@ -387,6 +387,7 @@ static struct drxk_config maxmedia_ub425_tc_drxk = {
 	.microcode_name = "dvb-demod-drxk-01.fw",
 	.chunk_size = 62,
 	.load_firmware_sync = true,
+	.qam_demod_parameter_count = 2,
 };
 
 static struct drxk_config pctv_520e_drxk = {
Signature · 1 line
1.8.3.1