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.

AM1808 McBSP interface to audio codec

Other Parts Discussed in Thread: AM1808, OMAP-L138

Hi all,

Can anyone provide me how to configure McBSP to audio codec. We are using AM1808 based evm. The McASP interface to audio codec is working fine. I want to know the software changes and the changes in kernel configuration.

Please Provide me any suggestions.

Thanks & Regards,

Vivek

  • Hi all,

    Please respond to this post.

    Thanks in Advance,

    Vivek

  • Vivek,

    What software are you using as the basis for your application?  TI provides several options that you can use to get started.  For low-level development, I recommend taking a look at the StarterWare package for AM1808:

    This package includes example code that shows how to configure the AIC audio codec using the I2C peripheral.  (This is part of the "mcasp" example application.)  For more information about configuration options of the codec itself, I recommend referring to the codec datasheet.

    Hope this helps.

  • After reading your post again, I think I may have misunderstood the question.  If you're asking how to use the McBSP peripheral (i.e. instead of McASP) with the audio codec on the EVM, then unfortunately there is no way to do that on the base EVM board.  The McBSP pins are routed to the J30 expansion connector, so you can only use them in conjunction with the audio add-on board or some custom hardware.

    (For this reason, StarterWare for AM1808 does not support the McBSP peripheral.)

  • Sir,

    We have a custom hardware platform to use both McASP and McBSP interface for audio. With that McASP is working fine. And right now the hardware changes are made to work with McBSP.

    In the Software side davinci-i2s (ALSA SoC I2S (McBSP) Audio Layer) is included in the build.

    In davinci-i2s.c the following change is made;

    static struct platform_driver davinci_mcbsp_driver = {
        .probe        = davinci_i2s_probe,
        .remove        = davinci_i2s_remove,
        .driver        = {
            //.name    = "davinci-asp",  /*Commented this and added davinci-mcbsp */
            .name    = "davinci-mcbsp",
            .owner    = THIS_MODULE,
        },
    };

    Now the ALSA device is loading as ;

    asoc: tlv320aic3x <-> davinci-i2s mapping ok
    ALSA device list:                                                               
      #0: DA850/OMAP-L138 EVM (tlv320aic3x)           


    But the problem is that device for DAI davinci-i2s is missing.
      

    Advanced Linux Sound Architecture Driver Version 1.0.21.

    No device for DAI davinci-i2s                                                   

    Am I doing something totally wrong???
    Any Ideas,Thoughts or Suggestions???

    Please Help me to Solve this problem.

    If there is any Patch available for Audio to work With McBSP?

    Thanks in Advance,

    Vivek N V

        


  • Vivek,

    For questions about the Linux drivers, I recommend posting in the Linux forum.  I think you will get a better response there who have a better understanding of the software in question.

  • Hi Joe ,


    Thank you for your valuable reply. Posted in Linux forum.



    Thanks & Regards,

    Vivek N V