Optimize channel reordering
There are some case where both the input and the output reorder channels when this could be avoided.
We should store the channel order inside the audio_format_t struct and do the reordering only from the output (or from filters).