Instead of erroring out, just tell SDL2 we want a different format, so it will do the necessary steps (configuring the resampler) and still feed us with a format known supported by the hardware.