a2dp-codecs: Fix SBC_MAX_BITPOOL and add SBC quality modes
authorPali Rohár <pali.rohar@gmail.com>
Tue, 29 Jan 2019 17:12:07 +0000 (18:12 +0100)
committerhimanshu <h.himanshu@samsung.com>
Wed, 22 Jan 2020 13:25:36 +0000 (18:55 +0530)
commitf861ca7853ab5c517b00da5bd487911b8a418182
tree6d295a8b3223d10d52daf9cdb9f23eeb9c8a8b26
parent7a71bf30cd746ac5901387a5274f27d31c79a434
a2dp-codecs: Fix SBC_MAX_BITPOOL and add SBC quality modes

According to A2DP specification; section SBC; Codec Specific Information
Elements; Minimum / Maximum Bitpool Value, range for Bitpool value is from
2 to 250.

A2DP specification also defines bitpool values for two SBC modes: Middle
Quality and High Quality. They depends on channel mode and frequency. So
add definitions for them into a2dp-codecs file too.

File android/hal-audio-sbc.c was updated to use High Quality mode for
chosen frequency.

Change-Id: I77cfd4c13314abf223e64cec5bab98f1d42b92a6
Signed-off-by: himanshu <h.himanshu@samsung.com>
android/hal-audio-sbc.c
profiles/audio/a2dp-codecs.h