ASoC: Intel: HSW and BDW updates
Subsystems (3)
Cezary Rojewski
maintainercover ASoC: Intel: HSW and BDW updates
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/[email protected]/
[2]: https://lore.kernel.org/alsa-devel/[email protected]/
[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(-)
Signature · 1 line
2.25.1
Cezary Rojewski
maintainerPATCH 1/4 ASoC: Intel: hsw_rt5640: Rename module
Change kernel module name from snd_soc_sst_haswell to snd_soc_hsw_rt5640 to better reflect its purpose.
--- sound/soc/intel/boards/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/Makefile +2 -2
@@ -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
Signature · 1 line
2.25.1
Cezary Rojewski
maintainerPATCH 2/4 ASoC: Intel: bdw_rt286: Rename module
In reply to Cezary RojewskiChange kernel module name from snd_soc_sst_broadwell to snd_soc_bdw_rt286 to better reflect its purpose.
--- sound/soc/intel/boards/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/Makefile +2 -2
@@ -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
Signature · 1 line
2.25.1
Cezary Rojewski
maintainerPATCH 3/4 ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency
In reply to Cezary Rojewskicatpt-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.
--- sound/soc/intel/Kconfig | 2 +- sound/soc/intel/catpt/device.c | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-)
sound/soc/intel/Kconfig +1 -1
@@ -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
sound/soc/intel/catpt/device.c +30 -3
@@ -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 ,
Signature · 1 line
2.25.1
Cezary Rojewski
maintainerPATCH 4/4 ASoC: Intel: Drop legacy HSW/BDW board-match information
In reply to Cezary RojewskiWith board-matching information for legacy solution moved to local directory, there is no need to expose it globally.
--- include/sound/soc-acpi-intel-match.h | 1 - .../intel/common/soc-acpi-intel-hsw-bdw-match.c | 15 --------------- 2 files changed, 16 deletions(-)
include/sound/soc-acpi-intel-match.h +0 -1
@@ -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[];
sound/soc/intel/common/soc-acpi-intel-hsw-bdw-match.c +0 -15
@@ -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" , }, {}
Signature · 1 line
2.25.1
Cezary Rojewski
maintainerQuoted 4 lines · Cezary Rojewski
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.
Mark Brown
maintainerQuoted 9 lines · Cezary Rojewski
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_rt5640andbdw_rt286module names
2. DropSND_SOC_INTEL_ACPI_MATCHdependency 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: a25e1183ea2d0feb068794adf0249919ea7e0d8cAll 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