[App] libSpdifMode D/E/F/H

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.
Post Reply

zoelechat
Official SamyGO Developer
Posts: 8300
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

[App] libSpdifMode D/E/F/H

Post by zoelechat » Sun Mar 01, 2015 3:16 pm

Patch allows to quickly switch Spdif mode between available ones (PCM/DD or PCM/DTS) without having to explore TV menus or use any key macro to do so. Mainly designed to be used with libRCremap with CMD support.

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

    Code: Select all

    samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libSpdifMode.so
    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 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
Usage with libRCremap with CMD support:
  • 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):
    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
    Script is attached in archive (CMD_libSpdifMode), edit paths in it if needed.
  • 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##*/}
    CMD_libSpdifMode.zip
  • 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 :)
*Changelog:

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
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.

Rednox
SamyGO Project Donor
Posts: 6
Joined: Wed Apr 06, 2016 12:59 am

Re: [App] libSpdifMode D/E/F/H

Post by Rednox » Mon Apr 11, 2016 8:35 pm

Hey,
i have your app running with the hdmipassthrough app. It is working as long i don't use the DTS option for the hdmipassthrough app. If i have the DTS option running, the Dolby Digital & DTS option are always enabled. So your app doesn't work in this specific case.
Is it possible for you to edit the app that it walks through the options PCM-DolbyDigital-DTS!

If you can share the code, i could also help!

Best Regards
Rednox

zoelechat
Official SamyGO Developer
Posts: 8300
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSpdifMode D/E/F/H

Post by zoelechat » Mon Apr 11, 2016 10:19 pm

Yeah I'm aware of the problem, but since you're the first one to report it (and even to post here :D) after more than one year, I didn't find worth fixing it! (at least not in public version...) You still can force back to PCM on TV using PCM arg of libHDMIpassthru.

Source code is ALWAYS included in my releases archives :)
I do NOT receive any PM. Please use forum.

zoelechat
Official SamyGO Developer
Posts: 8300
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSpdifMode D/E/F/H

Post by zoelechat » Tue Apr 12, 2016 8:43 pm

Here you go, new version posted :)
1ST POST wrote:
  • 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.
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”