Message ID | 548D44B5.5030706@iki.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 12/14/2014 09:05 AM, Antti Palosaari wrote: > [...] > I just tested that patch, and it behaves just like I expected - does > not work at all (because RTL2832 TS bypass will not be enabled anymore). > > Here is log, first with your patch, then I fixed it a little as diff > shows, and after that scan works. I wonder what kind of test you did > for it - or do you have some other hacks committed... I tried running w_scan. I remember that I also tried with changing this: case TUNER_RTL2832_R828D: fe = dvb_attach(r820t_attach, adap->fe[0], priv->demod_i2c_adapter, &rtl2832u_r828d_config); adap->fe[0]->ops.read_signal_strength = adap->fe[0]->ops.tuner_ops.get_rf_strength; if (adap->fe[1]) { fe = dvb_attach(r820t_attach, adap->fe[1], priv->demod_i2c_adapter, &rtl2832u_r828d_config); adap->fe[1]->ops.read_signal_strength = adap->fe[1]->ops.tuner_ops.get_rf_strength; } to case TUNER_RTL2832_R828D: if (adap->fe[1]) { fe = dvb_attach(r820t_attach, adap->fe[1], priv->demod_i2c_adapter, &rtl2832u_r828d_config); adap->fe[1]->ops.read_signal_strength = adap->fe[1]->ops.tuner_ops.get_rf_strength; } fe = dvb_attach(r820t_attach, adap->fe[0], priv->demod_i2c_adapter, &rtl2832u_r828d_config); adap->fe[0]->ops.read_signal_strength = adap->fe[0]->ops.tuner_ops.get_rf_strength; I must have had that change still active in my tree. Does that make any sense? MvH Benjamin Larsson -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index 61a4a86..6902801 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c @@ -1372,7 +1372,7 @@ static int rtl2832u_frontend_ctrl(struct dvb_frontend *fe, int onoff) goto err; /* bypass slave demod TS through master demod */ - if (fe->id == 1 && onoff) { + if (fe->id == 0 && onoff) { ret = rtl2832_enable_external_ts_if(adap->fe[1]); if (ret)