Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17577ccd authored by Dallas Delaney's avatar Dallas Delaney
Browse files

hal: Prevent sending capture active event to sthal for some usecases

Enabling speaker protection is preventing SVA detections during playback
due to an active capture stream event sent to the sthal.

SVA doesn't need to be paused for speaker protection and FM usecases. Avoid
sending active capture stream event to sthal for these usecases.

Change-Id: Ib63733cae9b6b75472cfc22671418df58537ad30
parent 6730e74d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5535,7 +5535,6 @@ bool platform_sound_trigger_usecase_needs_event(audio_usecase_t uc_id)
    case USECASE_VOICEMMODE1_CALL:
    case USECASE_VOICEMMODE2_CALL:
    case USECASE_COMPRESS_VOIP_CALL:
    case USECASE_AUDIO_RECORD_FM_VIRTUAL:
    case USECASE_INCALL_REC_UPLINK:
    case USECASE_INCALL_REC_DOWNLINK:
    case USECASE_INCALL_REC_UPLINK_AND_DOWNLINK:
@@ -5544,8 +5543,6 @@ bool platform_sound_trigger_usecase_needs_event(audio_usecase_t uc_id)
    case USECASE_INCALL_REC_UPLINK_AND_DOWNLINK_COMPRESS:
    case USECASE_INCALL_MUSIC_UPLINK:
    case USECASE_INCALL_MUSIC_UPLINK2:
    case USECASE_AUDIO_SPKR_CALIB_RX:
    case USECASE_AUDIO_SPKR_CALIB_TX:
    case USECASE_AUDIO_RECORD_VOIP:
        needs_event = true;
        break;