Setting default volume on pHAT DAC at kernel initialization


#1

Hi!

I have a Raspberry Pi 3 with pHAT DAC wired into my car’s radio harness directly, with no volume controls between the DAC and the speakers. When the kernel initializes the hifiberry-dac module, things are noisy in the cabin for a good bit until userland comes up enough to allow me to control the volume with an amixer(1) command!

Is there a way to specify a sane, lower volume when the driver module is loaded? 25% is much kinder to my amp and speakers than the default 100%. :)

Thanks pals! <3