09-28-2021, 09:16 PM
I'm working on a new project. I've got an old Philco tube radio. I'd like to take the audio from my Raspberry Pi 4 with a HifiBerry Amp2 and using a switch on the GPIO either output audio via the Pi's headphone jack or via the HifiBerry Amp2.
Headphone jack would be "padded down with a couple resistors" then injected into the tube amp bypassing the AM signal. There's a couple ways to do this. I know what I'm doing here. Audio plays out the speaker in the radio.
Flip the switch (GPIO pins)
Audio is routed to HifiBerry Amp2 and goes to the bookshelf speakers at 2x30 watts.
The part of I'm wondering is if there's a way to programmatically switch the output without rebooting the Raspberry Pi?
I don't want to inject the HifiBerry's speaker level output into the radio.
Thoughts?
Headphone jack would be "padded down with a couple resistors" then injected into the tube amp bypassing the AM signal. There's a couple ways to do this. I know what I'm doing here. Audio plays out the speaker in the radio.
Flip the switch (GPIO pins)
Audio is routed to HifiBerry Amp2 and goes to the bookshelf speakers at 2x30 watts.
The part of I'm wondering is if there's a way to programmatically switch the output without rebooting the Raspberry Pi?
I don't want to inject the HifiBerry's speaker level output into the radio.
Thoughts?