added README.md

This commit is contained in:
drmocm 2021-03-08 14:29:27 +01:00
parent b025599e9f
commit acb5931ed0
2 changed files with 42 additions and 0 deletions

40
lib/README.md Normal file
View File

@ -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 -`

View File

@ -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;
}