diff --git a/mythtv/libs/libmythtv/recorders/dvbchannel.cpp b/mythtv/libs/libmythtv/recorders/dvbchannel.cpp
index a21d35df3f..480384d9ef 100644
a
|
b
|
|
49 | 49 | #include "dvbcam.h" |
50 | 50 | #include "tv_rec.h" |
51 | 51 | |
| 52 | // Returned by drivers on unsupported dvbv3 ioctl calls |
| 53 | #ifndef ENOTSUPP |
| 54 | #define ENOTSUPP 524 |
| 55 | #endif |
| 56 | |
52 | 57 | static void drain_dvb_events(int fd); |
53 | 58 | static bool wait_for_backend(int fd, int timeout_ms); |
54 | 59 | static struct dvb_frontend_parameters dtvmultiplex_to_dvbparams( |
… |
… |
double DVBChannel::GetSignalStrength(bool *ok) const |
1167 | 1172 | if (ret < 0) |
1168 | 1173 | { |
1169 | 1174 | #if DVB_API_VERSION >=5 |
1170 | | if (errno == EOPNOTSUPP) |
| 1175 | if (errno == EOPNOTSUPP || errno == ENOTSUPP) |
1171 | 1176 | { |
1172 | 1177 | return GetSignalStrengthDVBv5(ok); |
1173 | 1178 | } |
… |
… |
double DVBChannel::GetSNR(bool *ok) const |
1255 | 1260 | if (ret < 0) |
1256 | 1261 | { |
1257 | 1262 | #if DVB_API_VERSION >=5 |
1258 | | if (errno == EOPNOTSUPP) |
| 1263 | if (errno == EOPNOTSUPP || errno == ENOTSUPP) |
1259 | 1264 | { |
1260 | 1265 | return GetSNRDVBv5(ok); |
1261 | 1266 | } |
… |
… |
double DVBChannel::GetBitErrorRate(bool *ok) const |
1326 | 1331 | if (ret < 0) |
1327 | 1332 | { |
1328 | 1333 | #if DVB_API_VERSION >=5 |
1329 | | if (errno == EOPNOTSUPP) |
| 1334 | if (errno == EOPNOTSUPP || errno == ENOTSUPP) |
1330 | 1335 | { |
1331 | 1336 | return GetBitErrorRateDVBv5(ok); |
1332 | 1337 | } |
… |
… |
double DVBChannel::GetUncorrectedBlockCount(bool *ok) const |
1390 | 1395 | if (ret < 0) |
1391 | 1396 | { |
1392 | 1397 | #if DVB_API_VERSION >=5 |
1393 | | if (errno == EOPNOTSUPP) |
| 1398 | if (errno == EOPNOTSUPP || errno == ENOTSUPP) |
1394 | 1399 | { |
1395 | 1400 | return GetUncorrectedBlockCountDVBv5(ok); |
1396 | 1401 | } |
… |
… |
static bool wait_for_backend(int fd, int timeout_ms) |
1515 | 1520 | |
1516 | 1521 | // This is supposed to work on all cards, post 2.6.12... |
1517 | 1522 | fe_status_t status; |
| 1523 | memset(&status, 0, sizeof(status)); |
| 1524 | |
1518 | 1525 | if (ioctl(fd, FE_READ_STATUS, &status) < 0) |
1519 | 1526 | { |
1520 | 1527 | LOG(VB_GENERAL, LOG_ERR, |