Closed
Bug 953159
Opened 11 years ago
Closed 10 years ago
FM radio tries to play even when there is no antenna
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: vasanth, Assigned: vasanth)
Details
(Whiteboard: [CR 593148])
Attachments
(1 file, 1 obsolete file)
931 bytes,
patch
|
vasanth
:
review+
|
Details | Diff | Splinter Review |
Sometimes FM tries to play even when headset is not connected. To find whether antenna is available it checks (mHeadphoneState != SWITCH_STATE_OFF) [1]. When headset is not connected, sometimes mHeadphoneState is SWITCH_STATE_UNKNWON. So above check becomes true which is wrong [1] http://mxr.mozilla.org/mozilla-central/source/dom/fmradio/FMRadio.cpp#237
Attached patch fixes this issue. Hi Pin Zhang, I see you as the author of FMRadio.cpp. Can you please review this?
Attachment #8351481 -
Flags: review?(pzhang)
Updated•11 years ago
|
Updated•11 years ago
|
Attachment #8351481 -
Flags: review?(pzhang) → review+
Comment 2•11 years ago
|
||
Comment on attachment 8351481 [details] [diff] [review] handle-antenna-switch-state-unknown-error-in-fm.patch Review of attachment 8351481 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/fmradio/FMRadio.cpp @@ +234,5 @@ > bool > FMRadio::AntennaAvailable() const > { > + return mHasInternalAntenna ? true : (mHeadphoneState != SWITCH_STATE_OFF) && > + (mHeadphoneState != SWITCH_STATE_UNKNOWN); Nits, we usually keep two spaces indention.
Addressed Nit
Attachment #8351481 -
Attachment is obsolete: true
Attachment #8351541 -
Flags: review+
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Comment on attachment 8351541 [details] [diff] [review] handle-antenna-switch-state-unknown-error-in-fm.patch Review of attachment 8351541 [details] [diff] [review]: ----------------------------------------------------------------- r+, thanks!
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/564ec4c03762
Flags: in-testsuite?
Keywords: checkin-needed
Updated•10 years ago
|
Component: General → DOM: Device Interfaces
Product: Firefox OS → Core
https://hg.mozilla.org/mozilla-central/rev/564ec4c03762
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Flags: in-testsuite+ → in-testsuite?
Comment 7•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/17f677b7df0c
status-b2g-v1.2:
--- → ?
status-firefox27:
--- → wontfix
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Updated•10 years ago
|
Flags: in-moztrap-
Updated•10 years ago
|
status-b2g-v1.3T:
--- → fixed
status-b2g-v1.4:
--- → fixed
Comment 8•10 years ago
|
||
Test case has been added to Moztrap: https://moztrap.mozilla.org/manage/case/13743/
Flags: in-moztrap- → in-moztrap+
You need to log in
before you can comment on or make changes to this bug.
Description
•