From c7e6a926795a207f6fc27befbfee3385fa2da691 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Mon, 14 Dec 2009 02:56:04 -0800 Subject: [PATCH] Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72). This correction in AudioPolicyManager does not directly fix the issue but a potential problem identified when working on the resolution. The problem is that audio output path is not updated immediately when a headset is unplugged if music or notifications are active. This is however not observable because: - music is paused by music app when the headset is unplugged, and correct path is re-established when music is resumed. - ringtones and notifications are playing on both headset and speaker and are still audible on speaker when the headset is unplugged even if the actual output path is not changed to speaker only. There could be an impact on applications using MUSIC stream and not reacting to Intent AudioManager.ACTION_AUDIO_BECOMING_NOISY though.