audio hal: fix enabling snd device with same backend on the codec twice.

Enable hearing-aid-mic and handset-mic at the same time will cause codec crash
during voice call.

Route afe-proxy-record usecase to hearing-aid-mic device when it uses
handset-mic device.

Bug: 139555903
Test: MO and MT voice call with hearing aid.

Change-Id: I2d536ff1e75d7848208fa0f6a726715f522eeb6c
Signed-off-by: juyuchen <juyuchen@google.com>
(cherry picked from commit af6a1d3e707f62462facedee54964df0a3911134)
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
1 file changed