This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10284 - Sansa e200v2 & Fuze: Merge the button driver into 1 file
Attached to Project:
Rockbox
Opened by Dustin Skoracki (sko) - Saturday, 06 June 2009, 13:24 GMT+2
Last edited by Thomas Martitz (kugel.) - Tuesday, 23 June 2009, 00:26 GMT+2
Opened by Dustin Skoracki (sko) - Saturday, 06 June 2009, 13:24 GMT+2
Last edited by Thomas Martitz (kugel.) - Tuesday, 23 June 2009, 00:26 GMT+2
|
DetailsThis patch renames the variable for wheel acceleration and changes some comments to make it more equal to the fuze's button driver. I also implements the button_delay() function from the fuze driver.
The aim of this patch is to make it easier to read the source of both drivers (why call the same things by two names ;) ) and maybe unify them to one driver later. I tested it with |
This task depends upon
Closed by Thomas Martitz (kugel.)
Tuesday, 23 June 2009, 00:26 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r21474. Thanks for the good work!
Tuesday, 23 June 2009, 00:26 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r21474. Thanks for the good work!
COSMETICS:
- some comments
- how button_hold() is positioned
FUNCTIONAL:
- some settings (acceleration, how much hardware changes = 1 software change)
- how lcd and button concurrent access to DBOP are managed (e200v2 skips whole button reading if lcd is used, fuze only skips buttons read by dbop)
Please kugel since you wrote all of this, can you detail what are the differences here, and what prevent us from merging the 2 files ?
sko: did you try to use the button-fuze.c file on e200v2 ?
I tried long time ago and it was not working, but now they're very similar, I'll try again (but will need a little adaption since e200v2 has no BUTTON_HOME). Anyway I startet merging the two drivers, it's a little more complex then I thought due the differences you mentioned in your comment (well it's a little "#if defined()"-hell right now^^).
Perhaps both models have a decent user experience with respect to the buttons (especially the wheel), but this experience is a bit different. Does anyone have both an e200v2 and a fuze?
Saratoga?