Hi,
I was trying to connect AD73311 to MCBSP1 on beagle using the expansion connector.
I have modified the PIN MUX config in the u-boot and I have changed the McBSP channel number to 1 by selecting
*(unsigned int *)omap3beagle_dai.cpu_dai->private_data = 0; /* McBSP1 */ instead of
*(unsigned int *)omap3beagle_dai.cpu_dai->private_data = 1; /* McBSP2*/
The following is the piece of the code I am trying to use to configure the AD73311 over the McBSP1 to bring that into data mode.Once it comes to the data mode I can send/receive the voice data.
omap_mcbsp_set_io_type(0,OMAP_MCBSP_IRQ_IO); //Enable the IRQ IO for McBSP1
status=omap_mcbsp_request(0);//Requeest McBSP1
if(status)
printk("Error in requesting the mcbsp1\n");
omap_mcbsp_set_tx_threshold(0,6);//Set the treshold of 6 words for the McBSP TX
omap_mcbsp_config(0,®s); //configures the McBSP registers
omap_mcbsp_start(0,1,1); //mcbsp_start(id,tx,rx)--starts the tx and rx of the McBSP
omap_mcbsp_xmit_buffer(0,ctrl_regs,6);//transmit the 6 control register values to McBSP
omap_mcbsp_stop(0,1,1); //mcbsp_stop(id,tx,rx)
omap_mcbsp_free(0);
With this it is producing the following error
"DMA transaction error with device 31".
Any Ideas?
Khalid.