// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2022 Advanced Micro Devices, Inc. // // Authors: Ajit Kumar Pandey <[email protected]> // V sujith kumar Reddy <[email protected]> /* ACP-specific Common code */ #include "../sof-priv.h" #include "../sof-audio.h" #include "../ops.h" #include "acp.h" #include "acp-dsp-offset.h" #include <sound/sof/xtensa.h> /** * amd_sof_ipc_dump() - This function is called when IPC tx times out. * @sdev: SOF device. */ void amd_sof_ipc_dump(struct snd_sof_dev *sdev) { … } /** * amd_get_registers() - This function is called in case of DSP oops * in order to gather information about the registers, filename and * linenumber and stack. * @sdev: SOF device. * @xoops: Stores information about registers. * @panic_info: Stores information about filename and line number. * @stack: Stores the stack dump. * @stack_words: Size of the stack dump. */ static void amd_get_registers(struct snd_sof_dev *sdev, struct sof_ipc_dsp_oops_xtensa *xoops, struct sof_ipc_panic_info *panic_info, u32 *stack, size_t stack_words) { … } /** * amd_sof_dump() - This function is called when a panic message is * received from the firmware. * @sdev: SOF device. * @flags: parameter not used but required by ops prototype */ void amd_sof_dump(struct snd_sof_dev *sdev, u32 flags) { … } #if IS_ENABLED(CONFIG_SND_SOC_SOF_AMD_SOUNDWIRE) static int amd_sof_sdw_get_slave_info(struct snd_sof_dev *sdev) { … } static struct snd_soc_acpi_mach *amd_sof_sdw_machine_select(struct snd_sof_dev *sdev) { … } #else static struct snd_soc_acpi_mach *amd_sof_sdw_machine_select(struct snd_sof_dev *sdev) { return NULL; } #endif struct snd_soc_acpi_mach *amd_sof_machine_select(struct snd_sof_dev *sdev) { … } /* AMD Common DSP ops */ const struct snd_sof_dsp_ops sof_acp_common_ops = …; EXPORT_SYMBOL_NS(…); MODULE_LICENSE(…) …; MODULE_DESCRIPTION(…) …; MODULE_IMPORT_NS(…); MODULE_IMPORT_NS(…); MODULE_IMPORT_NS(…);