From 77880a2b137486c86a9377605529536d1a1f28e7 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Fri, 17 Nov 2017 20:27:50 +0100 Subject: [PATCH] audio: Fix incall device switch handling The whole code block was no-op, since we would override (in|out)_snd_device at a later point anyways. Change-Id: Ieb2b0918c9c72f18d195d6b34b5c9768fce130b3 (cherry picked from commit f33a728b205f7656ca6211a07e3dd69c623b75ca) --- audio/audio_hw.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index cc9e622..0f8a2a6 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -1060,8 +1060,11 @@ static int select_devices(struct audio_device *adev, if (vc_usecase == NULL) { ALOGE("%s: Could not find the voice call usecase", __func__); } else { - in_snd_device = vc_usecase->in_snd_device; - out_snd_device = vc_usecase->out_snd_device; + ALOGV("%s: in call, reusing devices (rx: %s, tx: %s)", __func__, + get_snd_device_display_name(vc_usecase->out_snd_device), + get_snd_device_display_name(vc_usecase->in_snd_device)); + usecase->devices = vc_usecase->devices; + return 0; } } -- 2.20.1