forked from len0rd/rockbox
Fix MTP detection only working on e200v1.
Autodetection only showed an MTP device error for e200v1 and an unspecified error for all other players (except if the detected player is an Ipod, in which case the error indicates a WinPod). Consider all non-Ipod errors as MTP error. Fix wrong MTP USB ID for e200v1 which made that detection fail even for e200v1. Should fix FS#11563. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29621 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
56d214543d
commit
d1098f3100
2 changed files with 11 additions and 9 deletions
|
@ -631,19 +631,21 @@ void Config::autodetect()
|
|||
|
||||
if(!detector.errdev().isEmpty()) {
|
||||
QString text;
|
||||
if(detector.errdev() == "sansae200")
|
||||
text = tr("Sansa e200 in MTP mode found!\n"
|
||||
"You need to change your player to MSC mode for installation. ");
|
||||
if(detector.errdev() == "h10")
|
||||
text = tr("H10 20GB in MTP mode found!\n"
|
||||
"You need to change your player to UMS mode for installation. ");
|
||||
if(SystemInfo::platformValue(detector.errdev(),
|
||||
SystemInfo::CurBootloaderMethod) == "ipod")
|
||||
SystemInfo::CurBootloaderMethod) == "ipod") {
|
||||
text = tr("%1 \"MacPod\" found!\n"
|
||||
"Rockbox needs a FAT formatted Ipod (so-called \"WinPod\") "
|
||||
"to run. ").arg(SystemInfo::platformValue(
|
||||
detector.errdev(), SystemInfo::CurName).toString());
|
||||
text += tr("Unless you changed this installation will fail!");
|
||||
}
|
||||
// treat all other errors as MTP device for now.
|
||||
else {
|
||||
text = tr("%1 in MTP mode found!\n"
|
||||
"You need to change your player to MSC mode for installation. ")
|
||||
.arg(SystemInfo::platformValue(detector.errdev(),
|
||||
SystemInfo::CurName).toString());
|
||||
}
|
||||
text += tr("Until you change this installation will fail!");
|
||||
|
||||
QMessageBox::critical(this, tr("Fatal error"), text, QMessageBox::Ok);
|
||||
return;
|
||||
|
|
|
@ -404,7 +404,7 @@ bootloadername=/sandisk-sansa/e200/PP5022.mi4
|
|||
manualname=
|
||||
brand=Sandisk
|
||||
usbid=0x07817421
|
||||
usberror=0x07810720
|
||||
usberror=0x07817420
|
||||
configure_modelname=sansae200
|
||||
encoder=rbspeex
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue