Lines Matching refs:sbc_codec
19 uint8_t bt_a2dp_sbc_get_channel_num(struct bt_a2dp_codec_sbc_params *sbc_codec) in bt_a2dp_sbc_get_channel_num() argument
21 __ASSERT_NO_MSG(sbc_codec != NULL); in bt_a2dp_sbc_get_channel_num()
23 if (sbc_codec->config[0] & A2DP_SBC_CH_MODE_MONO) { in bt_a2dp_sbc_get_channel_num()
25 } else if (sbc_codec->config[0] & A2DP_SBC_CH_MODE_DUAL) { in bt_a2dp_sbc_get_channel_num()
27 } else if (sbc_codec->config[0] & A2DP_SBC_CH_MODE_STREO) { in bt_a2dp_sbc_get_channel_num()
29 } else if (sbc_codec->config[0] & A2DP_SBC_CH_MODE_JOINT) { in bt_a2dp_sbc_get_channel_num()
36 uint32_t bt_a2dp_sbc_get_sampling_frequency(struct bt_a2dp_codec_sbc_params *sbc_codec) in bt_a2dp_sbc_get_sampling_frequency() argument
38 __ASSERT_NO_MSG(sbc_codec != NULL); in bt_a2dp_sbc_get_sampling_frequency()
40 if (sbc_codec->config[0] & A2DP_SBC_SAMP_FREQ_16000) { in bt_a2dp_sbc_get_sampling_frequency()
42 } else if (sbc_codec->config[0] & A2DP_SBC_SAMP_FREQ_32000) { in bt_a2dp_sbc_get_sampling_frequency()
44 } else if (sbc_codec->config[0] & A2DP_SBC_SAMP_FREQ_44100) { in bt_a2dp_sbc_get_sampling_frequency()
46 } else if (sbc_codec->config[0] & A2DP_SBC_SAMP_FREQ_48000) { in bt_a2dp_sbc_get_sampling_frequency()