This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[OMAP-L138] Question on davinci-mcasp module PSP 03.20.00.14

Hi,

Can you please clarify the meaning of this code inside the davinci-mcasp.c (./sound/soc/davinci) under the routine: davinci_hw_param(..)

    if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
        /* bit stream is MSB first  with no delay */
        /* DSP_B mode */
         mcasp_set_bits(dev->base + DAVINCI_MCASP_AHCLKXCTL_REG,
                AHCLKXE);
        mcasp_set_reg(dev->base + DAVINCI_MCASP_TXTDM_REG, mask);
        mcasp_set_bits(dev->base + DAVINCI_MCASP_TXFMT_REG, TXORD);
        if ((dev->tdm_slots >= 2) || (dev->tdm_slots <= 32))
            mcasp_mod_bits(dev->base + DAVINCI_MCASP_TXFMCTL_REG,
                    FSXMOD(dev->tdm_slots), FSXMOD(0x1FF));
        else
            printk(KERN_ERR "playback tdm slot %d not supported\n",
                dev->tdm_slots);

        mcasp_clr_bits(dev->base + DAVINCI_MCASP_TXFMCTL_REG, FSXDUR);
    } else { [more code follows...]

 

In the comment it indicate that it is using DSP_B mode, but I cannot figure out from the registers configured how you can change this to I2S mode.

Please clarify.

Regards,

Grant