Skip to contentSkip to conversation

ASoC: Blackfin AC97: fix resume handling

PATCH Applied Mike Frysinger 2 participants 3 messages Jul 14, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: Blackfin AC97: fix resume handling

From: Cliff Cai <[email protected]>

There is no need to manually start playback/capture ourselves as the PCM driver will handle things for us.

---
 sound/soc/blackfin/bf5xx-ac97.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
sound/soc/blackfin/bf5xx-ac97.c +3 -7
index b1ed423..2758b90 100644
@@ -277,28 +277,24 @@ static int bf5xx_ac97_resume(struct snd_soc_dai *dai)
 	if (!dai->active)
 		return 0;
 
-	ret = sport_set_multichannel(sport_handle, 16, 0x1F, 1);
+	ret = sport_set_multichannel(sport, 16, 0x1F, 1);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		return -EBUSY;
 	}
 
-	ret = sport_config_rx(sport_handle, IRFS, 0xF, 0, (16*16-1));
+	ret = sport_config_rx(sport, IRFS, 0xF, 0, (16*16-1));
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		return -EBUSY;
 	}
 
-	ret = sport_config_tx(sport_handle, ITFS, 0xF, 0, (16*16-1));
+	ret = sport_config_tx(sport, ITFS, 0xF, 0, (16*16-1));
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		return -EBUSY;
 	}
 
-	if (dai->capture.active)
-		sport_rx_start(sport);
-	if (dai->playback.active)
-		sport_tx_start(sport);
 	return 0;
 }
 
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 2/2 ASoC: Blackfin I2S: fix resume handling

From: Cliff Cai <[email protected]>

There is no need to manually start playback/capture ourselves as the PCM driver will handle things for us.

---
 sound/soc/blackfin/bf5xx-i2s.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
sound/soc/blackfin/bf5xx-i2s.c +2 -6
index af06904..876abad 100644
@@ -259,22 +259,18 @@ static int bf5xx_i2s_resume(struct snd_soc_dai *dai)
 	if (!dai->active)
 		return 0;
 
-	ret = sport_config_rx(sport_handle, RFSR | RCKFE, RSFSE|0x1f, 0, 0);
+	ret = sport_config_rx(sport, RFSR | RCKFE, RSFSE|0x1f, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		return -EBUSY;
 	}
 
-	ret = sport_config_tx(sport_handle, TFSR | TCKFE, TSFSE|0x1f, 0, 0);
+	ret = sport_config_tx(sport, TFSR | TCKFE, TSFSE|0x1f, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		return -EBUSY;
 	}
 
-	if (dai->capture.active)
-		sport_rx_start(sport);
-	if (dai->playback.active)
-		sport_tx_start(sport);
 	return 0;
 }
 
Signature · 1 line
1.6.3.3