Hello all,
I have a XiangSheng DAC-01A Tube DAC that I’m very happy with. It has a manual input selector (like a rotary style) to select between USB, optical and coax. I have my Volumio Raspberry Pi 4B connected via USB and love it. I have my TV connected via optical.
The problem is I need to get up to change inputs if I want to switch between TV and Volumio. This means I sometimes get a little lazy and just listen to Spotify through the TV instead of Volumio even for songs I have in my FLAC collection.
I was already thinking I may make a custom case that has my 7.9" Waveshare screen + Volumio + the internals of the DAC in it. I was wondering if it’s possible to do the following? (Ordered from simple to more advanced).
1 - Have the Raspberry Pi be able to change the input of the DAC programatically. I imagine the rotary control simply acts as some kind of input switch on a circuit and if that could be performed by the Raspberry Pi instead, then in theory the Raspberry Pi could issue commands to do this?
2 - If possible, are there any ways to make this ‘nice’? Including writing a Volumio plugin so there’s an input selector in the volumio interface?
3 - Getting more advanced, perhaps when Volumio is playing it automatically selects the USB input of the DAC, and then after X seconds of not playing it automatically switches back to the optical input? That way I wouldn’t need to “change” inputs. We could call this “Auto mode” and it’d be on by default, but I’d still want to manually set the input in case I wanted to listen to music while having the TV on something else (muted) e.g. having sports on in the background.
I’m very novice at electronics but it’s an area I would like to learn more about. I’m a software developer so have no issues there.