diff options
author | js <devnull@localhost> | 2003-02-10 10:18:16 -0200 |
---|---|---|
committer | js <devnull@localhost> | 2003-02-10 10:18:16 -0200 |
commit | 622f6e3335a0dd1a97cdaee9913c1f105f3e36fa (patch) | |
tree | 742b8730686ad6dca1ae87a06514a6eb52bb2dcf /dvb-spec/dvbapi/examples.tex | |
parent | 76715ed624559f5d635cc50f74df12a8ac2ad977 (diff) | |
download | mediapointer-dvb-s2-622f6e3335a0dd1a97cdaee9913c1f105f3e36fa.tar.gz mediapointer-dvb-s2-622f6e3335a0dd1a97cdaee9913c1f105f3e36fa.tar.bz2 |
- merged GNU FDL lincense from NEWSTRUCT branch
- updated from DVB_API_VERSION 3
- various minor fixes/additions
- bumped version number to 1.0.0-pre1 to match wth upcoming
linuxtv-dvb driver release
Diffstat (limited to 'dvb-spec/dvbapi/examples.tex')
-rw-r--r-- | dvb-spec/dvbapi/examples.tex | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/dvb-spec/dvbapi/examples.tex b/dvb-spec/dvbapi/examples.tex index 126268c5d..c9a19ba29 100644 --- a/dvb-spec/dvbapi/examples.tex +++ b/dvb-spec/dvbapi/examples.tex @@ -1,6 +1,10 @@ \chapter{Examples} In this section we would like to present some examples for using the DVB API. +Maintainer note: This section is out of date. Please refer to the sample +programs packaged with the driver distribution from +\texttt{http://linuxtv.org/}. + \section{Tuning} We will start with a generic tuning subroutine that uses the frontend and SEC, as well as the demux devices. The example is given for QPSK @@ -17,14 +21,14 @@ tuners, but can easily be adjusted for QAM. #include <time.h> #include <unistd.h> -#include <ost/dmx.h> -#include <ost/frontend.h> -#include <ost/sec.h> +#include <linux/dvb/dmx.h> +#include <linux/dvb/frontend.h> +#include <linux/dvb/sec.h> #include <sys/poll.h> -#define DMX "/dev/ost/demux" -#define FRONT "/dev/ost/frontend" -#define SEC "/dev/ost/sec" +#define DMX "/dev/dvb/adapter0/demux1" +#define FRONT "/dev/dvb/adapter0/frontend1" +#define SEC "/dev/dvb/adapter0/sec1" /* routine for checking if we have a signal and other status information*/ int FEReadStatus(int fd, fe_status_t *stat) @@ -234,12 +238,12 @@ recording. #include <time.h> #include <unistd.h> -#include <ost/dmx.h> -#include <ost/video.h> +#include <linux/dvb/dmx.h> +#include <linux/dvb/video.h> #include <sys/poll.h> -#define DVR "/dev/ost/dvr" -#define AUDIO "/dev/ost/audio" -#define VIDEO "/dev/ost/video" +#define DVR "/dev/dvb/adapter0/dvr1" +#define AUDIO "/dev/dvb/adapter0/audio1" +#define VIDEO "/dev/dvb/adapter0/video1" #define BUFFY (188*20) #define MAX_LENGTH (1024*1024*5) /* record 5MB */ |