I have currently a "DF mini player" that is connected to an XH-M543 amplifier over the DAC gpios.
I have another project with A2DP that is connected to an external decoder board (see picture below) and is also connected to a separate XH-M543 and that works to. (LGR is connected)
Now my question is... Can I connect those two sources to one amplifier with only one esp32? I prefer to keep this amplifier. I could wire them together i think... Do I need a DC blocking cap and a voltage divider to do that. Or are there other, better ways to do that?
You need an analog mixer for the audio. Wiring the outputs together directly could damage them. The question of ESP32 compatibility is a different issue that I will leave to ESP32 experts.
Kind of hilarious that they labelled the amp output as an input.
I have already bought one, but it doesn't fit in my E-box. I could drill a hole... but if there is a solution without this mixer, I would like to hear from anyone?
You can get a much smaller mixer than that. A simple mixer can be a resistive junction. 3 resistors. But since that is a lossy mixer, there's usually an amp with it. You might find some gain settings with the sources and power amp, that allow headroom for the small losses.
So I could add just a few resistors in my cable.. I don't need to adjust the gain with a button.
This is what I found now on your advice...
I believe this is for a 12v application to keep arround 30ma on the line. I think I have to change the resistor value. It could be very low because I have 3.3v application. What would be a right value of the resistor?