Package: hal-info
Version: 20070618-1
Severity: wishlist
Tags: patch

Hi

The attached patch adds support for K810 phone to the
10-usb-music-players.fdi file (this phone contains an usb-storage based
music player).

This phone actually contains two usb-storage devices, one for phone's
internal memory and one for the memory stick reader in the phone.  The
last line in the patch changes the "storage.model" key of the internal
memory device to K810i, because otherwise both devices are displayed as
"Memory stick" in Nautilus and Rhythmbox.

Best regards
Tomaz Solc

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information
--- 10-usb-music-players.fdi.orig       2007-08-08 15:15:14.000000000 +0200
+++ 10-usb-music-players.fdi    2007-08-08 15:55:53.000000000 +0200
@@ -667,6 +667,22 @@
             <append key="portable_audio_player.input_formats" 
type="strlist">audio/x-wav</append>
           </match>
 
+         <!-- Sony Ericsson K810i -->
+         <match key="@storage.originating_device:usb.product_id" int="0xe0a1">
+            <merge key="portable_audio_player.type" 
type="string">generic</merge>
+            <merge key="portable_audio_player.access_method" 
type="string">storage</merge>
+            <append key="portable_audio_player.audio_folders" 
type="strlist">music/</append>
+           <append key="portable_audio_player.output_formats" 
type="strlist">audio/aac</append>
+            <append key="portable_audio_player.output_formats" 
type="strlist">audio/x-wav</append>
+            <append key="portable_audio_player.output_formats" 
type="strlist">audio/AMR</append>
+            <append key="portable_audio_player.input_formats" 
type="strlist">audio/AMR</append>
+
+           <!-- Without this line the phone is displayed as "Sony Ericsson 
Memory Stick" in Rhythmbox -->
+           <match key="@storage.originating_device:usb.interface.number" 
int="0">
+              <merge key="storage.model" type="string">K810i</merge>
+           </match>
+          </match>
+
           <!-- Sony Ericsson W300i -->
           <match key="@storage.originating_device:usb.product_id" int="0xe053">
             <merge key="portable_audio_player.type" 
type="string">generic</merge>

Reply via email to