summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2020-09-01 22:28:05 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-09-01 22:28:05 -0700
commit90b9e556cfd9ac01ea9280f257adfeddd3839f2d (patch)
treeaa2dd59c3a4124f57351208b614ebb18005ca6d8 /include
parent9b9b52f62baa4eb251389215056856608eb54c25 (diff)
parent8d23afe69d5505556635f208016a1cb8e24876c1 (diff)
Merge "soc: add proxy ports for call screening in machine driver"
Diffstat (limited to 'include')
-rw-r--r--include/sound/apr_audio-v2.h13
-rw-r--r--include/sound/q6afe-v2.h5
2 files changed, 15 insertions, 3 deletions
diff --git a/include/sound/apr_audio-v2.h b/include/sound/apr_audio-v2.h
index 89e05abfd74b..f312284024a9 100644
--- a/include/sound/apr_audio-v2.h
+++ b/include/sound/apr_audio-v2.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2018, 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -1429,7 +1429,7 @@ struct adm_cmd_connect_afe_port_v5 {
#define AFE_PORT_ID_SLIMBUS_RANGE_SIZE 0xA
/* Size of the range of port IDs for real-time proxy ports. */
-#define AFE_PORT_ID_RT_PROXY_PORT_RANGE_SIZE 0x2
+#define AFE_PORT_ID_RT_PROXY_PORT_RANGE_SIZE 0x4
/* Size of the range of port IDs for pseudoports. */
#define AFE_PORT_ID_PSEUDOPORT_RANGE_SIZE 0x5
@@ -1643,6 +1643,15 @@ struct adm_cmd_connect_afe_port_v5 {
*/
#define AFE_PORT_ID_VOICE2_PLAYBACK_TX 0x8002
#define AFE_PORT_ID_VOICE_PLAYBACK_TX 0x8005
+/*
+ * Proxyport used for voice call data processing.
+ * In cases like call-screening feature, where user can communicate
+ * with caller with the help of "call screen" mode, and without
+ * connecting the call with any HW input/output devices in the phon,
+ * voice call can use Pseudo port to start voice data processing.
+ */
+#define RT_PROXY_PORT_002_TX 0x2003
+#define RT_PROXY_PORT_002_RX 0x2002
#define AFE_PORT_ID_PRIMARY_TDM_RX \
(AFE_PORT_ID_TDM_PORT_RANGE_START + 0x00)
diff --git a/include/sound/q6afe-v2.h b/include/sound/q6afe-v2.h
index a6d697d6a8f8..e171028839f7 100644
--- a/include/sound/q6afe-v2.h
+++ b/include/sound/q6afe-v2.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2018, 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -235,6 +235,9 @@ enum {
IDX_AFE_PORT_ID_QUATERNARY_MI2S_TX_2,
IDX_AFE_PORT_ID_QUATERNARY_MI2S_TX_3,
IDX_AFE_PORT_ID_QUATERNARY_MI2S_TX_4,
+ /* IDX 167 -> 168 */
+ IDX_RT_PROXY_PORT_002_RX,
+ IDX_RT_PROXY_PORT_002_TX,
AFE_MAX_PORTS
};