/* Configures the companding mode for the selected SAI block.  */
void SAI_CompandingModeConfig(SAI_Block_TypeDef *SAI_Block_x, uint32_t SAI_CompandingMode)
/* Configures the companding mode for the selected SAI block.  */
void SAI_CompandingModeConfig(SAI_Block_TypeDef *SAI_Block_x, uint32_t SAI_CompandingMode)
{
  assert_param(IS_SAI_BLOCK_PERIPH(SAI_Block_x));
  assert_param(IS_SAI_BLOCK_COMPANDING_MODE(SAI_CompandingMode));
  SAI_Block_x->CR2 &= ~(SAI_xCR2_COMP);
  SAI_Block_x->CR2 |= SAI_CompandingMode;
}