renoir.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | renoir.c (b585692fc937dc8f9d494078b5ffe2aafe31ec18) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2// 3// This file is provided under a dual BSD/GPLv2 license. When using or 4// redistributing this file, you may do so under either license. 5// 6// Copyright(c) 2021 Advanced Micro Devices, Inc. 7// 8// Authors: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> --- 109 unchanged lines hidden (view full) --- 118 119 sof_pdata->tplg_filename = mach->sof_tplg_filename; 120 sof_pdata->fw_filename = mach->fw_filename; 121 122 return mach; 123} 124 125/* AMD Renoir DSP ops */ | 1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2// 3// This file is provided under a dual BSD/GPLv2 license. When using or 4// redistributing this file, you may do so under either license. 5// 6// Copyright(c) 2021 Advanced Micro Devices, Inc. 7// 8// Authors: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> --- 109 unchanged lines hidden (view full) --- 118 119 sof_pdata->tplg_filename = mach->sof_tplg_filename; 120 sof_pdata->fw_filename = mach->fw_filename; 121 122 return mach; 123} 124 125/* AMD Renoir DSP ops */ |
126const struct snd_sof_dsp_ops sof_renoir_ops = { | 126struct snd_sof_dsp_ops sof_renoir_ops = { |
127 /* probe and remove */ 128 .probe = amd_sof_acp_probe, 129 .remove = amd_sof_acp_remove, 130 131 /* Register IO */ 132 .write = sof_io_write, 133 .read = sof_io_read, 134 135 /* Block IO */ 136 .block_read = acp_dsp_block_read, 137 .block_write = acp_dsp_block_write, 138 | 127 /* probe and remove */ 128 .probe = amd_sof_acp_probe, 129 .remove = amd_sof_acp_remove, 130 131 /* Register IO */ 132 .write = sof_io_write, 133 .read = sof_io_read, 134 135 /* Block IO */ 136 .block_read = acp_dsp_block_read, 137 .block_write = acp_dsp_block_write, 138 |
139 /* Module loading */ 140 .load_module = snd_sof_parse_module_memcpy, 141 | |
142 /*Firmware loading */ 143 .load_firmware = snd_sof_load_firmware_memcpy, 144 .pre_fw_run = acp_dsp_pre_fw_run, 145 .get_bar_index = acp_get_bar_index, 146 147 /* DSP core boot */ 148 .run = acp_sof_dsp_run, 149 150 /*IPC */ 151 .send_msg = acp_sof_ipc_send_msg, 152 .ipc_msg_data = acp_sof_ipc_msg_data, 153 .get_mailbox_offset = acp_sof_ipc_get_mailbox_offset, 154 .irq_thread = acp_sof_ipc_irq_thread, | 139 /*Firmware loading */ 140 .load_firmware = snd_sof_load_firmware_memcpy, 141 .pre_fw_run = acp_dsp_pre_fw_run, 142 .get_bar_index = acp_get_bar_index, 143 144 /* DSP core boot */ 145 .run = acp_sof_dsp_run, 146 147 /*IPC */ 148 .send_msg = acp_sof_ipc_send_msg, 149 .ipc_msg_data = acp_sof_ipc_msg_data, 150 .get_mailbox_offset = acp_sof_ipc_get_mailbox_offset, 151 .irq_thread = acp_sof_ipc_irq_thread, |
155 .fw_ready = sof_fw_ready, | |
156 157 /* DAI drivers */ 158 .drv = renoir_sof_dai, 159 .num_drv = ARRAY_SIZE(renoir_sof_dai), 160 161 /* stream callbacks */ 162 .pcm_open = acp_pcm_open, 163 .pcm_close = acp_pcm_close, --- 8 unchanged lines hidden (view full) --- 172 /* Machine driver callbacks */ 173 .machine_select = amd_sof_machine_select, 174 .machine_register = sof_machine_register, 175 .machine_unregister = sof_machine_unregister, 176 177 /* Trace Logger */ 178 .trace_init = acp_sof_trace_init, 179 .trace_release = acp_sof_trace_release, | 152 153 /* DAI drivers */ 154 .drv = renoir_sof_dai, 155 .num_drv = ARRAY_SIZE(renoir_sof_dai), 156 157 /* stream callbacks */ 158 .pcm_open = acp_pcm_open, 159 .pcm_close = acp_pcm_close, --- 8 unchanged lines hidden (view full) --- 168 /* Machine driver callbacks */ 169 .machine_select = amd_sof_machine_select, 170 .machine_register = sof_machine_register, 171 .machine_unregister = sof_machine_unregister, 172 173 /* Trace Logger */ 174 .trace_init = acp_sof_trace_init, 175 .trace_release = acp_sof_trace_release, |
176 177 /* PM */ 178 .suspend = amd_sof_acp_suspend, 179 .resume = amd_sof_acp_resume, |
|
180}; 181EXPORT_SYMBOL(sof_renoir_ops); 182 183MODULE_IMPORT_NS(SND_SOC_SOF_AMD_COMMON); 184MODULE_DESCRIPTION("RENOIR SOF Driver"); 185MODULE_LICENSE("Dual BSD/GPL"); | 180}; 181EXPORT_SYMBOL(sof_renoir_ops); 182 183MODULE_IMPORT_NS(SND_SOC_SOF_AMD_COMMON); 184MODULE_DESCRIPTION("RENOIR SOF Driver"); 185MODULE_LICENSE("Dual BSD/GPL"); |