Skip to content

Commit

Permalink
SystemInfo.py: Add HiSilicon detection
Browse files Browse the repository at this point in the history
I'm going to use this for Zgemma h9 CPU info problem (undefined) but we can use this in future for any hisilicon related thing so it's not box specific.
/proc/cpuinfo won't give us what we need for h9 instead /proc/stb/info/chipset give us hi3798mv200 which is the right info for cpu model.
  • Loading branch information
persianpros committed Jul 29, 2018
1 parent 550ba65 commit 911fb4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/python/Components/SystemInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ def hassoftcaminstalled():
SystemInfo["CanDownmixDTS"] = fileExists("/proc/stb/audio/dts_choices") and "downmix" in open("/proc/stb/audio/dts_choices", "r").read()
SystemInfo["CanDownmixAAC"] = fileExists("/proc/stb/audio/aac_choices") and "downmix" in open("/proc/stb/audio/aac_choices", "r").read()
SystemInfo["HDMIAudioSource"] = fileExists("/proc/stb/hdmi/audio_source")
SystemInfo["IsHiSilicon"] = fileExists("/proc/stb/info/chipset") and "hi" in open("/proc/stb/info/chipset", "r").read()

2 comments on commit 911fb4e

@littlesat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to avoid this one...

@littlesat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your issue can be solved differently

Please sign in to comment.