aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSelma Bensaid <selma.bensaid@intel.com>2010-12-09 10:37:47 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:47 +0000
commit7fb4fe5e4d80995b554af80a1bc062dd31a6c39b (patch)
tree1822fe0a49ce3751241a93394942a1d657bc23a2
parent64b02d9bea7664b795d17ed93b6cad0077cc703d (diff)
downloadmrst-s0i3-test-7fb4fe5e4d80995b554af80a1bc062dd31a6c39b.tar.gz
mrst-s0i3-test-7fb4fe5e4d80995b554af80a1bc062dd31a6c39b.tar.xz
mrst-s0i3-test-7fb4fe5e4d80995b554af80a1bc062dd31a6c39b.zip
Intel MID I2S set the SSP0/SSP1 in supsended state after boot
In the function intel_mid_i2s_probe the pm_runtime functions are not called in the right order so SSP0 and SSP1 are not suspended after probe. Signed-off-by: Selma Bensaid <selma.bensaid@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
-rw-r--r--sound/pci/intel_mid_i2s/intel_mid_i2s.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/intel_mid_i2s/intel_mid_i2s.c b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
index c206d406c5b..95967cb7b73 100644
--- a/sound/pci/intel_mid_i2s/intel_mid_i2s.c
+++ b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
@@ -1533,10 +1533,9 @@ static int intel_mid_i2s_probe(struct pci_dev *pdev,
dev_err(&pdev->dev, "can not get IRQ. status err=%d\n", status);
goto err_i2s_probe3;
}
-
+ pm_runtime_set_active(&(drv_data->pdev->dev));
pm_runtime_enable(&(drv_data->pdev->dev));
pm_runtime_allow(&(drv_data->pdev->dev));
- pm_runtime_set_active(&(drv_data->pdev->dev));
pm_request_idle(&(drv_data->pdev->dev));
goto leave;