2
« kdy: 27 Duben 2012, 10:46:08 »
Pro zkompilování ovladače na Ubuntu 12.04 (jádro 3.2) je ještě potřeba upravit soubor af903x-devices.c takto:
*** af903x-devices.c.orig 2010-11-10 10:26:16.000000000 +0100
--- af903x-devices.c 2012-04-27 10:26:05.337594143 +0200
***************
*** 56,70 ****
static int af903x_frontend_attach(struct dvb_usb_adapter *adap)
{
deb_data("- Enter %s Function -\n",__FUNCTION__);
! adap->fe = af903x_attach(1);
! return adap->fe == NULL ? -ENODEV : 0;
}
static int af903x_tuner_attach(struct dvb_usb_adapter *adap)
{
deb_data("- Enter %s Function -\n",__FUNCTION__);
! tuner_attach(adap->fe);
return 0;
}
--- 56,70 ----
static int af903x_frontend_attach(struct dvb_usb_adapter *adap)
{
deb_data("- Enter %s Function -\n",__FUNCTION__);
! adap->fe_adap[0].fe = af903x_attach(1);
! return adap->fe_adap[0].fe == NULL ? -ENODEV : 0;
}
static int af903x_tuner_attach(struct dvb_usb_adapter *adap)
{
deb_data("- Enter %s Function -\n",__FUNCTION__);
! tuner_attach(adap->fe_adap[0].fe);
return 0;
}
***************
*** 198,203 ****
--- 198,205 ----
.num_adapters = 1,
.adapter = {
{
+ .num_frontends = 1,
+ .fe = {{
#if ENABLE_HW_PID
.caps = DVB_USB_ADAP_HAS_PID_FILTER | DVB_USB_ADAP_NEED_PID_FILTERING,
#else
***************
*** 219,224 ****
--- 221,227 ----
.buffersize = (188 * TS_PACKET_COUNT),
}
}
+ }}
}
},
},