···88888989ENUM_DEFS = \9090 $(shell perl -e 'open IN,"cat @ARGV| cpp -fpreprocessed |"; while (<IN>) { if ($$enum) {print "$$1\n" if (/\s*([A-Z]\S+)\b/); } $$enum = 0 if ($$enum && /^\}/); $$enum = 1 if(/^\s*enum\s/); }; close IN;' \9191- $(srctree)/include/uapi/linux/dvb/audio.h \9292- $(srctree)/include/uapi/linux/dvb/ca.h \9391 $(srctree)/include/uapi/linux/dvb/dmx.h \9494- $(srctree)/include/uapi/linux/dvb/frontend.h \9595- $(srctree)/include/uapi/linux/dvb/net.h \9696- $(srctree)/include/uapi/linux/dvb/video.h)9292+ $(srctree)/include/uapi/linux/dvb/frontend.h)97939894STRUCTS = \9995 $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/videodev2.h) \···247251 @( \248252 echo "<programlisting>") > $@249253 @( \254254+ for ident in $(ENUM_DEFS) ; do \255255+ entity=`echo $$ident | tr _ -` ; \256256+ r="$$r s/([^\w\-])$$ident([^\w\-])/\1\&$$entity\;\2/g;";\257257+ done; \250258 expand --tabs=8 < $< | \251259 sed $(ESCAPE) $(DVB_DOCUMENTED) | \252252- sed 's/i\.e\./&ie;/') >> $@260260+ sed 's/i\.e\./&ie;/' | \261261+ perl -ne "$$r print $$_;") >> $@253262 @( \254263 echo "</programlisting>") >> $@255264
+37-20
Documentation/DocBook/media/dvb/demux.xml
···88<title>Demux Data Types</title>991010<section id="dmx-output-t">1111-<title>dmx_output_t</title>1212-<programlisting>1313-typedef enum1414-{1515- DMX_OUT_DECODER, /⋆ Streaming directly to decoder. ⋆/1616- DMX_OUT_TAP, /⋆ Output going to a memory buffer ⋆/1717- /⋆ (to be retrieved via the read command).⋆/1818- DMX_OUT_TS_TAP, /⋆ Output multiplexed into a new TS ⋆/1919- /⋆ (to be retrieved by reading from the ⋆/2020- /⋆ logical DVR device). ⋆/2121- DMX_OUT_TSDEMUX_TAP /⋆ Like TS_TAP but retrieved from the DMX device ⋆/2222-} dmx_output_t;2323-</programlisting>2424-<para><constant>DMX_OUT_TAP</constant> delivers the stream output to the demux device on which the ioctl is2525-called.2626-</para>2727-<para><constant>DMX_OUT_TS_TAP</constant> routes output to the logical DVR device <constant>/dev/dvb/adapter?/dvr?</constant>,2828-which delivers a TS multiplexed from all filters for which <constant>DMX_OUT_TS_TAP</constant> was2929-specified.3030-</para>1111+<title>Output for the demux</title>1212+1313+<table pgwide="1" frame="none" id="dmx-output">1414+ <title>enum dmx_output</title>1515+ <tgroup cols="2">1616+ &cs-def;1717+ <thead>1818+ <row>1919+ <entry>ID</entry>2020+ <entry>Description</entry>2121+ </row>2222+ </thead>2323+ <tbody valign="top">2424+ <row>2525+ <entry align="char" id="DMX-OUT-DECODER">DMX_OUT_DECODER</entry>2626+ <entry>Streaming directly to decoder.</entry>2727+ </row><row>2828+ <entry align="char" id="DMX-OUT-TAP">DMX_OUT_TAP</entry>2929+ <entry>Output going to a memory buffer (to be retrieved via the3030+ read command). Delivers the stream output to the demux3131+ device on which the ioctl is called.</entry>3232+ </row><row>3333+ <entry align="char" id="DMX-OUT-TS-TAP">DMX_OUT_TS_TAP</entry>3434+ <entry>Output multiplexed into a new TS (to be retrieved by3535+ reading from the logical DVR device). Routes output to the3636+ logical DVR device <constant>/dev/dvb/adapter?/dvr?</constant>,3737+ which delivers a TS multiplexed from all filters for which3838+ <constant>DMX_OUT_TS_TAP</constant> was specified.</entry>3939+ </row><row>4040+ <entry align="char" id="DMX-OUT-TSDEMUX-TAP">DMX_OUT_TSDEMUX_TAP</entry>4141+ <entry>Like &DMX-OUT-TS-TAP; but retrieved from the DMX4242+ device.</entry>4343+ </row>4444+ </tbody>4545+ </tgroup>4646+</table>4747+3148</section>32493350<section id="dmx-input-t">
+3-3
include/uapi/linux/dvb/dmx.h
···32323333#define DMX_FILTER_SIZE 1634343535-typedef enum dmx_output3535+enum dmx_output3636{3737 DMX_OUT_DECODER, /* Streaming directly to decoder. */3838 DMX_OUT_TAP, /* Output going to a memory buffer */···4141 /* (to be retrieved by reading from the */4242 /* logical DVR device). */4343 DMX_OUT_TSDEMUX_TAP /* Like TS_TAP but retrieved from the DMX device */4444-} dmx_output_t;4444+};45454646+typedef enum dmx_output dmx_output_t;46474748typedef enum dmx_input4849{···139138 unsigned int base; /* output: divisor for stc to get 90 kHz clock */140139 __u64 stc; /* output: stc in 'base'*90 kHz units */141140};142142-143141144142#define DMX_START _IO('o', 41)145143#define DMX_STOP _IO('o', 42)