Per newly-documented HEADSET_MIC_WIRE_PROTOCOL.md, feature 0x0611 returns device-specific NACK 0x0B when SetMicGain is written with a value outside the device's supported range. LGHUB calls GetInfo (function 0) once at startup to cache (min_gain, max_gain) as two signed int8 bytes, then rescales subsequent writes into that range. Solaar was using int8's full range (-128..127) as validator bounds and accepting any UI value — which goes out-of-range on devices with narrow ranges like the G522 (current gain is 8, suggesting small range). Every gain change attempt NACK'd with 0x0B. Fix: add HeadsetMicGain.build() that queries GetInfo at probe time, parses the two-byte [min, max] response as signed int8, and hands those to the RangeValidator. Falls back to the int8 default range if GetInfo is unavailable or returns nonsense. Logs the reported range at INFO so testers can verify in the log. Does NOT address mic-mute NACK 0x0A — per the same doc that's the hardware mic-flip boom position locking software mute on the G522, and there's nothing software can do about it. |
||
|---|---|---|
| .. | ||
| hid_parser | ||
| hidapi | ||
| keysyms | ||
| logitech_receiver | ||
| solaar | ||