The patch number 9072 was added via Steven Toth <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Steven Toth  <[EMAIL PROTECTED]>
S2API: Add DTV_API_VERSION command


This allows application developers to query the dvb-core API version
dynamically, helping developers understand whether certain features
will be available.

Priority: normal

Signed-off-by: Steven Toth <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/dvb-core/dvb_frontend.c |    9 +++++++++
 linux/include/linux/dvb/frontend.h              |    1 +
 linux/include/linux/dvb/version.h               |    4 ++--
 3 files changed, 12 insertions(+), 2 deletions(-)

diff -r d6452e93bb98 -r c6088a57a271 
linux/drivers/media/dvb/dvb-core/dvb_frontend.c
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Thu Sep 25 23:16:25 
2008 -0400
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Thu Sep 25 23:29:49 
2008 -0400
@@ -45,6 +45,7 @@
 #include "dvb_frontend.h"
 #include "dvbdev.h"
 #include "compat.h"
+#include <linux/dvb/version.h>
 
 static int dvb_frontend_debug;
 static int dvb_shutdown_timeout;
@@ -906,6 +907,11 @@ struct dtv_cmds_h dtv_cmds[] = {
                .set    = 0,
        },
 #endif
+       [DTV_API_VERSION] = {
+               .name   = "DTV_API_VERSION",
+               .cmd    = DTV_API_VERSION,
+               .set    = 0,
+       },
 };
 
 void dtv_property_dump(struct dtv_property *tvp)
@@ -1209,6 +1215,9 @@ int dtv_property_process_get(struct dvb_
                break;
        case DTV_TONE:
                tvp->u.data = fe->dtv_property_cache.sectone;
+               break;
+       case DTV_API_VERSION:
+               tvp->u.data = (DVB_API_VERSION << 8) | DVB_API_VERSION_MINOR;
                break;
        default:
                r = -1;
diff -r d6452e93bb98 -r c6088a57a271 linux/include/linux/dvb/frontend.h
--- a/linux/include/linux/dvb/frontend.h        Thu Sep 25 23:16:25 2008 -0400
+++ b/linux/include/linux/dvb/frontend.h        Thu Sep 25 23:29:49 2008 -0400
@@ -299,6 +299,7 @@ struct dvb_frontend_event {
 #define DTV_ISDB_LAYERC_SEGMENT_WIDTH          33
 #define DTV_ISDB_LAYERC_TIME_INTERLEAVING      34
 #endif
+#define DTV_API_VERSION                                35
 
 typedef enum fe_pilot {
        PILOT_ON,
diff -r d6452e93bb98 -r c6088a57a271 linux/include/linux/dvb/version.h
--- a/linux/include/linux/dvb/version.h Thu Sep 25 23:16:25 2008 -0400
+++ b/linux/include/linux/dvb/version.h Thu Sep 25 23:29:49 2008 -0400
@@ -23,7 +23,7 @@
 #ifndef _DVBVERSION_H_
 #define _DVBVERSION_H_
 
-#define DVB_API_VERSION 3
-#define DVB_API_VERSION_MINOR 2
+#define DVB_API_VERSION 5
+#define DVB_API_VERSION_MINOR 0
 
 #endif /*_DVBVERSION_H_*/


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/c6088a57a2714ba67a6e7c88d449d05d60053e91

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to