[App] libSPDIFvolume K
Posted: Wed Feb 05, 2020 1:55 pm
Lib allows to control optical out (and bluetooth devices) 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:
Two args can be adjusted on top of script:
Also note that unlike on pre-Tizen TVs, injecting lib will affect TV speaker volume. Explanation is that Tizen only offers 10 gain steps on SPDIF, therefore volume adjustment has to be a mix of master and spdif gains to get a sufficient range. A nice side-effect is that lib also works to adjust bluetooth devices volume.
Reminder: Watchdog must be disabled in service menu for lib to work.
Logfile is written to /tmp/SPDIFvolume.log

Usage:
- Extract attached archive
- Copy 60_SPDIFvolume.init to SYSROOT/etc/init.d
- Copy libSPDIFvolume.so to SYSROOT/usr/so
- Reboot TV or start script manually:
Code: Select all
$SYSROOT/etc/init.d/60_SPDIFvolume.init start
Two args can be adjusted on top of script:
- THRESHOLD:<500 - The higher it is, the lower minimal SPDIF volume will be (kind of negative gain). Max value is 500 and basically corresponds to silence at volume=0. Default value is 400.
- STEP:10 - How much to remove to threshold on each volume step. For example if THRESHOLD=400 and STEP=10 (default value) then max spdif will be reached at 400/10=volume 40.
Also note that unlike on pre-Tizen TVs, injecting lib will affect TV speaker volume. Explanation is that Tizen only offers 10 gain steps on SPDIF, therefore volume adjustment has to be a mix of master and spdif gains to get a sufficient range. A nice side-effect is that lib also works to adjust bluetooth devices volume.
Reminder: Watchdog must be disabled in service menu for lib to work.
Logfile is written to /tmp/SPDIFvolume.log
ChangelogShow
Code: Select all
5/2/2020
v0.1.1 - First release