ASoC: Blackfin TDM: use external frame syncs
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
@@ -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
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?
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
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.
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 exceptCBM_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
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 exceptCBM_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.
Liam Girdwood
Acked-byQuoted 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 exceptCBM_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