1
0
Fork 0
forked from len0rd/rockbox

Recording in FM screen, USB mode possible in FM and recording screen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4046 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-11-20 00:33:43 +00:00
parent 577e571958
commit aaa99e70ba
9 changed files with 265 additions and 91 deletions

View file

@ -167,7 +167,7 @@ static int defaultval[] =
0, /* AVC */
0, /* Channels */
8, /* Left gain */
2, /* Right gain */
8, /* Right gain */
2, /* Mic gain */
};
@ -2157,6 +2157,21 @@ static void mpeg_thread(void)
init_playback();
init_playback_done = true;
break;
case SYS_USB_CONNECTED:
is_playing = false;
paused = false;
stop_playing();
#ifndef SIMULATOR
/* Tell the USB thread that we are safe */
DEBUGF("mpeg_thread got SYS_USB_CONNECTED\n");
usb_acknowledge(SYS_USB_CONNECTED_ACK);
/* Wait until the USB cable is extracted again */
usb_wait_for_disconnect(&mpeg_queue);
#endif
break;
}
}
#endif