From acb5931ed0a8881c4b125d7c39c12fdb707993a5 Mon Sep 17 00:00:00 2001 From: drmocm Date: Mon, 8 Mar 2021 14:29:27 +0100 Subject: [PATCH] added README.md --- lib/README.md | 40 ++++++++++++++++++++++++++++++++++++++++ lib/src/dvb.c | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 lib/README.md diff --git a/lib/README.md b/lib/README.md new file mode 100644 index 0000000..13b2eed --- /dev/null +++ b/lib/README.md @@ -0,0 +1,40 @@ +# LIBDDDVB + +In order to install the libdddvb library + +https://github.com/DigitalDevices/dddvb + +you need dvben50221. + + +On an Ubuntu system this would look like this: + +`sudo apt-get install dvb-apps` + +`git clone https://github.com/DigitalDevices/internal_dddvb.git` + +`cd dddvb/lib/; make` + +`sudo make install` + +# DDZAP + +You can now use the example program ddzap for tuning. + +A typical usage example call would be: + + +`ddzap -d S2 -p v -f 10847000 -s 23000000 -c ~/dddvb/lib/config/` + +where you would use the example configuration file for a unicable LNB +given in the sources. If you leave out the `-c` option a standard universal +LNB is assumed to be connected. + +Additionally you can use ddzap to open the /dev/dvb/adaptorX/dvrY device +that corresponds to the tuner that was automatically selected by the library +and pipe it to a media player, e.g. + + +`ddzap -d S2 -p h -f 11494000 -s 22000000 -c /home/dmocm/ddzapconf/ -o|vlc -` + + diff --git a/lib/src/dvb.c b/lib/src/dvb.c index 586a808..2974d9a 100644 --- a/lib/src/dvb.c +++ b/lib/src/dvb.c @@ -750,6 +750,8 @@ int dddvb_fe_tune(struct dddvb_fe *fe, struct dddvb_params *p) memcpy(fe->n_param.param, p->param, sizeof(fe->n_param.param)); fe->n_tune = 1; pthread_mutex_unlock(&fe->mutex); + while(fe->n_tune) usleep(10000); + while(fe->tune != 2) usleep(10000); return ret; }