hal: update handling voice call driving output
For device switch from USB headset to speaker or vice-versa,
it is not required to completely tear down the call and restart
on the new device.
Bug: 17573788
Change-Id: I5ccdc225e19a7036dd8c6a028f69a505c9a3634d
diff --git a/hal/voice.c b/hal/voice.c
index 988be56..669484c 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -462,6 +462,7 @@
if (usecase->type == VOICE_CALL) {
ALOGV("%s: updating device for usecase:%s", __func__,
use_case_table[usecase->id]);
+ usecase->stream.out = adev->current_call_output;
select_devices(adev, usecase->id);
}
}