hal: Add missing entries for voice speaker stereo.
Add missing device entries for speaker protection for voice speaker stereo. CRs-Fixed: 2385248 Change-Id: Iab1fa73f3954d8024bcaafc83383dbcc63de8326
This commit is contained in:
parent
af9ce1a5ae
commit
ed9c45426c
|
@ -3705,6 +3705,7 @@ int platform_switch_voice_call_usecase_route_post(void *platform,
|
|||
|
||||
if ((out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2 ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_VBAT ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT) &&
|
||||
audio_extn_spkr_prot_is_enabled()) {
|
||||
|
@ -7691,6 +7692,7 @@ static bool can_enable_mbdrc_on_device(snd_device_t snd_device)
|
|||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2 ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_WSA ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_WSA) {
|
||||
ret = true;
|
||||
|
@ -7773,6 +7775,7 @@ bool platform_can_enable_spkr_prot_on_device(snd_device_t snd_device)
|
|||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2 ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_WSA ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_WSA) {
|
||||
ret = true;
|
||||
|
|
|
@ -1367,6 +1367,7 @@ static bool can_enable_mbdrc_on_device(snd_device_t snd_device)
|
|||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2 ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_WSA ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_WSA) {
|
||||
ret = true;
|
||||
|
@ -4098,6 +4099,7 @@ int platform_switch_voice_call_usecase_route_post(void *platform,
|
|||
|
||||
if ((out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2 ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_VBAT ||
|
||||
out_snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT) &&
|
||||
audio_extn_spkr_prot_is_enabled()) {
|
||||
|
@ -8707,6 +8709,7 @@ bool platform_can_enable_spkr_prot_on_device(snd_device_t snd_device)
|
|||
snd_device == SND_DEVICE_OUT_SPEAKER_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_STEREO ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_2) {
|
||||
ret = true;
|
||||
|
|
Loading…
Reference in New Issue