[PATCH] Also detect the new PSP-3000 in storage mode

Bastien Nocera hadess at hadess.net
Tue Nov 11 09:34:48 PST 2008


Vendor name is SONY (not Sony), and the product name is "PSP" MS
(yes, that's with the quotes in the HAL output).
---
 .../10freedesktop/10-usb-music-players.fdi         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fdi/information/10freedesktop/10-usb-music-players.fdi b/fdi/information/10freedesktop/10-usb-music-players.fdi
index 75cdcaa..2783385 100644
--- a/fdi/information/10freedesktop/10-usb-music-players.fdi
+++ b/fdi/information/10freedesktop/10-usb-music-players.fdi
@@ -936,8 +936,8 @@
 
     <match key="info.category" string="storage">
       <!-- Sony PSP (PlayStation Portable) -->
-      <match key="storage.vendor" string="Sony">
-        <match key="storage.model" string="PSP">
+      <match key="storage.vendor" prefix_ncase="SONY">
+        <match key="storage.model" contains="PSP">
           <append key="info.capabilities" type="strlist">portable_audio_player</append>
           <!-- NOTE: for backward compatibility until key get removed finally -->
           <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
-- 
1.6.0.3


--=-X0BhjR+s35wElUnoYPeB--



More information about the hal mailing list