mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
ASoC: SOF: sof-of-dev: Add .arch_ops field
Add .arch_ops field in the sof_imx8x_ops structure. The inclusion of this field will allow the usage of functions from sof/core.c in order to print debug information such as the registers and a stack dump in case of a firmware ops. The SND_SOC_SOF_XTENSA is added in the imx/Kconfig file so the compilation is successful. Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20200825235040.1586478-8-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
17b3f99a36
commit
5a1fa00ad7
3 changed files with 13 additions and 0 deletions
|
@ -30,6 +30,7 @@ config SND_SOC_SOF_IMX8_SUPPORT
|
|||
|
||||
config SND_SOC_SOF_IMX8
|
||||
tristate
|
||||
select SND_SOC_SOF_XTENSA
|
||||
help
|
||||
This option is not user-selectable but automagically handled by
|
||||
'select' statements at a higher level
|
||||
|
@ -44,6 +45,7 @@ config SND_SOC_SOF_IMX8M_SUPPORT
|
|||
|
||||
config SND_SOC_SOF_IMX8M
|
||||
tristate
|
||||
select SND_SOC_SOF_XTENSA
|
||||
help
|
||||
This option is not user-selectable but automagically handled by
|
||||
'select' statements at a higher level
|
||||
|
|
|
@ -424,6 +424,9 @@ struct snd_sof_dsp_ops sof_imx8_ops = {
|
|||
/* firmware loading */
|
||||
.load_firmware = snd_sof_load_firmware_memcpy,
|
||||
|
||||
/* Firmware ops */
|
||||
.arch_ops = &sof_xtensa_arch_ops,
|
||||
|
||||
/* DAI drivers */
|
||||
.drv = imx8_dai,
|
||||
.num_drv = ARRAY_SIZE(imx8_dai),
|
||||
|
@ -464,6 +467,9 @@ struct snd_sof_dsp_ops sof_imx8x_ops = {
|
|||
/* firmware loading */
|
||||
.load_firmware = snd_sof_load_firmware_memcpy,
|
||||
|
||||
/* Firmware ops */
|
||||
.arch_ops = &sof_xtensa_arch_ops,
|
||||
|
||||
/* DAI drivers */
|
||||
.drv = imx8_dai,
|
||||
.num_drv = ARRAY_SIZE(imx8_dai),
|
||||
|
@ -477,4 +483,5 @@ struct snd_sof_dsp_ops sof_imx8x_ops = {
|
|||
};
|
||||
EXPORT_SYMBOL(sof_imx8x_ops);
|
||||
|
||||
MODULE_IMPORT_NS(SND_SOC_SOF_XTENSA);
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
|
|
@ -277,6 +277,9 @@ struct snd_sof_dsp_ops sof_imx8m_ops = {
|
|||
/* firmware loading */
|
||||
.load_firmware = snd_sof_load_firmware_memcpy,
|
||||
|
||||
/* Firmware ops */
|
||||
.arch_ops = &sof_xtensa_arch_ops,
|
||||
|
||||
/* DAI drivers */
|
||||
.drv = imx8m_dai,
|
||||
.num_drv = ARRAY_SIZE(imx8m_dai),
|
||||
|
@ -289,4 +292,5 @@ struct snd_sof_dsp_ops sof_imx8m_ops = {
|
|||
};
|
||||
EXPORT_SYMBOL(sof_imx8m_ops);
|
||||
|
||||
MODULE_IMPORT_NS(SND_SOC_SOF_XTENSA);
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
|
Loading…
Reference in a new issue