]> Git Repo - linux.git/commitdiff
ASoC: cs35l41: Fix DSP mbox start command and global enable order
authorLucas Tanure <[email protected]>
Thu, 3 Mar 2022 17:30:42 +0000 (17:30 +0000)
committerMark Brown <[email protected]>
Mon, 7 Mar 2022 13:12:38 +0000 (13:12 +0000)
Global enable must happen before CSPL_MBOX_CMD_RESUME command
is sent. Move it to PRE_PMU as both events use
SND_SOC_DAPM_OUT_DRV_E macro.

Signed-off-by: Lucas Tanure <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/cs35l41.c

index f3787d77f892b1708838b06e61954ab7c442df1c..05de94fd2e5595a2572b1ba7d3bd091536069036 100644 (file)
@@ -573,7 +573,7 @@ static int cs35l41_main_amp_event(struct snd_soc_dapm_widget *w,
        int ret = 0;
 
        switch (event) {
-       case SND_SOC_DAPM_POST_PMU:
+       case SND_SOC_DAPM_PRE_PMU:
                regmap_multi_reg_write_bypassed(cs35l41->regmap,
                                                cs35l41_pup_patch,
                                                ARRAY_SIZE(cs35l41_pup_patch));
@@ -649,7 +649,7 @@ static const struct snd_soc_dapm_widget cs35l41_dapm_widgets[] = {
 
        SND_SOC_DAPM_OUT_DRV_E("Main AMP", CS35L41_PWR_CTRL2, 0, 0, NULL, 0,
                               cs35l41_main_amp_event,
-                              SND_SOC_DAPM_POST_PMD |  SND_SOC_DAPM_POST_PMU),
+                              SND_SOC_DAPM_POST_PMD |  SND_SOC_DAPM_PRE_PMU),
 
        SND_SOC_DAPM_MUX("ASP TX1 Source", SND_SOC_NOPM, 0, 0, &asp_tx1_mux),
        SND_SOC_DAPM_MUX("ASP TX2 Source", SND_SOC_NOPM, 0, 0, &asp_tx2_mux),
This page took 0.069767 seconds and 4 git commands to generate.