Active loudspeaker turn-on voltage via GPIO as soon as hifiberry DAC is working

I am using raspbmc and a hifiberry DAC connected to my active loudspeakers. In order to turn on my active loudspeakers, I need a turn-on voltage of 3 V. currently I am turning on the loudspeakers manually.
I would love to turn-on my active loudspeakers automatically, as soon as the hifiberry DAC is sending any sound. Theoretically it should work with the GPIO interface of the raspberry.
Probably I need a script, that somehow detects if the hifiberry DAC is working and then switch on 3V on the GPIO interface.
I am happy for any hint or help I can get.


Please sign in to leave a comment.