hal: set backend sample rate with default rate
During device switch from headphone-44.1 to headphone, afe
output sample rate for headphone still is set to 44.1Khz
due to stream output sample rate is 44.1Khz. This causes
afe sample rate mismatch with configured device.
Fix it by setting AFE at default sample rate when stream
rate mismatch with configured device, and resetting codec
config when device backend is different.
CRs-Fixed: 2206207
Change-Id: I3af8051595e721604bd7086632b6c34997c8ea65
2 files changed