Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons not working during callback recording #683

Closed
jeffersonchua opened this issue Feb 18, 2024 · 2 comments
Closed

Buttons not working during callback recording #683

jeffersonchua opened this issue Feb 18, 2024 · 2 comments

Comments

@jeffersonchua
Copy link

Problem

I’ve written a python program pyaudio callback with both input and output enabled, and I can hear and speak at the same time, but the bottons on the headsets are not detected while the callback is running. Is this a bug?

Buttons work fine after recording stopped. I’m listening to evdev.Inputdevice() read_loop() for that in a separate process.

Using latest version of bluealsa git.

@borine
Copy link
Collaborator

borine commented Apr 29, 2024

You give very little information on which anyone can begin to investigate, but as a random guess perhaps the "buttons" (you do not even say what function you expect each button to perform) send AVRCP profile messages, you have connected the HFP or HSP profile, and the headset disables AVRCP when HFP or HSP are active. Perhaps the headset instead uses the buttons to send HFP or HSP rfcomm messages when using HFP or HSP, in which case Bluez does not generate evdev events, but BlueALSA will handle the rfcomm volume change messages but ignore the call handling ones.

@jeffersonchua
Copy link
Author

jeffersonchua commented May 2, 2024 via email

@borine borine closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants