mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
m3k: Fixes for the M3K.
* Cannot turn off the LCD directly (have to rely on backlight) * Only insmod/rmmod the usb gadget modules if state changes Change-Id: I9ea90177d496cd035ada93e04a93a7c6f2e84706
This commit is contained in:
parent
455a23bdab
commit
2e07223690
2 changed files with 6 additions and 2 deletions
|
|
@ -39,8 +39,14 @@ int usb_detect(void)
|
|||
return present ? USB_INSERTED : USB_EXTRACTED;
|
||||
}
|
||||
|
||||
static bool usb_enabled = 0;
|
||||
|
||||
void usb_enable(bool on)
|
||||
{
|
||||
if (usb_enabled == on)
|
||||
return;
|
||||
|
||||
usb_enabled = on;
|
||||
if (on)
|
||||
{
|
||||
system ("insmod /lib/modules/3.10.14/kernel/driver/usb/gadget/libcomposite.ko");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue