hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Fri Apr 13 08:34:25 PDT 2007


 fdi/information/10freedesktop/10-usb-music-players.fdi |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

New commits:
diff-tree aa5e5b760f28b6e662b8b10137c19bc39a59ef49 (from 9e0a6418400797bfa8851bbd25f86f2dc4124121)
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Fri Apr 13 17:32:12 2007 +0200

    fixed detection of Motorola mobile phones with iTunes capability
    
    Fixed detection of Motorola mobile phones with iTunes capability by use
    multiple indirect references to get the information from the phone as
    proposed by David. Use now:
    
      @storage.originating_device:@info.parent:usb_device.product

diff --git a/fdi/information/10freedesktop/10-usb-music-players.fdi b/fdi/information/10freedesktop/10-usb-music-players.fdi
index 1f94027..4a68792 100644
--- a/fdi/information/10freedesktop/10-usb-music-players.fdi
+++ b/fdi/information/10freedesktop/10-usb-music-players.fdi
@@ -3,17 +3,6 @@
 <deviceinfo version="0.2">
   <device>
 
-    <!-- some specual device handling -->
-    <match key="info.subsystem" string="usb"> 
-      <!-- copy information to identify the Motorola Phones  -->
-      <match key="@info.parent:usb_device.product" contains="Motorola Phone">
-        <match key="usb.product" string="USB Mass Storage Interface">
-           <merge key="info.product" type="copy_property">@info.parent:usb_device.product</merge>
-           <prepend key="info.product" type="string">USB Mass Storage Interface at </prepend>
-        </match>
-      </match>
-    </match>
-
     <match key="info.category" string="storage">
       <!-- Apple iPod - TODO: use USB ids to determine exact output formats  -->
       <match key="storage.vendor" contains="Apple">
@@ -684,11 +673,11 @@
           <match key="@storage.originating_device:usb.product_id" int="0x4810">
 	    <merge key="storage.model" type="string">V3 series</merge>
 	    <merge key="portable_audio_player.type" type="string">generic</merge>
-	    <match key="@storage.physical_device:info.product" contains="Motorola Phone (V3i)">
+	    <match key="@storage.originating_device:@info.parent:usb_device.product" contains="Motorola Phone (V3i)">
                <merge key="storage.model" type="string">Motorola Phone (V3i)</merge>
                <merge key="portable_audio_player.type" type="string">ipod</merge>
             </match>
-	    <match key="@storage.physical_device:info.product" contains_ncase="iTunes">
+	    <match key="@storage.originating_device:@info.parent:usb_device.product" contains_ncase="iTunes">
                <merge key="storage.model" type="string">Motorola iTunes Phone</merge>
                <merge key="portable_audio_player.type" type="string">ipod</merge>
             </match>


More information about the hal-commit mailing list