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.

ROUTING AUDIO TO CODEC TLV320AIC3106 FROM OMAP 4460 PROCESSOR

Other Parts Discussed in Thread: TLV320AIC3106, TWL6040

CAN I KNOW  WHAT ARE THE MIXER CONTROLS THAT I NEED TO CONFIGURE IN ORDER TO ROUTE AUDIO TO TLV320AIC3106 CODEC THROUGH MCBSP3 INTERFACE

ALSO HOW TO ENABLE MCBSP3 INTERFACE

  • Hello Sudeep,

    As per my understanding you need to enable MCBSP3 signals (that is abe_mcbsp3_dr, abe_mcbsp3_dx, abe_mcbsp3_clkx & abe_mcbsp_fsx) on the device pins, then you need to configure the appropriate muxmode from OMAP4460 control module. That is you need to set: 

    CONTROL_CORE_PAD0_USBB1_ULPITLL_DAT3_PAD1_USBB1_ULPITLL_DAT4[18:16]USBB1_ULPITLL_DAT4_MUXMODE = 0x2: Select abe_mcbsp3_dr

    CONTROL_CORE_PAD0_USBB1_ULPITLL_DAT5_PAD1_USBB1_ULPITLL_DAT6[2:0]USBB1_ULPITLL_DAT5_MUXMODE = 0x2: Select abe_mcbsp3_dx

    CONTROL_CORE_PAD0_USBB1_ULPITLL_DAT5_PAD1_USBB1_ULPITLL_DAT6[18:16]USBB1_ULPITLL_DAT6_MUXMODE = 0x2: Select abe_mcbsp3_clkx

    CONTROL_CORE_PAD0_USBB1_ULPITLL_DAT7_PAD1_USBB1_HSIC_DATA[2:0] USBB1_ULPITLL_DAT7_MUXMODE = 0x2: Select abe_mcbsp3_fsx

    MCBSP is enabled when you enable its clocks from PRCM module by appropriately configuring CM1_ABE_MCBSP3_CLKCTRL register.

    Best Regards,

    Yordan

  • Thanks for your reply Yordan.

    And can i know how to configure those registers in my source code.. Is there any file

  • Hi Sudeep,

    You can do that in several ways:

    1) Through kernel modifications

    2) through u-boot

    3) through user space by using devmem2 (devmem2 <register_address_in_hex>  -w <value_to_be_written_to_register >).

    For 1) and 2) you need to download the source files for linux kernel/u-boot on your host machine and rebuild. A good step by step guide is: http://elinux.org/BeagleBoardPinMux.

    In my case ( i am using pandaboard with GLP1.6.8) for option 1 kernel modification, files are located in <path to downloaded source files>/kernel-ubuntu/arch/arm/mach-omap2.

    Best Regards,

    Yordan

  • thank you so much

    I have one more doubt ..

    what is the significance of sdp4430 ?

    Do i need to add my codec-dai in that file   for tlv320aic3x codec

    where to integrate my codec (i mean in which file )

  • Sudeep,

    I only have Pandaboard and cannot replicate your use case.

    But you should add your codec dai in that board-4430sdb.c/board-omap4panda.c  file as this is done for the original TWL6040 (for pandaboard) codec.

    You could download glp1.6.8 and reuse the method for the integration of the original panda audio codec (TWL6040).  You may find useful information regarding linux kernel structure here: http://kerneldox.com/kdox-linux/dc/d8e/board-4430sdp_8c.html.

  • Hi, 

    Could you help me solve this question? Thank you!

    http://e2e.ti.com/support/arm/sitara_arm/f/791/p/361025/1274674.aspx#1274674

  • Hi J H,

    I am not familiar with Sitara SDK (kernel & u-boot), and I am not that well familiar with chip architecture. I've worked mainly with linux & android kernels for the OMAP Application Processors.

    I think the better place for your question would be the Linux forum: http://e2e.ti.com/support/embedded/linux/f/354.aspx.

    Folks supporting it are more experienced with linux kernels used for Sitara & DaVinci processors and will provide you with better answer.

    Best Regards,

    Yordan