Closed Bug 883105 Opened 11 years ago Closed 6 years ago

[B2G][Audio] FMRadio can't hear any sound when enabled A2DP

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rlin, Unassigned)

References

Details

base on m_c gecko, master gaia
STR:
1. Pair A2DP device
2. Plug-in headset
3. Open FM, enable it ->headset can't hear any fmradio sound
Assignee: nobody → rlin
Summary: [B2G][Audio] Fm no sound when enable A2DP → [B2G][Audio] FMRado can't hear any sound when enable A2DP
Depends on: 842934
Summary: [B2G][Audio] FMRado can't hear any sound when enable A2DP → [B2G][Audio] FMRadio can't hear any sound when enabled A2DP
OS: Linux → Gonk (Firefox OS)
QA Contact: wachen
Hardware: x86_64 → ARM
1. If you first time open fm after connected to a A2DP device, you can't hear it from bt device or headset

2. If you kill the fm app, and reopen it again, you can hear it from headset

3. You can never hear FM from BT devices

Eric, Gina, is (3) the right behavior for you?
I know (1)(2) are bad behaviors
Right now, FMRadio can only be heard on wired headset.
4. If you start to hear fm from headset, you will never be able to hear the A2DP music again even after reboot
If you want to know the current connection status of A2DP, one function implemented in Bug 842948 (patch 2) is very useful.

Example usage:

BluetoothA2dpManager* a2dp = BluetoothA2dpManager::Get();
NS_ENSURE_TRUE_VOID(a2dp);

if (a2dp->IsConnected()) {
  // A2dp is connected
} else {
  // A2dp is disconnected
}
Great, I will try it. Thanks a lot.
Let others to take this :)
Assignee: rlin → nobody
Hi Michael,

May I know that routing FMRadio to A2DP headset is doable from the view of Audio HAL and A2DP_HW HAL?

Thanks.
Flags: needinfo?(mvines)
(In reply to Marco Chen [:mchen] from comment #7)
> Hi Michael,
> 
> May I know that routing FMRadio to A2DP headset is doable from the view of
> Audio HAL and A2DP_HW HAL?
> 
> Thanks.

this seems to be similar to https://bugzilla.mozilla.org/show_bug.cgi?id=946556 where clarification on the audio routing policy is being sought
Flags: needinfo?(mvines)
Hi Michael,

Bug 946556 is different to this case. This bug didn't consider in-call state and BT SCO profile.

This bug is purely related to "Does FM Radio stream can be routed to BT headset via A2DP?"
Apparently this bug relied on Gonk Audio's capability.
(In reply to Marco Chen [:mchen] (CNY leave from 1/30 ~ 2/9) from comment #9)
> Hi Michael,
> 
> Bug 946556 is different to this case. This bug didn't consider in-call state
> and BT SCO profile.
> 
> This bug is purely related to "Does FM Radio stream can be routed to BT
> headset via A2DP?"
> Apparently this bug relied on Gonk Audio's capability.

Checked on 1.3 able to hear FM audio over the a2dp headset, though it just asks for wired headset to be connected before starting the FM app
(In reply to bhargavg1 from comment #10)
> (In reply to Marco Chen [:mchen] (CNY leave from 1/30 ~ 2/9) from comment #9)
> > Hi Michael,
> > 
> > Bug 946556 is different to this case. This bug didn't consider in-call state
> > and BT SCO profile.
> > 
> > This bug is purely related to "Does FM Radio stream can be routed to BT
> > headset via A2DP?"
> > Apparently this bug relied on Gonk Audio's capability.
> 
> Checked on 1.3 able to hear FM audio over the a2dp headset, though it just
> asks for wired headset to be connected before starting the FM app

Normally connectivity chipset (Single chip) controls BT and FM. So as Audio Policy FM is not allowed when BT is ON, though we can force FM routing when BT is ON, but it leads to unexpected behavior.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.