Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
@ 2021-05-08 15:01 Hans de Goede
  2021-05-08 15:01 ` [PATCH 2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hans de Goede @ 2021-05-08 15:01 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Jie Yang,
	Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

Add a quirk for the Glavey TM800A550L tablet, this BYTCR tablet has no CHAN
package in its ACPI tables and uses SSP0-AIF1 rather then SSP0-AIF2 which
is the default for BYTCR devices.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 sound/soc/intel/boards/bytcr_rt5640.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index df2f5d55e8ff..b42fa292d408 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -574,6 +574,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF1 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* Glavey TM800A550L */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
+			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
+			/* Above strings are too generic, also match on BIOS version */
+			DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
+		},
+		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
-- 
2.31.1


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

* [PATCH 2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
  2021-05-08 15:01 [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Hans de Goede
@ 2021-05-08 15:01 ` Hans de Goede
  2021-05-10 14:39 ` [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Pierre-Louis Bossart
  2021-05-11 18:21 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2021-05-08 15:01 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Jie Yang,
	Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

The Lenovo Miix 3-830 tablet has only 1 speaker, has an internal analog
mic on IN1 and uses JD2 for jack-detect, add a quirk to automatically
apply these settings on Lenovo Miix 3-830 tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 sound/soc/intel/boards/bytcr_rt5640.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index b42fa292d408..22dbd9d93c1e 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -663,6 +663,20 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_MONO_SPEAKER |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* Lenovo Miix 3-830 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 3-830"),
+		},
+		.driver_data = (void *)(BYT_RT5640_IN1_MAP |
+					BYT_RT5640_JD_SRC_JD2_IN4N |
+					BYT_RT5640_OVCD_TH_2000UA |
+					BYT_RT5640_OVCD_SF_0P75 |
+					BYT_RT5640_MONO_SPEAKER |
+					BYT_RT5640_DIFF_MIC |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{	/* Linx Linx7 tablet */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LINX"),
-- 
2.31.1


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

* Re: [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
  2021-05-08 15:01 [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Hans de Goede
  2021-05-08 15:01 ` [PATCH 2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet Hans de Goede
@ 2021-05-10 14:39 ` Pierre-Louis Bossart
  2021-05-11 18:21 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Pierre-Louis Bossart @ 2021-05-10 14:39 UTC (permalink / raw)
  To: Hans de Goede, Cezary Rojewski, Liam Girdwood, Jie Yang,
	Mark Brown
  Cc: Oder Chiou, alsa-devel, Bard Liao



On 5/8/21 10:01 AM, Hans de Goede wrote:
> Add a quirk for the Glavey TM800A550L tablet, this BYTCR tablet has no CHAN
> package in its ACPI tables and uses SSP0-AIF1 rather then SSP0-AIF2 which
> is the default for BYTCR devices.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

For the series,

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> ---
>   sound/soc/intel/boards/bytcr_rt5640.c | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 
> diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
> index df2f5d55e8ff..b42fa292d408 100644
> --- a/sound/soc/intel/boards/bytcr_rt5640.c
> +++ b/sound/soc/intel/boards/bytcr_rt5640.c
> @@ -574,6 +574,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
>   					BYT_RT5640_SSP0_AIF1 |
>   					BYT_RT5640_MCLK_EN),
>   	},
> +	{	/* Glavey TM800A550L */
> +		.matches = {
> +			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
> +			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
> +			/* Above strings are too generic, also match on BIOS version */
> +			DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
> +		},
> +		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
> +					BYT_RT5640_SSP0_AIF1 |
> +					BYT_RT5640_MCLK_EN),
> +	},
>   	{
>   		.matches = {
>   			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
> 

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

* Re: [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
  2021-05-08 15:01 [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Hans de Goede
  2021-05-08 15:01 ` [PATCH 2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet Hans de Goede
  2021-05-10 14:39 ` [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Pierre-Louis Bossart
@ 2021-05-11 18:21 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2021-05-11 18:21 UTC (permalink / raw)
  To: Jie Yang, Pierre-Louis Bossart, Liam Girdwood, Hans de Goede,
	Cezary Rojewski
  Cc: Oder Chiou, alsa-devel, Mark Brown, Bard Liao

On Sat, 8 May 2021 17:01:45 +0200, Hans de Goede wrote:
> Add a quirk for the Glavey TM800A550L tablet, this BYTCR tablet has no CHAN
> package in its ACPI tables and uses SSP0-AIF1 rather then SSP0-AIF2 which
> is the default for BYTCR devices.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
      commit: 28c268d3acdd4cbcd2ac320b85609e77f84e74a7
[2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
      commit: f0353e1f53f92f7b3da91e6669f5d58ee222ebe8

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

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

end of thread, other threads:[~2021-05-11 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-08 15:01 [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Hans de Goede
2021-05-08 15:01 ` [PATCH 2/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet Hans de Goede
2021-05-10 14:39 ` [PATCH 1/2] ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet Pierre-Louis Bossart
2021-05-11 18:21 ` Mark Brown

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