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.

EDMA Channel Query in DM368

Hi,

I am working with 2.6.32 kernel with DM368 based custom board.

We want to make use of Internal Codec (CQ93VC). In our design we are having external codec too.

I have evaluated the internal codec and external codec separately in our hw.

Seems EDMA channel 2 and 3 are used for Tx and Rx purpose for both Voice Codec and External Codec.

 

1. Is it possible to have both codecs running parallely? or Can we switch between one codec to another dynamically?

2. Can we have Internal Codec working without EDMA. Is it Possible?

Thank you, Sreedhar.

  • Hi,

    I am able to switch between the codecs with slight codec changes to the davinci-i2s.c and davinci-vcif.c file.

    I have put the following code in the davinci-vcif.c file in the function

     davinci_vcif_start(   )

     davinci_cfg_reg(DM365_EVT2_VC_TX);
     davinci_cfg_reg(DM365_EVT3_VC_RX);

    similarly i have placed the following code in davinci-i2s.c file  in
    the fucntion

     davinci_mcbsp_start( )

     davinci_cfg_reg(DM365_EVT2_ASP_TX);
     davinci_cfg_reg(DM365_EVT3_ASP_RX);

    Please let me know if this is wrong and what problems to expect?

    -Sreedhar.