Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abfc97f7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] demux.h: make checkpatch.ph happy



There are lots of CodingStyle violations here. Now that we're
touching a log on this header files, adding the documentation
here, make sure that this will follow the Kernel CodingStyle.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 548e5ae0
Loading
Loading
Loading
Loading
+107 −92
Original line number Diff line number Diff line
@@ -32,9 +32,9 @@
#include <linux/time.h>
#include <linux/dvb/dmx.h>

/*--------------------------------------------------------------------------*/
/* Common definitions */
/*--------------------------------------------------------------------------*/
/*
 * Common definitions
 */

/*
 * DMX_MAX_FILTER_SIZE: Maximum length (in bytes) of a section/PES filter.
@@ -45,7 +45,8 @@
#endif

/*
 * DMX_MAX_SECFEED_SIZE: Maximum length (in bytes) of a private section feed filter.
 * DMX_MAX_SECFEED_SIZE: Maximum length (in bytes) of a private section feed
 * filter.
 */

#ifndef DMX_MAX_SECTION_SIZE
@@ -55,18 +56,30 @@
#define DMX_MAX_SECFEED_SIZE (DMX_MAX_SECTION_SIZE + 188)
#endif

/*--------------------------------------------------------------------------*/
/* TS packet reception */
/*--------------------------------------------------------------------------*/
/*
 * TS packet reception
 */

/* TS filter type for set() */

#define TS_PACKET       1   /* send TS packets (188 bytes) to callback (default) */
#define	TS_PAYLOAD_ONLY 2   /* in case TS_PACKET is set, only send the TS
			       payload (<=184 bytes per packet) to callback */
#define TS_DECODER      4   /* send stream to built-in decoder (if present) */
#define TS_DEMUX        8   /* in case TS_PACKET is set, send the TS to
			       the demux device, not to the dvr device */
#define TS_PACKET       1   /*
			     * send TS packets (188 bytes) to callback
			     * (default)
			     */

#define	TS_PAYLOAD_ONLY 2   /*
			     * in case TS_PACKET is set, only send the TS
			     * payload (<=184 bytes per packet) to callback
			     */

#define TS_DECODER      4   /*
			     * send stream to built-in decoder (if present)
			     */

#define TS_DEMUX        8   /*
			     * in case TS_PACKET is set, send the TS to
			     * the demux device, not to the dvr device
			     */

/**
 * struct dmx_ts_feed - Structure that contains a TS feed filter
@@ -96,9 +109,9 @@ struct dmx_ts_feed {
	int (*stop_filtering)(struct dmx_ts_feed *feed);
};

/*--------------------------------------------------------------------------*/
/* Section reception */
/*--------------------------------------------------------------------------*/
/*
 * Section reception
 */

/**
 * struct dmx_section_filter - Structure that describes a section filter
@@ -178,9 +191,9 @@ struct dmx_section_feed {
	int (*stop_filtering)(struct dmx_section_feed *feed);
};

/*--------------------------------------------------------------------------*/
/* Callback functions */
/*--------------------------------------------------------------------------*/
/*
 * Callback functions
 */

typedef int (*dmx_ts_cb)(const u8 *buffer1,
			 size_t buffer1_length,
@@ -229,9 +242,9 @@ struct dmx_frontend {
	enum dmx_frontend_source source;
};

/*--------------------------------------------------------------------------*/
/* MPEG-2 TS Demux */
/*--------------------------------------------------------------------------*/
/*
 * MPEG-2 TS Demux
 */

/*
 * Flags OR'ed in the capabilities field of struct dmx_demux.
@@ -255,7 +268,8 @@ struct dmx_frontend {
 *.
*/

#define DMX_FE_ENTRY(list) list_entry(list, struct dmx_frontend, connectivity_list)
#define DMX_FE_ENTRY(list) \
	list_entry(list, struct dmx_frontend, connectivity_list)

/**
 * struct dmx_demux - Structure that contains the demux capabilities and
@@ -454,7 +468,8 @@ struct dmx_demux {
	void *priv;
	int (*open)(struct dmx_demux *demux);
	int (*close)(struct dmx_demux *demux);
	int (*write) (struct dmx_demux* demux, const char __user *buf, size_t count);
	int (*write)(struct dmx_demux *demux, const char __user *buf,
		     size_t count);
	int (*allocate_ts_feed)(struct dmx_demux *demux,
				struct dmx_ts_feed **feed,
				dmx_ts_cb callback);