Home | History | Annotate | Download | only in a2dp

Lines Matching refs:bits_per_sample

40 // NOTE: bits_per_sample is needed only for LDAC encoder initialization.
46 btav_a2dp_codec_bits_per_sample_t bits_per_sample;
58 // bits_per_sample
68 BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32 // bits_per_sample
344 switch (a2dp_ldac_caps.bits_per_sample) {
525 result->bits_per_sample = config_cie.bits_per_sample;
558 codec_local_capability_.bits_per_sample = a2dp_ldac_caps.bits_per_sample;
686 // Selects the best bits per sample from |bits_per_sample|.
687 // |bits_per_sample| contains the capability.
692 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_LDAC_CIE* p_result,
694 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) {
695 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
696 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
699 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) {
700 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
701 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
704 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) {
705 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
706 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
714 // |bits_per_sample| contains the capability.
720 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_LDAC_CIE* p_result,
722 switch (p_codec_audio_config->bits_per_sample) {
724 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) {
725 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
726 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16;
731 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) {
732 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
733 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24;
738 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) {
739 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
740 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
820 btav_a2dp_codec_bits_per_sample_t bits_per_sample;
982 bits_per_sample = a2dp_ldac_caps.bits_per_sample;
983 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE;
984 switch (codec_user_config_.bits_per_sample) {
986 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) {
987 result_config_cie.bits_per_sample = codec_user_config_.bits_per_sample;
988 codec_capability_.bits_per_sample = codec_user_config_.bits_per_sample;
989 codec_config_.bits_per_sample = codec_user_config_.bits_per_sample;
993 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) {
994 result_config_cie.bits_per_sample = codec_user_config_.bits_per_sample;
995 codec_capability_.bits_per_sample = codec_user_config_.bits_per_sample;
996 codec_config_.bits_per_sample = codec_user_config_.bits_per_sample;
1000 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) {
1001 result_config_cie.bits_per_sample = codec_user_config_.bits_per_sample;
1002 codec_capability_.bits_per_sample = codec_user_config_.bits_per_sample;
1003 codec_config_.bits_per_sample = codec_user_config_.bits_per_sample;
1007 result_config_cie.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE;
1008 codec_capability_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE;
1009 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE;
1016 codec_selectable_capability_.bits_per_sample =
1017 a2dp_ldac_caps.bits_per_sample;
1019 if (codec_config_.bits_per_sample != BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE)
1023 codec_capability_.bits_per_sample = bits_per_sample;
1027 a2dp_ldac_caps.bits_per_sample,
1033 if (select_best_bits_per_sample(a2dp_ldac_default_config.bits_per_sample,
1039 if (select_best_bits_per_sample(a2dp_ldac_caps.bits_per_sample,
1044 if (codec_config_.bits_per_sample == BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE) {
1048 __func__, a2dp_ldac_default_config.bits_per_sample,
1049 codec_user_config_.bits_per_sample);