Bug 819965 - Unable to silence or control FM radio volume. r=sicking, a=blocking-basecamp
authorRandy Lin <rlin@mozilla.com>
Mon, 17 Dec 2012 20:46:56 +0800
changeset 123059 7c2364d6f803d0ed663a1ffd8d655d0668732c6b
parent 123058 8e0337f05bbf6fcea2bebc956203f1001b66d25c
child 123060 c3213cfcb816ddef600e25d64ea6e2efd1d368b1
push id273
push userlsblakk@mozilla.com
push dateThu, 14 Feb 2013 23:19:38 +0000
treeherdermozilla-release@c5e807a3f8b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking, blocking-basecamp
bugs819965
milestone19.0a2
Bug 819965 - Unable to silence or control FM radio volume. r=sicking, a=blocking-basecamp
dom/system/gonk/AudioManager.cpp
--- a/dom/system/gonk/AudioManager.cpp
+++ b/dom/system/gonk/AudioManager.cpp
@@ -186,17 +186,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))) {