/* Set higher or lower the codec volume level.  */
uint32_t cs42l51_SetVolume(uint16_t DeviceAddr, uint8_t Volume)
/* Set higher or lower the codec volume level.  */
uint32_t cs42l51_SetVolume(uint16_t DeviceAddr, uint8_t Volume)
{
  uint32_t counter = 0;
  uint8_t  convertedvol = VOLUME_CONVERT(Volume);
  counter += CODEC_IO_Write(DeviceAddr, 0x16, convertedvol);
  counter += CODEC_IO_Write(DeviceAddr, 0x17, convertedvol);
  return counter;
}