Lines Matching refs:samp_freq
46 uint8_t samp_freq; /* Sampling frequency */ member
125 (p_ie->samp_freq & ~A2DP_SBC_IE_SAMP_FREQ_MSK) || in A2DP_BuildInfoSbc()
144 *p_result++ = p_ie->samp_freq | p_ie->ch_mode; in A2DP_BuildInfoSbc()
180 p_ie->samp_freq = *p_codec_info & A2DP_SBC_IE_SAMP_FREQ_MSK; in A2DP_ParseInfoSbc()
203 if (A2DP_BitsSet(p_ie->samp_freq) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoSbc()
217 if (A2DP_BitsSet(p_ie->samp_freq) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoSbc()
359 cfg_cie.samp_freq, p_cap->samp_freq); in A2DP_CodecInfoMatchesCapabilitySbc()
374 if ((cfg_cie.samp_freq & p_cap->samp_freq) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilitySbc()
451 return (sbc_cie_a.samp_freq == sbc_cie_b.samp_freq) && in A2DP_CodecEqualsSbc()
470 switch (sbc_cie.samp_freq) { in A2DP_GetTrackSampleRateSbc()
630 switch (sbc_cie.samp_freq) { in A2DP_GetSamplingFrequencyCodeSbc()
732 AppendField(&field, (sbc_cie.samp_freq == 0), "NONE"); in A2DP_CodecInfoStringSbc()
733 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_16), "16000"); in A2DP_CodecInfoStringSbc()
734 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_32), "32000"); in A2DP_CodecInfoStringSbc()
735 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_44), "44100"); in A2DP_CodecInfoStringSbc()
736 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_48), "48000"); in A2DP_CodecInfoStringSbc()
737 res << "\tsamp_freq: " << field << " (" << loghex(sbc_cie.samp_freq) << ")\n"; in A2DP_CodecInfoStringSbc()
854 if (config_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) in build_codec_config()
856 if (config_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) in build_codec_config()
875 if (a2dp_sbc_source_caps.samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in A2dpCodecConfigSbcSource()
878 if (a2dp_sbc_source_caps.samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in A2dpCodecConfigSbcSource()
918 static bool select_best_sample_rate(uint8_t samp_freq, tA2DP_SBC_CIE* p_result, in select_best_sample_rate() argument
920 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in select_best_sample_rate()
921 p_result->samp_freq = A2DP_SBC_IE_SAMP_FREQ_48; in select_best_sample_rate()
925 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in select_best_sample_rate()
926 p_result->samp_freq = A2DP_SBC_IE_SAMP_FREQ_44; in select_best_sample_rate()
940 const btav_a2dp_codec_config_t* p_codec_audio_config, uint8_t samp_freq, in select_audio_sample_rate() argument
944 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in select_audio_sample_rate()
945 p_result->samp_freq = A2DP_SBC_IE_SAMP_FREQ_44; in select_audio_sample_rate()
951 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in select_audio_sample_rate()
952 p_result->samp_freq = A2DP_SBC_IE_SAMP_FREQ_48; in select_audio_sample_rate()
1078 uint8_t samp_freq; in setCodecConfig() local
1139 samp_freq = p_a2dp_sbc_caps->samp_freq & peer_info_cie.samp_freq; in setCodecConfig()
1143 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in setCodecConfig()
1144 result_config_cie.samp_freq = A2DP_SBC_IE_SAMP_FREQ_44; in setCodecConfig()
1150 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in setCodecConfig()
1151 result_config_cie.samp_freq = A2DP_SBC_IE_SAMP_FREQ_48; in setCodecConfig()
1171 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in setCodecConfig()
1175 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in setCodecConfig()
1183 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) in setCodecConfig()
1185 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) in setCodecConfig()
1189 if (select_audio_sample_rate(&codec_audio_config_, samp_freq, in setCodecConfig()
1196 a2dp_sbc_default_config.samp_freq & peer_info_cie.samp_freq, in setCodecConfig()
1202 if (select_best_sample_rate(samp_freq, &result_config_cie, in setCodecConfig()
1211 __func__, p_a2dp_sbc_caps->samp_freq, peer_info_cie.samp_freq); in setCodecConfig()
1488 uint8_t samp_freq; in setPeerCodecCapabilities() local
1509 samp_freq = p_a2dp_sbc_caps->samp_freq & peer_info_cie.samp_freq; in setPeerCodecCapabilities()
1510 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_44) { in setPeerCodecCapabilities()
1514 if (samp_freq & A2DP_SBC_IE_SAMP_FREQ_48) { in setPeerCodecCapabilities()