Do not fallback to audio-card

Let the frontend choose the most appropriate icon if unspecified.
This commit is contained in:
Richard Hughes 2022-04-25 12:47:27 +01:00
parent 0570829981
commit b7bf0a7611
4 changed files with 1 additions and 16 deletions

View File

@ -267,9 +267,6 @@ GET_DEVICES = """{
"VendorId" : "PCI:0x1234",
"Version" : "02",
"VersionFormat" : "plain",
"Icons" : [
"audio-card"
],
"Created" : 1614209932
},
{
@ -439,9 +436,6 @@ GET_DEVICES_NO_UPDATES = """{
"VendorId" : "PCI:0x10DE",
"Version" : "a1",
"VersionFormat" : "plain",
"Icons" : [
"audio-card"
],
"Created" : 1592899254
},
{
@ -753,9 +747,6 @@ GET_DEVICES_NO_VERSION = """{
"Vendor" : "NVIDIA Corporation",
"VendorId" : "PCI:0x10DE",
"VersionFormat" : "plain",
"Icons" : [
"audio-card"
],
"Created" : 1592899254
},
{

View File

@ -117,7 +117,6 @@ static void
fu_optionrom_device_init(FuOptionromDevice *self)
{
fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_INTERNAL);
fu_device_add_icon(FU_DEVICE(self), "audio-card");
fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_CAN_VERIFY_IMAGE);
fu_device_set_logical_id(FU_DEVICE(self), "rom");
fu_udev_device_set_flags(FU_UDEV_DEVICE(self),

View File

@ -62,7 +62,6 @@ fu_redfish_device_set_device_class(FuRedfishDevice *self, const gchar *tmp)
return;
}
g_debug("no icon mapping for %s", tmp);
fu_device_add_icon(FU_DEVICE(self), "audio-card");
}
static gboolean

View File

@ -649,11 +649,7 @@ fu_uefi_device_probe(FuDevice *device, GError **error)
fu_device_add_internal_flag(device, FU_DEVICE_INTERNAL_FLAG_MD_SET_VENDOR);
/* add icons */
if (priv->kind == FU_UEFI_DEVICE_KIND_DEVICE_FIRMWARE) {
/* nothing better in the icon naming spec */
fu_device_add_icon(device, "audio-card");
} else {
/* this is probably system firmware */
if (priv->kind == FU_UEFI_DEVICE_KIND_SYSTEM_FIRMWARE) {
fu_device_add_icon(device, "computer");
fu_device_add_instance_id(device, "main-system-firmware");
}