CRAS: client - Allow format conversion on input streams.

Format conversion was not being used on input streams.  The converter
was being created backwards (The input format was set as the output).
Also the converter wasn't used in the samples captured callback.

BUG=chromium-os:30911
TEST=updated test_client.  Run as follows:
cras_test_client --capture_file /tmp/asdf.wav --rate 44100 --num_channels 1
Then play back the file with:
cras_test_client --playback_file /tmp/asdf.wav --rate 44100 --num_channels 1
And listen to make sure it sounds OK.

Change-Id: I206c41bd4599c87db5e57ba5127f8f37cd3c57cc
Signed-off-by: Dylan Reid <dgreid@chromium.org>
3 files changed