I installed a HiFiBerry DAC + PRO with hardware volume control on a Raspberry Pi and came up against the problem that the volume range on the on screen graphic is not well mapped to the range on the DAC so that less than half of the range is usable.
In the file /var/www/assets/js/runeui.js I came across a function
// set volume with knob
function setvol(val) {
$('#volume').val(val, false).trigger('update');
GUI.volume = val;
$('#volumemute').removeClass('btn-primary');
sendCmd('setvol ' + val);
}
I was hoping that a simple remapping of val at this point would alter the characteristic, but no change to val at this point seems to affect the way the volume is set. Where, then, is the function that reads the volume control angle and sets the hardware volume?
Arthur