ASoC: SOF: Intel: add module namespace support
Subsystems (3)
cover ASoC: SOF: Intel: add module namespace support
A lot of the existing SOF/Intel drivers expose ops structures or helpers that should not be visible or loadable by other drivers. During the last round of SoundWire reviews, GregKH suggested the use of module namespaces [1] to avoid exposing symbols that are only meant to be used in a restricted context.
This patchset suggests the use of namespaces for the different Intel parts, largely modeled after the existing hiearchical Kconfig options. While several SOF reviewers suggested on GitHub that this use of namespaces was too fine-grained, it can also be argued that this level of detail helps identify cases where the existing structures are not properly defined. We found such a case with the Xtensa architecture abstraction and another code partitioning issue for the SoundWire driver yesterday.
Module namespaces are currently not used widely in kernel circles, this is a first attempt to test the water for audio drivers and gather comments from maintainers/reviewers.
[1] https://www.kernel.org/doc/html/latest/core-api/symbol-namespaces.html
Pierre-Louis Bossart (8):
ASoC: SOF: Intel: add module namespace for legacy IPC
ASoC: SOF: Intel: add namespaces for BAYTRAIL and MERRIFIELD
ASoC: SOF: Intel: add namespace for BROADWELL
ASoC: SOF: remove references to Haswell
ASoC: SOF: Intel: add namespace for HDA_COMMON
ASoC: SOF: Intel: hda: add namespace for hda-codec functionality
ASoC: SOF: move arch_ops under ops
ASoC: SOF: Intel: add namespace for XTENSA
include/sound/sof.h | 1 - sound/soc/sof/Kconfig | 2 +- sound/soc/sof/intel/apl.c | 6 ++++-- sound/soc/sof/intel/bdw.c | 8 ++++++-- sound/soc/sof/intel/byt.c | 20 ++++++++++++++------ sound/soc/sof/intel/cnl.c | 14 ++++++++------ sound/soc/sof/intel/hda-codec.c | 14 +++++++------- sound/soc/sof/intel/hda.c | 3 +++ sound/soc/sof/intel/intel-ipc.c | 8 ++++---- sound/soc/sof/intel/shim.h | 6 ++---- sound/soc/sof/sof-acpi-dev.c | 26 ++------------------------ sound/soc/sof/sof-pci-dev.c | 12 ++---------- sound/soc/sof/sof-priv.h | 4 +++- sound/soc/sof/xtensa/core.c | 2 +- 14 files changed, 57 insertions(+), 69 deletions(-)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 1/8 ASoC: SOF: Intel: add module namespace for legacy IPC
The legacy IPC routines are only used by broadwell and baytrail modules, import them as needed and make sure other modules cannot load them.
--- sound/soc/sof/intel/bdw.c | 1 + sound/soc/sof/intel/byt.c | 1 + sound/soc/sof/intel/intel-ipc.c | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-)
sound/soc/sof/intel/bdw.c +1 -0
@@ -642,3 +642,4 @@ const struct sof_intel_dsp_desc bdw_chip_info = {EXPORT_SYMBOL (bdw_chip_info);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/intel/byt.c +1 -0
@@ -877,3 +877,4 @@ EXPORT_SYMBOL(cht_chip_info);#endif /* CONFIG_SND_SOC_SOF_BAYTRAIL */ MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/intel/intel-ipc.c +4 -4
@@ -39,7 +39,7 @@ void intel_ipc_msg_data(struct snd_sof_dev *sdev,sof_mailbox_read (sdev, stream->posn_offset, p, sz); } } -EXPORT_SYMBOL (intel_ipc_msg_data); +EXPORT_SYMBOL_NS (intel_ipc_msg_data,SND_SOC_SOF_INTEL_HIFI_EP_IPC ); int intel_ipc_pcm_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream,
@@ -60,7 +60,7 @@ int intel_ipc_pcm_params(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_ipc_pcm_params); +EXPORT_SYMBOL_NS (intel_ipc_pcm_params,SND_SOC_SOF_INTEL_HIFI_EP_IPC );int intel_pcm_open (struct snd_sof_dev *sdev,struct snd_pcm_substream *substream)
@@ -75,7 +75,7 @@ int intel_pcm_open(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_pcm_open); +EXPORT_SYMBOL_NS (intel_pcm_open,SND_SOC_SOF_INTEL_HIFI_EP_IPC );int intel_pcm_close (struct snd_sof_dev *sdev,struct snd_pcm_substream *substream)
@@ -87,6 +87,6 @@ int intel_pcm_close(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_pcm_close); +EXPORT_SYMBOL_NS (intel_pcm_close,SND_SOC_SOF_INTEL_HIFI_EP_IPC );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: add module namespace for legacy IPC" to the asoc tree
The patch
ASoC: SOF: Intel: add module namespace for legacy IPC
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From f4483a0fda1df3e5b4f25de647b8777d2481f08c Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:24 -0600
Subject: [PATCH] ASoC: SOF: Intel: add module namespace for legacy IPC
The legacy IPC routines are only used by broadwell and baytrail modules, import them as needed and make sure other modules cannot load them.
--- sound/soc/sof/intel/bdw.c | 1 + sound/soc/sof/intel/byt.c | 1 + sound/soc/sof/intel/intel-ipc.c | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-)
sound/soc/sof/intel/bdw.c +1 -0
@@ -642,3 +642,4 @@ const struct sof_intel_dsp_desc bdw_chip_info = {EXPORT_SYMBOL (bdw_chip_info);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/intel/byt.c +1 -0
@@ -877,3 +877,4 @@ EXPORT_SYMBOL(cht_chip_info);#endif /* CONFIG_SND_SOC_SOF_BAYTRAIL */ MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/intel/intel-ipc.c +4 -4
@@ -39,7 +39,7 @@ void intel_ipc_msg_data(struct snd_sof_dev *sdev,sof_mailbox_read (sdev, stream->posn_offset, p, sz); } } -EXPORT_SYMBOL (intel_ipc_msg_data); +EXPORT_SYMBOL_NS (intel_ipc_msg_data,SND_SOC_SOF_INTEL_HIFI_EP_IPC ); int intel_ipc_pcm_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream,
@@ -60,7 +60,7 @@ int intel_ipc_pcm_params(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_ipc_pcm_params); +EXPORT_SYMBOL_NS (intel_ipc_pcm_params,SND_SOC_SOF_INTEL_HIFI_EP_IPC );int intel_pcm_open (struct snd_sof_dev *sdev,struct snd_pcm_substream *substream)
@@ -75,7 +75,7 @@ int intel_pcm_open(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_pcm_open); +EXPORT_SYMBOL_NS (intel_pcm_open,SND_SOC_SOF_INTEL_HIFI_EP_IPC );int intel_pcm_close (struct snd_sof_dev *sdev,struct snd_pcm_substream *substream)
@@ -87,6 +87,6 @@ int intel_pcm_close(struct snd_sof_dev *sdev,return 0 ; } -EXPORT_SYMBOL (intel_pcm_close); +EXPORT_SYMBOL_NS (intel_pcm_close,SND_SOC_SOF_INTEL_HIFI_EP_IPC );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 2/8 ASoC: SOF: Intel: add namespaces for BAYTRAIL and MERRIFIELD
In reply to Pierre-Louis BossartDefine separate namespaces and include them in ACPI and PCI top-level modules.
--- sound/soc/sof/intel/byt.c | 12 ++++++------ sound/soc/sof/sof-acpi-dev.c | 1 + sound/soc/sof/sof-pci-dev.c | 1 + 3 files changed, 8 insertions(+), 6 deletions(-)
sound/soc/sof/intel/byt.c +6 -6
@@ -619,13 +619,13 @@ const struct snd_sof_dsp_ops sof_tng_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_tng_ops); +EXPORT_SYMBOL_NS (sof_tng_ops,SND_SOC_SOF_MERRIFIELD );const struct sof_intel_dsp_desc tng_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (tng_chip_info); +EXPORT_SYMBOL_NS (tng_chip_info,SND_SOC_SOF_MERRIFIELD );#endif /* CONFIG_SND_SOC_SOF_MERRIFIELD */
@@ -793,13 +793,13 @@ const struct snd_sof_dsp_ops sof_byt_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_byt_ops); +EXPORT_SYMBOL_NS (sof_byt_ops,SND_SOC_SOF_BAYTRAIL );const struct sof_intel_dsp_desc byt_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (byt_chip_info); +EXPORT_SYMBOL_NS (byt_chip_info,SND_SOC_SOF_BAYTRAIL );/* cherrytrail and braswell ops */ const struct snd_sof_dsp_ops sof_cht_ops = {
@@ -866,13 +866,13 @@ const struct snd_sof_dsp_ops sof_cht_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_cht_ops); +EXPORT_SYMBOL_NS (sof_cht_ops,SND_SOC_SOF_BAYTRAIL );const struct sof_intel_dsp_desc cht_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (cht_chip_info); +EXPORT_SYMBOL_NS (cht_chip_info,SND_SOC_SOF_BAYTRAIL );#endif /* CONFIG_SND_SOC_SOF_BAYTRAIL */
sound/soc/sof/sof-acpi-dev.c +1 -0
@@ -240,3 +240,4 @@ static struct platform_driver snd_sof_acpi_driver = {module_platform_driver (snd_sof_acpi_driver);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_BAYTRAIL );
sound/soc/sof/sof-pci-dev.c +1 -0
@@ -419,3 +419,4 @@ static struct pci_driver snd_sof_pci_driver = {module_pci_driver (snd_sof_pci_driver);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_MERRIFIELD );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: add namespaces for BAYTRAIL and MERRIFIELD" to the asoc tree
The patch
ASoC: SOF: Intel: add namespaces for BAYTRAIL and MERRIFIELD
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From e42b19450866fbd447e459d8935c208e3888705a Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:25 -0600
Subject: [PATCH] ASoC: SOF: Intel: add namespaces for BAYTRAIL and MERRIFIELD
Define separate namespaces and include them in ACPI and PCI top-level modules.
--- sound/soc/sof/intel/byt.c | 12 ++++++------ sound/soc/sof/sof-acpi-dev.c | 1 + sound/soc/sof/sof-pci-dev.c | 1 + 3 files changed, 8 insertions(+), 6 deletions(-)
sound/soc/sof/intel/byt.c +6 -6
@@ -619,13 +619,13 @@ const struct snd_sof_dsp_ops sof_tng_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_tng_ops); +EXPORT_SYMBOL_NS (sof_tng_ops,SND_SOC_SOF_MERRIFIELD );const struct sof_intel_dsp_desc tng_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (tng_chip_info); +EXPORT_SYMBOL_NS (tng_chip_info,SND_SOC_SOF_MERRIFIELD );#endif /* CONFIG_SND_SOC_SOF_MERRIFIELD */
@@ -793,13 +793,13 @@ const struct snd_sof_dsp_ops sof_byt_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_byt_ops); +EXPORT_SYMBOL_NS (sof_byt_ops,SND_SOC_SOF_BAYTRAIL );const struct sof_intel_dsp_desc byt_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (byt_chip_info); +EXPORT_SYMBOL_NS (byt_chip_info,SND_SOC_SOF_BAYTRAIL );/* cherrytrail and braswell ops */ const struct snd_sof_dsp_ops sof_cht_ops = {
@@ -866,13 +866,13 @@ const struct snd_sof_dsp_ops sof_cht_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_cht_ops); +EXPORT_SYMBOL_NS (sof_cht_ops,SND_SOC_SOF_BAYTRAIL );const struct sof_intel_dsp_desc cht_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (cht_chip_info); +EXPORT_SYMBOL_NS (cht_chip_info,SND_SOC_SOF_BAYTRAIL );#endif /* CONFIG_SND_SOC_SOF_BAYTRAIL */
sound/soc/sof/sof-acpi-dev.c +1 -0
@@ -240,3 +240,4 @@ static struct platform_driver snd_sof_acpi_driver = {module_platform_driver (snd_sof_acpi_driver);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_BAYTRAIL );
sound/soc/sof/sof-pci-dev.c +1 -0
@@ -415,3 +415,4 @@ static struct pci_driver snd_sof_pci_driver = {module_pci_driver (snd_sof_pci_driver);MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_MERRIFIELD );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 3/8 ASoC: SOF: Intel: add namespace for BROADWELL
In reply to Pierre-Louis BossartDefine namespace and include it in ACPI top-level module.
--- sound/soc/sof/intel/bdw.c | 4 ++-- sound/soc/sof/sof-acpi-dev.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
sound/soc/sof/intel/bdw.c +2 -2
@@ -633,13 +633,13 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_bdw_ops); +EXPORT_SYMBOL_NS (sof_bdw_ops,SND_SOC_SOF_BROADWELL );const struct sof_intel_dsp_desc bdw_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (bdw_chip_info); +EXPORT_SYMBOL_NS (bdw_chip_info,SND_SOC_SOF_BROADWELL );MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/sof-acpi-dev.c +1 -0
@@ -241,3 +241,4 @@ module_platform_driver(snd_sof_acpi_driver);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_BAYTRAIL ); +MODULE_IMPORT_NS (SND_SOC_SOF_BROADWELL );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: add namespace for BROADWELL" to the asoc tree
The patch
ASoC: SOF: Intel: add namespace for BROADWELL
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 8caa99bb5d8007fdd206ed6ba2fe4f881b1552c7 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:26 -0600
Subject: [PATCH] ASoC: SOF: Intel: add namespace for BROADWELL
Define namespace and include it in ACPI top-level module.
--- sound/soc/sof/intel/bdw.c | 4 ++-- sound/soc/sof/sof-acpi-dev.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
sound/soc/sof/intel/bdw.c +2 -2
@@ -633,13 +633,13 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_BATCH , }; -EXPORT_SYMBOL (sof_bdw_ops); +EXPORT_SYMBOL_NS (sof_bdw_ops,SND_SOC_SOF_BROADWELL );const struct sof_intel_dsp_desc bdw_chip_info = { .cores_num =1 , .cores_mask =1 , }; -EXPORT_SYMBOL (bdw_chip_info); +EXPORT_SYMBOL_NS (bdw_chip_info,SND_SOC_SOF_BROADWELL );MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );
sound/soc/sof/sof-acpi-dev.c +1 -0
@@ -241,3 +241,4 @@ module_platform_driver(snd_sof_acpi_driver);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_BAYTRAIL ); +MODULE_IMPORT_NS (SND_SOC_SOF_BROADWELL );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 4/8 ASoC: SOF: remove references to Haswell
In reply to Pierre-Louis BossartThere are no known commercial devices using Haswell, and there is no support for Haswell in SOF so remove remaining definitions and structures.
--- sound/soc/sof/Kconfig | 2 +- sound/soc/sof/intel/shim.h | 6 ++---- sound/soc/sof/sof-acpi-dev.c | 20 -------------------- 3 files changed, 3 insertions(+), 25 deletions(-)
sound/soc/sof/Kconfig +1 -1
@@ -28,7 +28,7 @@ config SND_SOC_SOF_ACPI select IOSF_MBI if X86 && PCI help This adds support for ACPI enumeration. This option is required - to enable Intel Haswell/Broadwell/Baytrail/Cherrytrail devices + to enable Intel Broadwell/Baytrail/Cherrytrail devices Say Y if you need this option If unsure select "N".
sound/soc/sof/intel/shim.h +2 -4
@@ -12,7 +12,7 @@#define __SOF_INTEL_SHIM_H/* -* SHIM registers for BYT, BSW, CHT, HSW, BDW +* SHIM registers for BYT, BSW, CHT, BDW */ #define SHIM_CSR (SHIM_OFFSET + 0x00)
@@ -38,7 +38,7 @@#define SHIM_PWMCTRL 0x1000/* -* SST SHIM register bits for BYT, BSW, CHT HSW, BDW +* SST SHIM register bits for BYT, BSW, CHT, BDW * Register bit naming and functionaility can differ between devices. */
@@ -169,13 +169,11 @@ struct sof_intel_dsp_desc {extern const struct snd_sof_dsp_ops sof_tng_ops;extern const struct snd_sof_dsp_ops sof_byt_ops;extern const struct snd_sof_dsp_ops sof_cht_ops; -extern const struct snd_sof_dsp_ops sof_hsw_ops;extern const struct snd_sof_dsp_ops sof_bdw_ops;extern const struct sof_intel_dsp_desc byt_chip_info;extern const struct sof_intel_dsp_desc cht_chip_info;extern const struct sof_intel_dsp_desc bdw_chip_info; -extern const struct sof_intel_dsp_desc hsw_chip_info;extern const struct sof_intel_dsp_desc tng_chip_info;struct sof_intel_stream {
sound/soc/sof/sof-acpi-dev.c +0 -20
@@ -35,23 +35,6 @@ MODULE_PARM_DESC(sof_acpi_debug, "SOF ACPI debug options (0x0 all off)");#define SOF_ACPI_DISABLE_PM_RUNTIME BIT(0) -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HASWELL ) -static const struct sof_dev_desc sof_acpi_haswell_desc = { - .machines = snd_soc_acpi_intel_haswell_machines, - .resindex_lpe_base =0 , - .resindex_pcicfg_base =1 , - .resindex_imr_base =-1 , - .irqindex_host_ipc =0 , - .chip_info = &hsw_chip_info, - .default_fw_path ="intel/sof" , - .default_tplg_path ="intel/sof-tplg" , - .default_fw_filename ="sof-hsw.ri" , - .nocodec_tplg_filename ="sof-hsw-nocodec.tplg" , - .ops = &sof_hsw_ops, - .arch_ops = &sof_xtensa_arch_ops -}; -#endif -#if IS_ENABLED (CONFIG_SND_SOC_SOF_BROADWELL )static const struct sof_dev_desc sof_acpi_broadwell_desc = { .machines = snd_soc_acpi_intel_broadwell_machines,
@@ -213,9 +196,6 @@ static int sof_acpi_remove(struct platform_device *pdev) }static const struct acpi_device_id sof_acpi_match[] = { -#if IS_ENABLED(CONFIG_SND_SOC_SOF_HASWELL) - {"INT33C8" , (unsigned long )&sof_acpi_haswell_desc }, -#endif #if IS_ENABLED(CONFIG_SND_SOC_SOF_BROADWELL) {"INT3438" , (unsigned long )&sof_acpi_broadwell_desc }, #endif
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: remove references to Haswell" to the asoc tree
The patch
ASoC: SOF: remove references to Haswell
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 1fa44098b683312b426bd05f1bfc0b5b1fa7860a Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:27 -0600
Subject: [PATCH] ASoC: SOF: remove references to Haswell
There are no known commercial devices using Haswell, and there is no support for Haswell in SOF so remove remaining definitions and structures.
--- sound/soc/sof/Kconfig | 2 +- sound/soc/sof/intel/shim.h | 6 ++---- sound/soc/sof/sof-acpi-dev.c | 20 -------------------- 3 files changed, 3 insertions(+), 25 deletions(-)
sound/soc/sof/Kconfig +1 -1
@@ -28,7 +28,7 @@ config SND_SOC_SOF_ACPI select IOSF_MBI if X86 && PCI help This adds support for ACPI enumeration. This option is required - to enable Intel Haswell/Broadwell/Baytrail/Cherrytrail devices + to enable Intel Broadwell/Baytrail/Cherrytrail devices Say Y if you need this option If unsure select "N".
sound/soc/sof/intel/shim.h +2 -4
@@ -12,7 +12,7 @@#define __SOF_INTEL_SHIM_H/* -* SHIM registers for BYT, BSW, CHT, HSW, BDW +* SHIM registers for BYT, BSW, CHT, BDW */ #define SHIM_CSR (SHIM_OFFSET + 0x00)
@@ -38,7 +38,7 @@#define SHIM_PWMCTRL 0x1000/* -* SST SHIM register bits for BYT, BSW, CHT HSW, BDW +* SST SHIM register bits for BYT, BSW, CHT, BDW * Register bit naming and functionaility can differ between devices. */
@@ -169,13 +169,11 @@ struct sof_intel_dsp_desc {extern const struct snd_sof_dsp_ops sof_tng_ops;extern const struct snd_sof_dsp_ops sof_byt_ops;extern const struct snd_sof_dsp_ops sof_cht_ops; -extern const struct snd_sof_dsp_ops sof_hsw_ops;extern const struct snd_sof_dsp_ops sof_bdw_ops;extern const struct sof_intel_dsp_desc byt_chip_info;extern const struct sof_intel_dsp_desc cht_chip_info;extern const struct sof_intel_dsp_desc bdw_chip_info; -extern const struct sof_intel_dsp_desc hsw_chip_info;extern const struct sof_intel_dsp_desc tng_chip_info;struct sof_intel_stream {
sound/soc/sof/sof-acpi-dev.c +0 -20
@@ -35,23 +35,6 @@ MODULE_PARM_DESC(sof_acpi_debug, "SOF ACPI debug options (0x0 all off)");#define SOF_ACPI_DISABLE_PM_RUNTIME BIT(0) -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HASWELL ) -static const struct sof_dev_desc sof_acpi_haswell_desc = { - .machines = snd_soc_acpi_intel_haswell_machines, - .resindex_lpe_base =0 , - .resindex_pcicfg_base =1 , - .resindex_imr_base =-1 , - .irqindex_host_ipc =0 , - .chip_info = &hsw_chip_info, - .default_fw_path ="intel/sof" , - .default_tplg_path ="intel/sof-tplg" , - .default_fw_filename ="sof-hsw.ri" , - .nocodec_tplg_filename ="sof-hsw-nocodec.tplg" , - .ops = &sof_hsw_ops, - .arch_ops = &sof_xtensa_arch_ops -}; -#endif -#if IS_ENABLED (CONFIG_SND_SOC_SOF_BROADWELL )static const struct sof_dev_desc sof_acpi_broadwell_desc = { .machines = snd_soc_acpi_intel_broadwell_machines,
@@ -213,9 +196,6 @@ static int sof_acpi_remove(struct platform_device *pdev) }static const struct acpi_device_id sof_acpi_match[] = { -#if IS_ENABLED(CONFIG_SND_SOC_SOF_HASWELL) - {"INT33C8" , (unsigned long )&sof_acpi_haswell_desc }, -#endif #if IS_ENABLED(CONFIG_SND_SOC_SOF_BROADWELL) {"INT3438" , (unsigned long )&sof_acpi_broadwell_desc }, #endif
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 5/8 ASoC: SOF: Intel: add namespace for HDA_COMMON
In reply to Pierre-Louis BossartDefine namespace and include it in PCI top-level module.
--- sound/soc/sof/intel/apl.c | 4 ++-- sound/soc/sof/intel/cnl.c | 12 ++++++------ sound/soc/sof/sof-pci-dev.c | 1 + 3 files changed, 9 insertions(+), 8 deletions(-)
sound/soc/sof/intel/apl.c +2 -2
@@ -112,7 +112,7 @@ const struct snd_sof_dsp_ops sof_apl_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_NO_PERIOD_WAKEUP , }; -EXPORT_SYMBOL (sof_apl_ops); +EXPORT_SYMBOL_NS (sof_apl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc apl_chip_info = { /* Apollolake */
@@ -128,4 +128,4 @@ const struct sof_intel_dsp_desc apl_chip_info = { .ssp_count = APL_SSP_COUNT, .ssp_base_offset = APL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (apl_chip_info); +EXPORT_SYMBOL_NS (apl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/intel/cnl.c +6 -6
@@ -298,7 +298,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_NO_PERIOD_WAKEUP , }; -EXPORT_SYMBOL (sof_cnl_ops); +EXPORT_SYMBOL_NS (sof_cnl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc cnl_chip_info = { /* Cannonlake */
@@ -317,7 +317,7 @@ const struct sof_intel_dsp_desc cnl_chip_info = { .ssp_count = CNL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (cnl_chip_info); +EXPORT_SYMBOL_NS (cnl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc icl_chip_info = {/* Icelake */
@@ -336,7 +336,7 @@ const struct sof_intel_dsp_desc icl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (icl_chip_info); +EXPORT_SYMBOL_NS (icl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc tgl_chip_info = {/* Tigerlake */
@@ -352,7 +352,7 @@ const struct sof_intel_dsp_desc tgl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (tgl_chip_info); +EXPORT_SYMBOL_NS (tgl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc ehl_chip_info = {/* Elkhartlake */
@@ -368,7 +368,7 @@ const struct sof_intel_dsp_desc ehl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (ehl_chip_info); +EXPORT_SYMBOL_NS (ehl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc jsl_chip_info = {/* Jasperlake */
@@ -385,4 +385,4 @@ const struct sof_intel_dsp_desc jsl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (jsl_chip_info); +EXPORT_SYMBOL_NS (jsl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/sof-pci-dev.c +1 -0
@@ -420,3 +420,4 @@ module_pci_driver(snd_sof_pci_driver);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_MERRIFIELD ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HDA_COMMON );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: add namespace for HDA_COMMON" to the asoc tree
The patch
ASoC: SOF: Intel: add namespace for HDA_COMMON
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From cf5629e4594c2164aa629d21a749c65ad594de95 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:28 -0600
Subject: [PATCH] ASoC: SOF: Intel: add namespace for HDA_COMMON
Define namespace and include it in PCI top-level module.
--- sound/soc/sof/intel/apl.c | 4 ++-- sound/soc/sof/intel/cnl.c | 12 ++++++------ sound/soc/sof/sof-pci-dev.c | 1 + 3 files changed, 9 insertions(+), 8 deletions(-)
sound/soc/sof/intel/apl.c +2 -2
@@ -112,7 +112,7 @@ const struct snd_sof_dsp_ops sof_apl_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_NO_PERIOD_WAKEUP , }; -EXPORT_SYMBOL (sof_apl_ops); +EXPORT_SYMBOL_NS (sof_apl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc apl_chip_info = { /* Apollolake */
@@ -128,4 +128,4 @@ const struct sof_intel_dsp_desc apl_chip_info = { .ssp_count = APL_SSP_COUNT, .ssp_base_offset = APL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (apl_chip_info); +EXPORT_SYMBOL_NS (apl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/intel/cnl.c +6 -6
@@ -298,7 +298,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {SNDRV_PCM_INFO_PAUSE |SNDRV_PCM_INFO_NO_PERIOD_WAKEUP , }; -EXPORT_SYMBOL (sof_cnl_ops); +EXPORT_SYMBOL_NS (sof_cnl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc cnl_chip_info = { /* Cannonlake */
@@ -317,7 +317,7 @@ const struct sof_intel_dsp_desc cnl_chip_info = { .ssp_count = CNL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (cnl_chip_info); +EXPORT_SYMBOL_NS (cnl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc icl_chip_info = {/* Icelake */
@@ -336,7 +336,7 @@ const struct sof_intel_dsp_desc icl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (icl_chip_info); +EXPORT_SYMBOL_NS (icl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc tgl_chip_info = {/* Tigerlake */
@@ -352,7 +352,7 @@ const struct sof_intel_dsp_desc tgl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (tgl_chip_info); +EXPORT_SYMBOL_NS (tgl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc ehl_chip_info = {/* Elkhartlake */
@@ -368,7 +368,7 @@ const struct sof_intel_dsp_desc ehl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (ehl_chip_info); +EXPORT_SYMBOL_NS (ehl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );const struct sof_intel_dsp_desc jsl_chip_info = {/* Jasperlake */
@@ -385,4 +385,4 @@ const struct sof_intel_dsp_desc jsl_chip_info = { .ssp_count = ICL_SSP_COUNT, .ssp_base_offset = CNL_SSP_BASE_OFFSET, }; -EXPORT_SYMBOL (jsl_chip_info); +EXPORT_SYMBOL_NS (jsl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/sof-pci-dev.c +1 -0
@@ -416,3 +416,4 @@ module_pci_driver(snd_sof_pci_driver);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_MERRIFIELD ); +MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HDA_COMMON );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 6/8 ASoC: SOF: Intel: hda: add namespace for hda-codec functionality
In reply to Pierre-Louis BossartDefine namespaces (one generic and one dedicated for i915) and include them in HDaudio top-level module.
--- sound/soc/sof/intel/hda-codec.c | 14 +++++++------- sound/soc/sof/intel/hda.c | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-)
sound/soc/sof/intel/hda-codec.c +7 -7
@@ -76,8 +76,8 @@ void hda_codec_jack_check(struct snd_sof_dev *sdev)void hda_codec_jack_wake_enable (struct snd_sof_dev *sdev) {}void hda_codec_jack_check (struct snd_sof_dev *sdev) {}#endif /* CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC */ -EXPORT_SYMBOL (hda_codec_jack_wake_enable); -EXPORT_SYMBOL (hda_codec_jack_check); +EXPORT_SYMBOL_NS (hda_codec_jack_wake_enable,SND_SOC_SOF_HDA_AUDIO_CODEC ); +EXPORT_SYMBOL_NS (hda_codec_jack_check,SND_SOC_SOF_HDA_AUDIO_CODEC );/* probe individual codec */ static int hda_codec_probe(struct snd_sof_dev *sdev, int address,
@@ -160,7 +160,7 @@ void hda_codec_probe_bus(struct snd_sof_dev *sdev, } } } -EXPORT_SYMBOL (hda_codec_probe_bus); +EXPORT_SYMBOL_NS (hda_codec_probe_bus,SND_SOC_SOF_HDA_AUDIO_CODEC );#if IS_ENABLED (CONFIG_SND_HDA_CODEC_HDMI ) || \IS_ENABLED (CONFIG_SND_SOC_HDAC_HDMI )
@@ -172,7 +172,7 @@ void hda_codec_i915_get(struct snd_sof_dev *sdev)dev_dbg (bus->dev,"Turning i915 HDAC power on\n" );snd_hdac_display_power (bus,HDA_CODEC_IDX_CONTROLLER , true); } -EXPORT_SYMBOL (hda_codec_i915_get); +EXPORT_SYMBOL_NS (hda_codec_i915_get,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );void hda_codec_i915_put (struct snd_sof_dev *sdev) {
@@ -181,7 +181,7 @@ void hda_codec_i915_put(struct snd_sof_dev *sdev)dev_dbg (bus->dev,"Turning i915 HDAC power off\n" );snd_hdac_display_power (bus,HDA_CODEC_IDX_CONTROLLER , false); } -EXPORT_SYMBOL (hda_codec_i915_put); +EXPORT_SYMBOL_NS (hda_codec_i915_put,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );int hda_codec_i915_init (struct snd_sof_dev *sdev) {
@@ -197,7 +197,7 @@ int hda_codec_i915_init(struct snd_sof_dev *sdev)return 0 ; } -EXPORT_SYMBOL (hda_codec_i915_init); +EXPORT_SYMBOL_NS (hda_codec_i915_init,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );int hda_codec_i915_exit (struct snd_sof_dev *sdev) {
@@ -210,7 +210,7 @@ int hda_codec_i915_exit(struct snd_sof_dev *sdev) return ret; } -EXPORT_SYMBOL (hda_codec_i915_exit); +EXPORT_SYMBOL_NS (hda_codec_i915_exit,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );#endif
sound/soc/sof/intel/hda.c +2 -0
@@ -795,3 +795,5 @@ void hda_machine_select(struct snd_sof_dev *sdev) }MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC ); +MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: hda: add namespace for hda-codec functionality" to the asoc tree
The patch
ASoC: SOF: Intel: hda: add namespace for hda-codec functionality
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 5bd216c6a6b48d8ed0b3283bf7ba84fc3a566b25 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:29 -0600
Subject: [PATCH] ASoC: SOF: Intel: hda: add namespace for hda-codec
functionality
Define namespaces (one generic and one dedicated for i915) and include them in HDaudio top-level module.
--- sound/soc/sof/intel/hda-codec.c | 14 +++++++------- sound/soc/sof/intel/hda.c | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-)
sound/soc/sof/intel/hda-codec.c +7 -7
@@ -76,8 +76,8 @@ void hda_codec_jack_check(struct snd_sof_dev *sdev)void hda_codec_jack_wake_enable (struct snd_sof_dev *sdev) {}void hda_codec_jack_check (struct snd_sof_dev *sdev) {}#endif /* CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC */ -EXPORT_SYMBOL (hda_codec_jack_wake_enable); -EXPORT_SYMBOL (hda_codec_jack_check); +EXPORT_SYMBOL_NS (hda_codec_jack_wake_enable,SND_SOC_SOF_HDA_AUDIO_CODEC ); +EXPORT_SYMBOL_NS (hda_codec_jack_check,SND_SOC_SOF_HDA_AUDIO_CODEC );/* probe individual codec */ static int hda_codec_probe(struct snd_sof_dev *sdev, int address,
@@ -160,7 +160,7 @@ void hda_codec_probe_bus(struct snd_sof_dev *sdev, } } } -EXPORT_SYMBOL (hda_codec_probe_bus); +EXPORT_SYMBOL_NS (hda_codec_probe_bus,SND_SOC_SOF_HDA_AUDIO_CODEC );#if IS_ENABLED (CONFIG_SND_HDA_CODEC_HDMI ) || \IS_ENABLED (CONFIG_SND_SOC_HDAC_HDMI )
@@ -172,7 +172,7 @@ void hda_codec_i915_get(struct snd_sof_dev *sdev)dev_dbg (bus->dev,"Turning i915 HDAC power on\n" );snd_hdac_display_power (bus,HDA_CODEC_IDX_CONTROLLER , true); } -EXPORT_SYMBOL (hda_codec_i915_get); +EXPORT_SYMBOL_NS (hda_codec_i915_get,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );void hda_codec_i915_put (struct snd_sof_dev *sdev) {
@@ -181,7 +181,7 @@ void hda_codec_i915_put(struct snd_sof_dev *sdev)dev_dbg (bus->dev,"Turning i915 HDAC power off\n" );snd_hdac_display_power (bus,HDA_CODEC_IDX_CONTROLLER , false); } -EXPORT_SYMBOL (hda_codec_i915_put); +EXPORT_SYMBOL_NS (hda_codec_i915_put,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );int hda_codec_i915_init (struct snd_sof_dev *sdev) {
@@ -197,7 +197,7 @@ int hda_codec_i915_init(struct snd_sof_dev *sdev)return 0 ; } -EXPORT_SYMBOL (hda_codec_i915_init); +EXPORT_SYMBOL_NS (hda_codec_i915_init,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );int hda_codec_i915_exit (struct snd_sof_dev *sdev) {
@@ -210,7 +210,7 @@ int hda_codec_i915_exit(struct snd_sof_dev *sdev) return ret; } -EXPORT_SYMBOL (hda_codec_i915_exit); +EXPORT_SYMBOL_NS (hda_codec_i915_exit,SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );#endif
sound/soc/sof/intel/hda.c +2 -0
@@ -795,3 +795,5 @@ void hda_machine_select(struct snd_sof_dev *sdev) }MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC ); +MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC_I915 );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 7/8 ASoC: SOF: move arch_ops under ops
In reply to Pierre-Louis BossartThe current structures are not well designed. We include Xtensa information from the ACPI and PCI levels, but at the Kconfig/module level everything Xtensa related is included at the sof/intel level.
Move the arch_ops under ops so that Xtensa is hidden in the DSP ops, with a structure that follows the Kconfig/module partition.
--- include/sound/sof.h | 1 - sound/soc/sof/intel/apl.c | 2 ++ sound/soc/sof/intel/bdw.c | 2 ++ sound/soc/sof/intel/byt.c | 6 ++++++ sound/soc/sof/intel/cnl.c | 2 ++ sound/soc/sof/sof-acpi-dev.c | 4 ---- sound/soc/sof/sof-pci-dev.c | 10 ---------- sound/soc/sof/sof-priv.h | 4 +++- 8 files changed, 15 insertions(+), 16 deletions(-)
include/sound/sof.h +0 -1
@@ -93,7 +93,6 @@ struct sof_dev_desc {const char *default_fw_filename;const struct snd_sof_dsp_ops *ops; -const struct sof_arch_ops *arch_ops; }; int sof_nocodec_setup(struct device *dev,
sound/soc/sof/intel/apl.c +2 -0
@@ -111,6 +111,8 @@ const struct snd_sof_dsp_ops sof_apl_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_apl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/intel/bdw.c +2 -0
@@ -632,6 +632,8 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_bdw_ops,SND_SOC_SOF_BROADWELL );
sound/soc/sof/intel/byt.c +6 -0
@@ -618,6 +618,8 @@ const struct snd_sof_dsp_ops sof_tng_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_tng_ops,SND_SOC_SOF_MERRIFIELD );
@@ -792,6 +794,8 @@ const struct snd_sof_dsp_ops sof_byt_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_byt_ops,SND_SOC_SOF_BAYTRAIL );
@@ -865,6 +869,8 @@ const struct snd_sof_dsp_ops sof_cht_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_cht_ops,SND_SOC_SOF_BAYTRAIL );
sound/soc/sof/intel/cnl.c +2 -0
@@ -297,6 +297,8 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_cnl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/sof-acpi-dev.c +0 -4
@@ -48,7 +48,6 @@ static const struct sof_dev_desc sof_acpi_broadwell_desc = { .default_fw_filename = "sof-bdw.ri", .nocodec_tplg_filename = "sof-bdw-nocodec.tplg", .ops = &sof_bdw_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -67,7 +66,6 @@ static const struct sof_dev_desc sof_acpi_baytrailcr_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt-nocodec.tplg", .ops = &sof_byt_ops, - .arch_ops = &sof_xtensa_arch_ops };static const struct sof_dev_desc sof_acpi_baytrail_desc = {
@@ -82,7 +80,6 @@ static const struct sof_dev_desc sof_acpi_baytrail_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt-nocodec.tplg", .ops = &sof_byt_ops, - .arch_ops = &sof_xtensa_arch_ops };static const struct sof_dev_desc sof_acpi_cherrytrail_desc = {
@@ -97,7 +94,6 @@ static const struct sof_dev_desc sof_acpi_cherrytrail_desc = { .default_fw_filename = "sof-cht.ri", .nocodec_tplg_filename = "sof-cht-nocodec.tplg", .ops = &sof_cht_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
sound/soc/sof/sof-pci-dev.c +0 -10
@@ -50,7 +50,6 @@ static const struct sof_dev_desc bxt_desc = { .default_fw_filename = "sof-apl.ri", .nocodec_tplg_filename = "sof-apl-nocodec.tplg", .ops = &sof_apl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -68,7 +67,6 @@ static const struct sof_dev_desc glk_desc = { .default_fw_filename = "sof-glk.ri", .nocodec_tplg_filename = "sof-glk-nocodec.tplg", .ops = &sof_apl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -96,7 +94,6 @@ static const struct sof_dev_desc tng_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt.tplg", .ops = &sof_tng_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -114,7 +111,6 @@ static const struct sof_dev_desc cnl_desc = { .default_fw_filename = "sof-cnl.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -132,7 +128,6 @@ static const struct sof_dev_desc cfl_desc = { .default_fw_filename = "sof-cfl.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -152,7 +147,6 @@ static const struct sof_dev_desc cml_desc = { .default_fw_filename = "sof-cml.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -170,7 +164,6 @@ static const struct sof_dev_desc icl_desc = { .default_fw_filename = "sof-icl.ri", .nocodec_tplg_filename = "sof-icl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -188,7 +181,6 @@ static const struct sof_dev_desc tgl_desc = { .default_fw_filename = "sof-tgl.ri", .nocodec_tplg_filename = "sof-tgl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -206,7 +198,6 @@ static const struct sof_dev_desc ehl_desc = { .default_fw_filename = "sof-ehl.ri", .nocodec_tplg_filename = "sof-ehl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -223,7 +214,6 @@ static const struct sof_dev_desc jsl_desc = { .default_tplg_path = "intel/sof-tplg", .nocodec_tplg_filename = "sof-jsl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
sound/soc/sof/sof-priv.h +3 -1
@@ -217,6 +217,8 @@ struct snd_sof_dsp_ops {/* ALSA HW info flags, will be stored in snd_pcm_runtime.hw.info */ u32 hw_info; + +const struct sof_arch_ops *arch_ops; };/* DSP architecture specific callbacks for oops and stack dumps */
@@ -226,7 +228,7 @@ struct sof_arch_ops { u32 *stack, u32 stack_words); }; -#define sof_arch_ops (sdev) ((sdev)->pdata->desc->arch_ops) +#define sof_arch_ops (sdev) ((sdev)->pdata->desc->ops->arch_ops)/* DSP device HW descriptor mapping between bus ID and ops */ struct sof_ops_table {
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: move arch_ops under ops" to the asoc tree
The patch
ASoC: SOF: move arch_ops under ops
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 0f501c7cde4086d15c396a95c59631b05dbc0351 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:30 -0600
Subject: [PATCH] ASoC: SOF: move arch_ops under ops
The current structures are not well designed. We include Xtensa information from the ACPI and PCI levels, but at the Kconfig/module level everything Xtensa related is included at the sof/intel level.
Move the arch_ops under ops so that Xtensa is hidden in the DSP ops, with a structure that follows the Kconfig/module partition.
--- include/sound/sof.h | 1 - sound/soc/sof/intel/apl.c | 2 ++ sound/soc/sof/intel/bdw.c | 2 ++ sound/soc/sof/intel/byt.c | 6 ++++++ sound/soc/sof/intel/cnl.c | 2 ++ sound/soc/sof/sof-acpi-dev.c | 4 ---- sound/soc/sof/sof-pci-dev.c | 10 ---------- sound/soc/sof/sof-priv.h | 4 +++- 8 files changed, 15 insertions(+), 16 deletions(-)
include/sound/sof.h +0 -1
@@ -93,7 +93,6 @@ struct sof_dev_desc {const char *default_fw_filename;const struct snd_sof_dsp_ops *ops; -const struct sof_arch_ops *arch_ops; }; int sof_nocodec_setup(struct device *dev,
sound/soc/sof/intel/apl.c +2 -0
@@ -111,6 +111,8 @@ const struct snd_sof_dsp_ops sof_apl_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_apl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/intel/bdw.c +2 -0
@@ -632,6 +632,8 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_bdw_ops,SND_SOC_SOF_BROADWELL );
sound/soc/sof/intel/byt.c +6 -0
@@ -618,6 +618,8 @@ const struct snd_sof_dsp_ops sof_tng_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_tng_ops,SND_SOC_SOF_MERRIFIELD );
@@ -792,6 +794,8 @@ const struct snd_sof_dsp_ops sof_byt_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_byt_ops,SND_SOC_SOF_BAYTRAIL );
@@ -865,6 +869,8 @@ const struct snd_sof_dsp_ops sof_cht_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_BATCH, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_cht_ops,SND_SOC_SOF_BAYTRAIL );
sound/soc/sof/intel/cnl.c +2 -0
@@ -297,6 +297,8 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, + + .arch_ops = &sof_xtensa_arch_ops, };EXPORT_SYMBOL_NS (sof_cnl_ops,SND_SOC_SOF_INTEL_HDA_COMMON );
sound/soc/sof/sof-acpi-dev.c +0 -4
@@ -48,7 +48,6 @@ static const struct sof_dev_desc sof_acpi_broadwell_desc = { .default_fw_filename = "sof-bdw.ri", .nocodec_tplg_filename = "sof-bdw-nocodec.tplg", .ops = &sof_bdw_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -67,7 +66,6 @@ static const struct sof_dev_desc sof_acpi_baytrailcr_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt-nocodec.tplg", .ops = &sof_byt_ops, - .arch_ops = &sof_xtensa_arch_ops };static const struct sof_dev_desc sof_acpi_baytrail_desc = {
@@ -82,7 +80,6 @@ static const struct sof_dev_desc sof_acpi_baytrail_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt-nocodec.tplg", .ops = &sof_byt_ops, - .arch_ops = &sof_xtensa_arch_ops };static const struct sof_dev_desc sof_acpi_cherrytrail_desc = {
@@ -97,7 +94,6 @@ static const struct sof_dev_desc sof_acpi_cherrytrail_desc = { .default_fw_filename = "sof-cht.ri", .nocodec_tplg_filename = "sof-cht-nocodec.tplg", .ops = &sof_cht_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
sound/soc/sof/sof-pci-dev.c +0 -10
@@ -50,7 +50,6 @@ static const struct sof_dev_desc bxt_desc = { .default_fw_filename = "sof-apl.ri", .nocodec_tplg_filename = "sof-apl-nocodec.tplg", .ops = &sof_apl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -68,7 +67,6 @@ static const struct sof_dev_desc glk_desc = { .default_fw_filename = "sof-glk.ri", .nocodec_tplg_filename = "sof-glk-nocodec.tplg", .ops = &sof_apl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -96,7 +94,6 @@ static const struct sof_dev_desc tng_desc = { .default_fw_filename = "sof-byt.ri", .nocodec_tplg_filename = "sof-byt.tplg", .ops = &sof_tng_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -114,7 +111,6 @@ static const struct sof_dev_desc cnl_desc = { .default_fw_filename = "sof-cnl.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -132,7 +128,6 @@ static const struct sof_dev_desc cfl_desc = { .default_fw_filename = "sof-cfl.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -152,7 +147,6 @@ static const struct sof_dev_desc cml_desc = { .default_fw_filename = "sof-cml.ri", .nocodec_tplg_filename = "sof-cnl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -170,7 +164,6 @@ static const struct sof_dev_desc icl_desc = { .default_fw_filename = "sof-icl.ri", .nocodec_tplg_filename = "sof-icl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -188,7 +181,6 @@ static const struct sof_dev_desc tgl_desc = { .default_fw_filename = "sof-tgl.ri", .nocodec_tplg_filename = "sof-tgl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -206,7 +198,6 @@ static const struct sof_dev_desc ehl_desc = { .default_fw_filename = "sof-ehl.ri", .nocodec_tplg_filename = "sof-ehl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
@@ -223,7 +214,6 @@ static const struct sof_dev_desc jsl_desc = { .default_tplg_path = "intel/sof-tplg", .nocodec_tplg_filename = "sof-jsl-nocodec.tplg", .ops = &sof_cnl_ops, - .arch_ops = &sof_xtensa_arch_ops };#endif
sound/soc/sof/sof-priv.h +3 -1
@@ -217,6 +217,8 @@ struct snd_sof_dsp_ops {/* ALSA HW info flags, will be stored in snd_pcm_runtime.hw.info */ u32 hw_info; + +const struct sof_arch_ops *arch_ops; };/* DSP architecture specific callbacks for oops and stack dumps */
@@ -226,7 +228,7 @@ struct sof_arch_ops { u32 *stack, u32 stack_words); }; -#define sof_arch_ops (sdev) ((sdev)->pdata->desc->arch_ops) +#define sof_arch_ops (sdev) ((sdev)->pdata->desc->ops->arch_ops)/* DSP device HW descriptor mapping between bus ID and ops */ struct sof_ops_table {
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 8/8 ASoC: SOF: Intel: add namespace for XTENSA
In reply to Pierre-Louis BossartNow that Xtensa stuff is only referenced in Intel stuff, define namespace and import it in Intel BYT/BDW/HDaudio modules
--- sound/soc/sof/intel/bdw.c | 1 + sound/soc/sof/intel/byt.c | 1 + sound/soc/sof/intel/hda.c | 1 + sound/soc/sof/xtensa/core.c | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-)
sound/soc/sof/intel/bdw.c +1 -0
@@ -645,3 +645,4 @@ EXPORT_SYMBOL_NS(bdw_chip_info, SND_SOC_SOF_BROADWELL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/intel/byt.c +1 -0
@@ -884,3 +884,4 @@ EXPORT_SYMBOL_NS(cht_chip_info, SND_SOC_SOF_BAYTRAIL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/intel/hda.c +1 -0
@@ -797,3 +797,4 @@ void hda_machine_select(struct snd_sof_dev *sdev)MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC );MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC_I915 ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/xtensa/core.c +1 -1
@@ -132,7 +132,7 @@ const struct sof_arch_ops sof_xtensa_arch_ops = { .dsp_oops = xtensa_dsp_oops, .dsp_stack = xtensa_stack, }; -EXPORT_SYMBOL (sof_xtensa_arch_ops); +EXPORT_SYMBOL_NS (sof_xtensa_arch_ops,SND_SOC_SOF_XTENSA );MODULE_DESCRIPTION ("SOF Xtensa DSP support" );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: add namespace for XTENSA" to the asoc tree
The patch
ASoC: SOF: Intel: add namespace for XTENSA
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 068ac0db8637d3c188010ab8b9cc136f98fcd3df Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 17 Dec 2019 14:22:31 -0600
Subject: [PATCH] ASoC: SOF: Intel: add namespace for XTENSA
Now that Xtensa stuff is only referenced in Intel stuff, define namespace and import it in Intel BYT/BDW/HDaudio modules
--- sound/soc/sof/intel/bdw.c | 1 + sound/soc/sof/intel/byt.c | 1 + sound/soc/sof/intel/hda.c | 1 + sound/soc/sof/xtensa/core.c | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-)
sound/soc/sof/intel/bdw.c +1 -0
@@ -645,3 +645,4 @@ EXPORT_SYMBOL_NS(bdw_chip_info, SND_SOC_SOF_BROADWELL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/intel/byt.c +1 -0
@@ -884,3 +884,4 @@ EXPORT_SYMBOL_NS(cht_chip_info, SND_SOC_SOF_BAYTRAIL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/intel/hda.c +1 -0
@@ -797,3 +797,4 @@ void hda_machine_select(struct snd_sof_dev *sdev)MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC );MODULE_IMPORT_NS (SND_SOC_SOF_HDA_AUDIO_CODEC_I915 ); +MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA );
sound/soc/sof/xtensa/core.c +1 -1
@@ -132,7 +132,7 @@ const struct sof_arch_ops sof_xtensa_arch_ops = { .dsp_oops = xtensa_dsp_oops, .dsp_stack = xtensa_stack, }; -EXPORT_SYMBOL (sof_xtensa_arch_ops); +EXPORT_SYMBOL_NS (sof_xtensa_arch_ops,SND_SOC_SOF_XTENSA );MODULE_DESCRIPTION ("SOF Xtensa DSP support" );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel