diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index 87fa3ed96..5a410d54c 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -473,13 +473,25 @@ fdi_camera_func (const func_params_t *params, printf(" \n", a->usb_vendor); printf(" \n", a->usb_product); printf(" camera\n"); - printf(" camera\n"); + if (a->device_type & GP_DEVICE_AUDIO_PLAYER) { + printf(" camera\n"); + printf(" portable_audio_player\n"); + printf(" portable_audio_player\n"); + printf(" libgphoto2\n"); + printf(" user\n"); - /* HACK alert ... but the HAL / gnome-volume-manager guys want that */ - if (NULL!=strstr(a->library,"ptp")) - printf(" ptp\n"); - else - printf(" proprietary\n"); + /* FIXME: needs true formats ... But all of them can do MP3 */ + printf(" audio/mpeg\n"); + } else { + printf(" camera\n"); + + /* HACK alert ... but the HAL / gnome-volume-manager guys want that */ + if (NULL!=strstr(a->library,"ptp")) + printf(" ptp\n"); + else + printf(" proprietary\n"); + } + /* leave them here even for audio players */ printf(" %s\n", model); printf(" true\n"); printf(" \n"); @@ -577,7 +589,10 @@ fdi_device_camera_func (const func_params_t *params, */ printf(" \n", a->usb_vendor); printf(" \n", a->usb_product); - printf(" camera\n"); + if (a->device_type & GP_DEVICE_AUDIO_PLAYER) + printf(" portable_audio_player\n"); + else + printf(" camera\n"); printf(" \n"); printf(" \n"); }