[linux-dvb] voltage control for DVB-T and DiSEqC switches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want to change frontend.h in a source and binary compatible way to
allow setting 5V (for active DVB-T antennas) and 12V (for DiSEqC
switches which don't need 13V or 18V to switch polarization).

Here's my proposal:

Index: linux/include/linux/dvb/frontend.h
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/include/linux/dvb/frontend.h,v
retrieving revision 1.18
diff -u -r1.18 frontend.h
--- linux/include/linux/dvb/frontend.h	2 Mar 2005 21:42:01 -0000	1.18
+++ linux/include/linux/dvb/frontend.h	22 Jul 2005 18:52:46 -0000
@@ -101,9 +101,11 @@
 
 
 typedef enum fe_sec_voltage {
-	SEC_VOLTAGE_13,
-	SEC_VOLTAGE_18,
-	SEC_VOLTAGE_OFF
+	SEC_VOLTAGE_13,		/* 13V DVB-S vertical */
+	SEC_VOLTAGE_18,		/* 18V DVB-S horizontal */
+	SEC_VOLTAGE_OFF,	/*  0V DVB-S / -T standby / passive antenna */
+	SEC_VOLTAGE_5,		/*  5V DVB-T active antenna */
+	SEC_VOLTAGE_12		/* 12V DVB-S DiSEqC */
 } fe_sec_voltage_t;
 
 
I know it is ugly, because:
- the values are not ordered correctly
- "SEC" has nothing to do with DVB-T

But I don't think it is useful to invent an ioctl which does the same
thing as FE_SET_VOLTAGE but for DVB-T only and with a different name.

DVB_API_VERSION_MINOR should probably be incremented, too.

Does anyone have a better proposal?

Regards,
Andreas




[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux