Commit faf27976 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] anysee: do not attach same frontend twice

cxd2820r implements only one frontend currently which
handles all the standards.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e9ae4d4f
...@@ -877,24 +877,18 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap) ...@@ -877,24 +877,18 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap)
case ANYSEE_HW_508T2C: /* 20 */ case ANYSEE_HW_508T2C: /* 20 */
/* E7 T2C */ /* E7 T2C */
if (state->fe_id)
break;
/* enable DVB-T/T2/C demod on IOE[5] */ /* enable DVB-T/T2/C demod on IOE[5] */
ret = anysee_wr_reg_mask(adap->dev, REG_IOE, (1 << 5), 0x20); ret = anysee_wr_reg_mask(adap->dev, REG_IOE, (1 << 5), 0x20);
if (ret) if (ret)
goto error; goto error;
if (state->fe_id == 0) { /* attach demod */
/* DVB-T/T2 */ adap->fe_adap[state->fe_id].fe = dvb_attach(cxd2820r_attach,
adap->fe_adap[state->fe_id].fe = &anysee_cxd2820r_config, &adap->dev->i2c_adap,
dvb_attach(cxd2820r_attach, NULL);
&anysee_cxd2820r_config,
&adap->dev->i2c_adap, NULL);
} else {
/* DVB-C */
adap->fe_adap[state->fe_id].fe =
dvb_attach(cxd2820r_attach,
&anysee_cxd2820r_config,
&adap->dev->i2c_adap, adap->fe_adap[0].fe);
}
state->has_ci = true; state->has_ci = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment