ASoC: rt5645: add "coreboot" to dmi_system_id list
Subsystems (3)
PATCH 1/1 ASoC: rt5645: add "coreboot" to dmi_system_id list
There are some Google projects with manufacturer name different from "GOOGLE". So we need to add DMI list for those projects. However some OEMs / vendors want to keep secret before product launch. So, we can't use DMI_SYS_VENDOR for them. Fortunately, the BIOS vendor field is the same for all chrome os projects. It allows us to match chrome projects by DMI_BIOS_VENDOR = "coreboot".
--- sound/soc/codecs/rt5645.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/codecs/rt5645.c +6 -0
@@ -3552,6 +3552,12 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = { DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), }, }, + { + .ident = "Google Chrome", + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + }, + }, { } };
Signature · 1 line
1.8.1.1.439.g50a6b54
Mark Brown
maintainersound/soc/codecs/rt5645.c static const struct dmi_system_id dmi_platform_intel_braswell[] = { · line 3560
Quoted 6 lines · Bard Liao
sound/soc/codecs/rt5645.c +6
-0+ { + .ident = "Google Chrome", + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + }, + },
While coreboot is most commonly seen in ChromeOS systems it's not unique to them so this seems likely to generate false positives. Since the target for this change is internal-only development hardware it doesn't seem unreasonable to expect people to be able to keep changes like device ID updates internally. This is one of the many costs of BIOSes that require us to do such DMI hacks, it'd be much better to improve the firmware and the driver so they can specify required properties directly rather than relying on DMI.
Add some Intel folks.
Quoted 10 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, February 03, 2016 3:50 AM
To: Bard Liao
Cc: [email protected]; [email protected]; [email protected]; Flove; Oder Chiou; John Lin
Subject: Re: [PATCH] ASoC: rt5645: add "coreboot" todmi_system_idlistOn Mon, Feb 01, 2016 at 01:21:18PM +0800, Bard Liao wrote:
Quoted 9 lines
sound/soc/codecs/rt5645.c static const struct dmi_system_id dmi_platform_intel_braswell[] = { · line 3560
Quoted 6 lines
sound/soc/codecs/rt5645.c +6
-0+ { + .ident = "Google Chrome", + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + }, + },While coreboot is most commonly seen in ChromeOS systems it's not unique to them so this seems likely to generate false positives. Since
So far, almost all ChromeOS system with rt5650 codec have the same properties. We think the settings can be a default setting for rt5650 codec. That's why we use DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE") and place it in the lowest priority currently. Adding "coreboot" is for those ChromeOS system other than with DMI_SYS_VENDOR "GOOGLE".
Quoted 6 lines
the target for this change is internal-only development hardware it doesn't seem unreasonable to expect people to be able to keep changes like device ID updates internally. This is one of the many costs of BIOSes that require us to do such DMI hacks, it'd be much better to improve the firmware and the driver so they can specify required properties directly rather than relying on DMI.
Agree. We will find a more reasonable way (maybe ACPI) to specify required properties directly. However, I can expect that will take time. If you think use "coreboot" is not a good idea, can we match the DMI_PRODUCT_NAME field just like before until we finish the implementation of specifying required properties directly?
Quoted 2 lines
------Please consider the environment before printing this e-mail.
Mark Brown
maintainerQuoted 9 lines · Bard Liao
Add some Intel folks.
Quoted 6 lines
the target for this change is internal-only development hardware it doesn't seem unreasonable to expect people to be able to keep changes like device ID updates internally. This is one of the many costs of BIOSes that require us to do such DMI hacks, it'd be much better to improve the firmware and the driver so they can specify required properties directly rather than relying on DMI.
Quoted 5 lines
Agree. We will find a more reasonable way (maybe ACPI) to specify required properties directly. However, I can expect that will take time. If you think use "coreboot" is not a good idea, can we match the
DMI_PRODUCT_NAMEfield just like before until we finish the implementation of specifying required properties directly?
Sure, new matches for specific products are fine - it's just that this is too big a wildcard.