ASoC: msm: flush if prior and current backends rate not matching

It is found that during device switch from one backend
with one sample rate to another backend with another sample rate,
the command to QDSP6 ADM which maps audio stream session to a
particular backend would not get carried out until pending
data of audio stream session from previous backend is either
read out or flushed. This scenario occurs when application
stops providing more buffers to retrieve captured data.
Remedy is to flush upon detection of rate mismatching

Change-Id: Ia9a423315435c6c80e945d2c699c0ab509152fa6
CRs-fixed: 422205
Signed-off-by: Patrick Lai <plai@codeaurora.org>
5 files changed