Hi Steve, I have tried setting PINMUX3 to 0x3F as well as 0x00. In both the cases I get the same error "frame sync not detected"
Below is the code snippet where I get this error: pcrtemp = PCR; /*Enable the transmitters pins as GPIO*/ PCR = PCR | RIOENABLE; /*Wait for the first frame sync*/ /*Loop count assumes CPU clock is around 300MHZ*/ /* Start the sample generator */ // w = DAVINCI_MCBSP_READ(io_base, SPCR2); // DAVINCI_MCBSP_WRITE(io_base, SPCR2, w | (1 << 6)); /* Enable receiver */ // w = DAVINCI_MCBSP_READ(io_base, SPCR1); //DAVINCI_MCBSP_WRITE(io_base, SPCR1, w | 1); // DAVINCI_MCBSP_WRITE(io_base, SPCR1, w | RRST); // udelay(100); /* Start frame sync */ // w = DAVINCI_MCBSP_READ(io_base, SPCR2); // DAVINCI_MCBSP_WRITE(io_base, SPCR2, w | (1 << 7)); for (i = 0; (i < 5000) && (PCR&FSRPOLARITY); i++); for (i = 0; (i < 5000) && (!(PCR&FSRPOLARITY)); i++); /*Disabe the transmitter pins as GPIO*/ PCR = PCR & ~RIOENABLE; /*Restore the PCR initial value*/ PCR = pcrtemp; /*Enable the transmitter */ if (i < 5000) { SPCR = SPCR | RRESET; /*Restore the PCR initial value*/ } else { printk(KERN_INFO "frame sync not detected\n"); <<<<<<<<<<<<< error >>>>>>>>>>>>>>>>>>>>>>>>>>>>> spin_unlock_irqrestore(&rrstlock, flags); return; } If I dont get the frame sync then in that case what should I check? Thanks, Azam. On Thu, Apr 30, 2009 at 5:02 AM, Steve Chen <sc...@mvista.com> wrote: > On Wed, 2009-04-29 at 23:57 +0530, Azam Ansari wrote: > > Hi Steve, > > > > >>Were you getting frame sync before the change? > > > > No. I was not getting frame sync before the change either. Does it > > mean that PINMUX setup is not correct? > > Currently is set PINMUX3 = 0x3F. > > Did you try the suggestions in my previous e-mail about updating > mux_cfg.c which will make pinmux3=0. > > Regards, > > Steve > > > > > > > > > >> and I noticed in function > > >> audio_aic33_init in sound/oss/dm644x/davinci- > > >> audio-aic33.c contains > > >> ... > > >> if (cpu_is_davinci_dm355()) { > > >> input_stream.dma_dev = DM355_DMA_MCBSP1_RX; > > >> output_stream.dma_dev = DM355_DMA_MCBSP1_TX; > > >> ... > > > > >> May want to try > > > > >> if (cpu_is_davinci_dm355()) { > > >> input_stream.dma_dev = DM355_DMA_MCBSP0_RX; > > >> output_stream.dma_dev = DM355_DMA_MCBSP0_TX; > > > > > > >> Also, file arch/arm/mach-davinci/mcbsp.c function > > >> davinci_mcbsp_recv_buffer may want to try replacing > > > > >> if (!cpu_is_davinci_dm355()) > > > > >> davinci_set_dma_src_params(mcbsp[id].dma_rx_lch, > > >> (unsigned long) DAVINCI_MCBSP_BASE, > > 0, > > >> 0); > > >> else > > >> davinci_set_dma_src_params(mcbsp[id].dma_rx_lch, > > >> (unsigned long) > > DAVINCI_MCBSP1_BASE, 0, > > >> 0); > > >> > > >> with just > > >> davinci_set_dma_src_params(mcbsp[id].dma_rx_lch, > > >> (unsigned long) DAVINCI_MCBSP_BASE, > > 0, > > >> 0); > > > > I am using DM355 board. I have already modified the change suggest but > > it is not working. > > > > Any thing else that I need to check? > > > > Thanks, > > Azam. > > > >
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source