alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 0/4] ASoC: Intel: HSW and BDW updates
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
@ 2022-08-15 16:57 ` Cezary Rojewski
  2022-08-15 16:58 ` [PATCH 1/4] ASoC: Intel: hsw_rt5640: Rename module Cezary Rojewski
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:57 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Kai Vehmanen, pierre-louis.bossart, tiwai, hdegoede, amadeuszx.slawinski

On 2022-08-15 6:58 PM, Cezary Rojewski wrote:
> Sharing this PR as it touches on cross-driver subjects. Four commits yet
> two subject. Given the small delta, decided to combine within single PR
> here. I plan to send these subjects separately to the mailing list
> though.


I have forgotten to edit some parts of the cover-letter before sending, 
sorry for that. This is basically a copy-paste description from 
thesofproject/linux PR #3799. Patches are OK though.

Mark, let me know if this needs a re-send.

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

* [PATCH 0/4] ASoC: Intel: HSW and BDW updates
@ 2022-08-15 16:58 Cezary Rojewski
  2022-08-15 16:57 ` Cezary Rojewski
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:58 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Cezary Rojewski, kai.vehmanen, pierre-louis.bossart, tiwai,
	hdegoede, amadeuszx.slawinski

Sharing this PR as it touches on cross-driver subjects. Four commits yet
two subject. Given the small delta, decided to combine within single PR
here. I plan to send these subjects separately to the mailing list
though.

1. Rename hsw_rt5640 and bdw_rt286 module names
2. Drop SND_SOC_INTEL_ACPI_MATCH dependency for catpt-driver

In regard to 1), this is a followup to discussion that has already
happened on upstream [1]. Goal is to align kernel module names for hsw
and bdw boards with their siblings found in /intel/boards and
/intel/avs/boards.

In regard to 2), this is yet another followup [2]. Given the fact that
/intel/avs/boards are already their on upstream, intention is to align
catpt-driver to approach found in the avs-driver. This is also my
suggestion for existing sof-boards: most should be listed under
/sof/intel/boards/ as they're not common, really - they're are SOF
specific. I believe that in time /intel/common and /intel/boards should
be either limited or completely removed.

As subject touches code used by the sof-driver, additional review has
been conducted on thesofproject/linux [3].

[1]: https://lore.kernel.org/alsa-devel/54fcdedc-278c-06b8-5402-28880597d3f4@intel.com/
[2]: https://lore.kernel.org/alsa-devel/d9fd60e0-a157-bda7-a918-5548918d1552@intel.com/
[3]: https://github.com/thesofproject/linux/pull/3799

Cezary Rojewski (4):
  ASoC: Intel: hsw_rt5640: Rename module
  ASoC: Intel: bdw_rt286: Rename module
  ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency
  ASoC: Intel: Drop legacy HSW/BDW board-match information

 include/sound/soc-acpi-intel-match.h          |  1 -
 sound/soc/intel/Kconfig                       |  2 +-
 sound/soc/intel/boards/Makefile               |  8 ++---
 sound/soc/intel/catpt/device.c                | 33 +++++++++++++++++--
 .../common/soc-acpi-intel-hsw-bdw-match.c     | 15 ---------
 5 files changed, 35 insertions(+), 24 deletions(-)

-- 
2.25.1


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

* [PATCH 1/4] ASoC: Intel: hsw_rt5640: Rename module
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
  2022-08-15 16:57 ` Cezary Rojewski
@ 2022-08-15 16:58 ` Cezary Rojewski
  2022-08-15 16:58 ` [PATCH 2/4] ASoC: Intel: bdw_rt286: " Cezary Rojewski
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:58 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Cezary Rojewski, Kai Vehmanen, kai.vehmanen,
	pierre-louis.bossart, tiwai, hdegoede, amadeuszx.slawinski

Change kernel module name from snd_soc_sst_haswell to snd_soc_hsw_rt5640
to better reflect its purpose.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/intel/boards/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/intel/boards/Makefile b/sound/soc/intel/boards/Makefile
index eea1e26acfda..c1e532c47e5c 100644
--- a/sound/soc/intel/boards/Makefile
+++ b/sound/soc/intel/boards/Makefile
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
-snd-soc-sst-haswell-objs := hsw_rt5640.o
+snd-soc-hsw-rt5640-objs := hsw_rt5640.o
 snd-soc-sst-bdw-rt5650-mach-objs := bdw-rt5650.o
 snd-soc-sst-bdw-rt5677-mach-objs := bdw-rt5677.o
 snd-soc-sst-broadwell-objs := bdw_rt286.o
@@ -47,7 +47,7 @@ obj-$(CONFIG_SND_SOC_INTEL_SOF_RT5682_MACH) += snd-soc-sof_rt5682.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_CS42L42_MACH) += snd-soc-sof_cs42l42.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH) += snd-soc-sof_es8336.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_NAU8825_MACH) += snd-soc-sof_nau8825.o
-obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o
+obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-hsw-rt5640.o
 obj-$(CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_COMMON) += snd-soc-sst-bxt-da7219_max98357a.o
 obj-$(CONFIG_SND_SOC_INTEL_BXT_RT298_MACH) += snd-soc-sst-bxt-rt298.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_PCM512x_MACH) += snd-soc-sst-sof-pcm512x.o
-- 
2.25.1


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

* [PATCH 2/4] ASoC: Intel: bdw_rt286: Rename module
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
  2022-08-15 16:57 ` Cezary Rojewski
  2022-08-15 16:58 ` [PATCH 1/4] ASoC: Intel: hsw_rt5640: Rename module Cezary Rojewski
@ 2022-08-15 16:58 ` Cezary Rojewski
  2022-08-15 16:58 ` [PATCH 3/4] ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency Cezary Rojewski
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:58 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Cezary Rojewski, Kai Vehmanen, kai.vehmanen,
	pierre-louis.bossart, tiwai, hdegoede, amadeuszx.slawinski

Change kernel module name from snd_soc_sst_broadwell to
snd_soc_bdw_rt286 to better reflect its purpose.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/intel/boards/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/intel/boards/Makefile b/sound/soc/intel/boards/Makefile
index c1e532c47e5c..53458e748191 100644
--- a/sound/soc/intel/boards/Makefile
+++ b/sound/soc/intel/boards/Makefile
@@ -2,7 +2,7 @@
 snd-soc-hsw-rt5640-objs := hsw_rt5640.o
 snd-soc-sst-bdw-rt5650-mach-objs := bdw-rt5650.o
 snd-soc-sst-bdw-rt5677-mach-objs := bdw-rt5677.o
-snd-soc-sst-broadwell-objs := bdw_rt286.o
+snd-soc-bdw-rt286-objs := bdw_rt286.o
 snd-soc-sst-bxt-da7219_max98357a-objs := bxt_da7219_max98357a.o
 snd-soc-sst-bxt-rt298-objs := bxt_rt298.o
 snd-soc-sst-sof-pcm512x-objs := sof_pcm512x.o
@@ -53,7 +53,7 @@ obj-$(CONFIG_SND_SOC_INTEL_BXT_RT298_MACH) += snd-soc-sst-bxt-rt298.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_PCM512x_MACH) += snd-soc-sst-sof-pcm512x.o
 obj-$(CONFIG_SND_SOC_INTEL_SOF_WM8804_MACH) += snd-soc-sst-sof-wm8804.o
 obj-$(CONFIG_SND_SOC_INTEL_GLK_RT5682_MAX98357A_MACH) += snd-soc-sst-glk-rt5682_max98357a.o
-obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o
+obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-bdw-rt286.o
 obj-$(CONFIG_SND_SOC_INTEL_BDW_RT5650_MACH) += snd-soc-sst-bdw-rt5650-mach.o
 obj-$(CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH) += snd-soc-sst-bdw-rt5677-mach.o
 obj-$(CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH) += snd-soc-sst-bytcr-rt5640.o
-- 
2.25.1


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

* [PATCH 3/4] ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
                   ` (2 preceding siblings ...)
  2022-08-15 16:58 ` [PATCH 2/4] ASoC: Intel: bdw_rt286: " Cezary Rojewski
@ 2022-08-15 16:58 ` Cezary Rojewski
  2022-08-15 16:58 ` [PATCH 4/4] ASoC: Intel: Drop legacy HSW/BDW board-match information Cezary Rojewski
  2022-08-16 16:33 ` [PATCH 0/4] ASoC: Intel: HSW and BDW updates Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:58 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Cezary Rojewski, Kai Vehmanen, kai.vehmanen,
	pierre-louis.bossart, tiwai, hdegoede, amadeuszx.slawinski

catpt-driver does not make use of most of the fields found in the
descriptor table and is the sole user of haswell machines list. Move the
tables to local directory and clean them up so it's clear what's
actually used by the solution.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/intel/Kconfig        |  2 +-
 sound/soc/intel/catpt/device.c | 33 ++++++++++++++++++++++++++++++---
 2 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
index ded903f95b67..d2ca710ac3fa 100644
--- a/sound/soc/intel/Kconfig
+++ b/sound/soc/intel/Kconfig
@@ -23,7 +23,7 @@ config SND_SOC_INTEL_CATPT
 	depends on ACPI || COMPILE_TEST
 	depends on DMADEVICES && SND_DMA_SGBUF
 	select DW_DMAC_CORE
-	select SND_SOC_ACPI_INTEL_MATCH
+	select SND_SOC_ACPI if ACPI
 	select WANT_DEV_COREDUMP
 	select SND_INTEL_DSP_CONFIG
 	help
diff --git a/sound/soc/intel/catpt/device.c b/sound/soc/intel/catpt/device.c
index d48a71d2cf1e..d5d08bd766c7 100644
--- a/sound/soc/intel/catpt/device.c
+++ b/sound/soc/intel/catpt/device.c
@@ -22,7 +22,6 @@
 #include <sound/intel-dsp-config.h>
 #include <sound/soc.h>
 #include <sound/soc-acpi.h>
-#include <sound/soc-acpi-intel-match.h>
 #include "core.h"
 #include "registers.h"
 
@@ -310,8 +309,36 @@ static int catpt_acpi_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static struct snd_soc_acpi_mach lpt_machines[] = {
+	{
+		.id = "INT33CA",
+		.drv_name = "hsw_rt5640",
+	},
+	{}
+};
+
+static struct snd_soc_acpi_mach wpt_machines[] = {
+	{
+		.id = "INT33CA",
+		.drv_name = "hsw_rt5640",
+	},
+	{
+		.id = "INT343A",
+		.drv_name = "bdw_rt286",
+	},
+	{
+		.id = "10EC5650",
+		.drv_name = "bdw-rt5650",
+	},
+	{
+		.id = "RT5677CE",
+		.drv_name = "bdw-rt5677",
+	},
+	{}
+};
+
 static struct catpt_spec lpt_desc = {
-	.machines = snd_soc_acpi_intel_haswell_machines,
+	.machines = lpt_machines,
 	.core_id = 0x01,
 	.host_dram_offset = 0x000000,
 	.host_iram_offset = 0x080000,
@@ -326,7 +353,7 @@ static struct catpt_spec lpt_desc = {
 };
 
 static struct catpt_spec wpt_desc = {
-	.machines = snd_soc_acpi_intel_broadwell_machines,
+	.machines = wpt_machines,
 	.core_id = 0x02,
 	.host_dram_offset = 0x000000,
 	.host_iram_offset = 0x0A0000,
-- 
2.25.1


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

* [PATCH 4/4] ASoC: Intel: Drop legacy HSW/BDW board-match information
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
                   ` (3 preceding siblings ...)
  2022-08-15 16:58 ` [PATCH 3/4] ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency Cezary Rojewski
@ 2022-08-15 16:58 ` Cezary Rojewski
  2022-08-16 16:33 ` [PATCH 0/4] ASoC: Intel: HSW and BDW updates Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Cezary Rojewski @ 2022-08-15 16:58 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: Cezary Rojewski, Kai Vehmanen, kai.vehmanen,
	pierre-louis.bossart, tiwai, hdegoede, amadeuszx.slawinski

With board-matching information for legacy solution moved to local
directory, there is no need to expose it globally.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 include/sound/soc-acpi-intel-match.h              |  1 -
 .../intel/common/soc-acpi-intel-hsw-bdw-match.c   | 15 ---------------
 2 files changed, 16 deletions(-)

diff --git a/include/sound/soc-acpi-intel-match.h b/include/sound/soc-acpi-intel-match.h
index bc7fd46ec2bc..14d783952548 100644
--- a/include/sound/soc-acpi-intel-match.h
+++ b/include/sound/soc-acpi-intel-match.h
@@ -14,7 +14,6 @@
  * these tables are not constants, some fields can be used for
  * pdata or machine ops
  */
-extern struct snd_soc_acpi_mach snd_soc_acpi_intel_haswell_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_broadwell_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_baytrail_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cherrytrail_machines[];
diff --git a/sound/soc/intel/common/soc-acpi-intel-hsw-bdw-match.c b/sound/soc/intel/common/soc-acpi-intel-hsw-bdw-match.c
index cbcb649604e5..6daf60b1edf1 100644
--- a/sound/soc/intel/common/soc-acpi-intel-hsw-bdw-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-hsw-bdw-match.c
@@ -9,40 +9,25 @@
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
 
-struct snd_soc_acpi_mach snd_soc_acpi_intel_haswell_machines[] = {
-	{
-		.id = "INT33CA",
-		.drv_name = "hsw_rt5640",
-		.fw_filename = "intel/IntcSST1.bin",
-		.sof_tplg_filename = "sof-hsw.tplg",
-	},
-	{}
-};
-EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_haswell_machines);
-
 struct snd_soc_acpi_mach snd_soc_acpi_intel_broadwell_machines[] = {
 	{
 		.id = "INT343A",
 		.drv_name = "bdw_rt286",
-		.fw_filename =  "intel/IntcSST2.bin",
 		.sof_tplg_filename = "sof-bdw-rt286.tplg",
 	},
 	{
 		.id = "10EC5650",
 		.drv_name = "bdw-rt5650",
-		.fw_filename = "intel/IntcSST2.bin",
 		.sof_tplg_filename = "sof-bdw-rt5650.tplg",
 	},
 	{
 		.id = "RT5677CE",
 		.drv_name = "bdw-rt5677",
-		.fw_filename =  "intel/IntcSST2.bin",
 		.sof_tplg_filename = "sof-bdw-rt5677.tplg",
 	},
 	{
 		.id = "INT33CA",
 		.drv_name = "hsw_rt5640",
-		.fw_filename = "intel/IntcSST2.bin",
 		.sof_tplg_filename = "sof-bdw-rt5640.tplg",
 	},
 	{}
-- 
2.25.1


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

* Re: [PATCH 0/4] ASoC: Intel: HSW and BDW updates
  2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
                   ` (4 preceding siblings ...)
  2022-08-15 16:58 ` [PATCH 4/4] ASoC: Intel: Drop legacy HSW/BDW board-match information Cezary Rojewski
@ 2022-08-16 16:33 ` Mark Brown
  5 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2022-08-16 16:33 UTC (permalink / raw)
  To: alsa-devel, Cezary Rojewski
  Cc: hdegoede, amadeuszx.slawinski, tiwai, kai.vehmanen, pierre-louis.bossart

On Mon, 15 Aug 2022 18:58:14 +0200, Cezary Rojewski wrote:
> Sharing this PR as it touches on cross-driver subjects. Four commits yet
> two subject. Given the small delta, decided to combine within single PR
> here. I plan to send these subjects separately to the mailing list
> though.
> 
> 1. Rename hsw_rt5640 and bdw_rt286 module names
> 2. Drop SND_SOC_INTEL_ACPI_MATCH dependency for catpt-driver
> 
> [...]

Applied to

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

Thanks!

[1/4] ASoC: Intel: hsw_rt5640: Rename module
      commit: 7c32710c8be4be8a2999a648bcb4e899e12f9a4b
[2/4] ASoC: Intel: bdw_rt286: Rename module
      commit: efbaa66852ee98fbd661beef8663d2992cfa901a
[3/4] ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency
      commit: 02f29be6a553e4ebee5b718165b01cc4f17dffa8
[4/4] ASoC: Intel: Drop legacy HSW/BDW board-match information
      commit: a25e1183ea2d0feb068794adf0249919ea7e0d8c

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:[~2022-08-16 16:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 16:58 [PATCH 0/4] ASoC: Intel: HSW and BDW updates Cezary Rojewski
2022-08-15 16:57 ` Cezary Rojewski
2022-08-15 16:58 ` [PATCH 1/4] ASoC: Intel: hsw_rt5640: Rename module Cezary Rojewski
2022-08-15 16:58 ` [PATCH 2/4] ASoC: Intel: bdw_rt286: " Cezary Rojewski
2022-08-15 16:58 ` [PATCH 3/4] ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency Cezary Rojewski
2022-08-15 16:58 ` [PATCH 4/4] ASoC: Intel: Drop legacy HSW/BDW board-match information Cezary Rojewski
2022-08-16 16:33 ` [PATCH 0/4] ASoC: Intel: HSW and BDW updates 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).