ASoC: SOF: amd: add revision check for sending sha dma completion command
ACP driver should send SHA DMA completion command to PSP module for RN platform only. Add a revision check for RN platform. Signed-off-by: Mastan Katragadda <Mastan.Katragadda@amd.com> Link: https://lore.kernel.org/r/20230630070544.2167421-1-Mastan.Katragadda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
70a6404ff6
Коммит
b1db244c71
|
@ -217,6 +217,7 @@ int configure_and_run_sha_dma(struct acp_dev_data *adata, void *image_addr,
|
|||
unsigned int image_length)
|
||||
{
|
||||
struct snd_sof_dev *sdev = adata->dev;
|
||||
const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata);
|
||||
unsigned int tx_count, fw_qualifier, val;
|
||||
int ret;
|
||||
|
||||
|
@ -251,9 +252,12 @@ int configure_and_run_sha_dma(struct acp_dev_data *adata, void *image_addr,
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = psp_send_cmd(adata, MBOX_ACP_SHA_DMA_COMMAND);
|
||||
if (ret)
|
||||
return ret;
|
||||
/* psp_send_cmd only required for renoir platform (rev - 3) */
|
||||
if (desc->rev == 3) {
|
||||
ret = psp_send_cmd(adata, MBOX_ACP_SHA_DMA_COMMAND);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = snd_sof_dsp_read_poll_timeout(sdev, ACP_DSP_BAR, ACP_SHA_DSP_FW_QUALIFIER,
|
||||
fw_qualifier, fw_qualifier & DSP_FW_RUN_ENABLE,
|
||||
|
|
Загрузка…
Ссылка в новой задаче