[alsa-devel] [PATCH 1/1] ASoC: Fix compilation error with davinci-sffsdr module

Hugo Villeneuve hugo at hugovil.com
Fri Jan 16 18:05:38 CET 2009


On Thu, 15 Jan 2009 15:50:52 -0700
Troy Kisky <troy.kisky at boundarydevices.com> wrote:

> Hugo Villeneuve wrote:
> > On Thu, 15 Jan 2009 15:10:01 -0700
> > Troy Kisky <troy.kisky at boundarydevices.com> wrote:
> > 
> >>> Hopefully a comparison of the mainline and DaVinci trees will show
> >>> something...
> >> In davinci-sffsdr.c I see
> >>
> >> 	ret = snd_soc_dai_set_fmt(cpu_dai,
> >> 				  SND_SOC_DAIFMT_RIGHT_J |
> >> 				  SND_SOC_DAIFMT_CBM_CFS |
> >> 				  SND_SOC_DAIFMT_IB_NF);
> >>
> >> When I changed the evm board flags passed, I didn't change this
> >> file. So, you'll need something like
> >>
> >> 	ret = snd_soc_dai_set_fmt(cpu_dai,
> >> 				  SND_SOC_DAIFMT_DSP_A |
> >> 				  SND_SOC_DAIFMT_CBM_CFS |
> >> 				  SND_SOC_DAIFMT_NB_NF);
> > 
> 
> 
> 
> Actually, that should be
> 
>  	ret = snd_soc_dai_set_fmt(cpu_dai,
>  				  SND_SOC_DAIFMT_DSP_B |
>  				  SND_SOC_DAIFMT_CBM_CFS |
>  				  SND_SOC_DAIFMT_NB_NF);
> 
> 
> I had dsp_a and dsp_b backwards again.

Hi Troy,
Finally the problem was hardware related. The PLL feeding the clocks
to the ASP was dead, so that is why the DMA were never triggered. I
replaced it and everything is working fine now, using my original
config:
   SND_SOC_DAIFMT_RIGHT_J |
   SND_SOC_DAIFMT_CBM_CFS |
   SND_SOC_DAIFMT_IB_NF);

Mark: this also means that the latest davinci git tree has
working audio support (without needing any DMA patch) :)

Thank-you all, Hugo.

---------------
Hugo Villeneuve
www.hugovil.com
---------------


More information about the Alsa-devel mailing list