I think you could use something like one of those small moukey stereo mixers, or other cheap in line style. Should work fine for headphones or end of the line output.
I had some concerns about whether they would have line noise due to being powered at 5V, but people seem to be getting good results.
You could buy an expensive something or other, but maybe unnecessary for your purposes.