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.

Sample rates with audio example program on OMAP-L137

Other Parts Discussed in Thread: OMAP-L137

In AudioSample_io.c the Audio channel config structures are initialized as follows. I have changed the default of 44100 to 48000 and everything seems ok. My question is can I set these values to anything I want up to the maximum supported sample rate on the hardware codec of 96ksps or are only certain sample rates supported. My application uses a source which actually provides input values such that I need the higher sample rate due to nyquist considerations and the input bandwidth of my incoming signal and I would like to be sampling up around the 90Ksps rate, but changing the values indicated in the structures below to 96000 seems to cause the board to not function.

Thanks

Richard

 

Audio_ChannelConfig audioChanParamsIN =
{
   /*  channel 0 (RX)                                            */
    (Ptr)&mcasp_chanparam[0],
    {   /* codec [0]                                              */
        {
            //44100,  /* sampling rate for codec */
            48000,
               30,  /* gain (%) for codec      */
             0x00,
             0x00
        }
    }
};

Audio_ChannelConfig audioChanParamsOUT =
{       
    /*  channel 1 (TX)                                            */
    (Ptr)&mcasp_chanparam[1],     
    {
        /* codec [1]                           */
        {
            //44100,  /* sampling rate           */
            48000,
               70,  /* gain (%) for codec      */
             0x00,
             0x00
        }
    }
};