Re: Problem with HSP/HFP profiles with bluetooth devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Le ven. 8 sept. 2023 à 07:55, Sean Greenslade <sean@xxxxxxxxxxxxxxxxxx> a écrit :
On Wed, Sep 06, 2023 at 02:46:05PM +0200, Antoine Nauzet wrote:
> Hello,
>
> I'm working on a Raspberry Pi 4, with an USB Bluetooth dongle, trying to
> connect is to an android device as a hand free device.
>
> My configuration is the following:
>
>    - kernel version 6.1.21
>    - bluez version 5.55
>    - Pulseaudio version 14.2
>    - ofono version 1.31
>
> I manage to make the connection, and the bluetooth device is detected by
> Pulseaudio. The HSP/HFP profile is available. But when making a call, after
> a certain time, the HSP/HFP profile change to unavailable. The device is
> still connected, I can play sound from the android device to the raspberry.
> But the sound from the call is not working anymore.
>
> What could explain the lost of the profil? Is there something to do to keep
> it up?
>
> I tried with the last version of pulseaudio, compiling it from the sources
> get from the git repository. The version is now 16.99.1-8-g13ef0.
> Now, when connecting the device, both HSP and HFP are not available! I
> could not get them to be up.
>
> Is there anything I have to do to make it work? When installing pulseaudio
> with apt-get, I was installing pulseaudio and pulseaudio-module-bluetooth.
> Is there something to include it when installing from the sources?
>
> What should I check to start figured out what is going on?
>
> Thank you for your help
> Antoine

I would start with using your distro's pulse package and checking both
the system logs and the pulseaudio logs. I would expect there to be some
chatter when a bluetooth device event like that happens.

--Sean

 
I'm back to distro's pulse package. When the headset_audio_gateway capability is switch to not available, the pulse audio logs this:

( 543.481|   8.707) D: [pulseaudio] bluez5-util.c: Device /org/bluez/hci0/dev_78_29_C9_4F_C2_4E removed
( 543.482|   0.000) D: [pulseaudio] backend-ofono.c: HF card removed: /card_2
( 543.482|   0.000) D: [pulseaudio] bluez5-util.c: Transport /card_2 state: idle -> disconnected
( 543.482|   0.000) D: [pulseaudio] card.c: Setting card bluez_card.4C_DD_31_43_8E_FF profile headset_audio_gateway to availability status no
( 543.482|   0.000) D: [pulseaudio] device-port.c: Setting port phone-output to status no
( 543.482|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.

Is "card_2" the card "2" display when typing pactl list cards? Beacause if yes, this is an internal audio-card that I am not using. I' using an USB in/out audio card

Antoine

[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux