Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 145043f1 authored by Cheney Ni's avatar Cheney Ni
Browse files

A2DP: Use codec_specific_1 to report AAC bitrate mode to upper layer

This CL uses the AAC's btav_a2dp_codec_config_t.codec_specific_1 to
store its bitrate mode, and report this information to upper layer, and
upper layer would be able to use this variable to change settings, too.

There are 7 constant numbers to present those bitrate modes:
* AACENC_BR_MODE_CBR - AAC VBR is unable to use, and upper layer can use
  this value to keep the current configuration without touched.
* AACENC_BR_MODE_VBR_C - AAC VBR is supported by both source and sink,
  and we use or are going to use AAC CBR.
* AACENC_BR_MODE_VBR_1 ~ AACENC_BR_MODE_VBR_5 - Using AAC VBR with
  different quality.

Bug: 112325138
Test: check the codec status from frameworks manually
Change-Id: I2096d9569c7aa0e5c79708946ba117d3edc4f041
parent d54932d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment