Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114023
b: refs/heads/master
c: eacf8d8
h: refs/heads/master
i:
  114021: 98ae557
  114019: d28310f
  114015: ba79ebc
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 70923d7 commit 0d2b5cd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d48cb402a1ba48c4ad4a36c3c561386027318459
refs/heads/master: eacf8d8d6bc6798f6870a2cf2c159bfcde3759ac
9 changes: 9 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include "dvb_frontend.h"
#include "dvbdev.h"
#include <linux/dvb/version.h>

static int dvb_frontend_debug;
static int dvb_shutdown_timeout;
Expand Down Expand Up @@ -836,6 +837,11 @@ struct dtv_cmds_h dtv_cmds[] = {
.set = 0,
.buffer = 1,
},
[DTV_API_VERSION] = {
.name = "DTV_API_VERSION",
.cmd = DTV_API_VERSION,
.set = 0,
},
};

void dtv_property_dump(struct dtv_property *tvp)
Expand Down Expand Up @@ -1104,6 +1110,9 @@ int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp,
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;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/dvb/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ struct dvb_frontend_event {
#define DTV_FE_CAPABILITY 16
#define DTV_DELIVERY_SYSTEM 17

#define DTV_API_VERSION 35

typedef enum fe_pilot {
PILOT_ON,
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/dvb/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_*/

0 comments on commit 0d2b5cd

Please sign in to comment.