adap->dvb_adap.mfe_shared = 1;
adap->dvb_adap.fe_ioctl_override = d->props->fe_ioctl_override;
-
- d->num_adapters_initialized++;
}
return 0;
dvb_usbv2_adapter_stream_exit(&d->adapter[i]);
}
- d->num_adapters_initialized = 0;
-
return 0;
}
cancel_delayed_work_sync(&d->rc_query_work);
/* stop streaming */
- for (i = d->num_adapters_initialized - 1; i >= 0; i--) {
- if (d->adapter[i].active_fe != -1)
+ for (i = MAX_NO_OF_ADAPTER_PER_DEVICE - 1; i >= 0; i--) {
+ if (d->adapter[i].dvb_adap.priv &&
+ d->adapter[i].active_fe != -1)
usb_urb_killv2(&d->adapter[i].stream);
}
pr_debug("%s:\n", __func__);
/* start streaming */
- for (i = 0; i < d->num_adapters_initialized; i++) {
- if (d->adapter[i].active_fe != -1)
+ for (i = 0; i < MAX_NO_OF_ADAPTER_PER_DEVICE; i++) {
+ if (d->adapter[i].dvb_adap.priv &&
+ d->adapter[i].active_fe != -1)
usb_urb_submitv2(&d->adapter[i].stream, NULL);
}