Skip to contentSkip to conversation

ASoC: soc-core.c: Add "Unknown" and "Unknown Product" to dmi_blacklist

PATCH Superseded Daniel Abrecht 2 participants 3 messages Jan 17, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: soc-core.c: Add "Unknown" and "Unknown Product" to dmi_blacklist

In U-Boot, the default for DMI vendor / product if not set is "Unknown" and "Unknown Product". See https://source.denx.de/u-boot/u-boot/-/blob/v2023.10/lib/smbios.c?ref_type=tags#L272

This patch adds them to the dmi_blacklist.

---
 sound/soc/soc-core.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/soc-core.c +2 -0
index f8524b5bfb33..aa1a31abbe3a 100644
@@ -1804,6 +1804,8 @@ static const char * const dmi_blacklist[] = {
     "Board Manufacturer",
     "Board Vendor Name",
     "Board Product Name",
+    "Unknown",
+    "Unknown Product",
     NULL,    /* terminator */
 };
 
Signature · 1 line
2.39.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Daniel Abrecht

In U-Boot, the default for DMI vendor / product if not set is "Unknown" and "Unknown Product".
See
https://source.denx.de/u-boot/u-boot/-/blob/v2023.10/lib/smbios.c?ref_type=tags#L272

This patch adds them to the dmi_blacklist.

I think that there's a whitespace issue, but for the contents:

Quoted 17 lines
---
   sound/soc/soc-core.c | 2 ++
   1 file changed, 2 insertions(+)
sound/soc/soc-core.c +2 -0
index f8524b5bfb33..aa1a31abbe3a 100644
@@ -1804,6 +1804,8 @@ static const char * const dmi_blacklist[] = {
       "Board Manufacturer",
       "Board Vendor Name",
       "Board Product Name",
+    "Unknown",
+    "Unknown Product",
       NULL,    /* terminator */
   };
 
Signature · 2 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
#2 lore raw

Am 2024-01-17 13:20, schrieb Jaroslav Kysela:

Quoted 6 lines · Daniel Abrecht
Quoted 5 lines

In U-Boot, the default for DMI vendor / product if not set is "Unknown" and "Unknown Product".
See
https://source.denx.de/u-boot/u-boot/-/blob/v2023.10/lib/smbios.c?ref_type=tags#L272

Quoted 7 lines
Quoted 3 lines

This patch adds them to the dmi_blacklist.

I think that there's a whitespace issue, but for the contents:

Sorry about the whitespace thing. I'll try again.