[App] libSpdifVolume 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.

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

[App] libSpdifVolume D/E/F/H

Post by zoelechat » Thu Oct 08, 2015 3:01 pm

Lib allows to control optical out volume using RC volume keys. Works only if external out mode is set to PCM, not possible in AC3/DTS/passthrough because it... pass through! :)

Usage:
*For D series (arm), replace every instance of /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO
  • First install latest samyGOso as usual, if needed.
  • Extract attached archives and copy libSpdifVolume.so to /mnt/opt/privateer/usr/libso (create folder if needed).
  • Execute

    Code: Select all

    samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libSpdifVolume.so [THRESHOLD:x] [STEP:y]
Usable args are (optional):
  • THRESHOLD:x - Define output gain value corresponding to volume=0. If not specified, default is -20dB (THRESHOLD:-20) which is near to silence, not mute though. All depends on your amp volume.
  • STEP:y - Number of dB to increase/decrease on each volume step. If not specified, default is ?1dB (STEP:1).
Default TV gain is 0dB, maximum allowed gain is +20dB, minimum threshold is -46dB, so it's up to you to define how many volume steps you want by defining THRESHOLD and STEP (default is: from -20dB to +20dB ?1dB = 41 steps).
If external speaker is set as main (internal muted), TV won't allow to go over volume corresponding to max gain.

Current volume/gain are logged to /dtv/SpdifVolume.log

Code: Select all

[...]
[SpdifVolume] Activating SPDIF volume control with RC!
[SpdifVolume] Vol0 threshold: -20dB, Step: 1dB
[SpdifVolume] Current volume is: 23, setting gain to -7dB
[...]
[SpdifVolume] Vol: 8, Gain: -12dB
[SpdifVolume] Vol: 9, Gain: -11dB
[SpdifVolume] Vol: 10, Gain: -10dB
[SpdifVolume] Vol: 11, Gain: -9dB
[SpdifVolume] Vol: 12, Gain: -8dB
  • Autostart
    • Copy 99_93_SpdifVolume.init to /mnt/etc/init.d
    • Set permissions

      Code: Select all

      chmod +x /mnt/etc/init.d/99_93_SpdifVolume.init
    • You can change OPTIONS value on top of script, default is none (lib defaults). You can set for example:

      Code: Select all

      OPTIONS="THRESHOLD:-30 STEP:2"
*Changelog:

Code: Select all

27/2/2016
v0.1.4 - INTERNALMUTE deprecated, ext speaker selection is enough to mute internal
       - Fix for volume slider not to go uselessly over max in below case
v0.1.3 - Now allowing volume control when ext speaker is selected as main
8/10/2015
v0.1.2 - 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.