Merge "hal: Add missing entries for voice speaker stereo."
This commit is contained in:
commit
b0e053d056
|
@ -3784,6 +3784,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()) {
|
||||
|
@ -7760,6 +7761,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;
|
||||
|
@ -7842,6 +7844,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;
|
||||
|
|
|
@ -1533,6 +1533,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;
|
||||
|
@ -4530,6 +4531,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()) {
|
||||
|
@ -9275,6 +9277,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 ||
|
||||
snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_WSA ||
|
||||
|
|
Loading…
Reference in New Issue