Bug 819965 - Unable to silence or control FM radio volume. r=sicking
authorRandy Lin <rlin@mozilla.com>
Mon, 17 Dec 2012 20:46:56 +0800
changeset 116336 69dd94ceaf7e856f7cfdf8f5e74dff13b0260e9e
parent 116335 8ef4348286d57dc50673d855afc0b7ab61fc174d
child 116337 86e0432487a7c91b557448cb265a95f7db1afc75
push id24046
push useremorley@mozilla.com
push dateTue, 18 Dec 2012 09:32:10 +0000
treeherdermozilla-central@dd277d439d31 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs819965
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 819965 - Unable to silence or control FM radio volume. r=sicking
dom/system/gonk/AudioManager.cpp
--- a/dom/system/gonk/AudioManager.cpp
+++ b/dom/system/gonk/AudioManager.cpp
@@ -188,17 +188,18 @@ class HeadphoneSwitchObserver : public S
 public:
   void Notify(const SwitchEvent& aEvent) {
     InternalSetAudioRoutes(aEvent.status());
     NotifyHeadphonesStatus(aEvent.status());
   }
 };
 
 AudioManager::AudioManager() : mPhoneState(PHONE_STATE_CURRENT),
-                 mObserver(new HeadphoneSwitchObserver())
+                 mObserver(new HeadphoneSwitchObserver()),
+                 mFMChannelIsMuted(0)
 {
   RegisterSwitchObserver(SWITCH_HEADPHONES, mObserver);
 
   InternalSetAudioRoutes(GetCurrentSwitchState(SWITCH_HEADPHONES));
   NotifyHeadphonesStatus(GetCurrentSwitchState(SWITCH_HEADPHONES));
 
   nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
   if (NS_FAILED(obs->AddObserver(this, BLUETOOTH_SCO_STATUS_CHANGED, false))) {