Created
November 3, 2015 15:52
-
-
Save azhurb/e851f1cfdea155c6665d to your computer and use it in GitHub Desktop.
MAG245D fix audio env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: c/xpcom.common.js | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- c/xpcom.common.js (revision 5bc524d090bd28bc9691e70aea088abfabf3f015) | |
| +++ c/xpcom.common.js (revision ) | |
| @@ -1201,6 +1201,28 @@ | |
| stb.RDir('setenv timezone_conf '+this.user['default_timezone']); | |
| } | |
| + if (this.type == 'MAG245D') { | |
| + | |
| + var audio_spdif_mode = stb.RDir('getenv audio_spdif_mode').clearnl(); | |
| + _debug('audio_spdif_mode', audio_spdif_mode); | |
| + | |
| + if (audio_spdif_mode != 'BITSTEAM') { | |
| + stb.RDir('setenv audio_spdif_mode BITSTEAM'); | |
| + } | |
| + | |
| + var audio_hdmi_audio_mode = stb.RDir('getenv audio_hdmi_audio_mode').clearnl(); | |
| + _debug('audio_hdmi_audio_mode', audio_hdmi_audio_mode); | |
| + | |
| + if (audio_hdmi_audio_mode != 'PCM') { | |
| + stb.RDir('setenv audio_hdmi_audio_mode PCM'); | |
| + } | |
| + | |
| + if (audio_spdif_mode != 'BITSTEAM' || audio_hdmi_audio_mode != 'PCM') { | |
| + stb.ExecAction('reboot'); | |
| + return; | |
| + } | |
| + } | |
| + | |
| _debug('stb.GetBrightness before', stb.GetBrightness()); | |
| _debug('stb.GetContrast before', stb.GetContrast()); | |
| _debug('stb.GetSaturation before', stb.GetSaturation()); | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment