RE: diseqc problems ? ยป diseqc-004.patch
src/dvb/diseqc.c 2011-11-09 20:36:20.111306500 +0100 | ||
---|---|---|
67 | 67 |
if ((err = ioctl(fd, FE_SET_VOLTAGE, v))) |
68 | 68 |
return err; |
69 | 69 | |
70 |
msleep(15); |
|
70 |
msleep(30); |
|
71 | ||
71 | 72 |
while (*cmd) { |
72 | 73 |
if ((err = ioctl(fd, FE_DISEQC_SEND_MASTER_CMD, &(*cmd)->cmd))) |
73 | 74 |
return err; |
74 | 75 | |
75 | 76 |
msleep((*cmd)->wait); |
77 |
msleep(100); |
|
78 | ||
79 |
/* Do it again just to be sure. */ |
|
80 |
if ((err = ioctl(fd, FE_DISEQC_SEND_MASTER_CMD, &(*cmd)->cmd))) |
|
81 |
return err; |
|
82 | ||
83 |
msleep((*cmd)->wait); |
|
84 |
msleep(100); |
|
85 | ||
76 | 86 |
cmd++; |
77 | 87 |
} |
78 | 88 | |
79 |
msleep(15); |
|
80 | ||
81 | 89 |
if ((err = ioctl(fd, FE_DISEQC_SEND_BURST, b))) |
82 | 90 |
return err; |
83 | 91 | |
84 |
msleep(15); |
|
92 |
msleep(30); |
|
93 | ||
94 |
if ((err = ioctl(fd, FE_SET_TONE, t))) |
|
95 |
return err; |
|
96 | ||
97 |
msleep(30); |
|
98 | ||
99 |
return err; |
|
85 | 100 | |
86 |
return ioctl(fd, FE_SET_TONE, t); |
|
87 | 101 |
} |
88 | 102 | |
89 | 103 |