[PATCH 2/6] [DVB] DVB core update

From: LinuxTV.org CVS maintainer (hunold@convergence.de)
Date: Tue Jul 29 2003 - 04:30:30 EST


[DVB] - if there are multiple adapters, bend the tuning frequency only if the adapters differ
diff -uNrwB --new-file linux-2.6.0-test2.work/drivers/media/dvb/dvb-core/dvb_frontend.c linux-2.6.0-test2.patch/drivers/media/dvb/dvb-core/dvb_frontend.c
--- linux-2.6.0-test2.work/drivers/media/dvb/dvb-core/dvb_frontend.c 2003-07-29 09:10:18.000000000 +0200
+++ linux-2.6.0-test2.patch/drivers/media/dvb/dvb-core/dvb_frontend.c 2003-07-29 09:17:52.000000000 +0200
@@ -134,6 +134,7 @@
 {
         struct list_head *entry;
         int stepsize = this_fe->info->frequency_stepsize;
+ int this_fe_adap_num = this_fe->frontend.i2c->adapter->num;
         int frequency;
 
         if (!stepsize || recursive > 10) {
@@ -157,6 +158,9 @@
 
                 fe = list_entry (entry, struct dvb_frontend_data, list_head);
 
+ if (fe->frontend.i2c->adapter->num != this_fe_adap_num)
+ continue;
+
                 f = fe->parameters.frequency;
                 f += fe->lnb_drift;
                 f += fe->bending;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:39 EST