-
Notifications
You must be signed in to change notification settings - Fork 86
Add HFP support ? #51
Comments
So headset with HFP only profile can't work with ofono? |
Theory has it that ofono could work but then you have setup some sort of dummy modem and configure |
Merged to https://github.com/EHfive/pulseaudio-modules-bt/commits/hfp, |
Thanks, will test but I am leaving for one a week vacation tmw so I will test when I get back(headset at home) |
9109668 is not for prefer HSP, but leave HSP,HFP choosing to bluez. The concernd thing is my headset can't get connected in bluez layer without that commit. So there might be some conflicts with HSP/HFP in bluez or PA behaivor, we could add an option making module prefer HFP to solve it. |
Oh, I was too quick reading that commit, sorry. I will check my headset at home then. |
I should mention that those HFP patches on top of PA 12.2 does work for me. |
This branch works as well for me. Thank you very much for your work on this stuff! |
Does that enable wideband speech out of the box for conference calls or do I still need to setup ofono for this? |
I don't know, easy to test though. |
Thanks for this branch/patch, I can use it to get my Logitech H800 Bluetooth head set working; however, I cannot switch to a2dp_sink_sbc ("hq audio") after I apply this patch, any idea? |
Apply patch on top of master ? |
thanks for the idea, that's what I did! (running on Pulseaudio 12.2 as provided by openSUSE) |
These patches should not affect a2dp so not sure what is wrong. |
@EHfive , any chance you can add these to your patch set ? |
James has upped his patch set to PA 13: |
As @EHfive told on #51 (comment) , the patches were added to hfp branch . BTW, the patches do their work. The only issues I have found are that the A2DP profile remains unavailable when applied, and the volume of the device can only be adjusted either at the application level or with its embedded buttons. |
From my experience with my headphones, I guess the problem here is on PulseAudio - BlueZ interaction. PulseAudio backend first identifies all the profiles, and then it tries activating them in order to mark them as available. But the HFP profile identification does some kind of activation first, so, A2DP profile fails. My trick to get both A2DP and HFP profiles has been:
EDIT: There are more tricks in next page: https://wiki.archlinux.org/index.php/Bluetooth_headset#A2DP_sink_profile_is_unavailable |
@jmfernandez , are you using latest bluez(5.51)? There is a patch on top of 5.51: |
bluez 5.52 is out |
Just played som with my HFP headset and i too have problems to switch to A2DP, it just fails. |
@jmfernandez There are some fixes on top of the original HFP patches over at This stands out |
@joakim-tjernlund Yes, I'm currenly using 5.51 . I'm testing either the patch or 5.52 this evening, thanks! |
That patch seem promising, I will test it |
Any updates on this? I patched the base With just base |
Some headsets needs some fiddling, like pressing Play button once to allow switching. That said, when I upgraded to bluez-5.53/5.54 my need for pressing Play went away. |
Tried to compile https://github.com/paravoid/pulseaudio/commits/hfp-v7 under arch linux and succeeded, but if I used it I can not switch to hfp profile anymore :/ |
See also upstream PR status at https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/254 |
This is probably more important |
Yes please, I'd like to see battery level finally. |
I would not merge any of those patches. But the idea of https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/288 is great! I am reading/learning HSP/HFP/A2DP/... specs and bluez sources currently. |
There is an perl prototype daemon at https://github.com/pali/hsphfpd-prototype |
Has there been any progress? Optimally I would like to use your repository merged with https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/288 Because I can't switch my headset to HSP/HFP modeo with your repo, I created this AUR package together with hsphfpd which gives me a working headset with mic but unfortunately a worse audio quality than with your repo. |
Of course high quality A2DP is gonna be better than HFP.. But you can't really compare the two things. |
Well yeah. But with your repo, as well as with current Pulseaudio stable release I can not even use HFP, that's my problem. Sometimes it works, sometimes it shows as unavailable, sometimes it's available but when I want to select it, it automatically jumps to "off". I know, this repo is not a solution for high quality HFP, but with the merge request 288 I can't listen to music as the quality is too bad. |
With Freebuds 3 I have the same problem. I'm fine switching profiles as long as I can have one with quality audio and one with a working mic. Going to try to package it for NixOS. @SpineEyE can you switch between the two profiles? I'm also confused why this needs to be merged here and not into pulseaudio. |
Yes, using pali's hsphfpd branch I can switch between high quality audio without mic, and HSP with mic. In fact there are multiple audio profiles (HFP can't be used, but isn't useful anyway): It would preferrably be merged into Pulseaudio, but there is a discussion that pali's changeset would remove some features used by an old component that a minority of users somehow still need, i.e. the outdated HFP profile. pali commented that it would be too much work to modify his changeset and the maintainers can't do it themselves. Seeing that this repository here exists to me it seems like the Pulseaudio maintainers have problems to keep up with users' needs even though solutions exist. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Off: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Note that @pali has deleted that fork on gitlab. |
See #115 (comment) |
Over at https://git.kernel.org/pub/scm/linux/kernel/git/jejb/pulseaudio.git/log/?h=jejb-v12
there are patches for HFP support so that headset with HFP only profile will
work with PA. It would be nice if you could pull in the first 4 patches(sans mSBC)
into here so one can use such headsets with these new codes
The text was updated successfully, but these errors were encountered: