Ringtone not played on the speaker

Bug #1519007 reported by Víctor R. Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
bluez (Ubuntu)
Invalid
Undecided
Simon Fels
telepathy-ofono (Ubuntu)
In Progress
Undecided
Tiago Salem Herrmann

Bug Description

Test case.
- Pair with a Bluetooth speaker.
- Make a call to the device.

Expected result.
- A ringtone or wait sound is played on the speaker.

Actual result.
- Only the phone plays the ringtone.

current build number: 186
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en

Tags: bluez5 qa-silo

Related branches

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
status: New → Confirmed
Simon Fels (morphis)
tags: added: bluez5
Revision history for this message
Simon Fels (morphis) wrote :

I looked through the linked syslog and the device you connect here has atleast support for HSP and A2DP. It gets connected on HSP and A2DP.

What telepathy-ofono now does when a call comes in is the following:

It switches the profile of the available bluetooth audio card to "headset_head_unit" (which means HSP). With that the device is now prepared for HSP and A2DP is not active anymore so we can't play any audio on it anymore. HSP is only meant for voice. This wouldn't happen if the device supports A2DP only. In that case the profile of the bluetooth audio card wouldn't be switched to "headset_head_unit" but would still be "a2dp_sink" and being able to play the ringtone.

IMHO there is one thing we should fix in telepathy-ofono: We should switch to te "headset_head_unit" profile for the bluetooth audio card only when the call becomes active and stay with A2DP as long as possible (if this doesn't give a too long delay between activating the call and switch to headset_head_unit).

Marking bluez as invalid for this bug and adding telepathy-ofono for the guys to comment.

@Victor: Please retest this with a speaker which supports A2DP-only and not HSP or HFP. You can find out what each device supports by looking at its details with bluetoothctl.

Changed in bluez (Ubuntu):
assignee: nobody → Simon Fels (morphis)
status: New → Invalid
Changed in telepathy-ofono (Ubuntu):
assignee: nobody → Tiago Salem Herrmann (tiagosh)
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote : Re: [Bug 1519007] Re: Ringtone not played on the speaker

I only have this Bluetooth speaker available. I'll ask someone from the QA Team.

Revision history for this message
Simon Fels (morphis) wrote :

I reproduced this now with a A2DP-speaker. The ringtone is not played on the speaker. I looked a bit more into this and it doesn't seem to be bluez or pulseaudio's fault.

Before a call comes in and after the call is done media is played through A2DP just fine. The pulseaudio configuration looks like this:

phablet@ubuntu-phablet:~$ pactl info
Server String: /run/user/32011/pulse/native
Library Protocol Version: 30
Server Protocol Version: 30
Is Local: yes
Client Index: 26
Tile Size: 65496
User Name: phablet
Host Name: ubuntu-phablet
Server Name: pulseaudio
Server Version: 6.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: bluez_sink.00_02_72_E4_21_5C
Default Source: source.primary
Cookie: 1984:c939

We can see the bluez_sink is set as default sink. When a call comes in and the ringtone is played this looks differently

phablet@ubuntu-phablet:~$ pactl info
Server String: /run/user/32011/pulse/native
Library Protocol Version: 30
Server Protocol Version: 30
Is Local: yes
Client Index: 28
Tile Size: 65496
User Name: phablet
Host Name: ubuntu-phablet
Server Name: pulseaudio
Server Version: 6.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: sink.primary
Default Source: source.primary
Cookie: 1984:c939

Something changed the default sink back to sink.primary which is the build-in speaker of the phone. As telepathy-ofono is the component controlling the default sink currently it must be a bug there.

Simon Fels (morphis)
Changed in telepathy-ofono (Ubuntu):
status: New → In Progress
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.