Commit bf9dcf1
committed
feat(device): add Sony INZONE H5 (WH-G500)
Implements the Sony vendor HCI protocol over the 2.4 GHz USB dongle
(VID 054C, PID 0EBF). Supports:
- Battery (level + charging state) via BATTERY_INFO GET
- Chatmix via GAME_CHAT_MIX_BALANCE GET (device 0..90 mapped to 0..128)
- Sidetone via SIDETONE_VOLUME SET (0..128 mapped to device 0..50)
- Mic volume via MIC_VOLUME SET (0..128 mapped to device 0..50)
The control protocol lives on the Sony-vendor HID collection (usage
page 0xFF04, report ID 0x02). Each report wraps an HCI packet: host
issues COMMAND (opcode 0xFC00), device replies with EVENT (event code
0xFF). The exchange() helper builds the COMMAND, computes the
checksum, validates the response shell, matches event_id + TID, and
skips intervening NTFY_ACTIVE pushes from the dongle.1 parent e3a2afa commit bf9dcf1
3 files changed
Lines changed: 388 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments