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.

AM5728: Register configuration about Sampling rate conversion

Guru 10235 points

Part Number: AM5728

Hello, TI Experts,

 

Our customer sent us additional questions from the below E2E-thread.

https://e2e.ti.com/support/processors/f/791/t/742588

- CPU(A15) sent the "44.1KHz wav file" data to the DSP(C66x).

- The DSP also mixed the McASP sending "192KHz I2S data" to this SRC applied data.

- The mixed data is transferred from the same McASP.

 

Question:

1: Could you tell us how to realize "decode *.wav file on A15 and send the raw data to DSP"?

2: Could you tell us how to realize "send the McASP data to DSP"?

3: Could you tell us how to realize "mix the decoded data from A15 & McASP captured data" on the DSP(C66x)"?

4: Are there any related document or sample code?

 

They plan to develop their product with "PROCESSOR-SDK-ANDROID-AM57X".

 

So we would appreciate if you tell us the recommended way of how to mix

"the decoded *.wav file data on A15" & "McASP captured data" on the DSP(C66x)

with Android or Linux.

 

Best regards,

  • matusan said:

    1: Could you tell us how to realize "decode *.wav file on A15 and send the raw data to DSP"?

    I don't believe a wav file is compressed, so you should just be able to put it in memory and share it with the DSP. All DSP communications are done using IPC.

    Please see our IPC documentation here:

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/05_01_00_11/linux/Foundational_Components_IPC.html

    matusan said:

    2: Could you tell us how to realize "send the McASP data to DSP"?

    This would also be through IPC, but I would investigate having the DSP control the McASP so that the data is directly received by the DSP.

    matusan said:

    3: Could you tell us how to realize "mix the decoded data from A15 & McASP captured data" on the DSP(C66x)"?

    This is a high level audio/DSP question and beyond the scope of our support. There are many ways to do this and you should research to find the best for your needs.

    matusan said:

    4: Are there any related document or sample code?

    The IPC documentation above will point to examples. You should be able to find C examples of audio mixing in a variety of resources.

    I hope this is helpful to you.

  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.

    I'd like to check the IPC related link like below;
    software-dl.ti.com/.../Foundational_Components_IPC.html

    And we are waiting your investigation result/feedback about how the DSP control the McASP.

    Best regards,
  • Matusan,

    If you refer to the IPC on AM57xx article, you will notice that we have provided couple of examples that show how UART And GPIO driver example code can be merged with IPC code on the and deployed on the slave cores like DSP and IPU. We don`t intend to extend these examples to cover MCASP usecase, so can you try to follow the steps that we have shared on the article with the MCASP use case and let us know if you run into any issues.

    In addition to the peripheral configuration and the clock configuration, you may also need to use DSP DMA resources to prevent any conflict with the ARM Android or Linux.

    Regards,
    Rahul
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.
    We understand "there is no DSP(C66x) examples to cover MCASP usecase" with Linux.

    Question:
    Are there any recommended McASP usecase sample project for C66x on AM5728 with PROCESSOR-SDK-RTOS-AM57X.

    Best regards,
  • Yes, there are MCASP DSP sample projects for AM572x using the AM572x GP EVM platform. We provide a internal loopback and external loopback example using external ADC (AIC codec) available for audio input and line out.

    Check the sample projects for C66x using MCASP LLD here:
    software-dl.ti.com/.../Device_Drivers.html

    Regards,
    Rahul
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.
    I would like to send the answer to the customer.

    Best regards,