alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models
@ 2021-02-16 21:35 Hans de Goede
  2021-02-16 21:35 ` [PATCH 1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Hans de Goede @ 2021-02-16 21:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

Hi All,

Here is a patch series adding quirks with device-specific settings for
4 more tablet / 2-in-1 models.

Regards,

Hans


Hans de Goede (4):
  ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
  ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
  ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
  ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet

 sound/soc/intel/boards/bytcr_rt5640.c | 37 +++++++++++++++++++++++++++
 sound/soc/intel/boards/bytcr_rt5651.c | 13 ++++++++++
 2 files changed, 50 insertions(+)

-- 
2.30.1


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

* [PATCH 1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
@ 2021-02-16 21:35 ` Hans de Goede
  2021-02-16 21:35 ` [PATCH 2/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet Hans de Goede
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2021-02-16 21:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

The Estar Beauty HD MID 7316R tablet almost fully works with out default
settings. The only problem is that it has only 1 speaker so any sounds
only playing on the right channel get lost.

Add a quirk for this model using the default settings + MONO_SPEAKER.

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

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index 2dee84578b90..3008e3cbcbb8 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -531,6 +531,16 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_MONO_SPEAKER |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* Estar Beauty HD MID 7316R */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
+		},
+		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+					BYT_RT5640_MONO_SPEAKER |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
-- 
2.30.1


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

* [PATCH 2/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
  2021-02-16 21:35 ` [PATCH 1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Hans de Goede
@ 2021-02-16 21:35 ` Hans de Goede
  2021-02-16 21:35 ` [PATCH 3/4] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Hans de Goede
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2021-02-16 21:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

The Voyo Winpad A15 tablet uses a Bay Trail (non CR) SoC, so it is using
SSP2 (AIF1) and it mostly works with the defaults. But instead of using
DMIC1 it is using an analog mic on IN1, add a quirk for this.

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 3008e3cbcbb8..a81820943de6 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -824,6 +824,20 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF2 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* Voyo Winpad A15 */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
+			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
+			/* Above strings are too generic, also match on BIOS date */
+			DMI_MATCH(DMI_BIOS_DATE, "11/20/2014"),
+		},
+		.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_DIFF_MIC |
+					BYT_RT5640_MCLK_EN),
+	},
 	{	/* Catch-all for generic Insyde tablets, must be last */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
-- 
2.30.1


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

* [PATCH 3/4] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
  2021-02-16 21:35 ` [PATCH 1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Hans de Goede
  2021-02-16 21:35 ` [PATCH 2/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet Hans de Goede
@ 2021-02-16 21:35 ` Hans de Goede
  2021-02-16 21:35 ` [PATCH 4/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Hans de Goede
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2021-02-16 21:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

Add a DMI quirk for the Jumper EZpad 7 tablet, this tablet has
a jack-detect switch which reads 1/high when a jack is inserted,
rather then using the standard active-low setup which most
jack-detect switches use. All other settings are using the defaults.

Add a DMI-quirk setting the defaults + the BYT_RT5651_JD_NOT_INV
flags for this.

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

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index f289ec8563a1..148b7b1bd3e8 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -435,6 +435,19 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
 					BYT_RT5651_SSP0_AIF1 |
 					BYT_RT5651_MONO_SPEAKER),
 	},
+	{
+		/* Jumper EZpad 7 */
+		.callback = byt_rt5651_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
+			/* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
+			DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
+		},
+		.driver_data = (void *)(BYT_RT5651_DEFAULT_QUIRKS |
+					BYT_RT5651_IN2_MAP |
+					BYT_RT5651_JD_NOT_INV),
+	},
 	{
 		/* KIANO SlimNote 14.2 */
 		.callback = byt_rt5651_quirk_cb,
-- 
2.30.1


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

* [PATCH 4/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
                   ` (2 preceding siblings ...)
  2021-02-16 21:35 ` [PATCH 3/4] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Hans de Goede
@ 2021-02-16 21:35 ` Hans de Goede
  2021-02-16 21:49 ` [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Pierre-Louis Bossart
  2021-02-17 18:52 ` Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2021-02-16 21:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, Hans de Goede, alsa-devel, Bard Liao

The Acer One S1002 tablet is using an analog mic on IN1 and has
its jack-detect connected to JD2_IN4N, instead of using the default
IN3 for its internal mic and JD1_IN4P for jack-detect.

Note it is also using AIF2 instead of AIF1 which is somewhat unusual,
this is correctly advertised in the ACPI CHAN package, so the speakers
do work without the quirk.

Add a quirk for the mic and jack-detect settings.

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

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index a81820943de6..782f2b4d72ad 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -406,6 +406,19 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF1 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* Acer One 10 S1002 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "One S1002"),
+		},
+		.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_DIFF_MIC |
+					BYT_RT5640_SSP0_AIF2 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
-- 
2.30.1


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

* Re: [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
                   ` (3 preceding siblings ...)
  2021-02-16 21:35 ` [PATCH 4/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Hans de Goede
@ 2021-02-16 21:49 ` Pierre-Louis Bossart
  2021-02-17 18:52 ` Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Pierre-Louis Bossart @ 2021-02-16 21:49 UTC (permalink / raw)
  To: Hans de Goede, Cezary Rojewski, Liam Girdwood, Mark Brown
  Cc: Oder Chiou, alsa-devel, Bard Liao



On 2/16/21 3:35 PM, Hans de Goede wrote:
> Hi All,
> 
> Here is a patch series adding quirks with device-specific settings for
> 4 more tablet / 2-in-1 models.

Some of those 2014 devices will soon be collector items ;-)

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

> 
> Regards,
> 
> Hans
> 
> 
> Hans de Goede (4):
>    ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
>    ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
>    ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
>    ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet
> 
>   sound/soc/intel/boards/bytcr_rt5640.c | 37 +++++++++++++++++++++++++++
>   sound/soc/intel/boards/bytcr_rt5651.c | 13 ++++++++++
>   2 files changed, 50 insertions(+)
> 

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

* Re: [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models
  2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
                   ` (4 preceding siblings ...)
  2021-02-16 21:49 ` [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Pierre-Louis Bossart
@ 2021-02-17 18:52 ` Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2021-02-17 18:52 UTC (permalink / raw)
  To: Hans de Goede, Pierre-Louis Bossart, Liam Girdwood, Cezary Rojewski
  Cc: Oder Chiou, alsa-devel, Bard Liao

On Tue, 16 Feb 2021 22:35:51 +0100, Hans de Goede wrote:
> Here is a patch series adding quirks with device-specific settings for
> 4 more tablet / 2-in-1 models.
> 
> Regards,
> 
> Hans
> 
> [...]

Applied to

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

Thanks!

[1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
      commit: bdea43fc0436c9e98fdfe151c2ed8a3fc7277404
[2/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
      commit: e1317cc9ca4ac20262895fddb065ffda4fc29cfb
[3/4] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
      commit: df8359c512fa770ffa6b0b0309807d9b9825a47f
[4/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet
      commit: c58947af08aedbdee0fce5ea6e6bf3e488ae0e2c

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] 7+ messages in thread

end of thread, other threads:[~2021-02-17 18:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 21:35 [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Hans de Goede
2021-02-16 21:35 ` [PATCH 1/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Hans de Goede
2021-02-16 21:35 ` [PATCH 2/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet Hans de Goede
2021-02-16 21:35 ` [PATCH 3/4] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Hans de Goede
2021-02-16 21:35 ` [PATCH 4/4] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Hans de Goede
2021-02-16 21:49 ` [PATCH 0/4] ASoC: Intel: bytcr_rt5640: Add quirks for 4 more tablet / 2-in-1 models Pierre-Louis Bossart
2021-02-17 18:52 ` 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).