docs: def _init_sbc_config(self, config):
          """
          Translator from namedtuple config representation to
          the sbc_t type.
  
          :param namedtuple config: See :py:class:`.SBCCodecConfig`
          :returns:
          """
          if (config.channel_mode == SBCChannelMode.CHANNEL_MODE_MONO):
              self.config.mode = self.codec.SBC_MODE_MONO
          elif (config.channel_mode == SBCChannelMode.CHANNEL_MODE_STEREO):
              self.config.mode = self.codec.SBC_MODE_STEREO
          elif (config.channel_mode == SBCChannelMode.CHANNEL_MODE_DUAL):
              self.config.mode = self.codec.SBC_MODE_DUAL_CHANNEL
          elif (config.channel_mode == SBCChannelMode.CHANNEL_MODE_JOINT_STEREO):
              self.config.mode = self.codec.SBC_MODE_JOINT_STEREO
  
          if (config.frequency == SBCSamplingFrequency.FREQ_16KHZ):
              self.config.frequency = self.codec.SBC_FREQ_16000
          elif (config.frequency == SBCSamplingFrequency.FREQ_32KHZ):
              self.config.frequency = self.codec.SBC_FREQ_32000
          elif (config.frequency == SBCSamplingFrequency.FREQ_44_1KHZ):
              self.config.frequency = self.codec.SBC_FREQ_44100
          elif (config.frequency == SBCSamplingFrequency.FREQ_48KHZ):
              self.config.frequency = self.codec.SBC_FREQ_48000
  
          if (config.allocation_method == SBCAllocationMethod.LOUDNESS):
              self.config.allocation = self.codec.SBC_AM_LOUDNESS
          elif (config.allocation_method == SBCAllocationMethod.SNR):
              self.config.allocation = self.codec.SBC_AM_SNR
  
          if (config.subbands == SBCSubbands.SUBBANDS_4):
              self.config.subbands = self.codec.SBC_SB_4
          elif (config.subbands == SBCSubbands.SUBBANDS_8):
              self.config.subbands = self.codec.SBC_SB_8
  
          if (config.block_length == SBCBlocks.BLOCKS_4):
              self.config.blocks = self.codec.SBC_BLK_4
          elif (config.block_length == SBCBlocks.BLOCKS_8):
              self.config.blocks = self.codec.SBC_BLK_8
          elif (config.block_length == SBCBlocks.BLOCKS_12):
              self.config.blocks = self.codec.SBC_BLK_12
          elif (config.block_length == SBCBlocks.BLOCKS_16):
              self.config.blocks = self.codec.SBC_BLK_16
  
          self.config.bitpool = config.max_bitpool
          self.config.endian = self.codec.SBC_LE