summaryrefslogtreecommitdiff
path: root/sound/arm
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-04-01 14:17:55 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2011-04-01 15:27:02 +0800
commitacba90905508678b5d54938bc726d8091cca38d8 (patch)
treec1b3f39db2dc55806c40d27bd3b9f2a72a70680c /sound/arm
parent7da21af984a50ffb166ab1a088cd2c5d4313537b (diff)
ENGR00141489 spdif: remove the tx source clock enable in the driver probe
The tx clock source mxc_alsa_spdif.0 should not be enabled in the probe. Instead, enable it in pcm open. Otherwise, busfreq driver can not set current soc to low power mode due to this clock enabled with AHB HIGH flag set. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'sound/arm')
-rw-r--r--sound/arm/mxc-alsa-spdif.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/arm/mxc-alsa-spdif.c b/sound/arm/mxc-alsa-spdif.c
index 523a8079225c..384f493268bb 100644
--- a/sound/arm/mxc-alsa-spdif.c
+++ b/sound/arm/mxc-alsa-spdif.c
@@ -2130,12 +2130,10 @@ static int mxc_alsa_spdif_probe(struct platform_device
chip->spdif_txclk_44100 = plat_data->spdif_clk_44100;
chip->spdif_txclk_48000 = plat_data->spdif_clk_48000;
if ((chip->spdif_txclk_44100 == 1) ||
- (chip->spdif_txclk_48000 == 1)) {
+ (chip->spdif_txclk_48000 == 1))
/*spdif0_clk used as clk src*/
- struct clk *spdif_clk;
- spdif_clk = clk_get(&pdev->dev, NULL);
- clk_enable(spdif_clk);
- }
+ plat_data->spdif_clk = clk_get(&pdev->dev, NULL);
+
atomic_set(&chip->dpll_locked, 0);
err = snd_card_mxc_spdif_pcm(chip);