ipod6g: Add inline earphone remote support

Decode the jack remote's play/pause and volume buttons via the
"Mikey" controller (I2C 0x72) and report them as multimedia keys so
they work on every screen, like the OF. Protocol reverse engineered
on-device, notes in mikey-6g.c.

Change-Id: If5f3d3abf043c0ce0d8ca7beb0f4b591e41c5c43
This commit is contained in:
Hemant Kumar 2026-07-14 20:35:07 -06:00 • committed by Solomon Peachy
parent a467bfc55f
commit b217a55059
11 changed files with 444 additions and 31 deletions

View file

@ -809,6 +809,14 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame
case BUTTON_MULTIMEDIA_STOP:
list_stop_handler();
return event;
case BUTTON_MULTIMEDIA_VOLUME_UP:
case BUTTON_MULTIMEDIA_VOLUME_UP|BUTTON_REPEAT:
adjust_volume(1);
return event;
case BUTTON_MULTIMEDIA_VOLUME_DOWN:
case BUTTON_MULTIMEDIA_VOLUME_DOWN|BUTTON_REPEAT:
adjust_volume(-1);
return event;
case BUTTON_MULTIMEDIA_REW:
case BUTTON_MULTIMEDIA_FFWD:
/* not supported yet, needs to be done in the WPS */