CRAS: client - Allocate properly size buffer for format conversion.
CRAS: client - Allocate properly size buffer for format conversion.

When doing format conversion for input the buffer should be allocated
for the format that is being converted _to_.  This is the opposite of
output when the buffer is allocated for the format being converted
_from_.  Allocate a buffer for the format of the stream, the stream
format is the format that will be stored in the buffer.

BUg=chrome-os-partner:17481
TEST=plug/unplug USB headset that only supports mono streams.

Change-Id: If0f6938cf085fcdef52946cb7a29396fe4a71121
Signed-off-by: Dylan Reid <c791bfe44996c1eed9c7149a0c5f12a86d58eb85@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42316
Reviewed-by: Hsinyu Chao <8b91762bdbe27d3121b311091d7ca5125e9a8df6@chromium.org>

drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd