10-usb-music-players.fdi patch for HTC G1 (First Android Phone)

Martin Pitt martin.pitt at ubuntu.com
Tue Oct 28 07:33:46 PDT 2008


Hi Sandy,

Sandy Armstrong [2008-10-28  5:53 -0700]:
> Thanks!  For future reference, what is audio/mpeg redundant with?  I
> thought it was the correct mime type for MP3 files?

Since almost all players support it, there is a general rule in that
FDI which adds it:

    <!-- Set common keys for detected audio player if you have special cases add the player below this match -->
    <match key="portable_audio_player.access_method.protocols" exists="true">
      <match key="portable_audio_player.access_method.protocols" contains="storage">
        <merge key="portable_audio_player.storage_device" type="copy_property">info.udi</merge>
      </match>
      <append key="info.capabilities" type="strlist">portable_audio_player</append>
      <merge key="info.category" type="string">portable_audio_player</merge>
      <!-- all player in the list above support this output format -->
      <append key="portable_audio_player.output_formats" type="strlist">audio/mpeg</append>
    </match>

All players which don't have to go *below* that rule, all players
which support it (the bulk) go above.

HTH, Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the hal mailing list