mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Fix some more straggling stuff
* HWCODEC bootloaders * Remove references to thread structures outside the kernel. They are private and should not be used elsewhere. The mrobe-100 is an offender that gets squashed. * The ata.c hack stuff for large sector disks on iPod Video gets squashed for the same reason. I will no longer maintain it, period; please find the real reason for its difficulties. Change-Id: Iae1a675beac887754eb3cc59b560c941077523f5
This commit is contained in:
parent
4ea4cdfc11
commit
9a3400a4a6
5 changed files with 7 additions and 88 deletions
|
|
@ -500,14 +500,14 @@ void lcd_remote_off(void)
|
|||
|
||||
void lcd_remote_on(void)
|
||||
{
|
||||
/* Only wake the remote thread if it's in the blocked state. */
|
||||
struct thread_entry *rc_thread = thread_id_entry(remote_thread_id);
|
||||
if (rc_thread->state == STATE_BLOCKED || (rc_status & RC_FORCE_DETECT))
|
||||
if (semaphore_wait(&rc_thread_wakeup, 0) == OBJ_WAIT_TIMEDOUT ||
|
||||
(rc_status & RC_FORCE_DETECT))
|
||||
{
|
||||
rc_status &= ~RC_FORCE_DETECT;
|
||||
rc_status &= ~RC_POWER_OFF;
|
||||
semaphore_release(&rc_thread_wakeup);
|
||||
}
|
||||
|
||||
semaphore_release(&rc_thread_wakeup);
|
||||
}
|
||||
|
||||
bool remote_detect(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue