Skip to contentSkip to conversation

ASoC: Intel: boards: quirks and DMIC corrections

PATCH In review Pierre-Louis Bossart 2 participants 9 messages Aug 9, 2019 – Aug 12, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ASoC: Intel: boards: quirks and DMIC corrections

Extend quirk for GeminiLake-based Chromebooks and correct missing dependencies for DMIC support (align with all other machine drivers).

Keyon Jie (3):
ASoC: Intel: sof-rt5682: add dmic dapm widget to support dmic PCM
ASoC: Intel: skl-hda-dsp-generic: add dependency to dmic driver
ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and route

Sathya Prakash M R (1):
ASoC: Intel: boards: Match Product Family instead of product

 sound/soc/intel/boards/Kconfig               | 1 +
 sound/soc/intel/boards/skl_hda_dsp_generic.c | 4 ++++
 sound/soc/intel/boards/sof_rt5682.c          | 7 +++++--
 3 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/4 ASoC: Intel: boards: Match Product Family instead of product

From: Sathya Prakash M R <[email protected]>

The generic machine driver of sof_rt5682 supports more platforms of same product family. hence match the product family instead of product name.

---
 sound/soc/intel/boards/sof_rt5682.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/intel/boards/sof_rt5682.c +1 -2
index daeaa396d928..c1181bc0119e 100644
@@ -91,8 +91,7 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = {
 	{
 		.callback = sof_rt5682_quirk_cb,
 		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "Hatch"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Hatch"),
 		},
 		.driver_data = (void *)(SOF_RT5682_MCLK_EN |
 					SOF_RT5682_MCLK_24MHZ |
Signature · 1 line
2.20.1
maintainer
#2 lore raw

Applied "ASoC: Intel: boards: Match Product Family instead of product" to the asoc tree

The patch

ASoC: Intel: boards: Match Product Family instead of product

has been applied to the asoc tree at

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

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 1a3fb5d3f420d5f022768fcff091e5a9862f5877 Mon Sep 17 00:00:00 2001

From: Sathya Prakash M R <[email protected]>
Date: Fri, 9 Aug 2019 18:22:33 -0500
Subject: [PATCH] ASoC: Intel: boards: Match Product Family instead of product

The generic machine driver of sof_rt5682 supports more platforms of same product family. hence match the product family instead of product name.

---
 sound/soc/intel/boards/sof_rt5682.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/intel/boards/sof_rt5682.c +1 -2
index daeaa396d928..c1181bc0119e 100644
@@ -91,8 +91,7 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = {
 	{
 		.callback = sof_rt5682_quirk_cb,
 		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "Hatch"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Hatch"),
 		},
 		.driver_data = (void *)(SOF_RT5682_MCLK_EN |
 					SOF_RT5682_MCLK_24MHZ |
Signature · 1 line
2.20.1
#3 lore raw

PATCH 2/4 ASoC: Intel: sof-rt5682: add dmic dapm widget to support dmic PCM

In reply to Pierre-Louis Bossart

From: Keyon Jie <[email protected]>

We need add DAPM MIC endpoint widget "SoC DMIC" and route, to enable DMIC PCM DAPM support.

---
 sound/soc/intel/boards/sof_rt5682.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/soc/intel/boards/sof_rt5682.c +4 -0
index c1181bc0119e..a437567b8cee 100644
@@ -308,6 +308,7 @@ static const struct snd_soc_dapm_widget sof_widgets[] = {
 	SND_SOC_DAPM_HP("Headphone Jack", NULL),
 	SND_SOC_DAPM_MIC("Headset Mic", NULL),
 	SND_SOC_DAPM_SPK("Spk", NULL),
+	SND_SOC_DAPM_MIC("SoC DMIC", NULL),
 };
 
 static const struct snd_soc_dapm_route sof_map[] = {
@@ -318,6 +319,9 @@ static const struct snd_soc_dapm_route sof_map[] = {
 	/* other jacks */
 	{ "IN1P", NULL, "Headset Mic" },
 
+	/* digital mics */
+	{"DMic", NULL, "SoC DMIC"},
+
 };
 
 static const struct snd_soc_dapm_route speaker_map[] = {
Signature · 1 line
2.20.1
maintainer
#4 lore raw

Applied "ASoC: Intel: sof-rt5682: add dmic dapm widget to support dmic PCM" to the asoc tree

The patch

ASoC: Intel: sof-rt5682: add dmic dapm widget to support dmic PCM

has been applied to the asoc tree at

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

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 8afd1a99d713ccc7cf1bd509b205c3bb60cf0b90 Mon Sep 17 00:00:00 2001

From: Keyon Jie <[email protected]>
Date: Fri, 9 Aug 2019 18:22:34 -0500
Subject: [PATCH] ASoC: Intel: sof-rt5682: add dmic dapm widget to support dmic
PCM

We need add DAPM MIC endpoint widget "SoC DMIC" and route, to enable DMIC PCM DAPM support.

---
 sound/soc/intel/boards/sof_rt5682.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/soc/intel/boards/sof_rt5682.c +4 -0
index 64db00353e18..7285474f7d65 100644
@@ -309,6 +309,7 @@ static const struct snd_soc_dapm_widget sof_widgets[] = {
 	SND_SOC_DAPM_HP("Headphone Jack", NULL),
 	SND_SOC_DAPM_MIC("Headset Mic", NULL),
 	SND_SOC_DAPM_SPK("Spk", NULL),
+	SND_SOC_DAPM_MIC("SoC DMIC", NULL),
 };
 
 static const struct snd_soc_dapm_route sof_map[] = {
@@ -319,6 +320,9 @@ static const struct snd_soc_dapm_route sof_map[] = {
 	/* other jacks */
 	{ "IN1P", NULL, "Headset Mic" },
 
+	/* digital mics */
+	{"DMic", NULL, "SoC DMIC"},
+
 };
 
 static const struct snd_soc_dapm_route speaker_map[] = {
Signature · 1 line
2.20.1
#5 lore raw

PATCH 3/4 ASoC: Intel: skl-hda-dsp-generic: add dependency to dmic driver

In reply to Pierre-Louis Bossart

From: Keyon Jie <[email protected]>

The hda generic machine actually has dependency on the dmic driver, select SND_SOC_DMIC at the machine selected to fix it.

---
 sound/soc/intel/boards/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/boards/Kconfig +1 -0
index 50bf149818b5..4a529cea0190 100644
@@ -387,6 +387,7 @@ if SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC || SND_SOC_SOF_HDA_AUDIO_CODEC
 config SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH
 	tristate "SKL/KBL/BXT/APL with HDA Codecs"
 	select SND_SOC_HDAC_HDMI
+	select SND_SOC_DMIC
 	# SND_SOC_HDAC_HDA is already selected
 	help
 	  This adds support for ASoC machine driver for Intel platforms
Signature · 1 line
2.20.1
maintainer
#6 lore raw

Applied "ASoC: Intel: skl-hda-dsp-generic: add dependency to dmic driver" to the asoc tree

The patch

ASoC: Intel: skl-hda-dsp-generic: add dependency to dmic driver

has been applied to the asoc tree at

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

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 0181d2853126db0717de6bd5b3287f1c87faf7c3 Mon Sep 17 00:00:00 2001

From: Keyon Jie <[email protected]>
Date: Fri, 9 Aug 2019 18:22:35 -0500
Subject: [PATCH] ASoC: Intel: skl-hda-dsp-generic: add dependency to dmic
driver

The hda generic machine actually has dependency on the dmic driver, select SND_SOC_DMIC at the machine selected to fix it.

---
 sound/soc/intel/boards/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/boards/Kconfig +1 -0
index 50bf149818b5..4a529cea0190 100644
@@ -387,6 +387,7 @@ if SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC || SND_SOC_SOF_HDA_AUDIO_CODEC
 config SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH
 	tristate "SKL/KBL/BXT/APL with HDA Codecs"
 	select SND_SOC_HDAC_HDMI
+	select SND_SOC_DMIC
 	# SND_SOC_HDAC_HDA is already selected
 	help
 	  This adds support for ASoC machine driver for Intel platforms
Signature · 1 line
2.20.1
#7 lore raw

PATCH 4/4 ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and route

In reply to Pierre-Louis Bossart

From: Keyon Jie <[email protected]>

Adding DAPM MIC endpoint widget "SoC DMIC" and route, to enable DMIC DAPM support with hda generic machine.

---
 sound/soc/intel/boards/skl_hda_dsp_generic.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/soc/intel/boards/skl_hda_dsp_generic.c +4 -0
index 9ed68eb4f058..1778acdc367c 100644
@@ -23,6 +23,7 @@ static const struct snd_soc_dapm_widget skl_hda_widgets[] = {
 	SND_SOC_DAPM_MIC("Alt Analog In", NULL),
 	SND_SOC_DAPM_SPK("Digital Out", NULL),
 	SND_SOC_DAPM_MIC("Digital In", NULL),
+	SND_SOC_DAPM_MIC("SoC DMIC", NULL),
 };
 
 static const struct snd_soc_dapm_route skl_hda_map[] = {
@@ -41,6 +42,9 @@ static const struct snd_soc_dapm_route skl_hda_map[] = {
 	{ "Codec Input Pin2", NULL, "Digital In" },
 	{ "Codec Input Pin3", NULL, "Alt Analog In" },
 
+	/* digital mics */
+	{"DMic", NULL, "SoC DMIC"},
+
 	/* CODEC BE connections */
 	{ "Analog Codec Playback", NULL, "Analog CPU Playback" },
 	{ "Analog CPU Playback", NULL, "codec0_out" },
Signature · 1 line
2.20.1
maintainer
#8 lore raw

Applied "ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and route" to the asoc tree

The patch

ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and route

has been applied to the asoc tree at

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

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 79631210fc413546d0ed73632ff904ded5192cc9 Mon Sep 17 00:00:00 2001

From: Keyon Jie <[email protected]>
Date: Fri, 9 Aug 2019 18:22:36 -0500
Subject: [PATCH] ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and
route

Adding DAPM MIC endpoint widget "SoC DMIC" and route, to enable DMIC DAPM support with hda generic machine.

---
 sound/soc/intel/boards/skl_hda_dsp_generic.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/soc/intel/boards/skl_hda_dsp_generic.c +4 -0
index 9ed68eb4f058..1778acdc367c 100644
@@ -23,6 +23,7 @@ static const struct snd_soc_dapm_widget skl_hda_widgets[] = {
 	SND_SOC_DAPM_MIC("Alt Analog In", NULL),
 	SND_SOC_DAPM_SPK("Digital Out", NULL),
 	SND_SOC_DAPM_MIC("Digital In", NULL),
+	SND_SOC_DAPM_MIC("SoC DMIC", NULL),
 };
 
 static const struct snd_soc_dapm_route skl_hda_map[] = {
@@ -41,6 +42,9 @@ static const struct snd_soc_dapm_route skl_hda_map[] = {
 	{ "Codec Input Pin2", NULL, "Digital In" },
 	{ "Codec Input Pin3", NULL, "Alt Analog In" },
 
+	/* digital mics */
+	{"DMic", NULL, "SoC DMIC"},
+
 	/* CODEC BE connections */
 	{ "Analog Codec Playback", NULL, "Analog CPU Playback" },
 	{ "Analog CPU Playback", NULL, "codec0_out" },
Signature · 1 line
2.20.1