Bug 64713 - Bluetooth: port no longer has profiles in 3.99
Summary: Bluetooth: port no longer has profiles in 3.99
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: modules (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 63665
  Show dependency treegraph
 
Reported: 2013-05-17 13:02 UTC by David Henningsson
Modified: 2013-06-04 13:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description David Henningsson 2013-05-17 13:02:15 UTC
The port -> profile connection has regressed between 3.0 and 3.99.1. As a result, I can no longer switch between "hsp" and "a2dp" in Gnome sound settings.

Here's the result of "pactl list cards" when running under 3.99.1:

Name: bluez_card.00_18_91_3A_B6_EC
Driver: module-bluetooth-device.c
Owner Module: 25
Properties:
	device.description = "bazoo stereo headset"
	device.string = "00:18:91:3A:B6:EC"
	device.api = "bluez"
	device.class = "sound"
	device.bus = "bluetooth"
	device.form_factor = "headset"
	bluez.path = "/org/bluez/956/hci0/dev_00_18_91_3A_B6_EC"
	bluez.class = "0x240404"
	bluez.name = "bazoo stereo headset"
	device.icon_name = "audio-headset-bluetooth"
	device.intended_roles = "phone"
Profiles:
	hsp: Telephony Duplex (HSP/HFP) (sinks: 1, sources: 1, priority. 20)
	a2dp: High Fidelity Playback (A2DP) (sinks: 1, sources: 0, priority. 10)
	off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: hsp
Ports:
	headset-output: Headset (priority: 0, latency offset: 0 usec, available)
	headset-input: Headset (priority: 0, latency offset: 0 usec, available)

And here's the result under 3.0: 

Name: bluez_card.00_18_91_3A_B6_EC
Driver: module-bluetooth-device.c
Owner Module: 21
Properties:
	device.description = "bazoo stereo headset"
	device.string = "00:18:91:3A:B6:EC"
	device.api = "bluez"
	device.class = "sound"
	device.bus = "bluetooth"
	device.form_factor = "headset"
	bluez.path = "/org/bluez/995/hci0/dev_00_18_91_3A_B6_EC"
	bluez.class = "0x240404"
	bluez.name = "bazoo stereo headset"
	device.icon_name = "audio-headset-bluetooth"
	device.intended_roles = "phone"
Profiles:
	hsp: Telephony Duplex (HSP/HFP) (sinks: 1, sources: 1, priority. 20)
	a2dp: High Fidelity Playback (A2DP) (sinks: 1, sources: 0, priority. 10)
	off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: hsp
Ports:
	bluetooth-output: Bluetooth Output (priority: 2000, latency offset: 0 usec)
		Part of profile(s): hsp, a2dp
	hsp-input: Bluetooth Telephony (HSP/HFP) (priority: 2000, latency offset: 0 usec)
		Part of profile(s): hsp

As you can see the "Part of profile(s)" line is missing in 3.99.1
Comment 1 Juho Hämäläinen 2013-05-22 13:09:53 UTC
(In reply to comment #0)
> The port -> profile connection has regressed between 3.0 and 3.99.1. As a
> result, I can no longer switch between "hsp" and "a2dp" in Gnome sound
> settings.

Unfortunately I don't have Gnome sound settings to test right now, but at least with pavucontrol switching between hsp and a2dp (Nokia BH-601 headset) worked ok. Both tag 3.99.1 and current upstream master.

> As you can see the "Part of profile(s)" line is missing in 3.99.1

I made a patch to get that part-of-profile -information available again. Didn't notice difference with unpatched version when changing settings through pavucontrol.

Commit 17b3cb954b179392e80b0a46d8f2ba4693aec386 'bluetooth: Merge all ports into "bluetooth-input" and "bluetooth-output"' is where profiles aren't combined with ports anymore which results in missing "Part of profile(s)" in introspection.

My desktop bluetooth adapter & bh-601 combo wasn't too reliable so I am not sure if it had really difference, but I disabled Socket service for audio. (I'm running bluez 4.101, there was discussion at pulseaudio mailing list about this bluez version and 2.99 not working without disabling the socket service as well)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.