You are not logged in.

#1 2020-12-25 15:51:43

asuki
Member
Registered: 2020-12-25
Posts: 1

bluetooth headset cannot set card profile to HSP mode.

Hello, everyone. I have a problem with the Bluetooth headset profile settings. What I want is to use my BT headset to listen to music and talking to other people.

but when I use pavucontrol or pacmd set-card-profile bluez_card.38_18_4C_F9_84_68 headset_head_unit to update profile, error occured, the profile turns to off after I select the item headset_head_unit(HSP/HFP).

I use LANG=C pulseaudio --log-time -vv to see logs, and find a error log here:

pulseaudio[75532]: connect(): Function not implemented

then I download the source code, and find the error happend in function sco_do_connect:

static int sco_do_connect(pa_bluetooth_transport *t) {
   ...
    pa_log_info("doing connect");
    err = connect(sock, (struct sockaddr *) &addr, len);
    if (err < 0 && !(errno == EAGAIN || errno == EINPROGRESS)) {
        pa_log_error("connect(): %s", pa_cstrerror(errno));
        goto fail_close;
    }
    ...
}

the error is from a connect ?! IBM says this error, ENOSYS, is about IOCTL, what a question I have never met before.

I have tried about ofono, HFP mode is working, but there has audio loopback in my headset. There was a lot of noise in the noise-canceling headphones, I can't stand it.

What can I do?

# pactl list

Card #2
	Name: bluez_card.38_18_4C_F9_84_68
	Driver: module-bluez5-device.c
	Owner Module: 25
	Properties:
		device.description = "LE_WH-1000XM3"
		device.string = "38:18:4C:F9:84:68"
		device.api = "bluez"
		device.class = "sound"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		bluez.path = "/org/bluez/hci0/dev_38_18_4C_F9_84_68"
		bluez.class = "0x240404"
		bluez.alias = "LE_WH-1000XM3"
		device.icon_name = "audio-headset-bluetooth"
		device.intended_roles = "phone"
	Profiles:
		headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 30, available: yes)
		a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: off
	Ports:
		headset-output: Headset (type: Headset, priority: 0, latency offset: 0 usec, availability unknown)
			Part of profile(s): headset_head_unit, a2dp_sink
		headset-input: Headset (type: Headset, priority: 0, latency offset: 0 usec, availability unknown)
			Part of profile(s): headset_head_unit

Offline

Board footer

Powered by FluxBB