Commit 0463625e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: dvb_demux.h: add an enum for DMX_TYPE_* and document

kernel-doc allows documenting enums. Also, it makes clearer
about the meaning of each field on structures.

So, convert DMX_TYPE_* to an enum.

While here, get rid of the unused DMX_TYPE_PES.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 1607b8b5
...@@ -26,9 +26,16 @@ ...@@ -26,9 +26,16 @@
#include "demux.h" #include "demux.h"
#define DMX_TYPE_TS 0 /**
#define DMX_TYPE_SEC 1 * enum dvb_dmx_filter_type - type of demux feed.
#define DMX_TYPE_PES 2 *
* @DMX_TYPE_TS: feed is in TS mode.
* @DMX_TYPE_SEC: feed is in Section mode.
*/
enum dvb_dmx_filter_type {
DMX_TYPE_TS,
DMX_TYPE_SEC,
};
#define DMX_STATE_FREE 0 #define DMX_STATE_FREE 0
#define DMX_STATE_ALLOCATED 1 #define DMX_STATE_ALLOCATED 1
...@@ -52,7 +59,7 @@ struct dvb_demux_filter { ...@@ -52,7 +59,7 @@ struct dvb_demux_filter {
struct dvb_demux_feed *feed; struct dvb_demux_feed *feed;
int index; int index;
int state; int state;
int type; enum dvb_dmx_filter_type type;
u16 hw_handle; u16 hw_handle;
struct timer_list timer; struct timer_list timer;
...@@ -73,7 +80,7 @@ struct dvb_demux_feed { ...@@ -73,7 +80,7 @@ struct dvb_demux_feed {
struct dvb_demux *demux; struct dvb_demux *demux;
void *priv; void *priv;
int type; enum dvb_dmx_filter_type type;
int state; int state;
u16 pid; u16 pid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment