mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
ci "extra_high" for vuplus
Origin commit data
------------------
Branch: master
Commit: 2ae3c57e0a
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2020-01-17 (Fri, 17 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1906,7 +1906,7 @@ void cCA::setCheckLiveSlot(int check)
|
|||||||
checkLiveSlot = false;
|
checkLiveSlot = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cCA::SetTSClock(u32 Speed)
|
void cCA::SetTSClock(u32 Speed, int slot)
|
||||||
{
|
{
|
||||||
/* TODO:
|
/* TODO:
|
||||||
* For now using the coolstream values from neutrino cam_menu
|
* For now using the coolstream values from neutrino cam_menu
|
||||||
@@ -1919,19 +1919,18 @@ void cCA::SetTSClock(u32 Speed)
|
|||||||
* On the other hand: or ci_clock will be set here for all ci slots ????
|
* On the other hand: or ci_clock will be set here for all ci slots ????
|
||||||
*/
|
*/
|
||||||
char buf[64];
|
char buf[64];
|
||||||
snprintf(buf, 64, "/proc/stb/tsmux/ci%d_tsclk", 0);
|
snprintf(buf, 64, "/proc/stb/tsmux/ci%d_tsclk", slot);
|
||||||
FILE *ci = fopen(buf, "wb");
|
FILE *ci = fopen(buf, "wb");
|
||||||
printf("%s -> %s to: %s\n", FILENAME, __func__, Speed > 6 * 1000000 ? "high" : "normal");
|
printf("%s -> %s to: %s\n", FILENAME, __func__, Speed > 9 * 1000000 ? "extra_high" : Speed > 6 * 1000000 ? "high" : "normal");
|
||||||
if (ci)
|
if (ci)
|
||||||
{
|
{
|
||||||
if (Speed > 6 * 1000000)
|
if (Speed > 9 * 1000000)
|
||||||
{
|
fprintf(ci, "extra_high");
|
||||||
fprintf(ci, "high");
|
else
|
||||||
}
|
if (Speed > 6 * 1000000)
|
||||||
|
fprintf(ci, "high");
|
||||||
else
|
else
|
||||||
{
|
|
||||||
fprintf(ci, "normal");
|
fprintf(ci, "normal");
|
||||||
}
|
|
||||||
fclose(ci);
|
fclose(ci);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -327,7 +327,7 @@ public:
|
|||||||
void SetInitMask(enum CA_INIT_MASK InitMask);
|
void SetInitMask(enum CA_INIT_MASK InitMask);
|
||||||
/// Sets the frequency (in Hz) of the TS stream input (only valid for CI)
|
/// Sets the frequency (in Hz) of the TS stream input (only valid for CI)
|
||||||
/// sh4 unused
|
/// sh4 unused
|
||||||
void SetTSClock(u32 Speed);
|
void SetTSClock(u32 Speed, int slot = 0);
|
||||||
/// Start the CA module
|
/// Start the CA module
|
||||||
/// sh4 unused
|
/// sh4 unused
|
||||||
bool Start(void);
|
bool Start(void);
|
||||||
|
Reference in New Issue
Block a user