Skip to contentSkip to conversation

ASoC: Blackfin TDM: use external frame syncs

PATCH In review Mike Frysinger 3 participants 7 messages Jan 12, 2011 – Jan 13, 2011

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

PATCH 1/1 ASoC: Blackfin TDM: use external frame syncs

From: Barry Song <[email protected]>

We don't want to use internal frame syncs otherwise we sometimes get out of sync, so don't enable them when setting up the SPORT.

---
 sound/soc/blackfin/bf5xx-tdm.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/blackfin/bf5xx-tdm.c +4 -4
index b2cf239..5515ac9 100644
@@ -235,13 +235,13 @@ static int bf5xx_tdm_resume(struct snd_soc_dai *dai)
 		ret = -EBUSY;
 	}
 
-	ret = sport_config_rx(sport, IRFS, 0x1F, 0, 0);
+	ret = sport_config_rx(sport, 0, 0x1F, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		ret = -EBUSY;
 	}
 
-	ret = sport_config_tx(sport, ITFS, 0x1F, 0, 0);
+	ret = sport_config_tx(sport, 0, 0x1F, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		ret = -EBUSY;
@@ -303,14 +303,14 @@ static int __devinit bfin_tdm_probe(struct platform_device *pdev)
 		goto sport_config_err;
 	}
 
-	ret = sport_config_rx(sport_handle, IRFS, 0x1F, 0, 0);
+	ret = sport_config_rx(sport_handle, 0, 0x1F, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		ret = -EBUSY;
 		goto sport_config_err;
 	}
 
-	ret = sport_config_tx(sport_handle, ITFS, 0x1F, 0, 0);
+	ret = sport_config_tx(sport_handle, 0, 0x1F, 0, 0);
 	if (ret) {
 		pr_err("SPORT is busy!\n");
 		ret = -EBUSY;
Signature · 1 line
1.7.4.rc1
#1 lore raw
Quoted 4 lines · Mike Frysinger

From: Barry Song <[email protected]>

We don't want to use internal frame syncs otherwise we sometimes get out of sync, so don't enable them when setting up the SPORT.

This sounds a lot like the TDM mode needs to be clock slave on the external bus, though it's a bit hard to tell?

#2 lore raw
Quoted 8 lines · Mark Brown
Quoted 4 lines · Mike Frysinger

From: Barry Song <[email protected]>

We don't want to use internal frame syncs otherwise we sometimes get out of sync, so don't enable them when setting up the SPORT.

This sounds a lot like the TDM mode needs to be clock slave on the external bus, though it's a bit hard to tell?

i believe that's the case
-mike

#3 lore raw
Quoted 6 lines · Mike Frysinger
Quoted 2 lines · Mark Brown

This sounds a lot like the TDM mode needs to be clock slave on the external bus, though it's a bit hard to tell?

i believe that's the case

In that case I'd expect an update to your set_dai_fmt() operation disallowing any configuration except CBM_CFM. Though I see that's the case already so I'm kind of surprised the system worked at all - whatever CODECs you're using with the TDM DAI may well be buggy.

#4 lore raw
Quoted 11 lines · Mark Brown
Quoted 5 lines · Mike Frysinger
Quoted 2 lines · Mark Brown

This sounds a lot like the TDM mode needs to be clock slave on the external bus, though it's a bit hard to tell?

i believe that's the case

In that case I'd expect an update to your set_dai_fmt() operation disallowing any configuration except CBM_CFM.  Though I see that's the case already so I'm kind of surprised the system worked at all - whatever CODECs you're using with the TDM DAI may well be buggy.

Sonic or perhaps Scott or Bob would have to comment. i have a limited understanding of the SPORT/audio, so i can only theorize based on the sparse changelogs i'm given.
-mike
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw
Quoted 10 lines · Mike Frysinger
Quoted 4 lines · Mark Brown

In that case I'd expect an update to your set_dai_fmt() operation disallowing any configuration except CBM_CFM.  Though I see that's the case already so I'm kind of surprised the system worked at all - whatever CODECs you're using with the TDM DAI may well be buggy.

Sonic or perhaps Scott or Bob would have to comment. i have a limited understanding of the SPORT/audio, so i can only theorize based on the sparse changelogs i'm given.

OK. The change is *probably* OK in itself (I have a similar changelog issue) but it may be pointing up an issue with the CODEC driver, it'd be worth investigating that too to make sure there isn't a matching issue on the CODEC side.

Acked-by
#6 lore raw
Quoted 12 lines · Mark Brown
Quoted 10 lines · Mike Frysinger
Quoted 4 lines · Mark Brown

In that case I'd expect an update to your set_dai_fmt() operation disallowing any configuration except CBM_CFM. Though I see that's the case already so I'm kind of surprised the system worked at all - whatever CODECs you're using with the TDM DAI may well be buggy.

Sonic or perhaps Scott or Bob would have to comment. i have a limited understanding of the SPORT/audio, so i can only theorize based on the sparse changelogs i'm given.

Quoted 5 lines

OK. The change is *probably* OK in itself (I have a similar changelog issue) but it may be pointing up an issue with the CODEC driver, it'd be worth investigating that too to make sure there isn't a matching issue on the CODEC side.
_______________________________________________

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk