Usage:
*For D series (arm), replace every instance of /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO
- Get latest samyGOso from there and copy/overwrite samyGOso file (not folder) to /mnt/opt/privateer/usr/bin
- Set permissions if needed (usually not if overwritten)
Code: Select all
chmod +x /mnt/opt/privateer/usr/bin/samyGOso
- Extract attached archive and copy libSpdifMode.so to /mnt/opt/privateer/usr/libso (create folder if needed)
- Execute
Commandline can take MUTE arg if you want to mute TV's internal speakers as soon as SPDIF mode is set to DD/DTS, and to unmute when back to PCM (added this option because DD/DTS decoding generally introduces delay).
Code: Select all
samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libSpdifMode.so
Code: Select all
samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libSpdifMode.so MUTE
- If you're using libHDMIpassthru with DTS arg, lib can't detect current audio out mode since all are permanently unlocked. It results in libSpdifMode switching to AC3/DTS once without possibility to go back to PCM. In such case you can use FORCEPCM arg for lib to skip detection, use a flag file instead and switch as expected then.
Logfile is written to /dtv/SpdifMode.log
- Do not directly inject libSpdifMode as CMD, a little intermediate script is needed to prevent consecutive injections, depending on how long you press remote button. Here's sample script (D/E/F only):
Script is attached in archive (CMD_libSpdifMode), edit paths in it if needed.SpoilerShow
Code: Select all
#!/bin/sh [ $(pidof ${0##*/}) ] 2>/dev/null || exit 0 SODIR=/mnt/opt/privateer/usr/libso SAMYGOSODIR=/mnt/opt/privateer/usr/bin $SAMYGOSODIR/samyGOso -A -B -l $SODIR/libSpdifMode.so MUTE sleep 2 # to prevent consecutive injections
- H-series users have to use another script:
SpoilerShow
Code: Select all
#!/bin/sh [ -e /tmp/.${0##*/} ] && exit 0 echo OK > /tmp/.${0##*/} SODIR=/mnt/opt/privateer/usr/so SAMYGOSODIR=/mnt/opt/privateer/usr/bin echo "$SAMYGOSODIR/samyGOso -d -A -B -l $SODIR/libSpdifMode.so MUTE" | /dtv/bin/nc localhost 2023 sleep 2 # no new execution allowed before 2 seconds rm /tmp/.${0##*/}
- Copy script to /mnt/opt/privateer/usr/bin
- Set permissions
Code: Select all
chmod +x /mnt/opt/privateer/usr/bin/CMD_libSpdifMode
- and remap expected key in libRCremap.config to
Code: Select all
CMD:/mnt/opt/privateer/usr/bin/CMD_libSpdifMode
- Check libRCremap with CMD support for more infos
Code: Select all
12/4/2016
v0.1.1 - Added FORCEPCM arg on request
- Much dirty code removed (almost rewrote everything!)
1/3/2015
v0.1.0 - First public release