Closed Bug 868960 Opened 9 years ago Closed 9 years ago

[FMRadio] FM Radio volume is not updated by headset ejecting.


(Firefox OS Graveyard :: General, defect, P2)

Gonk (Firefox OS)


(Not tracked)



(Reporter: leo.bugzilla.gecko, Assigned: rlin)



(Whiteboard: c= [TD-23311])


(1 file)

BuildID revision="7cb46499e0b91ca20f6aed58d6067d7c451875b9"
gaia revision="5cbb19e4bb78a7ad879fbe4b9a841e1c35714f5c"
gecko revision="950b402b6188bb2f3ce3176e620ed5249719d720"

- Insert the HEADSET
- Open the FM 
- Play a channel
- Now, make the volune zero from side volume button
-  Remove the HEADSET
-  wait for message to diaply that "FM Radio requires a plugged in headset to recive radio signals "
-  insert the HEADSET
- wait to powen on the FM
- increase the volume 

FM volume is not updated. But, other volume is updated.

The resean is "mFMChannelIsMuted" variable in SetStreamVolumeIndex(AudioManager.cpp)
FM Volume usually set AUDIO_STREAM_MUSIC stream by volume up-down button.
But by headset ejecting/inserting, call CanPlayChanged() in FMRadio.cpp and set volume 0 as AUIOD_STREAM_FM. 
You should unify audio stream value(AUDIO_STREAM_MUSIC/AUIOD_STREAM_FM) or change "mFMChannelIsMuted" value

Anyway AudioPolicyService is set AUDIO_STREAM_MUSIC even if FM volume come from FM/MUSIC stream value.
Whiteboard: c= [TD-23311]
Attached patch patch v1Splinter Review
Hi Michael, 
Due to we has implemented the switching-off the audio path when audiochannelService was triggered to mute the FM sound, so those code can be removed and fix this bug.
Assignee: nobody → rlin
Attachment #746263 - Flags: review?(mwu)
Duplicate of this bug: 866500
Depends on: 819858
Attachment #746263 - Flags: review?(mwu) → review+
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.