Closed
Bug 819858
Opened 12 years ago
Closed 12 years ago
Cannot get telephony channel change when calling
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)
People
(Reporter: alive, Assigned: mchen)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
mchen
:
review+
|
Details | Diff | Splinter Review |
This is follow up of bug 811222 and bug 815445. The audio-channel-changed event is expected to be got with 'telephony' when on a call. This blocks bug 810780 but I had a workaround in gaia. Anyway this should be fixed.
Comment 1•12 years ago
|
||
This should be P1 bb+ due to blocking of a P1 bb+ bug (C2). Anyone who can take this, please take this asap.
Updated•12 years ago
|
Assignee | ||
Comment 2•12 years ago
|
||
1. The root cause of original code is that audio-change-event is triggered by AudioChannelService::UnregisterType(). But new API for telephony just changed the ref count of telephony channel but not do Register/UnregisterType(). So no event will be fired. 2. This patch tried to use AudioChannelAgent to instead of new APIs so this way will trigger the Register/UnregsiterType() then event will be fired.
Attachment #690344 -
Flags: review?(amarchesini)
Comment 3•12 years ago
|
||
Comment on attachment 690344 [details] [diff] [review] v1 Review of attachment 690344 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/AudioManager.cpp @@ +304,5 @@ > > mPhoneState = aState; > + > + if (aState == PHONE_STATE_IN_CALL) { > + mPhoneAudioAgent = do_CreateInstance("@mozilla.org/audiochannelagent;1"); What about: if (aState == PHONE_STATE_IN_CALL) { if (!mPhoneAudioAgent) { mPhoneAudioAgent = do_CreateInstance("@mozilla.org/audiochannelagent;1"); MOZ_ASSERT(mPhoneAudioAgent); // Telephony doesn't be paused by any other channels. mPhoneAudioAgent->Init(AUDIO_CHANNEL_TELEPHONY, nullptr); } // Telephony can always play. bool canPlay; mPhoneAudioAgent->StartPlaying(&canPlay); } else if (mPhoneAudioAgent) { ... }
Attachment #690344 -
Flags: review?(amarchesini) → review+
Updated•12 years ago
|
blocking-basecamp: ? → +
Updated•12 years ago
|
Assignee: nobody → mchen
Assignee | ||
Comment 4•12 years ago
|
||
Add reviewer and blocking-basecamp
Attachment #690344 -
Attachment is obsolete: true
Attachment #691620 -
Flags: review+
Assignee | ||
Comment 5•12 years ago
|
||
Following comment.
Attachment #691620 -
Attachment is obsolete: true
Attachment #691624 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Attachment #691624 -
Attachment is patch: true
Assignee | ||
Comment 6•12 years ago
|
||
Removing blanking.
Attachment #691624 -
Attachment is obsolete: true
Attachment #691628 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7a2c761e196c
Keywords: checkin-needed
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7a2c761e196c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/3bdca8193789 https://hg.mozilla.org/releases/mozilla-b2g18/rev/c645fa53e941
status-b2g18:
--- → fixed
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Target Milestone: --- → B2G C3 (12dec-1jan)
You need to log in
before you can comment on or make changes to this bug.
Description
•