hal: Update STHAL about Voicecall usecase.

SVA detetions are happening during voice call in progress.
Because STHAL is not updated about the voice call usecase and hence SVA is
not being paused.

Fix this issue by sending callback to STHAL from AHAL.

Change-Id: I441aeec56fae5bcfbab3eed6697f08e6901024e6
This commit is contained in:
Revathi Uddaraju 2018-05-03 12:01:38 +05:30 committed by Gerrit - the friendly Code Review server
parent e3a4716245
commit 9f99ddd3e5
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ void audio_extn_sound_trigger_update_stream_status(struct audio_usecase *uc_info
ALOGW("%s:invalid event %d, for usecase %d",
__func__, event, uc_info->id);
}
} else if (uc_info->type == PCM_CAPTURE) {
} else if ((uc_info->type == PCM_CAPTURE) || (uc_info->type == VOICE_CALL)) {
if (event == ST_EVENT_STREAM_BUSY)
ev = AUDIO_EVENT_CAPTURE_STREAM_ACTIVE;
else