| Summary: | [PATCH] Fix Dualshock 4 handling of BT packets when headset mic is active | ||
|---|---|---|---|
| Product: | SDL | Reporter: | John Klein <development+libsdl> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
| Attachments: | Patch | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/2b7ff2062700 |
Created attachment 4513 [details] Patch When the headset mic is active, the DS4 will use reports 17 though 25, rather than just 17, and some reports will contain just audio data. This patch modifies SDL_hidapi_ps4.c to use all 9 incoming report IDs and to skip those report instances that contain no HID data. If you would like to force a DS4 into this mode for testing, use a normal report 5 write, similar to setting rumble, with byte index 2 (the 3rd byte) set with bit 0x01 high. This will enable the SBC audio encoder in the DS4 and begin appending or replacing the HID reports with audio data and enable the expanded report IDs.