Skip to content

Commit 3bc7b6c

Browse files
Ravulapati Vishnu vardhan raobroonie
authored andcommitted
ASoC: amd: ACP needs to be powered off in BIOS.
Removed this logic because It is BIOS which needs to power off the ACP power domian through ACP_PGFSM_CTRL register when you De-initialize ACP Engine. Signed-off-by: Ravulapati Vishnu vardhan rao <[email protected]> Link: https://lore.kernel.org/r/1581935964-15059-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com Signed-off-by: Mark Brown <[email protected]>
1 parent 4aadf4b commit 3bc7b6c

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

sound/soc/amd/raven/pci-acp3x.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,6 @@ static int acp3x_power_on(void __iomem *acp3x_base)
4545
return -ETIMEDOUT;
4646
}
4747

48-
static int acp3x_power_off(void __iomem *acp3x_base)
49-
{
50-
u32 val;
51-
int timeout;
52-
53-
rv_writel(ACP_PGFSM_CNTL_POWER_OFF_MASK,
54-
acp3x_base + mmACP_PGFSM_CONTROL);
55-
timeout = 0;
56-
while (++timeout < 500) {
57-
val = rv_readl(acp3x_base + mmACP_PGFSM_STATUS);
58-
if ((val & ACP_PGFSM_STATUS_MASK) == ACP_POWERED_OFF)
59-
return 0;
60-
udelay(1);
61-
}
62-
return -ETIMEDOUT;
63-
}
64-
6548
static int acp3x_reset(void __iomem *acp3x_base)
6649
{
6750
u32 val;
@@ -115,12 +98,6 @@ static int acp3x_deinit(void __iomem *acp3x_base)
11598
pr_err("ACP3x reset failed\n");
11699
return ret;
117100
}
118-
/* power off */
119-
ret = acp3x_power_off(acp3x_base);
120-
if (ret) {
121-
pr_err("ACP3x power off failed\n");
122-
return ret;
123-
}
124101
return 0;
125102
}
126103

0 commit comments

Comments
 (0)