forked from len0rd/rockbox
Add a disconnect handler for usb storage. It doesn't do anything yet, but it will apparently be needed to reset the audio buffer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19418 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e2b69ddffb
commit
19dfe330a1
3 changed files with 7 additions and 1 deletions
|
@ -187,7 +187,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] =
|
||||||
.get_config_descriptor = usb_storage_get_config_descriptor,
|
.get_config_descriptor = usb_storage_get_config_descriptor,
|
||||||
.init_connection = usb_storage_init_connection,
|
.init_connection = usb_storage_init_connection,
|
||||||
.init = usb_storage_init,
|
.init = usb_storage_init,
|
||||||
.disconnect = NULL,
|
.disconnect = usb_storage_disconnect,
|
||||||
.transfer_complete = usb_storage_transfer_complete,
|
.transfer_complete = usb_storage_transfer_complete,
|
||||||
.control_request = usb_storage_control_request,
|
.control_request = usb_storage_control_request,
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
|
|
|
@ -418,6 +418,11 @@ void usb_storage_init_connection(void)
|
||||||
usb_drv_recv(ep_out, tb.transfer_buffer, 1024);
|
usb_drv_recv(ep_out, tb.transfer_buffer, 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void usb_storage_disconnect(void)
|
||||||
|
{
|
||||||
|
/* Empty for now */
|
||||||
|
}
|
||||||
|
|
||||||
/* called by usb_core_transfer_complete() */
|
/* called by usb_core_transfer_complete() */
|
||||||
void usb_storage_transfer_complete(int ep,int dir,int status,int length)
|
void usb_storage_transfer_complete(int ep,int dir,int status,int length)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,6 +27,7 @@ int usb_storage_request_endpoints(struct usb_class_driver *);
|
||||||
int usb_storage_set_first_interface(int interface);
|
int usb_storage_set_first_interface(int interface);
|
||||||
int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size);
|
int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size);
|
||||||
void usb_storage_init_connection(void);
|
void usb_storage_init_connection(void);
|
||||||
|
void usb_storage_disconnect(void);
|
||||||
void usb_storage_init(void);
|
void usb_storage_init(void);
|
||||||
void usb_storage_transfer_complete(int ep,int dir,int state,int length);
|
void usb_storage_transfer_complete(int ep,int dir,int state,int length);
|
||||||
bool usb_storage_control_request(struct usb_ctrlrequest* req);
|
bool usb_storage_control_request(struct usb_ctrlrequest* req);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue