satip-axe/patches/minisatip8-axe.patch

108 lines
3.1 KiB
Diff

diff --git a/src/adapter.c b/src/adapter.c
index e034e3e..e1d11a5 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -878,7 +878,7 @@ int update_pids(int aid)
if (dp)
dump_pids(aid);
dp = 0;
- if (ad->pids[i].fd <= 0)
+ if (ad->pids[i].fd <= 0) {
if ((ad->pids[i].fd = ad->set_pid(ad, ad->pids[i].pid)) < 0)
{
@@ -888,6 +888,8 @@ int update_pids(int aid)
LOG0("Maximum pid filter reached, lowering the value to %d", opts.max_pids);
break;
}
+ ad->active_pids++;
+ }
ad->pids[i].flags = 1;
if (ad->pids[i].pid == 0)
ad->pat_processed = 0;
@@ -895,7 +897,6 @@ int update_pids(int aid)
ad->pids[i].cc = 255;
ad->pids[i].cc_err = 0;
ad->pids[i].dec_err = 0;
- ad->active_pids++;
}
if (ad->commit)
ad->commit(ad);
diff --git a/src/axe.c b/src/axe.c
index 52e8dad..1578a51 100644
--- a/src/axe.c
+++ b/src/axe.c
@@ -48,7 +48,7 @@
#ifndef DISABLE_LINUXDVB
-void get_signal(adapter *ad, uint32_t *status, uint32_t *ber, uint16_t *strength, uint16_t *snr);
+void get_signal(adapter *ad, int *status, int *ber, int *strength, int *snr);
int send_jess(adapter *ad, int fd, int freq, int pos, int pol, int hiband, diseqc *d);
int send_unicable(adapter *ad, int fd, int freq, int pos, int pol, int hiband, diseqc *d);
int send_diseqc(adapter *ad, int fd, int pos, int pos_change, int pol, int hiband, diseqc *d);
@@ -669,8 +669,8 @@ fe_delivery_system_t axe_delsys(int aid, int fd, fe_delivery_system_t *sys)
void axe_get_signal(adapter *ad)
{
- uint16_t strength = 0, snr = 0, tmp;
- uint32_t status = 0, ber = 0;
+ int strength = 0, snr = 0, tmp;
+ int status = 0, ber = 0;
get_signal(ad, &status, &ber, &strength, &snr);
strength = strength * 240 / 24000;
@@ -819,9 +819,11 @@ void free_axe_input(adapter *ad)
for (aid = 0; aid < 4; aid++)
{
- ad2 = get_adapter(aid);
- if (ad2)
+ ad2 = get_configured_adapter(aid);
+ if (ad2) {
ad2->axe_used &= ~(1 << ad->id);
+ LOGM("axe: free input %d : %04x", ad2->id, ad2->axe_used);
+ }
}
}
diff --git a/src/minisatip.c b/src/minisatip.c
index 0cd9b0b..c9be9c4 100644
--- a/src/minisatip.c
+++ b/src/minisatip.c
@@ -552,7 +552,7 @@ void set_options(int argc, char *argv[])
#endif
#ifdef AXE
opts.no_threads = 1;
- opts.document_root = "/usr/share/minisatip/html";
+ opts.document_root = "/usr/share/minisatip8/html";
#define AXE_OPTS "7:QW:8:A:"
#else
#define AXE_OPTS ""
diff --git a/src/minisatip.h b/src/minisatip.h
index 6512250..9cb8715 100644
--- a/src/minisatip.h
+++ b/src/minisatip.h
@@ -9,7 +9,7 @@
#define VERSION_BUILD "16"
#define CC(a, b, c) #a b #c
-#define VERSION CC(0.7., VERSION_BUILD, )
+#define VERSION CC(0.7., VERSION_BUILD, -axe209)
void set_options(int argc, char *argv[]);
diff --git a/src/stream.c b/src/stream.c
index bde2992..8443a4f 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -987,7 +987,7 @@ int process_dmx(sockets *s)
#endif
rlen = ad->rlen;
- int packet_no_sid = check_cc(ad);
+ const int packet_no_sid = 0 /* check_cc(ad) */;
if (ad->sid_cnt == 1 && ad->master_sid >= 0 && !packet_no_sid) // we have just 1 stream, do not check the pids, send everything to the destination
{