Fix 2-phase stereo in the encoder