Lines 173-178
Link Here
|
173 |
// vars used in the acq slave process |
173 |
// vars used in the acq slave process |
174 |
static bool acqShouldExit; |
174 |
static bool acqShouldExit; |
175 |
static int vbiCardIndex; |
175 |
static int vbiCardIndex; |
|
|
176 |
static int vbiDvbPid; |
176 |
static int vbi_fdin; |
177 |
static int vbi_fdin; |
177 |
#ifndef USE_LIBZVBI |
178 |
#ifndef USE_LIBZVBI |
178 |
static int bufLineSize; |
179 |
static int bufLineSize; |
Lines 205-210
Link Here
|
205 |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
206 |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
206 |
DEV_TYPE_TUNER, |
207 |
DEV_TYPE_TUNER, |
207 |
#endif |
208 |
#endif |
|
|
209 |
DEV_TYPE_DVB, |
208 |
} BTDRV_DEV_TYPE; |
210 |
} BTDRV_DEV_TYPE; |
209 |
// --------------------------------------------------------------------------- |
211 |
// --------------------------------------------------------------------------- |
Lines 234-239
Link Here
|
234 |
case DEV_TYPE_VBI: |
236 |
case DEV_TYPE_VBI: |
235 |
sprintf(devName, "%s/vbi%u", pDevPath, cardIdx); |
237 |
sprintf(devName, "%s/vbi%u", pDevPath, cardIdx); |
236 |
break; |
238 |
break; |
|
|
239 |
case DEV_TYPE_DVB: |
240 |
sprintf(devName, "/dev/dvb/adapter%u/demux0", cardIdx); |
241 |
break; |
237 |
default: |
242 |
default: |
238 |
strcpy(devName, "/dev/null"); |
243 |
strcpy(devName, "/dev/null"); |
239 |
fatal1("BtDriver-GetDevicePath: illegal device type %d", devType); |
244 |
fatal1("BtDriver-GetDevicePath: illegal device type %d", devType); |
Lines 457-462
Link Here
|
457 |
#endif |
462 |
#endif |
458 |
vbiCardIndex = pVbiBuf->cardIndex; |
463 |
vbiCardIndex = pVbiBuf->cardIndex; |
|
|
464 |
vbiDvbPid = pVbiBuf->dvbPid; |
459 |
pVbiBuf->is_v4l2 = FALSE; |
465 |
pVbiBuf->is_v4l2 = FALSE; |
460 |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
466 |
#if defined(__NetBSD__) || defined(__FreeBSD__) |
Lines 534-543
Link Here
|
534 |
pZvbiCapt = vbi_capture_v4l_new(pDevName, 0, &services, 0, &pErrStr, ZVBI_TRACE); |
540 |
pZvbiCapt = vbi_capture_v4l_new(pDevName, 0, &services, 0, &pErrStr, ZVBI_TRACE); |
535 |
} |
541 |
} |
536 |
#if (VBI_VERSION_MAJOR>0) || (VBI_VERSION_MINOR>2) || (VBI_VERSION_MICRO >= 6) |
542 |
#if (VBI_VERSION_MAJOR>0) || (VBI_VERSION_MINOR>2) || (VBI_VERSION_MICRO >= 6) |
537 |
if (pZvbiCapt == NULL) |
543 |
if ((pZvbiCapt == NULL) && (vbiDvbPid!=-1)) |
538 |
{ |
544 |
{ |
|
|
545 |
char *pDvbDevName = BtDriver_GetDevicePath(DEV_TYPE_DVB, vbiCardIndex); |
539 |
services = VBI_SLICED_TELETEXT_B; |
546 |
services = VBI_SLICED_TELETEXT_B; |
540 |
pZvbiCapt = vbi_capture_dvb_new(pDevName, 0, &services, 0, &pErrStr, ZVBI_TRACE); |
547 |
pZvbiCapt = vbi_capture_dvb_new(pDvbDevName, 0, &services, 0, &pErrStr, ZVBI_TRACE); |
|
|
548 |
if (pZvbiCapt != NULL) |
549 |
{ |
550 |
vbi_capture_dvb_filter(pZvbiCapt, vbiDvbPid); |
551 |
} |
541 |
} |
552 |
} |
542 |
#endif |
553 |
#endif |
Lines 1465-1471
Link Here
|
1465 |
// hence these parameters can be ignored in Linux |
1476 |
// hence these parameters can be ignored in Linux |
1466 |
// - there isn't any need for priority adaptions, so that's not supported either |
1477 |
// - there isn't any need for priority adaptions, so that's not supported either |
1467 |
// |
1478 |
// |
1468 |
bool BtDriver_Configure( int cardIndex, int drvType, int prio, int chipType, int cardType, |
1479 |
bool BtDriver_Configure( int cardIndex, int drvType, int dvbPid, int prio, int chipType, int cardType, |
1469 |
int tunerType, int pllType, bool wdmStop ) |
1480 |
int tunerType, int pllType, bool wdmStop ) |
1470 |
{ |
1481 |
{ |
1471 |
struct timeval tv; |
1482 |
struct timeval tv; |
Lines 1476-1481
Link Here
|
1476 |
// pass the new card index to the slave via shared memory |
1487 |
// pass the new card index to the slave via shared memory |
1477 |
pVbiBuf->cardIndex = cardIndex; |
1488 |
pVbiBuf->cardIndex = cardIndex; |
|
|
1489 |
pVbiBuf->dvbPid = dvbPid; |
1478 |
if (wasEnabled) |
1490 |
if (wasEnabled) |
1479 |
{ // wait 30ms for the slave to process the request |
1491 |
{ // wait 30ms for the slave to process the request |