Change-Id: I5277736fffcb4511e4a7adb2e3e10090dcab484c
adev->mic_mute = state;
if (adev->mode == AUDIO_MODE_IN_CALL) {
- /* TODO */
+ set_voice_session_mic_mute(adev->voice.session, state);
}
pthread_mutex_unlock(&adev->lock);
ril_set_call_volume(&session->ril, sound_type, volume);
}
+void set_voice_session_mic_mute(struct voice_session *session, bool state)
+{
+ enum _MuteCondition mute_condition = state ? TX_MUTE : TX_UNMUTE;
+
+ ril_set_mute(&session->ril, mute_condition);
+}
+
bool voice_session_uses_twomic(struct voice_session *session)
{
if (session->two_mic_disabled) {
void stop_voice_session(struct voice_session *session);
void set_voice_session_volume(struct voice_session *session, float volume);
void set_voice_session_audio_path(struct voice_session *session);
+void set_voice_session_mic_mute(struct voice_session *session, bool state);
bool voice_session_uses_twomic(struct voice_session *session);
bool voice_session_uses_wideband(struct voice_session *session);