Closed
Bug 836201
Opened 12 years ago
Closed 12 years ago
[FM Radio] Music is not playing while FM is playing in background
Categories
(Firefox OS Graveyard :: Gaia::FMRadio, defect)
Tracking
(blocking-b2g:tef+, firefox21 wontfix, firefox22 wontfix, firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
People
(Reporter: leo.bugzilla.gaia, Assigned: mchen)
References
Details
(Whiteboard: [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch][inari1run][leorun1])
Attachments
(1 file, 2 obsolete files)
1.95 KB,
patch
|
mchen
:
review+
|
Details | Diff | Splinter Review |
1. Title : FM is playing in background by pressing HOME key. In this case, when Music app is invoke and select any file to play, it is not playing.
2. Precondition : at least a music file is needed in device
3. Tester's Action : (1). Open FM Radio -> play any channel ->
(2). Press HOME key -> open MUSIC application ->
(3). Open any file to play -> it is not playing
4. Detailed Symptom (ENG.) : while FM is running in background, and MUSIC file is open, It is not playing. On pause of MUSIC, FM start playing.
5. Gaia Revision #: "7b8dea7e7ec377a2143151bbe5e9998d87f7b36d"
6. Expected : When Music is invoke, while FM is playing in background. Fm should pause and Music should start get playing. It should be vice versa.
7.Reproducibility: Y
1)Frequency Rate : 100%
8.Comparison Results :
1)Model Comparing :
9. Attached files:
1)Log :
2)Test Contents :
3)Video file :
I think there has been some adjustments to how the behavior is occurring. I'm seeing different behavior with:
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_0/rev/361d9359f4f3
Gaia 0abc95774d0bbdfe314fa588e09fc92cac3e6427
BuildID 20130130113326
Version 18.0
Unagi
see bug 834529.
Can you also list which Gecko version you are using?
v1.0.0 and master are two different branches now as well.
I would highly recommend looking at the v1.0.0 for Gecko 18 and gaia.
Comment 2•12 years ago
|
||
The use case for this is very narrow - the user is already listening to music.
This is a bug, but it should not block the 1.1 release, I think.
Whiteboard: [ux-p?]
bug still exist in latest verison,
Gaia: 6916e18d1f72936e892543cf4a104a7d457f78ad
Gecko: e4a677c13bf35253fea99e6b85df1c707038d119
Comment 4•12 years ago
|
||
Minus for now - extremely uncommon use-case with no basic applicability for users.
blocking-b2g: leo? → -
(In reply to leo.bugzilla.gaia from comment #0)
> 6. Expected : When Music is invoke, while FM is playing in background. Fm
> should pause and Music should start get playing. It should be vice versa.
This expected behavior is correct. To be a little more detailed about the intended UX:
With FM radio in the background playing audio. If the user starts the music app and starts playing music, FM radio should pause. The radio should remained paused until the user returns to the FM radio and presses play again.
This vice-versa should also be true. With Music playing in background. If the user starts listening to FM radio, the music should be stopped. The music should remained paused until the user returns to music app and presses play again.
Updated•12 years ago
|
QA Contact: jshih → whsu
Comment 6•12 years ago
|
||
Hi, Naoki-san, Casey, and all
Sorry to jump in.
As I tested this case, most of behaviors are same as Casey described.
But while I returns to the FM radio or Music App, the FM radio or Music app will play again without pressing Play button.
Do you think the behavior was reasonable?
If so, I didn't have further problem.
The following are my test environment.
* Hardware: unagi
* Firefox OS: mozilla-b2g18_v1_0_1-unagi-eng (2013-03-10-07-02-03)
* Mercurial-Information:
Gecko revision="a0eb57759a92"
Gaia revision="72a2e37d17f6"
* Git:
Gecko revision="f42cd79f6036df3f102fcdb59ff1ab6944305000"
Gaia revision="b4d644dd5ea79070479a9aa1b57e2e05a6442eee"
Thanks!
Best Regards,
William
Comment 7•12 years ago
|
||
triage: leo+ as the music will not play and user have no indication that they need to stop FM radio.
and needinfo from reporter for updated issue description.
blocking-b2g: leo? → leo+
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 8•12 years ago
|
||
It seems that bug 850594 is duplicated with this one.
https://bugzilla.mozilla.org/show_bug.cgi?id=850594#c1
adding to comment 5,
1. While playing FM, and if the user tries to play Music , there is no sound played out of the device.
2. Both FM and Music doesn't play.
3. Expected : FM should be stopped and Music has to be played out.
4. Currently, What is happening: FM gets stopped, but Music continues to play without any sound.
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to leo.bugzilla.gaia from comment #9)
> adding to comment 5,
>
> 1. While playing FM, and if the user tries to play Music , there is no sound
> played out of the device.
> 2. Both FM and Music doesn't play.
> 3. Expected : FM should be stopped and Music has to be played out.
> 4. Currently, What is happening: FM gets stopped, but Music continues to
> play without any sound.
Hi Leo,
In our implemetation now, FM is muted not stopped on point 4. May I confirm this in your own build?
Assignee | ||
Comment 11•12 years ago
|
||
The original design when audio channel paused is
a. Set level of FM Audio Stream to 0 (mute)
b. Keep AUDIO_DEVICE_OUT_FM be set in Audio HAL.
The issue is that some device models can't mix audio stream between FM (external chip) and system audio (app processor) so when FM is paused the AUDIO_DEVICE_OUT_FM should be removed too then AudioPolicyManager will take the appropriate routing path.
So in this patch we do steps as below when paused and vice versa in resumed
a. Set level of FM Audio Stream to 0 (mute)
b. Remove AUDIO_DEVICE_OUT_FM be set in Audio HAL.
Attachment #731819 -
Flags: review?(justin.lebar+bug)
Reporter | ||
Comment 12•12 years ago
|
||
Adding the Comment no. 10
Yes, you are correct. FM is getting paused not gets stopped.
After following the reproduce step, minimized the MUSIC app and open the paused FM app. FM audio started getting played out from previous paused Frequency condition.
Comment 14•12 years ago
|
||
Passing this on to :mchen as it looks like he has a patch up on this.Please reassign if needed.
Assignee: nobody → mchen
Comment 15•12 years ago
|
||
Hi Macro chen.
I will update you audio priority as regards FM device output in AudioHardware.cpp.
We will inform history of modified case as a reference.
[changed]
Headset & Speaker path have priority over FM path.
[Case]
FM Path only use headset, Ring/Notification/Camera shutter/Alarm should be output by headset/speaker.
So, You can concurrently listen to ring/notification/camera shutter/alarm during turnning on fm radio by this mofied case.
But, FM Radio <-> Music case should turn off fm radio becase of using headset only.
We are predicted to resolve FM Radio<->Music by the below case
a. Set level of FM Audio Stream to 0 (mute)
b. Remove AUDIO_DEVICE_OUT_FM be set in Audio HAL.
Assignee | ||
Comment 16•12 years ago
|
||
> We are predicted to resolve FM Radio<->Music by the below case
> a. Set level of FM Audio Stream to 0 (mute)
> b. Remove AUDIO_DEVICE_OUT_FM be set in Audio HAL.
Yes, that is what I done in the patch waiting for review.
Comment 18•12 years ago
|
||
Comment on attachment 731819 [details] [diff] [review]
Version 1
I'm sorry I took so long to get to this review. It looks good to me, although I wish the API with the audio channel was cleaner.
Attachment #731819 -
Flags: review?(justin.lebar+bug) → review+
Assignee | ||
Comment 19•12 years ago
|
||
Hi Justin,
After doing more tests, the patch will cause a issue on enabling FMRadio in the background by inserting headset and there is a Music app in foregound on playing.
The reason is that in FMRadio::Enable(),
1. the calling of .StartPlaying() will cause .CanPlayChanged(false) be callbacked then .CanPlayChanged(false) will try to set routing path back to headset only and set mAudioChannelPaused to true.
2. then calling of audioManager->SetFmRadioAudioEnabled(true) set routing path back to FM again.
3. then calling of .CanPlayChanged(false) in the end of FMRadio::Enable() is blocked by the checking of mAudioChannelPaused.
In content process it is asynchronous between .StartPlaying() & .CanPlayChanged() but it is synchronous in chrome process.
So I removed mAudioChannelPaused and replace by checking routing path in .CanPlayChanged().
Thanks.
Attachment #731819 -
Attachment is obsolete: true
Attachment #736188 -
Flags: review?(justin.lebar+bug)
Updated•12 years ago
|
Whiteboard: [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219]
Comment 20•12 years ago
|
||
Comment on attachment 736188 [details] [diff] [review]
Version 2
Thanks for the explanation!
Attachment #736188 -
Flags: review?(justin.lebar+bug) → review+
Assignee | ||
Comment 21•12 years ago
|
||
Assignee | ||
Comment 22•12 years ago
|
||
Pass the try server and add reviewer name.
Attachment #736188 -
Attachment is obsolete: true
Attachment #737503 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 23•12 years ago
|
||
Keywords: checkin-needed
Whiteboard: [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219] → [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch]
Comment 24•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → B2G C4 (2jan on)
Comment 25•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
Updated•12 years ago
|
Target Milestone: B2G C4 (2jan on) → Leo QE1 (5may)
Comment 26•12 years ago
|
||
per bug 860586 comment 6, this bug will fix bug 860586, a tef+ bug. nominating this for tef+
blocking-b2g: leo+ → tef?
Updated•12 years ago
|
Whiteboard: [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch] → [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch][inari1run]
Assignee | ||
Comment 28•12 years ago
|
||
Hi sheriff,
There is no addtional patch here and please just apply the one here into 1.0.1.
Thanks.
Comment 29•12 years ago
|
||
Hi Ryan.
Could you help to check-in this on v1.01 ?
Flags: needinfo?(ryanvm)
Updated•12 years ago
|
Keywords: checkin-needed
Comment 30•12 years ago
|
||
Updated•12 years ago
|
Whiteboard: [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch][inari1run] → [TD-8164][TD-8347][TD-8914][TD-8927][TD-8980][TD-8982][TD-8984][TD-9219][fixed-in-birch][inari1run][leorun1]
Comment 31•12 years ago
|
||
Tested with Build:
unagi-ICS.user.manifest.V1.0.1.Rel0.4.Sprint8.B-114.Gecko-ea6a890.Gaia-b750757
Tester's Action :
(1). Open FM Radio -> play any channel ->
(2). Press HOME key -> open MUSIC application ->
(3). Open any file to play -> It plays
(4). Press HOME key -> open FM RADIO application -> It continues playing in the same radio station
Status: RESOLVED → VERIFIED
Resolution: FIXED → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•