* [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list
@ 2016-02-01 5:21 Bard Liao
2016-02-02 19:49 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Bard Liao @ 2016-02-01 5:21 UTC (permalink / raw)
To: broonie, lgirdwood
Cc: oder_chiou, alsa-devel, lars, john.lin, Bard Liao, flove
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".
Signed-off-by: John Lin <john.lin@realtek.com>
Signed-off-by: Bard Liao <bardliao@realtek.com>
---
sound/soc/codecs/rt5645.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 93e8c90..8521b22 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -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"),
+ },
+ },
{ }
};
--
1.8.1.1.439.g50a6b54
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list
2016-02-01 5:21 [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list Bard Liao
@ 2016-02-02 19:49 ` Mark Brown
2016-02-03 2:37 ` Bard Liao
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2016-02-02 19:49 UTC (permalink / raw)
To: Bard Liao; +Cc: oder_chiou, alsa-devel, lars, lgirdwood, john.lin, flove
[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]
On Mon, Feb 01, 2016 at 01:21:18PM +0800, Bard Liao wrote:
> + {
> + .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.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list
2016-02-02 19:49 ` Mark Brown
@ 2016-02-03 2:37 ` Bard Liao
2016-02-09 18:41 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Bard Liao @ 2016-02-03 2:37 UTC (permalink / raw)
To: Mark Brown
Cc: Oder Chiou, alsa-devel@alsa-project.org, lars@metafoo.de,
Koul, Vinod (vinod.koul@intel.com), lgirdwood@gmail.com, John Lin,
rakesh.a.ughreja@intel.com, Flove,
Bossart, Pierre-louis (pierre-louis.bossart@intel.com)
Add some Intel folks.
> -----Original Message-----
> From: Mark Brown [mailto:broonie@kernel.org]
> Sent: Wednesday, February 03, 2016 3:50 AM
> To: Bard Liao
> Cc: lgirdwood@gmail.com; alsa-devel@alsa-project.org;
> lars@metafoo.de; Flove; Oder Chiou; John Lin
> Subject: Re: [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list
>
> On Mon, Feb 01, 2016 at 01:21:18PM +0800, Bard Liao wrote:
>
> > + {
> > + .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".
> 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?
>
> ------Please consider the environment before printing this e-mail.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list
2016-02-03 2:37 ` Bard Liao
@ 2016-02-09 18:41 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2016-02-09 18:41 UTC (permalink / raw)
To: Bard Liao
Cc: Oder Chiou, alsa-devel@alsa-project.org, lars@metafoo.de,
Koul, Vinod (vinod.koul@intel.com), lgirdwood@gmail.com, John Lin,
rakesh.a.ughreja@intel.com, Flove,
Bossart, Pierre-louis (pierre-louis.bossart@intel.com)
[-- Attachment #1.1: Type: text/plain, Size: 925 bytes --]
On Wed, Feb 03, 2016 at 02:37:08AM +0000, Bard Liao wrote:
> Add some Intel folks.
> > 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?
Sure, new matches for specific products are fine - it's just that this
is too big a wildcard.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-09 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 5:21 [PATCH] ASoC: rt5645: add "coreboot" to dmi_system_id list Bard Liao
2016-02-02 19:49 ` Mark Brown
2016-02-03 2:37 ` Bard Liao
2016-02-09 18:41 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).