Support for a headset can only be added by someone who owns it. The protocol has to be captured from the vendor software and every change tested on the device. I don't own most headsets, so an issue alone usually doesn't lead to support.
If you have the headset, add it yourself and open a pull request. Using an AI coding agent for this is fine. Several supported devices were added that way.
- Check the device table in README.md and
lib/devices/for a similar device. Often only a product ID is missing.headsetcontrol --dev -- --listshows the vendor and product ID. - Capture what the vendor software sends (Wireshark + USBPcap on Windows, usbmon on Linux).
- Try the packets with dev mode before writing code, e.g.
headsetcontrol --dev -- --device VID:PID --send "0xc9, 0x64" --receive. - Add the device as described in docs/ADDING_A_DEVICE.md.
A pull request for a device needs:
- Output from the real headset in the "Tested on" section of the pull request,
e.g.
headsetcontrol -b. Mocked tests alone are not enough. - Unit tests that use reply bytes captured from the device.
- The README device table regenerated with
headsetcontrol --readme-helper.
Partial support is fine: add what you could verify on the device, e.g. only the battery, and list what is missing in the pull request. Don't guess protocol bytes from a similar device. If you could not run it on the headset, open an issue or a draft pull request with what you captured.
- Build, test and format as described in docs/DEVELOPMENT.md.
make checkmust pass, and CI uses clang-format 18. - Review your own diff before opening the pull request: leftover debug code, unrelated changes, formatting, tests that would still pass if the code were wrong.
- CodeRabbit reviews every push to a pull request that is not a draft. Fix its actionable comments, or reply on the comment why it doesn't apply, until none are left. Nitpicks are optional.
- If an AI agent wrote or helped with the issue or pull request, say which one and which model.
- Push follow-up commits to the same branch. Pull requests are squashed when merged.
New features for HeadsetControl itself (not for a single device): please open an issue or discussion first.