summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-04-01 14:17:55 +0800
committerAlex Gonzalez <alex.gonzalez@digi.com>2011-08-01 09:51:24 +0200
commit853cfdaa552fef8675d43dc2385248f83e6f73dd (patch)
tree03d85bdb4408b61a67b21983d6f69153812d88d6 /sound
parent11c109675d49c1131ecc5040a6dedd00bcb5207f (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> Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'sound')
-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);