diff --git a/mythtv/libs/libmythtv/cardutil.cpp b/mythtv/libs/libmythtv/cardutil.cpp
index 7acc8ca..ffda264 100644
a
|
b
|
|
47 | 47 | #define LOC_WARN QString("CardUtil, Warning: ") |
48 | 48 | #define LOC_ERR QString("CardUtil, Error: ") |
49 | 49 | |
| 50 | /// This is a hack for the problem tracked here: |
| 51 | /// https://bugs.launchpad.net/mythtv/+bug/439163/ |
| 52 | /// http://www.kernellabs.com/blog/?p=1568 |
| 53 | /// Which will probably be fixed upstream by August 2011, |
| 54 | /// so the hack should remain until August 2013 |
| 55 | #define HVR1300_HACK |
| 56 | |
50 | 57 | QString CardUtil::GetScanableCardTypes(void) |
51 | 58 | { |
52 | 59 | QString cardTypes = ""; |
… |
… |
QString CardUtil::ProbeDVBType(const QString &device) |
357 | 364 | if (err < 0) |
358 | 365 | { |
359 | 366 | close(fd_frontend); |
| 367 | #ifdef HVR1300_HACK |
| 368 | usleep(100 * 1000); |
| 369 | #endif |
360 | 370 | LOG(VB_GENERAL, LOG_ERR, "FE_GET_INFO ioctl failed (" + dvbdev + ")."); |
361 | 371 | return ret; |
362 | 372 | } |
363 | 373 | close(fd_frontend); |
| 374 | #ifdef HVR1300_HACK |
| 375 | usleep(100 * 1000); |
| 376 | #endif |
364 | 377 | |
365 | 378 | DTVTunerType type(info.type); |
366 | 379 | #if HAVE_FE_CAN_2G_MODULATION |
… |
… |
QString CardUtil::ProbeDVBFrontendName(const QString &device) |
394 | 407 | if (err < 0) |
395 | 408 | { |
396 | 409 | close(fd_frontend); |
| 410 | #ifdef HVR1300_HACK |
| 411 | usleep(100 * 1000); |
| 412 | #endif |
397 | 413 | return "ERROR_PROBE"; |
398 | 414 | } |
399 | 415 | |
400 | 416 | ret = info.name; |
401 | 417 | |
402 | 418 | close(fd_frontend); |
| 419 | #ifdef HVR1300_HACK |
| 420 | usleep(100 * 1000); |
| 421 | #endif |
403 | 422 | #endif // USING_DVB |
404 | 423 | |
405 | 424 | return ret; |