hal-info: Branch 'master'
Martin Pitt
martin at kemper.freedesktop.org
Wed Jun 17 09:57:14 PDT 2009
fdi/information/10freedesktop/10-usb-music-players.fdi | 125 ++++++++++-------
1 file changed, 80 insertions(+), 45 deletions(-)
New commits:
commit a24984bac808382951ed2fe3ee6a6700bf7e3839
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jun 17 18:55:38 2009 +0200
10-usb-music-players.fdi: Flatten product id tests
Nested product IDs are harder to maintain and much harder to translate into
udev rules automatically. Flatten them out.
See http://lists.freedesktop.org/archives/devkit-devel/2009-June/000226.html
for details.
diff --git a/fdi/information/10freedesktop/10-usb-music-players.fdi b/fdi/information/10freedesktop/10-usb-music-players.fdi
index 99d36b1..e686732 100644
--- a/fdi/information/10freedesktop/10-usb-music-players.fdi
+++ b/fdi/information/10freedesktop/10-usb-music-players.fdi
@@ -253,19 +253,25 @@
<append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
<append key="portable_audio_player.input_formats" type="strlist">audio/x-wav</append>
</match>
- <!-- Samsung YP-J70, YP-T7F -->
- <match key="@storage.originating_device:usb.product_id" int_outof="0x5032;0x503d">
+ <!-- Samsung YP-T7F -->
+ <match key="@storage.originating_device:usb.product_id" int="0x503d">
<addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
<append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
<append key="portable_audio_player.input_formats" type="strlist">audio/x-wav</append>
<append key="portable_audio_player.audio_folders" type="strlist">Music/</append>
+ </match>
<!-- Samsung YP-J70 -->
- <match key="@storage.originating_device:usb.product_id" int="0x5032">
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDED/</append>
- <merge key="storage.requires_eject" type="bool">true</merge>
- </match>
+ <match key="@storage.originating_device:usb.product_id" int="0x5032">
+ <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">Music/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDED/</append>
+ <merge key="storage.requires_eject" type="bool">true</merge>
</match>
<!-- Samsung YP-Z5 -->
<match key="@storage.originating_device:usb.product_id" int="0x5041">
@@ -540,8 +546,8 @@
<!-- Cowon -->
<match key="@storage.originating_device:usb.vendor_id" int="0xe21">
- <!-- iAUDIO M3, X5, M5, U3 , F2, 7-->
- <match key="@storage.originating_device:usb.product_id" int_outof="0x500;0x510;0x520;0x700;0x710;0x730;0x750">
+ <!-- iAUDIO M3 -->
+ <match key="@storage.originating_device:usb.product_id" int_outof="0x500">
<addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
<append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
@@ -550,45 +556,68 @@
<append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
<append key="portable_audio_player.playlist_format" type="strlist">audio/x-mpegurl</append>
<append key="portable_audio_player.playlist_path" type="string">PLAYLIST/%File</append>
- <!-- iAUDIO X5, M5, F2, 7 -->
- <match key="@storage.originating_device:usb.product_id" int_outof="0x510;0x520;0x710;0x730;0x750">
- <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORD/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">VOICE/</append>
- </match>
- <!-- iAUDIO U3 -->
- <match key="@storage.originating_device:usb.product_id" int="0x700">
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/FM/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/LINEIN/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/VOICE/</append>
- </match>
</match>
- <!-- iAUDIO G3, 5, G2 -->
- <match key="@storage.originating_device:usb.product_id" int_outof="0x601;0x602;0x604;0x760">
+ <!-- iAUDIO X5, M5, F2, 7 -->
+ <match key="@storage.originating_device:usb.product_id" int_outof="0x510;0x520;0x710;0x730;0x750">
<addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
<append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/flac</append>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
<append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
<append key="portable_audio_player.playlist_format" type="strlist">audio/x-mpegurl</append>
<append key="portable_audio_player.playlist_path" type="string">PLAYLIST/%File</append>
- <!-- iAUDIO G2 -->
- <match key="@storage.originating_device:usb.product_id" int="0x760">
- <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORD/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">VOICE/</append>
- </match>
- <!-- iAUDIO U2 -->
- <match key="@storage.originating_device:usb.product_id" int="0x600">
- <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
- <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
- <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
- <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
- <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/FM/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/LINEIN/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/VOICE/</append>
- </match>
+ <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORD/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">VOICE/</append>
+ </match>
+ <!-- iAUDIO U3 -->
+ <match key="@storage.originating_device:usb.product_id" int="0x700">
+ <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/flac</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+ <append key="portable_audio_player.playlist_format" type="strlist">audio/x-mpegurl</append>
+ <append key="portable_audio_player.playlist_path" type="string">PLAYLIST/%File</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/FM/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/LINEIN/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/VOICE/</append>
+ </match>
+ <!-- iAUDIO G3, 5 -->
+ <match key="@storage.originating_device:usb.product_id" int_outof="0x601;0x602;0x604">
+ <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+ <append key="portable_audio_player.playlist_format" type="strlist">audio/x-mpegurl</append>
+ <append key="portable_audio_player.playlist_path" type="string">PLAYLIST/%File</append>
+ </match>
+ <!-- iAUDIO G2 -->
+ <match key="@storage.originating_device:usb.product_id" int="0x760">
+ <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+ <append key="portable_audio_player.playlist_format" type="strlist">audio/x-mpegurl</append>
+ <append key="portable_audio_player.playlist_path" type="string">PLAYLIST/%File</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORD/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">VOICE/</append>
+ </match>
+ <!-- iAUDIO U2 -->
+ <match key="@storage.originating_device:usb.product_id" int="0x600">
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/FM/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/LINEIN/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">RECORDS/VOICE/</append>
</match>
</match>
@@ -949,18 +978,24 @@
<append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
</match>
<!-- T30 UMS firmware v1.7 , S10 UMS firmware v1.05 -->
- <match key="@storage.originating_device:usb.product_id" int_outof="0x1019;0x1023">
+ <match key="@storage.originating_device:usb.product_id" int_outof="0x1023">
<addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
<append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
<append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
<append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
<append key="portable_audio_player.playlist_format" type="strlist">audio/x-iriver-pla</append>
<append key="portable_audio_player.playlist_path" type="string">Playlists/%File</append>
- <!-- S10 UMS firmware v1.05 folder -->
- <match key="@storage.originating_device:usb.product_id" int="0x1023">
- <append key="portable_audio_player.audio_folders" type="strlist">Music/</append>
- <append key="portable_audio_player.audio_folders" type="strlist">Recordings/</append>
- </match>
+ </match>
+ <!-- S10 UMS firmware v1.05 folder -->
+ <match key="@storage.originating_device:usb.product_id" int="0x1023">
+ <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
+ <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
+ <append key="portable_audio_player.output_formats" type="strlist">application/ogg</append>
+ <append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
+ <append key="portable_audio_player.playlist_format" type="strlist">audio/x-iriver-pla</append>
+ <append key="portable_audio_player.playlist_path" type="string">Playlists/%File</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">Music/</append>
+ <append key="portable_audio_player.audio_folders" type="strlist">Recordings/</append>
</match>
<!-- iFP 100 UMS, 300 UMS, 500 UMS (supports application/ogg only after firmware upgrade),
N10 UMS
More information about the hal-commit
mailing list