Closed Bug 1044397 Opened 10 years ago Closed 10 years ago

[dolphin]Play music with A2DP, plugin headphone. Music stop and show 'Music paused during the call'

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1038165

People

(Reporter: xinhe.yan, Unassigned)

References

Details

(Whiteboard: [sprd332337])

      No description provided.
[Blocking Requested - why for this release]:

1 Connect A2dp bluetooth headset. Make sure connect hfp and a2dp.
2 Play music.
3 Plugin headphone.

Music stoped and show 'Music paused during the call'.

Musi show 'Music paused during the call' because it receive scostatuschanged.

E/GeckoBluetooth(  112): ProcessAudioState: state 1
E/GeckoBluetooth(  112): ProcessAudioState: state 2   
E/GeckoBluetooth(  112): Notify: [A] Notify: scostatuschanged
E/GeckoBluetooth(  112): Notify: [A] Notify: scostatuschanged
E/GeckoBluetooth(  669): Notify: [A] Notify: scostatuschanged
E/GeckoBluetooth(  654): Notify: [A] Notify: scostatuschanged

Hi Shawn, why bluetooth will connect sco in this case?
in frame 26, event is headphoneschange.

#0  mozilla::dom::bluetooth::BluetoothHfpManager::ConnectSco (this=0xad864800) at ../../../gecko/dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp:1295
#1  0xb53c74b8 in mozilla::dom::bluetooth::BluetoothServiceBluedroid::ConnectSco (this=<optimized out>, aRunnable=0xab7050e0) at ../../../gecko/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp:1403
#2  0xb53bea3e in mozilla::dom::bluetooth::BluetoothAdapter::ConnectSco (this=<optimized out>, aRv=...) at ../../../gecko/dom/bluetooth/BluetoothAdapter.cpp:846
#3  0xb510b5a2 in mozilla::dom::BluetoothAdapterBinding::connectSco (cx=0xaf12b8a0, obj=..., self=<optimized out>, args=...) at BluetoothAdapterBinding.cpp:1846
#4  0xb52c0582 in mozilla::dom::GenericBindingMethod (cx=0xaf12b8a0, argc=<optimized out>, vp=<optimized out>) at ../../../gecko/dom/bindings/BindingUtils.cpp:2278
#5  0xb5c8f492 in CallJSNative (args=..., native=0xb52c04e5 <mozilla::dom::GenericBindingMethod(JSContext*, unsigned int, JS::Value*)>, cx=0xaf12b8a0) at ../../../gecko/js/src/jscntxtinlines.h:239
#6  js::Invoke (cx=cx@entry=0xaf12b8a0, args=..., construct=construct@entry=js::NO_CONSTRUCT) at ../../../gecko/js/src/vm/Interpreter.cpp:476
#7  0xb5c8bab0 in Interpret (cx=cx@entry=0xaf12b8a0, state=...) at ../../../gecko/js/src/vm/Interpreter.cpp:2614
#8  0xb5c8f26e in js::RunScript (cx=cx@entry=0xaf12b8a0, state=...) at ../../../gecko/js/src/vm/Interpreter.cpp:423
#9  0xb5c8f420 in RunScript (state=..., cx=0xaf12b8a0) at ../../../gecko/js/src/vm/Interpreter.cpp:390
#10 js::Invoke (cx=cx@entry=0xaf12b8a0, args=..., construct=construct@entry=js::NO_CONSTRUCT) at ../../../gecko/js/src/vm/Interpreter.cpp:495
#11 0xb5c8fec2 in js::Invoke (cx=cx@entry=0xaf12b8a0, thisv=..., fval=..., argc=argc@entry=1, argv=argv@entry=0xbed4e300, rval=rval@entry=...) at ../../../gecko/js/src/vm/Interpreter.cpp:532
#12 0xb5beaaea in JS::Call (cx=cx@entry=0xaf12b8a0, thisv=..., thisv@entry=..., fval=..., fval@entry=..., args=..., rval=rval@entry=...) at ../../../gecko/js/src/jsapi.cpp:4918
#13 0xb5183c0e in mozilla::dom::EventListener::HandleEvent (this=this@entry=0xad9a0020, cx=0xaf12b8a0, aThisVal=aThisVal@entry=..., event=..., aRv=...) at EventListenerBinding.cpp:44
#14 0xb53e740e in mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*> (this=this@entry=0xad9a0020, thisObjPtr=@0xbed4e474: 0xad7366c0, event=..., aRv=..., 
    aExceptionHandling=aExceptionHandling@entry=mozilla::dom::CallbackObject::eReportExceptions) at ../../dist/include/mozilla/dom/EventListenerBinding.h:53
#15 0xb53e74ae in mozilla::EventListenerManager::HandleEventSubType (this=this@entry=0xb6ae5100, aListener=<optimized out>, aListener@entry=0xb6ae511c, aDOMEvent=0xac0afdc0, aCurrentTarget=aCurrentTarget@entry=0xad7366c0)
    at ../../../gecko/dom/events/EventListenerManager.cpp:969
#16 0xb53e75e2 in mozilla::EventListenerManager::HandleEventInternal (this=0xb6ae5100, aPresContext=0x0, aEvent=0xab70eba0, aDOMEvent=aDOMEvent@entry=0xbed4e590, aCurrentTarget=aCurrentTarget@entry=0xad7366c0, 
    aEventStatus=aEventStatus@entry=0xbed4e594) at ../../../gecko/dom/events/EventListenerManager.cpp:1033
#17 0xb53efb6c in HandleEvent (aEventStatus=0xbed4e594, aCurrentTarget=0xad7366c0, aDOMEvent=0xbed4e590, aEvent=<optimized out>, aPresContext=<optimized out>, this=<optimized out>)
    at ../../dist/include/mozilla/EventListenerManager.h:329
#18 HandleEvent (aVisitor=..., this=<optimized out>, aCd=...) at ../../../gecko/dom/events/nsEventDispatcher.cpp:194
#19 nsEventTargetChainItem::HandleEvent (this=<optimized out>, aVisitor=..., aCd=...) at ../../../gecko/dom/events/nsEventDispatcher.cpp:173
#20 0xb53efe42 in nsEventTargetChainItem::HandleEventTargetChain (aChain=..., aVisitor=..., aCallback=aCallback@entry=0x0, aCd=...) at ../../../gecko/dom/events/nsEventDispatcher.cpp:282
#21 0xb53f0c7e in nsEventDispatcher::Dispatch (aTarget=<optimized out>, aPresContext=aPresContext@entry=0x0, aEvent=aEvent@entry=0xab70eba0, aDOMEvent=aDOMEvent@entry=0xac0afdc0, aEventStatus=0xbed4e634, aCallback=0x0, aTargets=0x0)
    at ../../../gecko/dom/events/nsEventDispatcher.cpp:595
#22 0xb53f0e66 in nsEventDispatcher::DispatchDOMEvent (aTarget=0xad7366c0, aEvent=aEvent@entry=0x0, aDOMEvent=aDOMEvent@entry=0xac0afdc0, aPresContext=aPresContext@entry=0x0, aEventStatus=aEventStatus@entry=0xbed4e634)
    at ../../../gecko/dom/events/nsEventDispatcher.cpp:662
#23 0xb53bd590 in nsWindowRoot::DispatchEvent (this=<optimized out>, aEvt=0xac0afdc0, aRetVal=0xbed4e64f) at ../../../gecko/dom/base/nsWindowRoot.cpp:80
#24 0xb53ef77a in nsDOMEventTargetHelper::DispatchTrustedEvent (this=this@entry=0xad7366c0, event=0xac0afdc0) at ../../../gecko/dom/events/nsDOMEventTargetHelper.cpp:268
#25 0xb53ef7b6 in nsDOMEventTargetHelper::DispatchTrustedEvent (this=0xad7366c0, aEventName=...) at ../../../gecko/dom/events/nsDOMEventTargetHelper.cpp:259
#26 0xb5441182 in mozilla::dom::system::AudioChannelManager::Notify (this=<optimized out>, aEvent=...) at ../../../../gecko/dom/system/gonk/AudioChannelManager.cpp:73
#27 0xb4f5cdda in Broadcast (aParam=..., this=0xb2e09a18) at ../dist/include/mozilla/Observer.h:67
#28 mozilla::hal::NotifySwitchChange (aEvent=...) at ../../gecko/hal/Hal.cpp:821
#29 0xb4f60f5c in mozilla::hal_impl::SwitchEventRunnable::Run (this=<optimized out>) at ../../gecko/hal/gonk/GonkSwitch.cpp:226
#30 0xb4d8323e in ProcessNextEvent (result=0xbed4e6ff, mayWait=<optimized out>, this=0xb6a02550) at ../../../gecko/xpcom/threads/nsThread.cpp:694
#31 nsThread::ProcessNextEvent (this=0xb6a02550, mayWait=<optimized out>, result=0xbed4e6ff) at ../../../gecko/xpcom/threads/nsThread.cpp:618
#32 0xb4d56bea in NS_ProcessNextEvent (thread=<optimized out>, mayWait=mayWait@entry=true) at ../../../gecko/xpcom/glue/nsThreadUtils.cpp:263
#33 0xb4eb9746 in mozilla::ipc::MessagePump::Run (this=0xb6a01e20, aDelegate=0xb6a651a0) at ../../../gecko/ipc/glue/MessagePump.cpp:136
#34 0xb4eae0be in MessageLoop::RunInternal (this=this@entry=0xb6a651a0) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:226
#35 0xb4eae170 in RunHandler (this=0xb6a651a0) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:219
#36 MessageLoop::Run (this=0xb6a651a0) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:193
#37 0xb530936a in nsBaseAppShell::Run (this=0xb6a3bee0) at ../../../gecko/widget/xpwidgets/nsBaseAppShell.cpp:164
#38 0xb58fdef6 in nsAppStartup::Run (this=0xb33e5640) at ../../../../gecko/toolkit/components/startup/nsAppStartup.cpp:276
#39 0xb58da1c4 in XREMain::XRE_mainRun (this=this@entry=0xbed4e864) at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4010
#40 0xb58db4ce in XREMain::XRE_main (this=this@entry=0xbed4e864, argc=argc@entry=1, argv=argv@entry=0xbed50a14, aAppData=aAppData@entry=0x24918 <sAppData>) at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4079
#41 0xb58db624 in XRE_main (argc=1, argv=0xbed50a14, aAppData=0x24918 <sAppData>, aFlags=<optimized out>) at ../../../gecko/toolkit/xre/nsAppRunner.cpp:4291
#42 0x0000a278 in do_main (argv=0xbed50a14, argc=1) at ../../../gecko/b2g/app/nsBrowserApp.cpp:163
#43 main (argc=<optimized out>, argv=<optimized out>) at ../../../gecko/b2g/app/nsBrowserApp.cpp:256
blocking-b2g: --- → 1.4?
Whiteboard: [sprd332337]
(In reply to Xinhe Yan from comment #1)
> [Blocking Requested - why for this release]:
> 
> 1 Connect A2dp bluetooth headset. Make sure connect hfp and a2dp.
> 2 Play music.
> 3 Plugin headphone.
> 
> Music stoped and show 'Music paused during the call'. 
 
> Hi Shawn, why bluetooth will connect sco in this case?
> in frame 26, event is headphoneschange.

See bug 1038165
This known issue and had already fixed in v2.0.
Component: Bluetooth → Gaia::Dialer
I'm not sure how much differences to cherry-pick the patch from v2.0 to v1.4. This looks like a duplicated bug.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
I suggest we can track on bug 1038165. Thanks.
blocking-b2g: 1.4? → ---
You need to log in before you can comment on or make changes to this bug.