]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ASoC: dapm: Add snd_soc_dapm_switch to the power up/down sequence table
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 14 Jun 2013 11:16:50 +0000 (13:16 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 14 Jun 2013 11:35:23 +0000 (12:35 +0100)
The power up/down sequence order for DAPM switch widgets is not explicitly
initialized, causing them to be run always as the first widget type for both
power up and down. Move it to the same position in the sequence as other mixer
widget types.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c

index a80c883bb8be29eeba512d86e46af833d472c833..2324f3cfa0d06946365f0e1df90add0a8e7adb6d 100644 (file)
@@ -63,6 +63,7 @@ static int dapm_up_seq[] = {
        [snd_soc_dapm_virt_mux] = 5,
        [snd_soc_dapm_value_mux] = 5,
        [snd_soc_dapm_dac] = 6,
+       [snd_soc_dapm_switch] = 7,
        [snd_soc_dapm_mixer] = 7,
        [snd_soc_dapm_mixer_named_ctl] = 7,
        [snd_soc_dapm_pga] = 8,
@@ -82,6 +83,7 @@ static int dapm_down_seq[] = {
        [snd_soc_dapm_line] = 2,
        [snd_soc_dapm_out_drv] = 2,
        [snd_soc_dapm_pga] = 4,
+       [snd_soc_dapm_switch] = 5,
        [snd_soc_dapm_mixer_named_ctl] = 5,
        [snd_soc_dapm_mixer] = 5,
        [snd_soc_dapm_dac] = 6,