summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-03-20 10:26:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-03-20 10:26:05 +0000
commitd1098f31004e8a751f304062a6252baacb83b4f9 (patch)
tree6be127dada7ab1bf0483752bdbd4c7b728dc6b7b
parent56d214543d744f356d7232e5cb20bc0997c84bd1 (diff)
downloadrockbox-d1098f31004e8a751f304062a6252baacb83b4f9.tar.gz
rockbox-d1098f31004e8a751f304062a6252baacb83b4f9.zip
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
-rw-r--r--rbutil/rbutilqt/configure.cpp18
-rw-r--r--rbutil/rbutilqt/rbutil.ini2
2 files changed, 11 insertions, 9 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index d775eec172..8bfa20e6a0 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -631,19 +631,21 @@ void Config::autodetect()
631 631
632 if(!detector.errdev().isEmpty()) { 632 if(!detector.errdev().isEmpty()) {
633 QString text; 633 QString text;
634 if(detector.errdev() == "sansae200")
635 text = tr("Sansa e200 in MTP mode found!\n"
636 "You need to change your player to MSC mode for installation. ");
637 if(detector.errdev() == "h10")
638 text = tr("H10 20GB in MTP mode found!\n"
639 "You need to change your player to UMS mode for installation. ");
640 if(SystemInfo::platformValue(detector.errdev(), 634 if(SystemInfo::platformValue(detector.errdev(),
641 SystemInfo::CurBootloaderMethod) == "ipod") 635 SystemInfo::CurBootloaderMethod) == "ipod") {
642 text = tr("%1 \"MacPod\" found!\n" 636 text = tr("%1 \"MacPod\" found!\n"
643 "Rockbox needs a FAT formatted Ipod (so-called \"WinPod\") " 637 "Rockbox needs a FAT formatted Ipod (so-called \"WinPod\") "
644 "to run. ").arg(SystemInfo::platformValue( 638 "to run. ").arg(SystemInfo::platformValue(
645 detector.errdev(), SystemInfo::CurName).toString()); 639 detector.errdev(), SystemInfo::CurName).toString());
646 text += tr("Unless you changed this installation will fail!"); 640 }
641 // treat all other errors as MTP device for now.
642 else {
643 text = tr("%1 in MTP mode found!\n"
644 "You need to change your player to MSC mode for installation. ")
645 .arg(SystemInfo::platformValue(detector.errdev(),
646 SystemInfo::CurName).toString());
647 }
648 text += tr("Until you change this installation will fail!");
647 649
648 QMessageBox::critical(this, tr("Fatal error"), text, QMessageBox::Ok); 650 QMessageBox::critical(this, tr("Fatal error"), text, QMessageBox::Ok);
649 return; 651 return;
diff --git a/rbutil/rbutilqt/rbutil.ini b/rbutil/rbutilqt/rbutil.ini
index 000b821f1a..016076bf7b 100644
--- a/rbutil/rbutilqt/rbutil.ini
+++ b/rbutil/rbutilqt/rbutil.ini
@@ -404,7 +404,7 @@ bootloadername=/sandisk-sansa/e200/PP5022.mi4
404manualname= 404manualname=
405brand=Sandisk 405brand=Sandisk
406usbid=0x07817421 406usbid=0x07817421
407usberror=0x07810720 407usberror=0x07817420
408configure_modelname=sansae200 408configure_modelname=sansae200
409encoder=rbspeex 409encoder=rbspeex
410 410