ASoC: msm: fix the mmap to have proper audio buffer

Audio ports has two directions, input and output. It was hard-coded
one direction. Add checking for steam type and get proper direction.

Change-Id: I6796bd54eb592952625324107ad77c0fd4e9eed2
Signed-off-by: Fred Oh <fred@codeaurora.org>
5 files changed