hal: support right speaker as mono for speaker protection
For mono speaker case, VI feed channel number differs with default
value of two from mixer control. Update the value by number of WSA
found from tz.
When speaker protection is enabled, device name suffix is not
appended for QRD. Inncorrect audio route is applied. Add the suffix
for speaker-protected device.
In case of SPv3 enabled, dynamic config is writren to WCD, WSA and
ADSP. In mono case, left channel is set as primary by convention.
Add compatiblity to support right speaker as mono device.
Change-Id: Ic2af261d06285d3e91aba4715d869cdfda6ff861
diff --git a/hal/msm8974/hw_info.c b/hal/msm8974/hw_info.c
index b6b11ad..1d7976b 100644
--- a/hal/msm8974/hw_info.c
+++ b/hal/msm8974/hw_info.c
@@ -251,6 +251,9 @@
SND_DEVICE_IN_AANC_HANDSET_MIC,
SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET,
SND_DEVICE_IN_VOICE_FLUENCE_DMIC_AANC,
+ SND_DEVICE_OUT_SPEAKER_PROTECTED,
+ SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED,
+ SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED,
};