All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add HP Stream 8 to bytcr_rt5640.c
@ 2022-12-13 17:35 Moises Cardona
  2022-12-13 19:04   ` Pierre-Louis Bossart
  2022-12-14  9:22   ` Hans de Goede
  0 siblings, 2 replies; 17+ messages in thread
From: Moises Cardona @ 2022-12-13 17:35 UTC (permalink / raw)
  To: cezary.rojewski
  Cc: pierre-louis.bossart, liam.r.girdwood, peter.ujfalusi,
	yung-chuan.liao, ranjani.sridharan, kai.vehmanen, broonie, perex,
	tiwai, hdegoede, oder_chiou, akihiko.odaki, alsa-devel,
	linux-kernel, Moises Cardona

The HP Stream 8 tablet is identical to the HP Stream 7 in terms of the PCB,
with the exception of the added SIM Card Slot. 
Therefore, I'm submitting this patch which properly initializes the audio 
and enables the headphone jack to work, just like it does in the 
HP Stream 7.

Signed-off-by: Moises Cardona <moisesmcardona@gmail.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 fb9d9e271845..1d964b1ceff4 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -796,6 +796,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF1 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* HP Stream 8 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "HP Stream 8 Tablet"),
+		},
+		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+					BYT_RT5640_MONO_SPEAKER |
+					BYT_RT5640_JD_NOT_INV |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{	/* I.T.Works TW891 */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 17+ messages in thread
* [PATCH] Add HP Stream 8 to bytcr_rt5640.c
@ 2022-12-14 12:08 Moises Cardona
  2022-12-14 15:41   ` Hans de Goede
  2022-12-14 21:23   ` Mark Brown
  0 siblings, 2 replies; 17+ messages in thread
From: Moises Cardona @ 2022-12-14 12:08 UTC (permalink / raw)
  To: cezary.rojewski
  Cc: pierre-louis.bossart, liam.r.girdwood, peter.ujfalusi,
	yung-chuan.liao, ranjani.sridharan, kai.vehmanen, broonie, perex,
	tiwai, hdegoede, oder_chiou, akihiko.odaki, alsa-devel,
	linux-kernel, Moises Cardona

The bytcr_rt5640.c file already supports the HP Stream 7.

The HP Stream 8 is almost identical in terms of the hardware
with the exception of it having stereo speakers, a SIM
card slot and the obvious size difference.


Signed-off-by Moises Cardona <moisesmcardona@gmail.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 fb9d9e271845..569d039d680b 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -796,6 +796,16 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF1 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* HP Stream 8 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "HP Stream 8 Tablet"),
+		},
+		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+					BYT_RT5640_JD_NOT_INV |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{	/* I.T.Works TW891 */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 17+ messages in thread
[parent not found: <20221213115950.998113-1-moisesmcardona@gmail.com>]
* [PATCH] Add HP Stream 8 to bytcr_rt5640.c
@ 2022-12-12 20:58 Moises Cardona
  2022-12-13 11:52 ` Mark Brown
  0 siblings, 1 reply; 17+ messages in thread
From: Moises Cardona @ 2022-12-12 20:58 UTC (permalink / raw)
  To: broonie; +Cc: perex, tiwai, linux-kernel, Moises Cardona

The HP Stream 8 tablet is identical to the HP Stream 7 in terms of the PCB,
with the exception of the added SIM Card Slot. 
Therefore, I'm submitting this patch which properly initializes the audio 
and enables the headphone jack to work, just like it does in the 
HP Stream 7.

Signed-off-by: Moises Cardona <moisesmcardona@gmail.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 fb9d9e271845..1d964b1ceff4 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -796,6 +796,17 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = {
 					BYT_RT5640_SSP0_AIF1 |
 					BYT_RT5640_MCLK_EN),
 	},
+	{	/* HP Stream 8 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "HP Stream 8 Tablet"),
+		},
+		.driver_data = (void *)(BYTCR_INPUT_DEFAULTS |
+					BYT_RT5640_MONO_SPEAKER |
+					BYT_RT5640_JD_NOT_INV |
+					BYT_RT5640_SSP0_AIF1 |
+					BYT_RT5640_MCLK_EN),
+	},
 	{	/* I.T.Works TW891 */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
-- 
2.37.2


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

end of thread, other threads:[~2022-12-14 21:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-13 17:35 [PATCH] Add HP Stream 8 to bytcr_rt5640.c Moises Cardona
2022-12-13 19:04 ` Pierre-Louis Bossart
2022-12-13 19:04   ` Pierre-Louis Bossart
2022-12-14 15:42   ` Hans de Goede
2022-12-14 15:42     ` Hans de Goede
2022-12-14 18:16     ` Mark Brown
2022-12-14 18:16       ` Mark Brown
2022-12-14  9:22 ` Hans de Goede
2022-12-14  9:22   ` Hans de Goede
  -- strict thread matches above, loose matches on Subject: below --
2022-12-14 12:08 Moises Cardona
2022-12-14 15:41 ` Hans de Goede
2022-12-14 15:41   ` Hans de Goede
2022-12-14 21:23 ` Mark Brown
2022-12-14 21:23   ` Mark Brown
     [not found] <20221213115950.998113-1-moisesmcardona@gmail.com>
2022-12-13 17:09 ` Pierre-Louis Bossart
2022-12-12 20:58 Moises Cardona
2022-12-13 11:52 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.