summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstenkinevgeniy <stenkinevgeniy@gmail.com>2018-05-30 15:43:14 +0000
committerstenkinevgeniy <stenkinevgeniy@gmail.com>2018-05-30 15:43:45 +0000
commit435ef7755b6d6e7eedd4682604948d76afa93057 (patch)
tree0bff2892889549ae7dc52448ae0dedf0752501b8
parent7c6d7701648f22f5ba634483015328490c6ed245 (diff)
downloadandroid_hardware_samsung-435ef7755b6d6e7eedd4682604948d76afa93057.tar.gz
android_hardware_samsung-435ef7755b6d6e7eedd4682604948d76afa93057.tar.bz2
android_hardware_samsung-435ef7755b6d6e7eedd4682604948d76afa93057.zip
Revert "audio: Fix incall device switch handling"
This commit cause bug - no sound after end voice call when using speaker. Sound come back after audioflinger send standby and hal reenable speaker for new stream (usecase). Reason - hal need reenable speaker (or other devices) for other streams (usecases). This reverts commit f33a728b205f7656ca6211a07e3dd69c623b75ca. Change-Id: Icde4e83ab824008e931b681cdbb6e11d6a2a7aa5
-rw-r--r--audio/audio_hw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 4398d09..e179ca1 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1075,11 +1075,8 @@ static int select_devices(struct audio_device *adev,
if (vc_usecase == NULL) {
ALOGE("%s: Could not find the voice call usecase", __func__);
} else {
- 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;
+ in_snd_device = vc_usecase->in_snd_device;
+ out_snd_device = vc_usecase->out_snd_device;
}
}