public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] ALSA: SOF: sof-pci-dev: Fix community key quirk detection
@ 2023-10-20 20:59 Mark Hasemeyer
  2023-10-20 21:19 ` Curtis Malainey
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Hasemeyer @ 2023-10-20 20:59 UTC (permalink / raw)
  To: LKML
  Cc: Curtis Malainey, Mark Hasemeyer, stable, Bard Liao, Daniel Baluta,
	Jaroslav Kysela, Kai Vehmanen, Liam Girdwood, Mark Brown,
	Peter Ujfalusi, Pierre-Louis Bossart, Ranjani Sridharan,
	Takashi Iwai, alsa-devel, sound-open-firmware

Some Chromebooks do not populate the product family DMI value resulting
in firmware load failures.

Add another quirk detection entry that looks for "Google" in the BIOS
version. Theoretically, PRODUCT_FAMILY could be replaced with
BIOS_VERSION, but it is left as a quirk to be conservative.

Cc: stable@vger.kernel.org
Signed-off-by: Mark Hasemeyer <markhas@chromium.org>
---

 sound/soc/sof/sof-pci-dev.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c
index 1d706490588e..64b326e3ef85 100644
--- a/sound/soc/sof/sof-pci-dev.c
+++ b/sound/soc/sof/sof-pci-dev.c
@@ -145,6 +145,13 @@ static const struct dmi_system_id community_key_platforms[] = {
 			DMI_MATCH(DMI_PRODUCT_FAMILY, "Google"),
 		}
 	},
+	{
+		.ident = "Google firmware",
+		.callback = chromebook_use_community_key,
+		.matches = {
+			DMI_MATCH(DMI_BIOS_VERSION, "Google"),
+		}
+	},
 	{},
 };
 
-- 
2.42.0.655.g421f12c284-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-24 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 20:59 [PATCH v1] ALSA: SOF: sof-pci-dev: Fix community key quirk detection Mark Hasemeyer
2023-10-20 21:19 ` Curtis Malainey
2023-10-20 21:21   ` Pierre-Louis Bossart
2023-10-20 21:21 ` Mark Brown
2023-10-24 13:55 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox