-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: Intel: avs: TGL-based platforms support
Define handlers specific to cAVS 2.5 platforms, that is TGL, ADL, RPL and all other variants based on this very version of AudioDSP architecture. Most operations are inherited from their predecessors with the major difference being AudioDSP cores management - firmware handlers that on its own so there is no need to interfere. Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://msgid.link/r/20240220115035.770402-9-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Cezary Rojewski
authored and
Mark Brown
committed
Feb 20, 2024
1 parent
275b583
commit 5acb19e
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// | ||
// Copyright(c) 2021-2024 Intel Corporation. All rights reserved. | ||
// | ||
// Authors: Cezary Rojewski <cezary.rojewski@intel.com> | ||
// Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com> | ||
// | ||
|
||
#include "avs.h" | ||
|
||
static int avs_tgl_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power) | ||
{ | ||
core_mask &= AVS_MAIN_CORE_MASK; | ||
|
||
if (!core_mask) | ||
return 0; | ||
return avs_dsp_core_power(adev, core_mask, power); | ||
} | ||
|
||
static int avs_tgl_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset) | ||
{ | ||
core_mask &= AVS_MAIN_CORE_MASK; | ||
|
||
if (!core_mask) | ||
return 0; | ||
return avs_dsp_core_reset(adev, core_mask, reset); | ||
} | ||
|
||
static int avs_tgl_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) | ||
{ | ||
core_mask &= AVS_MAIN_CORE_MASK; | ||
|
||
if (!core_mask) | ||
return 0; | ||
return avs_dsp_core_stall(adev, core_mask, stall); | ||
} | ||
|
||
const struct avs_dsp_ops avs_tgl_dsp_ops = { | ||
.power = avs_tgl_dsp_core_power, | ||
.reset = avs_tgl_dsp_core_reset, | ||
.stall = avs_tgl_dsp_core_stall, | ||
.irq_handler = avs_irq_handler, | ||
.irq_thread = avs_cnl_irq_thread, | ||
.int_control = avs_dsp_interrupt_control, | ||
.load_basefw = avs_hda_load_basefw, | ||
.load_lib = avs_hda_load_library, | ||
.transfer_mods = avs_hda_transfer_modules, | ||
.log_buffer_offset = avs_icl_log_buffer_offset, | ||
.log_buffer_status = avs_apl_log_buffer_status, | ||
.coredump = avs_apl_coredump, | ||
.d0ix_toggle = avs_icl_d0ix_toggle, | ||
.set_d0ix = avs_icl_set_d0ix, | ||
AVS_SET_ENABLE_LOGS_OP(icl) | ||
}; |