mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
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:
parent
a467bfc55f
commit
b217a55059
11 changed files with 444 additions and 31 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue