Factorize format related code common to the capture and playback path.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
It's never a good idea to send fixes and cleanups/refactors in the same
series as that can confuse the person applying your changes.
In any case:
Acked-by: Felipe Balbi <balbi@kernel.org>
--
balbi