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.

DM365 IPNC : Replacing G711 by AAC codec

Other Parts Discussed in Thread: TLV320AIC3101

Hello all TI staff,

I try in the IPNC v1.0 to replace the G711 codec by the AAC codec.

I have incorporated the ittiam codec into the dvsdk strucutre as explained in the wiki page.

Now I need to change the calls to the audio and algo creation software. Is there a starting point to apprehend the difficulty of doing it ? If some TI people have already done it, is it possible to share experience ?

thank you for any help.

 

 

  • Hi,

    I am not sure if anybody would have moved from G711 to AAC on the IPNC Ref Design. But i can surely give you some pointers. The one place where you would have to do changes in the source code would be audioThr.c file. In this file, we read the audio samples and pass it to G711 encode. We do not use Codec Engine for G711, but for AAC you would have to use it. Hence you should have proper CREATE, CONTROL, PROCESS and DELETE APIs of the Codec Engine put in place in audioThr.c

    There is no other change required.

    Ofcourse, if you need to change sampling rate, you would have to make changes in the code for calling IOCTLs for the sample rate conversion.

    Another thing to note is that IPNC Ref Design uses internal on-chip voice codec which supports only 8 and 16KHz sampling. If you plan to use external voice codec, you would have to make changes to open McBSP driver and use it accordingly.

    BTW, i would highly recommend you to move to latest releases of IPNC Ref Design. We have made many fixes since ver 1.0 and it will not be easy/feasible to support so old releases.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  •  

    Hello,

    Come back to the AAC business. I wanted to know what are the codec engines libraries names or place to link my executable to ?

    If I add AAC, i have to use DMAI interface, which is compiled, but there is no object file to link. I tried to find a clue in makefile, but it is quite difficult to identify the right object.

    thank you for your help

     

  • thank you anshuman. I use now the DMAI interface for accessing AAC codec. I still use the other interface in case of G711 (not to trouble the old code).

     

    I am now in the ALSA layer installation. My kernel is configured to use the TLV320AIC3101 as the audio codec.

    My question is that :

    Is that codec's ALSA driver has been coded to be included in the kernel or as a module ?

    I ask this question because of no appearance of the "soundcard" name in /proc/asound/devices., also /proc/asound/pcm is empty. Only timer is here.

    If I have to insert this module, I will need to create all the nodes in /dev. There is existing script : snddevices done to perform this.

    Has TI done some work on it ? If existing somewhere, is that possible to get the fiel or link to this file.

    Indeed I have problems in the IPNc code to open the pcm device. the function DRV_audioOpen is unable to open pcm device. I guess it is because of the non appearance of this card during the boot process.

    regards

    reda