Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#4899 - iPod AutoPause

Attached to Project: Rockbox
Opened by Max Ried (bot47) - Thursday, 23 March 2006, 20:03 GMT+2
Last edited by Rani Hod (RaeNye) - Monday, 18 September 2006, 20:37 GMT+2
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Player Type iPod Nano
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This patch is a quick hack to support the auto pause feature of the original Apple firmware. Rockbox _SHOULD_ pause now automatically. This patch was made for my iPod nano and I guess the G5, too, since it's mostly the same machine. It does not yet work properly and is just a quick hack, but please complain about it and test it. Own risks of course. I made this because of a current feature request.
   pause.diff (1.2 KiB)
 apps/playback.c |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

This task depends upon

Closed by  Linus Nielsen Feltzing (linusnielsen)
Tuesday, 26 September 2006, 12:03 GMT+2
Reason for closing:  Accepted
Comment by Max Ried (bot47) - Thursday, 23 March 2006, 21:31 GMT+2
A reworked approach to add the functionality to another file is attached. Still the weired problem that I cannot pause more the one time? Do I do something wrong or is it a general issue?


Apply only pause2.diff. pause.diff is obsoleted
   pause2.diff (0.7 KiB)
 apps/gui/gwps.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

Comment by Max Ried (bot47) - Thursday, 23 March 2006, 21:52 GMT+2
http://www.rockbox.org/tracker/task/4901

Works properly if playback.c is reverted to an older version, because pause is just broken.
Comment by Max Ried (bot47) - Friday, 24 March 2006, 15:05 GMT+2
This time, it's a final approach. It is now able to detect the earphone properly by checking bit 7 of GPIO A. Patches apps/playback.c
Don't complain about the dirty patch, it will apply anyway. There was no way to provide a better one because the CVS Server lacks *grr*
   pause.diff (1 KiB)
 apps/playback.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

Comment by Max Ried (bot47) - Friday, 24 March 2006, 20:29 GMT+2
And the last and final one to reproduce Apple behaviour.
   applepause.diff (1.1 KiB)
 apps/playback.c |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comment by Robert Keevil (obo) - Sunday, 26 March 2006, 03:59 GMT+2
Version to resume when plugged back in, and config to make the whole thing optional.
   ipod_unplug.patch (4.2 KiB)
 apps/playback.c        |   25 +++++++++++++++++++++++++
 apps/settings.c        |    4 ++++
 apps/settings.h        |    4 ++++
 apps/settings_menu.c   |   10 ++++++++++
 apps/lang/english.lang |    6 ++++++
 5 files changed, 49 insertions(+)

Comment by Robert Keevil (obo) - Sunday, 26 March 2006, 21:54 GMT+2
Settings bits now in the right place.
Should apply cleanly post tagcache
   ipod_unplug.patch (4 KiB)
 apps/playback.c        |   25 +++++++++++++++++++++++++
 apps/settings.c        |    4 ++++
 apps/settings.h        |    3 +++
 apps/settings_menu.c   |   10 ++++++++++
 apps/lang/english.lang |    7 +++++++
 5 files changed, 49 insertions(+)

Comment by Dave Chapman (linuxstb) - Monday, 27 March 2006, 19:23 GMT+2
A small comment about the patch. IMO, you shouldn't use CONFIG_CPU==PP5020 to surround your new code - this feature is not dependent on the type of CPU inside the DAP, it's dependent on the design of the whole DAP. So maybe something like #if defined(IPOD_ARCH) && !defined(SIMULATOR) (assuming it works on all ipods). Or even better, define HAVE_HEADPHONE_DETECTION (or similar) in firmware/export/config-*.h and also create a macro/function called (for example) headphones_inserted() instead of hard-coding the GPIO check.
Comment by Max Ried (bot47) - Monday, 27 March 2006, 19:55 GMT+2
I don't know about your code policy, just to write senseful code, it should not have such a macro or a HAVE_HEADPHONE_DETECTION flag, since this check is only senseful in one place and there is no need for such a macro. And apart from that, neither the nano nor the video got a PP5020, but is specified as such one. The code will only work on nano and video if the iPod Linux GPIO documentation is correct.
Comment by Robert Keevil (obo) - Monday, 27 March 2006, 22:42 GMT+2
Use a 3 state config (off, pause only, pause and resume). HAVE_HEADPHONE_DETECTION is defined for nano and video - does it work on 3g or 4g? headphones_inserted() function in button.c - ammicon mentioned it might be possible to detect headphone presence on some archos models as well?
   ipod_unplug.patch (6.8 KiB)
 apps/playback.c                    |   28 ++++++++++++++++++++++++++++
 apps/settings.c                    |    4 ++++
 apps/settings.h                    |    3 +++
 apps/settings_menu.c               |   19 +++++++++++++++++++
 apps/lang/english.lang             |   12 ++++++++++++
 firmware/drivers/button.c          |    6 ++++++
 firmware/export/button.h           |    4 +++-
 firmware/export/config-ipodnano.h  |    3 +++
 firmware/export/config-ipodvideo.h |    3 +++
 9 files changed, 81 insertions(+), 1 deletion(-)

Comment by Robert Keevil (obo) - Tuesday, 28 March 2006, 00:00 GMT+2
Should patch clean again... also must learn how to spell amiconn
   ipod_unplug.patch (6.7 KiB)
 apps/playback.c                    |   28 ++++++++++++++++++++++++++++
 apps/settings.c                    |    4 ++++
 apps/settings.h                    |    3 +++
 apps/settings_menu.c               |   19 +++++++++++++++++++
 apps/lang/english.lang             |   11 +++++++++++
 firmware/drivers/button.c          |    6 ++++++
 firmware/export/button.h           |    4 +++-
 firmware/export/config-ipodnano.h  |    3 +++
 firmware/export/config-ipodvideo.h |    3 +++
 9 files changed, 80 insertions(+), 1 deletion(-)

Comment by Max Ried (bot47) - Tuesday, 28 March 2006, 20:07 GMT+2
it will not work on older ipods?
Comment by Robert Keevil (obo) - Tuesday, 28 March 2006, 21:09 GMT+2
I don't know - I've only got a 5g here to test on, so I played it safe... Any 4g users out there who can view what the I/O ports in the debug menu do when headphones are removed?
Comment by Rob (biffhero) - Wednesday, 29 March 2006, 04:17 GMT+2
I have always thought that a 3 second rewind (if pause_on_remove is set) would be cool. That is because I am constantly unplugging my ipod instead of pausing it first when leaving the car or getting in to the car. If I enter the car, I have to unplug it from my headphones, then plug it in to my car. I listen almost exclusively to podcasts, and always back up a few seconds to get my place back.
Comment by glam (b00st4) - Wednesday, 29 March 2006, 20:41 GMT+2
hm, doenst work with new cvs...complication with the lang file maybe...

why is that not embedded tho cvs yet, such a good patch!
Comment by Robert Keevil (obo) - Wednesday, 29 March 2006, 21:21 GMT+2
Should patch clean again
   ipod_unplug.patch (6.7 KiB)
 apps/playback.c                    |   28 ++++++++++++++++++++++++++++
 apps/settings.c                    |    4 ++++
 apps/settings.h                    |    4 ++++
 apps/settings_menu.c               |   19 +++++++++++++++++++
 apps/lang/english.lang             |   12 ++++++++++++
 firmware/drivers/button.c          |    6 ++++++
 firmware/export/button.h           |    4 +++-
 firmware/export/config-ipodnano.h  |    3 +++
 firmware/export/config-ipodvideo.h |    3 +++
 9 files changed, 82 insertions(+), 1 deletion(-)

Comment by Robert Keevil (obo) - Thursday, 30 March 2006, 20:33 GMT+2
Patch now includes optional rewind duration of 0 to 15 seconds.
I don't know if the method I use to rewind is the right thing to do, but it has worked for me so far.
I'm open to suggestions for any improvements to the strings in english.lang - at the moment I'm just trying to keep them as short as possible.
   ipod_unplug.patch (8.1 KiB)
 apps/playback.c                    |   37 ++++++++++++++++++++++++++++
 apps/settings.c                    |    5 +++
 apps/settings.h                    |    5 +++
 apps/settings_menu.c               |   48 +++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang             |   18 +++++++++++++
 firmware/drivers/button.c          |    6 ++++
 firmware/export/button.h           |    4 ++-
 firmware/export/config-ipodnano.h  |    3 ++
 firmware/export/config-ipodvideo.h |    3 ++
 9 files changed, 128 insertions(+), 1 deletion(-)

Comment by glam (b00st4) - Thursday, 30 March 2006, 21:59 GMT+2
id like to see light on for a second on plugin, like in apple firmware, that would also be cool on turning hold off...is it possible?
Comment by Robert Keevil (obo) - Thursday, 30 March 2006, 22:29 GMT+2
Yup, that makes sense. Backlight will now come on when it detects the headphones have been reinserted.
   ipod_unplug.patch (8.2 KiB)
 apps/playback.c                    |   38 +++++++++++++++++++++++++++++
 apps/settings.c                    |    5 +++
 apps/settings.h                    |    5 +++
 apps/settings_menu.c               |   48 +++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang             |   18 +++++++++++++
 firmware/drivers/button.c          |    6 ++++
 firmware/export/button.h           |    4 ++-
 firmware/export/config-ipodnano.h  |    3 ++
 firmware/export/config-ipodvideo.h |    3 ++
 9 files changed, 129 insertions(+), 1 deletion(-)

Comment by glam (b00st4) - Thursday, 30 March 2006, 23:08 GMT+2
perfect, i have no more additions to this, id say ready for cvs :DDD
Comment by Robert Keevil (obo) - Saturday, 01 April 2006, 18:38 GMT+2
Updated against todays lang changes.
   ipod_unplug.patch (8.3 KiB)
 apps/playback.c                    |   38 +++++++++++++++++++++++++++++
 apps/settings.c                    |    5 +++
 apps/settings.h                    |    5 +++
 apps/settings_menu.c               |   48 +++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang             |   20 +++++++++++++++
 firmware/drivers/button.c          |    6 ++++
 firmware/export/button.h           |    4 ++-
 firmware/export/config-ipodnano.h  |    3 ++
 firmware/export/config-ipodvideo.h |    3 ++
 9 files changed, 131 insertions(+), 1 deletion(-)

Comment by Robert Keevil (obo) - Tuesday, 04 April 2006, 20:11 GMT+2
Add option to disable boot time auto-resume if headphones aren't present
   ipod_unplug.patch (9.7 KiB)
 apps/playback.c                    |   38 +++++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   54 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |    6 +++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |    6 +++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 10 files changed, 181 insertions(+), 1 deletion(-)

Comment by Robert Keevil (obo) - Wednesday, 05 April 2006, 01:00 GMT+2
Fix problems with the auto-resume changes??
   ipod_unplug.patch (9.9 KiB)
 apps/playback.c                    |   38 +++++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   54 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |   13 ++++++++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |    6 +++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 10 files changed, 188 insertions(+), 1 deletion(-)

Comment by Mikael Magnusson (mikaelh) - Wednesday, 05 April 2006, 10:32 GMT+2
okay, i found the problem after i tried 11244 or so again and stared at the code for 10 minutes. In that version, the headphone block is last before the switch (ev.id) bit, but in this last version, it is before a code bit that writes to ev again. Putting it after that makes it work again. Is there any reason you moved it?
Comment by Mikael Magnusson (mikaelh) - Wednesday, 05 April 2006, 10:37 GMT+2
Hm, i just noticed that startup resume fails spectacularly if you move the block as i described. Do you have a solution?
Comment by Mikael Magnusson (mikaelh) - Wednesday, 05 April 2006, 11:12 GMT+2
sorry for spamming a bit, but at least now i think i solved the problem :). You can keep the code where it is, but change ev.id=... and ev.data=... into
queue_post(&audio_queue, Q_AUDIO_RESUME, (bool *)true);
and
queue_post(&audio_queue, Q_AUDIO_PAUSE, (bool *)true);
, this way everything seems to work, and it feels like it makes more sense too. In the early versions you were eating real events from the queue and in the latest you were overwritten by them.
Comment by glam (b00st4) - Friday, 07 April 2006, 14:11 GMT+2
how do you mean? cant find those values in the patch...
Comment by Robert Keevil (obo) - Friday, 07 April 2006, 15:30 GMT+2
It's the
+ ev.id = Q_AUDIO_PAUSE;
+ ev.data = (void *)1;
lines (plus the Q_AUDIO_RESUME pair further down) in playback.c

But apart from that, the patch is broken at the moment, after the recent playback code changes.
It needs changing anyway (the pause/resume code shoudn't be where it is - but I'm not sure where it should be instead)
It needs to act whereever you are in RB... (so from that point of view playback.c makes sense).
Should it be setup as a BUTTON_ for the platforms that have headphone detection?
Comment by Robert Keevil (obo) - Saturday, 15 April 2006, 21:00 GMT+2
Patch against latest CVS.
Still not as it should be, but working again.
   unplug1.patch (9.9 KiB)
 apps/playback.c                    |   36 +++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   54 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |   13 ++++++++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |    6 +++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 10 files changed, 186 insertions(+), 1 deletion(-)

Comment by Max Ried (bot47) - Saturday, 15 April 2006, 21:32 GMT+2
Realy, it's time for it to be commited into CVS. Why don't they do so?
Comment by Robert Keevil (obo) - Saturday, 15 April 2006, 21:42 GMT+2
Because Rockbox is in feature freeze, and the patch isn't doing things the "Right Way"(TM)

Inserting/removing the phones should cause an event, instead of sitting in the playback thread looking to see if it's changed.
Comment by Max Ried (bot47) - Sunday, 16 April 2006, 10:27 GMT+2
OK, so it's a question of officialism. Too bad. If you know how to implement it the right way, please let me know and I will try it myself.
Comment by Robert Keevil (obo) - Sunday, 16 April 2006, 12:10 GMT+2
Well....

I've been trying to make the phone socket generate events by changing the interrupt code in firmware/drivers/button.c (line 625-634) - by changing the 0x20 values to 0x80 (ie purely socket) or 0xA0. I've also tried adding new interrupts for GPIOF, value 0x20 (which is generated by the headphone socket on my 5g - I think this maybe different on other models?). I've been using my piezo patch (5111) to enable beeps when interrupts occur - no luck so far.

I'm a bit stuck at this point as to what to try next. I'm not even sure that this is the right way to go - some extra feedback would be nice! :)
Comment by Max Ried (bot47) - Sunday, 16 April 2006, 15:54 GMT+2
http://ipodlinux.org/GPIO describes the GPIOs for a lot of iPod Generations. Maybe I'm too stupid for C but in general
if (GPIO_INPUT_VALUE_OR_WHAT_EVER & 0xWHAT_EVER)
never works in my tests.
Comment by Robert Keevil (obo) - Tuesday, 23 May 2006, 23:23 GMT+2
Scrape off the bitrot - no other changes.
   ipod_unplug.patch (10 KiB)
 apps/playback.c                    |   36 +++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   54 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |   15 +++++++++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |    7 ++++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 10 files changed, 188 insertions(+), 2 deletions(-)

Comment by Robert Keevil (obo) - Thursday, 08 June 2006, 19:37 GMT+2
bitrot again
(application/octet-stream)    ipod_unplug.patch (10.1 KiB)
 apps/playback.c                    |   36 ++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   56 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |   15 ++++++++-
 apps/lang/english.lang             |   58 ++++++++++++++++++++++++++++++++++++-
 firmware/drivers/button.c          |    7 ++++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 10 files changed, 190 insertions(+), 4 deletions(-)

Comment by Robert Keevil (obo) - Friday, 23 June 2006, 23:39 GMT+2
Remove patch code from playback.c and add to new file. Run unplug process in its own thread, which sleeps for HZ/2 per cycle.
Solves slow response to headphone induced pause/resume while the playback system is filling the codec buffer.
(application/octet-stream)    ipod_unplug.patch (11.3 KiB)
 apps/SOURCES                       |    3 +
 apps/main.c                        |    8 +++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   56 +++++++++++++++++++++++++++++++++++
 apps/tree.c                        |   15 ++++++++-
 apps/unplug.c                      |   55 +++++++++++++++++++++++++++++++++++
 apps/unplug.h                      |    1 
 apps/lang/english.lang             |   58 ++++++++++++++++++++++++++++++++++++-
 firmware/drivers/button.c          |    7 ++++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 13 files changed, 221 insertions(+), 4 deletions(-)

Comment by Reza (afruff23) - Friday, 14 July 2006, 05:47 GMT+2
Is it possilbe to port this to non-iPod players or do they not have the ahrdware to do so?
Comment by Dominik Riebeling (bluebrother) - Friday, 14 July 2006, 08:42 GMT+2
AFAIK (and can see from the patch) this will only work on ipod devices as they use a GPIO pin to detect the earplugs, so other players are missing the hardware.
Comment by Robert Keevil (obo) - Friday, 14 July 2006, 14:40 GMT+2
Yes, the headphones_inserted() function added to button.c is specific to ipod hardware (the rest should be fine across all platforms), but... Amiconn mentioned some months ago in IRC that it might be possible to detect the presence of headphones for Archos devices. It /might/ also be possible on other targets - an easy way to check is to go into the "View I/O ports" option in the debug menu, and see if there is a consitant change on insert/removal (and not caused by other things like backlight control).
Comment by Robert Keevil (obo) - Tuesday, 18 July 2006, 19:34 GMT+2
Reverse the logic of the headphones_inserted() function so it actually matches the function name.
(application/octet-stream)    unplug.patch (12.5 KiB)
 apps/SOURCES                       |    3 +
 apps/main.c                        |    8 +++++
 apps/settings.c                    |    7 +++-
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   56 +++++++++++++++++++++++++++++++++++-
 apps/tree.c                        |   15 +++++++++
 apps/unplug.c                      |   55 +++++++++++++++++++++++++++++++++++
 apps/unplug.h                      |    1 
 apps/lang/english.lang             |   57 ++++++++++++++++++++++++++++++++++++-
 firmware/drivers/button.c          |    7 ++++
 firmware/export/button.h           |    4 +-
 firmware/export/config-ipod4g.h    |    3 +
 firmware/export/config-ipodcolor.h |    3 +
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 15 files changed, 226 insertions(+), 5 deletions(-)

Comment by Jesus Climent (mooch) - Monday, 11 September 2006, 22:51 GMT+2
Is there any way this patch could be applied right now? the pause-on-unplug is a really cool feature..
Comment by Robert Keevil (obo) - Monday, 11 September 2006, 23:03 GMT+2
Updated the patch.

Thread is now created/removed as needed - no longer any need to reboot after changing the settings.

With any luck this patch might even be looked at one day.
(application/octet-stream)    unplug.patch (12.9 KiB)
 apps/SOURCES                       |    3 +
 apps/settings.c                    |   15 ++++++-
 apps/settings.h                    |    6 ++
 apps/settings_menu.c               |   62 +++++++++++++++++++++++++++++-
 apps/tree.c                        |   15 ++++++-
 apps/unplug.c                      |   76 +++++++++++++++++++++++++++++++++++++
 apps/unplug.h                      |    3 +
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++
 firmware/drivers/button.c          |   12 +++++
 firmware/export/button.h           |    4 +
 firmware/export/config-ipod4g.h    |    3 +
 firmware/export/config-ipodcolor.h |    3 +
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 14 files changed, 260 insertions(+), 4 deletions(-)

Comment by Max Ried (bot47) - Tuesday, 12 September 2006, 14:58 GMT+2
Why don't they commit it?
Comment by Ryan Sawhill (ryran) - Tuesday, 12 September 2006, 15:01 GMT+2
Thanks for the update Robert. I really appreciate all your work on this patch. :)

Obviously, I too hope it's committed some day soon.
Comment by Robert Keevil (obo) - Sunday, 17 September 2006, 17:25 GMT+2
Updated for the new scheduler.
(application/octet-stream)    unplug.patch (13 KiB)
 apps/SOURCES                       |    3 +
 apps/settings.c                    |   15 ++++++-
 apps/settings.h                    |    6 ++
 apps/settings_menu.c               |   62 ++++++++++++++++++++++++++++-
 apps/tree.c                        |   15 ++++++-
 apps/unplug.c                      |   78 +++++++++++++++++++++++++++++++++++++
 apps/unplug.h                      |    3 +
 apps/lang/english.lang             |   56 ++++++++++++++++++++++++++
 firmware/drivers/button.c          |   12 +++++
 firmware/export/button.h           |    4 +
 firmware/export/config-ipod4g.h    |    3 +
 firmware/export/config-ipodcolor.h |    3 +
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 14 files changed, 262 insertions(+), 4 deletions(-)

Comment by Robert Keevil (obo) - Monday, 25 September 2006, 21:58 GMT+2
Rework of the patch following feedback from Linus and Amiconn.
(application/octet-stream)    unplug.patch (12.2 KiB)
 apps/misc.c                        |   36 +++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   56 ++++++++++++++++++++++++++++++++++++-
 apps/tree.c                        |   15 +++++++++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |   31 ++++++++++++++++++++
 firmware/export/button.h           |    3 +
 firmware/export/config-ipod4g.h    |    3 +
 firmware/export/config-ipodcolor.h |    3 +
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 firmware/export/kernel.h           |    2 +
 13 files changed, 221 insertions(+), 2 deletions(-)

Comment by Robert Keevil (obo) - Tuesday, 26 September 2006, 11:08 GMT+2
Remove unnecessary #ifdef in headphones_inserted()
(application/octet-stream)    unplug.patch (12 KiB)
 apps/misc.c                        |   36 +++++++++++++++++++++++
 apps/settings.c                    |    6 +++
 apps/settings.h                    |    6 +++
 apps/settings_menu.c               |   56 ++++++++++++++++++++++++++++++++++++-
 apps/tree.c                        |   15 +++++++++
 apps/lang/english.lang             |   56 +++++++++++++++++++++++++++++++++++++
 firmware/drivers/button.c          |   28 ++++++++++++++++++
 firmware/export/button.h           |    3 +
 firmware/export/config-ipod4g.h    |    3 +
 firmware/export/config-ipodcolor.h |    3 +
 firmware/export/config-ipodnano.h  |    3 +
 firmware/export/config-ipodvideo.h |    3 +
 firmware/export/kernel.h           |    2 +
 13 files changed, 218 insertions(+), 2 deletions(-)

Loading...