dvbapi: Check at least 8 adapters when detecting api.

Allow dvbapi to detect API version even if /dev/dvb/adapter0 is unavailable.

Original comments from the patch author:

> I have removed one (dual tuner) adapter from my pc. Since I use fixed
> adapter numbers, I ended up with:
> /dev/dvb/adapter2
> /dev/dvb/adapter3
>
> Then dvbapi stopped working because when detecting the api, it was only
> search for /dev/dvb/adapter0
>
> This patch make the detection search at least the presence of 8 adapters.
> (tested and working)

From: Luis Alves <ljalvs@gmail.com>

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8993 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Revert "dvbapi: Check at least 8 adapters when detecting api."

This reverts commit r8993 because it breaks stapi. For more information
ticket see #3489.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8994 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvbapi: Check at least 8 adapters when detecting api.

Allow dvbapi to detect API version even if /dev/dvb/adapter0 is unavailable.

Original comments from the patch author:

> I have removed one (dual tuner) adapter from my pc. Since I use fixed
> adapter numbers, I ended up with:
> /dev/dvb/adapter2
> /dev/dvb/adapter3
>
> Then dvbapi stopped working because when detecting the api, it was only
> search for /dev/dvb/adapter0
>
> This patch make the detection search at least the presence of 8 adapters.
> (tested and working)

From: Luis Alves <ljalvs@gmail.com>

This contains fix for ticket #3489.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8995 4b0bc96b-bc66-0410-9d44-ebda105a78c1
redesign smartreader protocol

Restructured the smartreader protocol

For old V1 no changes. For new Triple ok now on ubuntu 12.04
The V2 still a question mark ? need reports

List smargo adapted does not display the first TripleP1 as an SRv2 as well

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8996 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Tryfix DM7025 pllreader clockspeed logging


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8997 4b0bc96b-bc66-0410-9d44-ebda105a78c1
small patch at final reader start

By me now on ubuntu 12.04 dual core pc 3.333 a call this a mediam speed pc
all ok with card detection
On fast pc 6 cores 3.333 12 threads
all ok
On dm8000 it only work's ok whitout card detection detections on none. (just like the smargo protocol same prob over here.

For slow devices I will need read call back to redesigned completely the current card detection procedure is only ok on medium to fast  64 bits pc's not on slower and 32 bits devices.

For v1 we just fall back to old callback procedure still ok

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8998 4b0bc96b-bc66-0410-9d44-ebda105a78c1
I updated on wrong version before

Sorry Sorry

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8999 4b0bc96b-bc66-0410-9d44-ebda105a78c1
writelock's reader based not module based anymore

Now the write lock's for reader init and settings are module based, not static anymore and so blocking the read to other smartreaders as well during init fase.
The cd card detect does not work for tripple (it did not on slow devices anyway with the new way). Working on a solution trough read call back for triple ass well.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9000 4b0bc96b-bc66-0410-9d44-ebda105a78c1
this is better with triple

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9001 4b0bc96b-bc66-0410-9d44-ebda105a78c1
not releasing usb bus to kerneldriver up on close

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9002 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix http refresh in readers and cacheex.

This fixes ticket #3457. Patch by AbrahaM.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9003 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Write init lock initiated by async.c

Since the writelock is now reader based and not module based, cs writelock during card init done out off ifd_async.c. Write unlocked after full card init done .
cd on triple only ok for one card still a problem which i could not solve yet.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9004 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Fix for dvbapi emm bufferoverflow


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9005 4b0bc96b-bc66-0410-9d44-ebda105a78c1