Bug 89994

Summary: HSP pa 6.0, bluez 5.30 HSP conn results in 'backend-native.c: connect(): Function not implemented'
Product: PulseAudio Reporter: Luciano <luciano>
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: koesterreich, lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: output of pacmd list

Description Luciano 2015-04-12 15:13:13 UTC
Created attachment 115037 [details]
output of pacmd list

I have a Nokia BH-905i headset with both a2dp and HSP profiles. Full config attached.

I'm able to use the A2DP profile without problems, but when I try to switch to the HSP profile, I see the following in the logs:

backend-native.c: connect(): Function not implemented

I've obviously compiled with the native headset support. Not sure what the problem is. The only suspicious thing is that pacmd list-cards shows 'unknown', or sometimes 'no'.

headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown)


I've seen bug #87284, and I don't think it's related as I'm on kernel 3.18.11:

Linux chichenitza 3.18.11-gentoo #1 SMP Sun Apr 12 13:57:29 BST 2015 x86_64 Intel(R) Core(TM)2 Extreme CPU X9650 @ 3.00GHz GenuineIntel GNU/Linux

I thought it might be a missing kernel driver but I think it's all there:

luciano@chichenitza /usr/src/linux $ zcat /proc/config.gz | grep _BT_

CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=m
CONFIG_BT_HCIBTUSB=m
# CONFIG_BT_HCIUART is not set
# CONFIG_BT_HCIBCM203X is not set
# CONFIG_BT_HCIBPA10X is not set
# CONFIG_BT_HCIBFUSB is not set
# CONFIG_BT_HCIDTL1 is not set
# CONFIG_BT_HCIBT3C is not set
# CONFIG_BT_HCIBLUECARD is not set
# CONFIG_BT_HCIBTUART is not set
# CONFIG_BT_HCIVHCI is not set
# CONFIG_BT_MRVL is not set
# CONFIG_BT_ATH3K is not set

Finally, should mention I know this should work as I've used it a couple of years back when Bluez4 had native headset support. Also works with my android devices.
Comment 1 Tanu Kaskinen 2015-04-13 14:02:50 UTC
"Function not implemented" is an error from connect(), which is a libc function. The error happens when PulseAudio tries to connect to the SCO socket. I believe the bug is either in glibc or (more likely) in the kernel.
Comment 2 Luciano 2015-04-13 18:56:41 UTC
Yep, that's why I referred to bug #87284, but as I said, it's not the same regression I don't think, as I have kernel 3.18.11. Any idea on how to proceed? Should I raise this on the bluez/kernel mailing list?
Comment 3 Tanu Kaskinen 2015-04-14 10:18:29 UTC
I think the bluez mailing list would be a good place to ask for help.
Comment 4 GitLab Migration User 2018-07-30 10:26:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/427.

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.