summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'audio/legacy/audio_hw.c')
-rw-r--r--audio/legacy/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c
index e54ee45..84e5b30 100644
--- a/audio/legacy/audio_hw.c
+++ b/audio/legacy/audio_hw.c
@@ -1393,7 +1393,7 @@ static int adev_set_mode(struct audio_hw_device *dev, audio_mode_t mode)
1393 ALOGE("adev_set_mode() failed to initialize voice call %d", ret); 1393 ALOGE("adev_set_mode() failed to initialize voice call %d", ret);
1394 goto out; 1394 goto out;
1395 } 1395 }
1396 } else { 1396 } else if (adev->mode == AUDIO_MODE_IN_CALL) {
1397 leave_voice_call(adev); 1397 leave_voice_call(adev);
1398 } 1398 }
1399 1399