This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9981 - Tidy up dircache use of audiobuf and safety lock on buffer_alloc
Attached to Project:
Rockbox
Opened by Steve Bavin (pondlife) - Wednesday, 04 March 2009, 13:17 GMT+2
Last edited by Steve Bavin (pondlife) - Saturday, 22 October 2011, 11:40 GMT+2
Opened by Steve Bavin (pondlife) - Wednesday, 04 March 2009, 13:17 GMT+2
Last edited by Steve Bavin (pondlife) - Saturday, 22 October 2011, 11:40 GMT+2
|
DetailsThis patch removes the code in dircache.c that directly modifies 'audiobuf' and replaces it with buffer_alloc() calls.
It also adds a lock to buffer_alloc() to ensure nobody attempts to call it once it's being used for audio. Probably nothing too radical, but I'd like a dircache expert to take a look at it before I commit. It would be good if an Archos owner could try it too - the MAS audio setup (especially with talking) might not work in the way I expect. |
This task depends upon
Closed by Steve Bavin (pondlife)
Saturday, 22 October 2011, 11:40 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Yes.
Saturday, 22 October 2011, 11:40 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Yes.
I'm not sure I see the point of buffer_lock() though. is there any reason why you couldnt just replace the few lines which fiddle with audio_buf() to just be buf_alloc() calls?
As reported in
FS#10516, when disconnecting the cable after a USB connection, the panic screen here introduced is showed.I can't tell anything more, but surely it reveals either an illegal operation attempt or a wrong management in the patch.
About the panic: should it have meaning to avoid the check when disconnecting USB?