diff options
author | justinweng <justinweng@google.com> | 2022-06-28 16:30:57 +0800 |
---|---|---|
committer | Justin Weng <justinweng@google.com> | 2022-06-28 08:36:37 +0000 |
commit | 81a5b0ecfa0b18b7c0fa7a690081b38ba18df6ad (patch) | |
tree | 56bb6f441e7e1ca57ada060342e8541093350164 | |
parent | dc45fd8b1e0036b6dc5db961ec76c0ae17f6b08f (diff) | |
download | aoc-81a5b0ecfa0b18b7c0fa7a690081b38ba18df6ad.tar.gz |
add controls for BT OPUS codec
Bug: 237363086
Signed-off-by: justinweng <justinweng@google.com>
Change-Id: Ib77bb6a47078afe940ce2b7b435e57ba89bf1d1a
-rwxr-xr-x | alsa/aoc_alsa.h | 1 | ||||
-rwxr-xr-x | alsa/aoc_alsa_ctl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/alsa/aoc_alsa.h b/alsa/aoc_alsa.h index cfe58d0..c3992d5 100755 --- a/alsa/aoc_alsa.h +++ b/alsa/aoc_alsa.h @@ -123,6 +123,7 @@ enum bluetooth_mode { AHS_BT_MODE_A2DP_ENC_LC3, AHS_BT_MODE_BLE_ENC_LC3, AHS_BT_MODE_BLE_CONVERSATION, + AHS_BT_MODE_A2DP_ENC_OPUS, }; enum TelephonyModes { diff --git a/alsa/aoc_alsa_ctl.c b/alsa/aoc_alsa_ctl.c index 368e213..cd516bc 100755 --- a/alsa/aoc_alsa_ctl.c +++ b/alsa/aoc_alsa_ctl.c @@ -1626,7 +1626,7 @@ static const char *bt_mode_texts[] = { "Unconfigured", "SCO", "ESCO", "A2DP_RAW", "A2DP_ENC_SBC", "A2DP_ENC_AAC", "A2DP_ENC_LC3", "BLE_ENC_LC3", - "BLE_CONVERSATION" }; + "BLE_CONVERSATION", "A2DP_ENC_OPUS" }; static SOC_ENUM_SINGLE_DECL(bt_mode_enum, 1, SINK_BT, bt_mode_texts); /* TODO: seek better way to create a series of controls */ |