summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustinweng <justinweng@google.com>2022-06-28 16:30:57 +0800
committerJustin Weng <justinweng@google.com>2022-06-28 08:36:37 +0000
commit81a5b0ecfa0b18b7c0fa7a690081b38ba18df6ad (patch)
tree56bb6f441e7e1ca57ada060342e8541093350164
parentdc45fd8b1e0036b6dc5db961ec76c0ae17f6b08f (diff)
downloadaoc-81a5b0ecfa0b18b7c0fa7a690081b38ba18df6ad.tar.gz
add controls for BT OPUS codec
Bug: 237363086 Signed-off-by: justinweng <justinweng@google.com> Change-Id: Ib77bb6a47078afe940ce2b7b435e57ba89bf1d1a
-rwxr-xr-xalsa/aoc_alsa.h1
-rwxr-xr-xalsa/aoc_alsa_ctl.c2
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 */