From f14212783be7379e089acb04f30a448adb62217e Mon Sep 17 00:00:00 2001 From: BPanther Date: Sat, 18 Jan 2020 00:00:23 +0100 Subject: [PATCH] vuplus: relevant pids routing --- common/ca_ci.cpp | 13 +++++++++++++ include/ca_ci.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/common/ca_ci.cpp b/common/ca_ci.cpp index b93a91a..8c4357e 100644 --- a/common/ca_ci.cpp +++ b/common/ca_ci.cpp @@ -1948,4 +1948,17 @@ void cCA::SetCIDelay(int Delay) fclose(ci); } } + +void cCA::SetCIRelevantPidsRouting(bool RPR, int slot) +{ + char buf[64]; + snprintf(buf, 64, "/proc/stb/tsmux/ci%d_relevant_pids_routing", slot); + FILE *ci = fopen(buf, "wb"); + printf("%s -> %s to: %b\n", FILENAME, __func__, RPR); + if (ci) + { + fprintf(ci, "%i", RPR == true ? "yes" : "no"); + fclose(ci); + } +} #endif diff --git a/include/ca_ci.h b/include/ca_ci.h index 0f26d99..5bb9b51 100644 --- a/include/ca_ci.h +++ b/include/ca_ci.h @@ -332,6 +332,8 @@ public: #if BOXMODEL_VUPLUS /// dvb wait delay for ci response void SetCIDelay(int Delay); + /// relevant pids routing + void SetCIRelevantPidsRouting(bool RPR, int slot = 0); #endif /// Start the CA module