Skip to content

Commit

Permalink
[Ci] add sanity check '/proc/stb/tsmux/ci0_tsclk_choices'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima73 committed Aug 13, 2023
1 parent da1df7e commit fbceebc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/python/Screens/Ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ def InitCiConfig():
config.ci[slot].show_ci_messages = ConfigYesNo(default=True)
if SystemInfo["CI%dSupportsHighBitrates" % slot]:
highBitrateChoices = [("normal", _("normal")), ("high", _("high"))]
with open("/proc/stb/tsmux/ci%d_tsclk_choices" % slot) as fd:
choices = fd.read()
if "extra_high" in choices:
highBitrateChoices.append(("extra_high", _("extra high")))
if exists("/proc/stb/tsmux/ci%d_tsclk_choices" % slot):
with open("/proc/stb/tsmux/ci%d_tsclk_choices" % slot) as fd:
choices = fd.read()
if "extra_high" in choices:
highBitrateChoices.append(("extra_high", _("extra high")))
config.ci[slot].highBitrate = ConfigSelection(default="high", choices=highBitrateChoices)
config.ci[slot].highBitrate.slotid = slot
config.ci[slot].highBitrate.addNotifier(setCIBitrate)
Expand Down

0 comments on commit fbceebc

Please sign in to comment.