• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » Registering a generic audio CODEC with Beaglebone ALSA ASOC
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Registering a generic audio CODEC with Beaglebone ALSA ASOC

Registering a generic audio CODEC with Beaglebone ALSA ASOC

This question is not answered
Thomas 50104
Posted by Thomas 50104
on Apr 26 2012 09:36 AM
Intellectual260 points

Hi

I have interfaced my Beaglebone with an external audio CODEC and want to build an ALSA driver (based on the existing ASOC driver) for the CODEC to be shown in the ALSA device list. Is there some kind of I2C handshaking between the ASOC and the CODEC that is required for  the CODEC to be registered as an ALSA device (my CODEC is not the AIC31 - I can configure my CODEC from a software tool)?

Cheers

codec ALSA MCASP Beaglebone
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Gururaja Hebbar
    Posted by Gururaja Hebbar
    on Apr 27 2012 04:14 AM
    Intellectual2535 points

    codec is an i2c device. This device is registered in board file ( example on AM335x platform, it is registered in arch/arm/mach-omap2/board-am335xevm.c)

    Here Codec is on i2c-1 bus at address 0x1b.

    static struct i2c_board_info am335x_i2c_boardinfo1[] = {
        {
            I2C_BOARD_INFO("tlv320aic3x", 0x1b),
        },
    ...

    ...

    This data is compared with the codec name generated by ALSA frameowrk with the Codec registered. On AM335x Platform it is in sound/soc/davinci/davinci-evm.c

    static struct snd_soc_dai_link am335x_evm_dai = {
        .name = "TLV320AIC3X",
        .stream_name = "AIC3X",
        .cpu_dai_name = "davinci-mcasp.1",
        .codec_dai_name = "tlv320aic3x-hifi",
        .codec_name = "tlv320aic3x-codec.2-001b",
        .platform_name = "davinci-pcm-audio",
        .init = evm_aic3x_init,
        .ops = &evm_ops,
    };

    2 basically means i2c-1 bus

    Hope this helps.

    Regards

    Gururaja

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Thomas 50104
    Posted by Thomas 50104
    on Apr 27 2012 05:13 AM
    Intellectual260 points

    Hi Guruaja,

    Thanks a bunch for the information. Do you know if the CODEC has to be reached on the I2C bus for the ALSA device to be registered (i.e. is there somekind of handshaking needed for the registration to complete)?

    Thanks 

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use