Reversed stereo using 3.5mm jack

The pin-out of the 3.5mm jack socket is a little unusual and, for example, differs from the RPi layout.

You can find the details here.