Rockbox

Tasklist

FS#2216 - Stop POP/BANG when your Jukebox powers off automatically.

Attached to Project: Rockbox
Opened by Blue Chip (bluechip) - Tuesday, 08 June 2004, 03:29 GMT
Last edited by Rani Hod (RaeNye) - Monday, 18 September 2006, 15:44 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System Archos Player
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Stop those nasty loud pops/bangs when your archos
does the auto-poweroff thing...

in

/firmware/drivers/power.c

...add this to the list of #includes at the top

#include "mas.h"

...in the FIRST power_off() routine,
...add this at the very top

int i;
/* fade out with volume control before powering down */
for(i=mas_codec_readreg(0x10); i; i--)
mas_codec_writereg(0x10, i);
sleep(HZ/10); /* let the chip finish it's ramping */


JUST ONE OF THE NEW FEATURES FROM THE
CYBORG SYSTEMS
AUDIO_3587 ENHANCED AUDIO PLUGIN
http://homepage.ntlworld.com/cyborgsystems

...Audio_3587 is due for it's first public beta release in the
next 48 hours ...it's done, I just need to package it and
put it on the website, and I thought you might like this
little gem in advance :)

BlueChip
This task depends upon

Closed by  Daniel Stenberg (bagder)
Saturday, 19 May 2007, 15:28 GMT
Reason for closing:  Rejected
Comment by Daniel Stenberg (bagder) - Tuesday, 08 June 2004, 08:46 GMT

How can we run code when the Archos powers off automatically?
Comment by Linus Nielsen Feltzing (linusnielsen) - Tuesday, 08 June 2004, 08:58 GMT

Wrong, Daniel. It is the firmware that decides when to power
off.
Comment by Daniel Stenberg (bagder) - Tuesday, 08 June 2004, 09:05 GMT

Wrong?

Then the Archos _isn't_ shutting off automatically and that
answers my question too...
Comment by Linus Nielsen Feltzing (linusnielsen) - Tuesday, 08 June 2004, 09:08 GMT

Well, it's called "idle poweroff" in Rockbox.
Comment by Blue Chip (bluechip) - Tuesday, 08 June 2004, 09:11 GMT

By "Automatically", I exclude "Manually" (3-second salute) and
"if the batteries die" and include all other shut-down events.

Bluechip

Loading...