I am somewhat new to the world of electronics, but am now trying to design my first more complex PCB. I am trying to make a set of battery powered earphones that take an input from a 3.5mm audio jack and mix that with a signal generated by a microcontroller. Luckily the DAC that I use can take a mono input and do the mixing for me.
However, I am currently trying to figure out how to properly input the signal from the audio jack. For my circuit I use 3 AAA batteries in series and use their negative terminal as ground and use an LDO to get the main 3.3V. So I am thinking, that this ground would be different than that of the device that's plugged into the audio jack (phone or laptop). In my mind this would create a ground loop and introduce noise or even damage my devices. Also, since the audio signal from the audio jack would move around ground of the audio jack, if I just used the signal with my ground reference, wouldn't the signal be shifted by the differences of the grounds?
I now read up about differential amplifiers and using them as "line drivers". But online there is more talk about using them to convert single ended signals to balanced signals. I researched that and it does not seem to be what I want it to do. So I am somewhat lost now and can't find any more info on the internet or in this forum. Surely, I can't be the only person encountering this problem - so am I overthinking it? Maybe you can point me in the right direction here.
Schematic of DAC, audio jack headers and battery input:
AUXS is where the (in my mind) corrected audio signal would enter the the DAC. Disregard the Power Button in the lower left.
Schematic of power supply: VBUS is an alternative power source, when the PCB is connected to USB. That is just used for programming and debugging so also disregard this for the moment.