Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9369

i2secho example doesn't align use of frame settings with codec on CC3200AUDBOOST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • TI Device Drivers
    • TIDRIVERS-3652
    • CORESDK_4_10_00
    • TIDRIVERS_4_20_00
    • Hide
      The I2S echo example will initialize the following parameters.

      i2sParams.samplingFrequency = 16000;
      i2sParams.fixedBufferLength = BUFSIZE;
      i2sParams.writeCallback = writeCallbackFxn ;
      i2sParams.readCallback = readCallbackFxn ;
      i2sParams.errorCallback = errCallbackFxn;
      And will use defaults for the remaining parameters including especially:

       

      .beforeWordPadding = 0,
       

      However, in the codec initialization function, it will do the following up:

      // Set I2S Mode and Word Length
      AudioCodec_regWrite(TI3254_AUDIO_IF_1_REG, 0x00); // 0x00 16bit, I2S, BCLK is input to the device
      // WCLK is input to the device,
       

      There is a skew in the settings. The codec is providing frames in I2S mode (one bit offset from WCLK pulse) while the embedded device is expecting frames in LJF mode. This causes the MSB of the sample to be lost.
      Show
      The I2S echo example will initialize the following parameters. i2sParams.samplingFrequency = 16000; i2sParams.fixedBufferLength = BUFSIZE; i2sParams.writeCallback = writeCallbackFxn ; i2sParams.readCallback = readCallbackFxn ; i2sParams.errorCallback = errCallbackFxn; And will use defaults for the remaining parameters including especially:   .beforeWordPadding = 0,   However, in the codec initialization function, it will do the following up: // Set I2S Mode and Word Length AudioCodec_regWrite(TI3254_AUDIO_IF_1_REG, 0x00); // 0x00 16bit, I2S, BCLK is input to the device // WCLK is input to the device,   There is a skew in the settings. The codec is providing frames in I2S mode (one bit offset from WCLK pulse) while the embedded device is expecting frames in LJF mode. This causes the MSB of the sample to be lost.

      i2secho example doesn't align use of frame settings with codec on CC3200AUDBOOST

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: