Bug 15812 - Q-be music player support
Summary: Q-be music player support
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: spec (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-03 08:44 UTC by Sense Hofstede
Modified: 2008-05-05 11:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sense Hofstede 2008-05-03 08:44:19 UTC
As reported in LP #225949 the Q-be music player isn't detected properly. The reported has written something to add to /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi to let HAL detect this player properly.
Some information:
$lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 012: ID 0f9c:9111 Hyun Won, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

The addition to the .fdi file:
        <match key="@storage.originating_device:usb.vendor_id" int="0x0f9c">
          <match key="@storage.originating_device:usb.product_id" int="0x9111">
            <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
            <append key="portable_audio_player.output_formats" type="strlist">audio/mpeg</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
          </match>
        </match>

Another reply from him suggests this to make it more general:
"After playing with the .fdi file a bit more, I've found that a more generic match works which will probably add support for a number of other devices:

  <match key="info.product" contains="AUDIO PLAYER">
    <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
    <append key="portable_audio_player.output_formats" type="strlist">audio/mpeg</append>
    <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
  </match>

However, i suppose other devices are likely to support a different set of file formats so maybe a combination would be best:

  <match key="@storage.originating_device:usb.vendor_id" int="0x0f9c">
    <match key="info.product" contains="AUDIO PLAYER">
      <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
      <append key="portable_audio_player.output_formats" type="strlist">audio/mpeg</append>
      <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
    </match>
  </match>

I don't know, just thinking. I suppose the main goal is to get the original match i submitted into HAL."

The bug report at Launchpad:
https://bugs.edge.launchpad.net/ubuntu/+source/hal/+bug/225949
Comment 1 Danny Kukawka 2008-05-05 11:59:31 UTC
commit cb50182e3ba7922354607811d001ef63cf9a5da2
Author: Danny Kukawka <danny.kukawka@web.de>
Date:   Mon May 5 20:57:54 2008 +0200

    add support for Q-be music player

    Applied adopted version of a patch from fd.o bug #15812 to support
    for a Q-be music player.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.