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.

SampleRate of the AIC23 Codec in dsk_app example for C6455

Hi,

I am trying to change the sampling rate of AIC23 codec in dsk_app example of the C6455 DSK to 8 kHz. I use the following configuration for initializing the AIC23 codec. As a test signal I am trasmitting a speech signal sampled at 8kHz to the headphone out. However, what I hear is speech that is being played at a sampling rate higher than 8kHz. Alternatively, if I transmit the speech signal with the DSK6455_AIC23_write32 command I am able to hear the correct output.

This is my first time using the EDMA controller for doing a data transfer. Are there additional changes to be made to the code, to get the output at the correct sampling rate ?

/* Codec configuration settings */

DSK6455_AIC23_Config   config = {

    0x0017, // 0 DSK6455_AIC23_LEFTINVOL  Left line input channel volume

    0x0017,// 1 DSK6455_AIC23_RIGHTINVOL Right line input channel volume

    0x00d8,// 2 DSK6455_AIC23_LEFTHPVOL  Left channel headphone volume

    0x00d8,// 3 DSK6455_AIC23_RIGHTHPVOL Right channel headphone volume

    0x0010,// 4 DSK6455_AIC23_ANAPATH    Analog audio path control

    0x0000,// 5 DSK6455_AIC23_DIGPATH    Digital audio path control

    0x0000,// 6 DSK6455_AIC23_POWERDOWN  Power down control

    0x0043,// 7 DSK6455_AIC23_DIGIF      Digital audio interface format

    0x008d,// 8 DSK6455_AIC23_SAMPLERATE Sample rate control (SR[3:0], BOSR, USB = 001101)

    0x0001 // 9 DSK6455_AIC23_DIGACT     Digital interface activation

};

Thanks,

Ajay.