Patch "ASoC: imx-rpmsg: Set ignore_pmdown_time for dai_link" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: imx-rpmsg: Set ignore_pmdown_time for dai_link

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-imx-rpmsg-set-ignore_pmdown_time-for-dai_link.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 241cd09ed503fe13270ee24204c5ba9e2b2fb9e1
Author: Chancel Liu <chancel.liu@xxxxxxx>
Date:   Wed Sep 13 18:26:56 2023 +0800

    ASoC: imx-rpmsg: Set ignore_pmdown_time for dai_link
    
    [ Upstream commit fac58baf8fcfcd7481e8f6d60206ce2a47c1476c ]
    
    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 <chancel.liu@xxxxxxx>
    Acked-by: Shengjiu Wang <shengjiu.wang@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20230913102656.2966757-1-chancel.liu@xxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c
index 3c7b95db2eacc..b578f9a32d7f1 100644
--- a/sound/soc/fsl/imx-rpmsg.c
+++ b/sound/soc/fsl/imx-rpmsg.c
@@ -89,6 +89,14 @@ static int imx_rpmsg_probe(struct platform_device *pdev)
 			    SND_SOC_DAIFMT_NB_NF |
 			    SND_SOC_DAIFMT_CBC_CFC;
 
+	/*
+	 * 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.
+	 */
+	data->dai.ignore_pmdown_time = 1;
+
 	/* Optional codec node */
 	ret = of_parse_phandle_with_fixed_args(np, "audio-codec", 0, 0, &args);
 	if (ret) {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux