Hi All,
I have setup the alsa based support for Audio codec. We are using MCBSP1 for audio streaming.
When i run aplay with audio file, i get error this error
playback write error (DMA or IRQ trouble?). Does anyone know what this error is? How to resolve this error.
Thanks.
Can you provide more information?
What platform and OS are you using?, version?
How are you setting the path?
What do you have connected to McBSP1?
Regards!
ICe
Here's the setup.
OS Ubuntu 10.0.
MCBSP1(OMAP3703) is connected to Audio codec. MCBSP1 clk is externally provided.
So , I have configured MCBSP1 in slave mode.
In the machine driver..soc/omap/omap37xx.c
------------
#define FORMAT (SND_SOC_DAIFMT_I2S| SND_SOC_DAIFMT_IB_NF|SND_SOC_DAIFMT_CBM_CFM)
#define CLK_FREQ 12288000
snd_soc_dai_set_fmt(codec_dai, FORMAT);
snd_soc_dai_set_fmt(cpu_dai, FORMAT);
snd_soc_dai_set_sysclk(codec_dai, 0, CLK_FREQ, SND_SOC_CLOCK_IN);
snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_SYSCLK_CLKS_EXT, CLK_FREQ, SND_SOC_CLOCK_IN);
snd_soc_dai_set_clkdiv(cpu_dai, OMAP_MCBSP_CLKGDV, 8);
----------------------------------------------------------------------------