Skip to contentSkip to conversation

ASoC: rt5645: Add dmi_system_id "Google Terra"

PATCH In review Bard Liao 2 participants 5 messages Nov 24, 2015 – Nov 26, 2015

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/1 ASoC: rt5645: Add dmi_system_id "Google Terra"

Add platform specific data for Terra project.

---
 sound/soc/codecs/rt5645.c | 7 +++++++
 1 file changed, 7 insertions(+)
sound/soc/codecs/rt5645.c +7 -0
index 2c4f06f..7b140cc 100644
@@ -3572,6 +3572,13 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Wizpig"),
 		},
 	},
+	{
+		.ident = "Google Terra",
+		.callback = strago_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Terra"),
+		},
+	},
 	{ }
 };
 
Signature · 1 line
1.8.1.1.439.g50a6b54
maintainer
#1 lore raw

sound/soc/codecs/rt5645.c static const struct dmi_system_id dmi_platform_intel_braswell[] = { · line 3581

Quoted 7 lines · Bard Liao
sound/soc/codecs/rt5645.c +7 -0
+	{
+		.ident = "Google Terra",
+		.callback = strago_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Terra"),
+		},
+	},

It might make more sense to just have a single entry for all these Google platforms and extend this table rather than adding a complete new entry for every platform - they're all the same and it'd make the table smaller.

author
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 25, 2015 8:02 PM
To: Bard Liao
Cc: [email protected]; [email protected]; [email protected]; Flove; Oder Chiou; John Lin; [email protected]
Subject: Re: [PATCH] ASoC: rt5645: Add dmi_system_id "Google Terra"

On Tue, Nov 24, 2015 at 10:55:29AM +0800, Bard Liao wrote:

Quoted 11 lines

sound/soc/codecs/rt5645.c static const struct dmi_system_id dmi_platform_intel_braswell[] = { · line 3581

Quoted 7 lines
sound/soc/codecs/rt5645.c +7 -0
+	{
+		.ident = "Google Terra",
+		.callback = strago_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Terra"),
+		},
+	},

It might make more sense to just have a single entry for all these Google platforms and extend this table rather than adding a complete new entry for every platform - they're all the same and it'd make the table smaller.

Totally agree. We are trying to simplify the code. The idea is using DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE") for all google project except a few projects with different HW design. We will use if else statement to match the projects with special HW design first and the general ones. Also, I think those can support DT/ACPI should have higher priority than DMI match, right?

Quoted 2 lines

------Please consider the environment before printing this e-mail.

maintainer
#3 lore raw
Quoted 12 lines · Bard Liao
Quoted 11 lines

sound/soc/codecs/rt5645.c static const struct dmi_system_id dmi_platform_intel_braswell[] = { · line 3581

Quoted 7 lines
sound/soc/codecs/rt5645.c +7 -0
+	{
+		.ident = "Google Terra",
+		.callback = strago_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Terra"),
+		},
+	},

It might make more sense to just have a single entry for all these Google platforms and extend this table rather than adding a complete new entry for every platform - they're all the same and it'd make the table smaller.

Quoted 4 lines

Totally agree. We are trying to simplify the code. The idea is using DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE") for all google project except a few projects with different HW design. We will use if else statement to match the projects with special HW design first and the

OK, that's a bit more than what I was thinking but sounds good - my thought was just to merge entries so there were more things in the .matches table.

Quoted 2 lines

general ones. Also, I think those can support DT/ACPI should have higher priority than DMI match, right?

That might lead to problems - one thing DMI gets used for is to override information from the firmware to fix bugs in what it's doing.

maintainer
#4 lore raw

Applied "ASoC: rt5645: Add dmi_system_id "Google Terra"" to the asoc tree

In reply to Bard Liao

The patch

ASoC: rt5645: Add dmi_system_id "Google Terra"

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 6b3cecd11539178978e1f54fe1363c39fe0db045 Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Tue, 24 Nov 2015 10:55:29 +0800
Subject: [PATCH] ASoC: rt5645: Add dmi_system_id "Google Terra"

Add platform specific data for Terra project.

---
 sound/soc/codecs/rt5645.c | 7 +++++++
 1 file changed, 7 insertions(+)
sound/soc/codecs/rt5645.c +7 -0
index 5af90234d453..ef76940f9dcb 100644
@@ -3392,6 +3392,13 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Wizpig"),
 		},
 	},
+	{
+		.ident = "Google Terra",
+		.callback = strago_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Terra"),
+		},
+	},
 	{ }
 };
 
Signature · 1 line
2.6.2