This commit is contained in:
Stefan Pöschel 2023-10-06 19:18:20 +02:00 committed by GitHub
commit beae9f6982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -631,6 +631,9 @@ static int init_ca(struct dddvb *dd, int a, int f, int fd)
struct dddvb_ca *ca;
char fname[80];
if (dd->dvbca_num >= DDDVB_MAX_DVB_CA)
return -1;
ca = &dd->dvbca[dd->dvbca_num];
ca->dd = dd;
ca->anum = a;

View File

@ -798,6 +798,9 @@ static int dddvb_fe_init(struct dddvb *dd, int a, int f, int fd)
int r;
uint32_t i, ds;
if (dd->dvbfe_num >= DDDVB_MAX_DVB_FE)
return -1;
fe = &dd->dvbfe[dd->dvbfe_num];
r = snprintf(fe->name, sizeof(fe->name), "/dev/dvb/adapter%d/frontend%d", a, f);
@ -867,7 +870,7 @@ static int scan_dvbfe(struct dddvb *dd)
int a, f, fd;
char fname[80];
for (a = 0; a < 16; a++) {
for (a = 0; a < 256; a++) {
for (f = 0; f < 24; f++) {
sprintf(fname, "/dev/dvb/adapter%d/frontend%d", a, f);
fd = open(fname, O_RDONLY);