ASoC: SOF: amd: Fix for acp init sequence
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 16 Aug 2024 07:03:28 +0000 (12:33 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 16 Aug 2024 12:04:31 +0000 (13:04 +0100)
commita42db293e5983aa1508d12644f23d73f0553b32c
treeea6d412aafd86da70f24af519f5c28d6da4d2e46
parent164199615ae230ace4519141285f06766d6d8036
ASoC: SOF: amd: Fix for acp init sequence

When ACP is not powered on by default, acp power on sequence explicitly
invoked by programming pgfsm control mask. The existing implementation
checks the same PGFSM status mask and programs the same PGFSM control mask
in all ACP variants which breaks acp power on sequence for ACP6.0 and
ACP6.3 variants. So to fix this issue, update ACP pgfsm control mask and
status mask based on acp descriptor rev field, which will vary based on
acp variant.

Fixes: 846aef1d7cc0 ("ASoC: SOF: amd: Add Renoir ACP HW support")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20240816070328.610360-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/amd/acp.c
sound/soc/sof/amd/acp.h