X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FAVSwitch.py;h=b5f6b1f8abfcaadad8b54155dbacf22687f30e8e;hp=2658f9ba532c4c593de84bc060de371aa79daecb;hb=5ea78dc8d7f954f0dd39ab0bac04c7a644f102d0;hpb=b209ca0ac28a2e1ddc1f27642b0dec0f376b0ad2 diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py old mode 100644 new mode 100755 index 2658f9b..b5f6b1f --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -73,8 +73,8 @@ def InitAVSwitch(): # when YUV is not enabled, don't let the user select it if config.av.yuvenabled.value: colorformat_choices["yuv"] = _("YPbPr") - - config.av.colorformat = ConfigSelection(choices=colorformat_choices, default="rgb") +# ikseong + config.av.colorformat = ConfigSelection(choices=colorformat_choices, default="cvbs") config.av.aspectratio = ConfigSelection(choices={ "4_3_letterbox": _("4:3 Letterbox"), "4_3_panscan": _("4:3 PanScan"), @@ -155,6 +155,18 @@ def InitAVSwitch(): config.av.downmix_ac3.addNotifier(setAC3Downmix) try: + can_downmix_aac = open("/proc/stb/audio/aac_choices", "r").read()[:-1].find("downmix") != -1 + except: + can_downmix_aac = False + + SystemInfo["CanDownmixAAC"] = can_downmix_aac + if can_downmix_aac: + def setAACDownmix(configElement): + open("/proc/stb/audio/aac", "w").write(configElement.value and "downmix" or "passthrough") + config.av.downmix_aac = ConfigYesNo(default = True) + config.av.downmix_aac.addNotifier(setAACDownmix) + + try: can_osd_alpha = open("/proc/stb/video/alpha", "r") and True or False except: can_osd_alpha = False