Skip to content

Commit fac58ba

Browse files
Chancel Liubroonie
authored andcommitted
ASoC: imx-rpmsg: Set ignore_pmdown_time for dai_link
i.MX rpmsg sound cards work on codec slave mode. MCLK will be disabled by CPU DAI driver in hw_free(). Some codec requires MCLK present at power up/down sequence. So need to set ignore_pmdown_time to power down codec immediately before MCLK is turned off. Take WM8962 as an example, if MCLK is disabled before DAPM power down playback stream, FIFO error will arise in WM8962 which will have bad impact on playback next. Signed-off-by: Chancel Liu <[email protected]> Acked-by: Shengjiu Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ef3e1b8 commit fac58ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sound/soc/fsl/imx-rpmsg.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ static int imx_rpmsg_probe(struct platform_device *pdev)
8989
SND_SOC_DAIFMT_NB_NF |
9090
SND_SOC_DAIFMT_CBC_CFC;
9191

92+
/*
93+
* i.MX rpmsg sound cards work on codec slave mode. MCLK will be
94+
* disabled by CPU DAI driver in hw_free(). Some codec requires MCLK
95+
* present at power up/down sequence. So need to set ignore_pmdown_time
96+
* to power down codec immediately before MCLK is turned off.
97+
*/
98+
data->dai.ignore_pmdown_time = 1;
99+
92100
/* Optional codec node */
93101
ret = of_parse_phandle_with_fixed_args(np, "audio-codec", 0, 0, &args);
94102
if (ret) {

0 commit comments

Comments
 (0)