2024-09-09 08:57:42 +00:00
|
|
|
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
2024-09-09 08:52:07 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* only version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/err.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/moduleparam.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/bitops.h>
|
|
|
|
#include <linux/mutex.h>
|
|
|
|
#include <linux/of_device.h>
|
2024-09-09 08:57:42 +00:00
|
|
|
#include <linux/slab.h>
|
2024-09-09 08:52:07 +00:00
|
|
|
#include <sound/core.h>
|
|
|
|
#include <sound/soc.h>
|
|
|
|
#include <sound/soc-dapm.h>
|
|
|
|
#include <sound/pcm.h>
|
|
|
|
#include <sound/initval.h>
|
|
|
|
#include <sound/control.h>
|
|
|
|
#include <sound/q6adm-v2.h>
|
|
|
|
#include <sound/q6asm-v2.h>
|
|
|
|
#include <sound/q6afe-v2.h>
|
|
|
|
#include <sound/tlv.h>
|
|
|
|
#include <sound/asound.h>
|
|
|
|
#include <sound/pcm_params.h>
|
2024-09-09 08:57:42 +00:00
|
|
|
#include <sound/q6core.h>
|
|
|
|
#include <sound/audio_cal_utils.h>
|
|
|
|
#include <sound/msm-dts-eagle.h>
|
|
|
|
#include <sound/audio_effects.h>
|
|
|
|
#include <sound/hwdep.h>
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
#include "msm-pcm-routing-v2.h"
|
2024-09-09 08:57:42 +00:00
|
|
|
#include "msm-pcm-routing-devdep.h"
|
|
|
|
#include "msm-qti-pp-config.h"
|
|
|
|
#include "msm-dts-srs-tm-config.h"
|
2024-09-09 08:52:07 +00:00
|
|
|
#include "msm-dolby-dap-config.h"
|
2024-09-09 08:57:42 +00:00
|
|
|
#include "msm-ds2-dap-config.h"
|
2024-09-09 08:52:07 +00:00
|
|
|
#include "q6voice.h"
|
2024-09-09 08:57:42 +00:00
|
|
|
#include "sound/q6lsm.h"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int get_cal_path(int path_type);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
#define EC_PORT_ID_PRIMARY_MI2S_TX 1
|
|
|
|
#define EC_PORT_ID_SECONDARY_MI2S_TX 2
|
|
|
|
#define EC_PORT_ID_TERTIARY_MI2S_TX 3
|
|
|
|
#define EC_PORT_ID_QUATERNARY_MI2S_TX 4
|
|
|
|
#define EC_PORT_ID_SLIMBUS_1_TX 5
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
static struct mutex routing_lock;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static struct cal_type_data *cal_data;
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static int fm_switch_enable;
|
2024-09-09 08:57:42 +00:00
|
|
|
static int hfp_switch_enable;
|
2024-09-09 08:52:07 +00:00
|
|
|
static int fm_pcmrx_switch_enable;
|
|
|
|
static int lsm_mux_slim_port;
|
|
|
|
static int slim0_rx_aanc_fb_port;
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_route_ec_ref_rx = 9; /* NONE */
|
|
|
|
static uint32_t voc_session_id = ALL_SESSION_VSID;
|
|
|
|
static int msm_route_ext_ec_ref = AFE_PORT_INVALID;
|
|
|
|
static bool is_custom_stereo_on;
|
|
|
|
static bool is_ds2_on;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
MADNONE,
|
|
|
|
MADAUDIO,
|
|
|
|
MADBEACON,
|
2024-09-09 08:57:42 +00:00
|
|
|
MADULTRASOUND,
|
|
|
|
MADSWAUDIO,
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
|
|
|
|
#define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
|
|
|
|
#define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
|
|
|
|
#define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
|
|
|
|
#define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
|
|
|
|
#define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
|
2024-09-09 08:57:42 +00:00
|
|
|
#define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
|
2024-09-09 08:52:07 +00:00
|
|
|
#define LSM_FUNCTION_TEXT "LSM Function"
|
|
|
|
static const char * const mad_audio_mux_text[] = {
|
|
|
|
"None",
|
|
|
|
SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
|
2024-09-09 08:57:42 +00:00
|
|
|
SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
|
|
|
|
TERT_MI2S_TX_TEXT
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
struct msm_pcm_route_bdai_pp_params {
|
|
|
|
u16 port_id; /* AFE port ID */
|
|
|
|
unsigned long pp_params_config;
|
|
|
|
bool mute_on;
|
|
|
|
int latency;
|
|
|
|
};
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static struct msm_pcm_route_bdai_pp_params
|
|
|
|
msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
|
|
|
|
{HDMI_RX, 0, 0, 0}
|
|
|
|
};
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_send_device_pp_params(int port_id, int copp_idx);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static bool msm_is_fractional_resample_needed(int input_sr, int output_sr)
|
|
|
|
{
|
|
|
|
bool rc = false;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if ((input_sr % output_sr != 0) && (output_sr % input_sr != 0))
|
|
|
|
rc = true;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("performing fractional resample (%s) for copp rate (%d)afe rate (%d)",
|
|
|
|
(rc ? "oh yes" : "not really"),
|
|
|
|
input_sr, output_sr);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
return rc;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
|
|
|
|
int channels)
|
2024-09-09 08:52:07 +00:00
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
int rc = 0;
|
|
|
|
switch (topology) {
|
|
|
|
case SRS_TRUMEDIA_TOPOLOGY_ID:
|
|
|
|
pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_dts_srs_tm_init(port_id, copp_idx);
|
|
|
|
break;
|
|
|
|
case DS2_ADM_COPP_TOPOLOGY_ID:
|
|
|
|
pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
|
|
|
|
__func__, DS2_ADM_COPP_TOPOLOGY_ID);
|
|
|
|
rc = msm_ds2_dap_init(port_id, copp_idx, channels,
|
|
|
|
is_custom_stereo_on);
|
|
|
|
if (rc < 0)
|
|
|
|
pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
|
|
|
|
__func__, topology, port_id,
|
|
|
|
is_custom_stereo_on, rc);
|
|
|
|
break;
|
|
|
|
case DOLBY_ADM_COPP_TOPOLOGY_ID:
|
|
|
|
if (is_ds2_on) {
|
|
|
|
pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
|
|
|
|
rc = msm_ds2_dap_init(port_id, copp_idx, channels,
|
|
|
|
is_custom_stereo_on);
|
|
|
|
if (rc < 0)
|
|
|
|
pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
|
|
|
|
__func__, topology, port_id, rc);
|
|
|
|
} else {
|
|
|
|
pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
|
|
|
|
rc = msm_dolby_dap_init(port_id, copp_idx, channels,
|
|
|
|
is_custom_stereo_on);
|
|
|
|
if (rc < 0)
|
|
|
|
pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
|
|
|
|
__func__, topology, port_id, rc);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_DTS_HPX:
|
|
|
|
pr_debug("%s: DTS_EAGLE_COPP_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_dts_eagle_init_post(port_id, copp_idx);
|
|
|
|
break;
|
|
|
|
case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
|
|
|
|
pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
|
|
|
|
msm_qti_pp_asphere_init(port_id, copp_idx);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
/* custom topology specific feature param handlers */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static void msm_pcm_routing_deinit_pp(int port_id, int topology)
|
|
|
|
{
|
|
|
|
switch (topology) {
|
|
|
|
case SRS_TRUMEDIA_TOPOLOGY_ID:
|
|
|
|
pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_dts_srs_tm_deinit(port_id);
|
|
|
|
break;
|
|
|
|
case DS2_ADM_COPP_TOPOLOGY_ID:
|
|
|
|
pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
|
|
|
|
__func__, DS2_ADM_COPP_TOPOLOGY_ID);
|
|
|
|
msm_ds2_dap_deinit(port_id);
|
|
|
|
break;
|
|
|
|
case DOLBY_ADM_COPP_TOPOLOGY_ID:
|
|
|
|
if (is_ds2_on) {
|
|
|
|
pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_ds2_dap_deinit(port_id);
|
|
|
|
} else {
|
|
|
|
pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_dolby_dap_deinit(port_id);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_DTS_HPX:
|
|
|
|
pr_debug("%s: DTS_EAGLE_COPP_TOPOLOGY_ID\n", __func__);
|
|
|
|
msm_dts_eagle_deinit_post(port_id, topology);
|
|
|
|
break;
|
|
|
|
case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
|
|
|
|
pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
|
|
|
|
msm_qti_pp_asphere_deinit(port_id);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
/* custom topology specific feature deinit handlers */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
|
|
|
|
int path_type, int perf_mode)
|
|
|
|
{
|
|
|
|
int itr = 0;
|
|
|
|
if ((path_type == ADM_PATH_PLAYBACK) &&
|
|
|
|
(perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
is_custom_stereo_on) {
|
|
|
|
for (itr = 0; itr < payload.num_copps; itr++) {
|
|
|
|
if ((payload.port_id[itr] == SLIMBUS_0_RX) ||
|
|
|
|
(payload.port_id[itr] == RT_PROXY_PORT_001_RX)) {
|
|
|
|
msm_qti_pp_send_stereo_to_custom_stereo_cmd(
|
|
|
|
payload.port_id[itr],
|
|
|
|
payload.copp_idx[itr],
|
|
|
|
payload.session_id,
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE,
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE,
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE,
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
|
2024-09-09 08:57:42 +00:00
|
|
|
struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
|
|
|
|
{ PRIMARY_I2S_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
|
|
|
|
{ PRIMARY_I2S_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
|
|
|
|
{ SLIMBUS_0_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
|
|
|
|
{ SLIMBUS_0_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
|
|
|
|
{ HDMI_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_HDMI},
|
|
|
|
{ INT_BT_SCO_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
|
|
|
|
{ INT_BT_SCO_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
|
|
|
|
{ INT_FM_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
|
|
|
|
{ INT_FM_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
|
|
|
|
{ RT_PROXY_PORT_001_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_AFE_PCM_RX},
|
|
|
|
{ RT_PROXY_PORT_001_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_AFE_PCM_TX},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_PCM_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_AUXPCM_RX},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_PCM_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_AUXPCM_TX},
|
|
|
|
{ VOICE_PLAYBACK_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_VOICE_PLAYBACK_TX},
|
|
|
|
{ VOICE2_PLAYBACK_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_VOICE2_PLAYBACK_TX},
|
|
|
|
{ VOICE_RECORD_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INCALL_RECORD_RX},
|
|
|
|
{ VOICE_RECORD_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_INCALL_RECORD_TX},
|
|
|
|
{ MI2S_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
|
|
|
|
{ MI2S_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
|
|
|
|
{ SECONDARY_I2S_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
|
|
|
|
{ SLIMBUS_1_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
|
|
|
|
{ SLIMBUS_1_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
|
|
|
|
{ SLIMBUS_4_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
|
|
|
|
{ SLIMBUS_4_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
|
|
|
|
{ SLIMBUS_3_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
|
|
|
|
{ SLIMBUS_3_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
|
|
|
|
{ SLIMBUS_5_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
|
|
|
|
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_STUB_RX},
|
|
|
|
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_STUB_TX},
|
|
|
|
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_MI2S_RX},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_MI2S_TX},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_MI2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_MI2S_RX},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_MI2S_TX},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_MI2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_MI2S_RX},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_MI2S_TX},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_MI2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_MI2S_RX},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_MI2S_TX},
|
|
|
|
{ AUDIO_PORT_ID_I2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_AUDIO_I2S_RX},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_PCM_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_AUXPCM_RX},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_PCM_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_AUXPCM_TX},
|
|
|
|
{ SLIMBUS_6_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
|
|
|
|
{ SLIMBUS_6_TX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
|
|
|
|
{ AFE_PORT_ID_SPDIF_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SPDIF_RX},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_MI2S_RX_SD1},
|
|
|
|
{ SLIMBUS_5_RX, 0, 0, 0, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
|
|
|
|
{ AFE_PORT_ID_QUINARY_MI2S_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUIN_MI2S_RX},
|
|
|
|
{ AFE_PORT_ID_QUINARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUIN_MI2S_TX},
|
|
|
|
{ AFE_PORT_ID_SENARY_MI2S_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SENARY_MI2S_TX},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_0},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_0},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_1},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_1},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_2},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_2},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_3},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_3},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_4},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_4},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_5},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_5},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_6},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_6},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_RX_7},
|
|
|
|
{ AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_PRI_TDM_TX_7},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_0},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_0},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_1},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_1},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_2},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_2},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_3},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_3},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_4},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_4},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_5},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_5},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_6},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_6},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_RX_7},
|
|
|
|
{ AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_SEC_TDM_TX_7},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_0},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_0},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_1},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_1},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_2},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_2},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_3},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_3},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_4},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_4},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_5},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_5},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_6},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_6},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_RX_7},
|
|
|
|
{ AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_TERT_TDM_TX_7},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_0},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_0},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_1},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_1},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_2},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_2},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_3},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_3},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_4},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_4},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_5},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_5},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_6},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_6},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_RX_7},
|
|
|
|
{ AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
LPASS_BE_QUAT_TDM_TX_7},
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Track ASM playback & capture sessions of DAI */
|
2024-09-09 08:57:42 +00:00
|
|
|
static struct msm_pcm_routing_fdai_data
|
|
|
|
fe_dai_map[MSM_FRONTEND_DAI_MM_SIZE][2] = {
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA1 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA2 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA3 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA4 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA5 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA6 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA7*/
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
/* MULTIMEDIA8 */
|
2024-09-09 08:57:42 +00:00
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA9 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA10 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA11 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA12 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA13 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA14 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA15 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
|
|
|
/* MULTIMEDIA16 */
|
|
|
|
{{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
|
|
|
|
{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static unsigned long session_copp_map[MSM_FRONTEND_DAI_MM_SIZE][2]
|
|
|
|
[MSM_BACKEND_DAI_MAX];
|
|
|
|
static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
|
|
|
|
static struct msm_pcm_stream_app_type_cfg
|
|
|
|
fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MM_SIZE];
|
|
|
|
|
|
|
|
/* The caller of this should aqcuire routing lock */
|
|
|
|
void msm_pcm_routing_get_bedai_info(int be_idx,
|
|
|
|
struct msm_pcm_routing_bdai_data *be_dai)
|
|
|
|
{
|
|
|
|
if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
|
|
|
|
memcpy(be_dai, &msm_bedais[be_idx],
|
|
|
|
sizeof(struct msm_pcm_routing_bdai_data));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* The caller of this should aqcuire routing lock */
|
|
|
|
void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
|
|
|
|
struct msm_pcm_routing_fdai_data *fe_dai)
|
|
|
|
{
|
|
|
|
if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
|
|
|
|
memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
|
|
|
|
sizeof(struct msm_pcm_routing_fdai_data));
|
|
|
|
}
|
|
|
|
|
|
|
|
void msm_pcm_routing_acquire_lock(void)
|
|
|
|
{
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
}
|
|
|
|
|
|
|
|
void msm_pcm_routing_release_lock(void)
|
|
|
|
{
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_pcm_routing_get_app_type_idx(int app_type)
|
|
|
|
{
|
|
|
|
int idx;
|
|
|
|
|
|
|
|
pr_debug("%s: app_type: %d\n", __func__, app_type);
|
|
|
|
for (idx = 0; idx < MAX_APP_TYPES; idx++) {
|
|
|
|
if (app_type_cfg[idx].app_type == app_type)
|
|
|
|
return idx;
|
|
|
|
}
|
|
|
|
pr_info("%s: App type not available, fallback to default\n", __func__);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void msm_pcm_routing_reg_stream_app_type_cfg(int fedai_id, int app_type,
|
|
|
|
int acdb_dev_id, int sample_rate)
|
|
|
|
{
|
|
|
|
pr_debug("%s: fedai_id %d, app_type %d, sample_rate %d\n",
|
|
|
|
__func__, fedai_id, app_type, sample_rate);
|
|
|
|
if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
fe_dai_app_type_cfg[fedai_id].app_type = app_type;
|
|
|
|
fe_dai_app_type_cfg[fedai_id].acdb_dev_id = acdb_dev_id;
|
|
|
|
fe_dai_app_type_cfg[fedai_id].sample_rate = sample_rate;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static struct cal_block_data *msm_routing_find_topology_by_path(int path)
|
|
|
|
{
|
|
|
|
struct list_head *ptr, *next;
|
|
|
|
struct cal_block_data *cal_block = NULL;
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
list_for_each_safe(ptr, next,
|
|
|
|
&cal_data->cal_blocks) {
|
|
|
|
|
|
|
|
cal_block = list_entry(ptr,
|
|
|
|
struct cal_block_data, list);
|
|
|
|
|
|
|
|
if (((struct audio_cal_info_adm_top *)cal_block->cal_info)
|
|
|
|
->path == path) {
|
|
|
|
return cal_block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pr_debug("%s: Can't find topology for path %d\n", __func__, path);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct cal_block_data *msm_routing_find_topology(int path,
|
|
|
|
int app_type,
|
|
|
|
int acdb_id,
|
|
|
|
int sample_rate)
|
|
|
|
{
|
|
|
|
struct list_head *ptr, *next;
|
|
|
|
struct cal_block_data *cal_block = NULL;
|
|
|
|
struct audio_cal_info_adm_top *cal_info;
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
list_for_each_safe(ptr, next,
|
|
|
|
&cal_data->cal_blocks) {
|
|
|
|
|
|
|
|
cal_block = list_entry(ptr,
|
|
|
|
struct cal_block_data, list);
|
|
|
|
|
|
|
|
cal_info = (struct audio_cal_info_adm_top *)
|
|
|
|
cal_block->cal_info;
|
|
|
|
if ((cal_info->path == path) &&
|
|
|
|
(cal_info->app_type == app_type) &&
|
|
|
|
(cal_info->acdb_id == acdb_id) &&
|
|
|
|
(cal_info->sample_rate == sample_rate)) {
|
|
|
|
return cal_block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d sample_rate %d defaulting to search by path\n",
|
|
|
|
__func__, path, app_type, acdb_id, sample_rate);
|
|
|
|
return msm_routing_find_topology_by_path(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_get_adm_topology(int path, int fedai_id)
|
|
|
|
{
|
|
|
|
int topology = NULL_COPP_TOPOLOGY;
|
|
|
|
struct cal_block_data *cal_block = NULL;
|
|
|
|
int app_type = 0, acdb_dev_id = 0, sample_rate = 0;
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
path = get_cal_path(path);
|
|
|
|
if (cal_data == NULL)
|
|
|
|
goto done;
|
|
|
|
|
|
|
|
mutex_lock(&cal_data->lock);
|
|
|
|
|
|
|
|
if (path == RX_DEVICE) {
|
|
|
|
app_type = fe_dai_app_type_cfg[fedai_id].app_type;
|
|
|
|
acdb_dev_id = fe_dai_app_type_cfg[fedai_id].acdb_dev_id;
|
|
|
|
sample_rate = fe_dai_app_type_cfg[fedai_id].sample_rate;
|
|
|
|
}
|
|
|
|
cal_block = msm_routing_find_topology(path, app_type,
|
|
|
|
acdb_dev_id, sample_rate);
|
|
|
|
if (cal_block == NULL)
|
|
|
|
goto unlock;
|
|
|
|
|
|
|
|
topology = ((struct audio_cal_info_adm_top *)
|
|
|
|
cal_block->cal_info)->topology;
|
|
|
|
unlock:
|
|
|
|
mutex_unlock(&cal_data->lock);
|
|
|
|
done:
|
|
|
|
pr_debug("%s: Using topology %d\n", __func__, topology);
|
|
|
|
return topology;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static uint8_t is_be_dai_extproc(int be_dai)
|
|
|
|
{
|
|
|
|
if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
|
|
|
|
be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
|
|
|
|
be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
|
|
|
|
return 1;
|
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
|
|
|
|
int path_type, int perf_mode)
|
2024-09-09 08:52:07 +00:00
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
int i, port_type, j, num_copps = 0;
|
2024-09-09 08:52:07 +00:00
|
|
|
struct route_payload payload;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
port_type = ((path_type == ADM_PATH_PLAYBACK ||
|
|
|
|
path_type == ADM_PATH_COMPRESSED_RX) ?
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
|
|
|
|
|
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (!is_be_dai_extproc(i) &&
|
|
|
|
(afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
|
|
|
|
(msm_bedais[i].active) &&
|
2024-09-09 08:57:42 +00:00
|
|
|
(test_bit(fedai_id, &msm_bedais[i].fe_sessions))) {
|
|
|
|
for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[fedai_id][sess_type][i];
|
|
|
|
if (test_bit(j, &copp)) {
|
|
|
|
payload.port_id[num_copps] =
|
|
|
|
msm_bedais[i].port_id;
|
|
|
|
payload.copp_idx[num_copps] = j;
|
|
|
|
num_copps++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (num_copps) {
|
|
|
|
payload.num_copps = num_copps;
|
|
|
|
payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
|
|
|
|
payload.app_type = fe_dai_app_type_cfg[fedai_id].app_type;
|
|
|
|
payload.acdb_dev_id = fe_dai_app_type_cfg[fedai_id].acdb_dev_id;
|
|
|
|
payload.sample_rate = fe_dai_app_type_cfg[fedai_id].sample_rate;
|
|
|
|
adm_matrix_map(path_type, payload, perf_mode);
|
|
|
|
msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
|
2024-09-09 08:57:42 +00:00
|
|
|
int stream_type)
|
2024-09-09 08:52:07 +00:00
|
|
|
{
|
|
|
|
int i, session_type, path_type, port_type;
|
|
|
|
u32 mode = 0;
|
|
|
|
|
|
|
|
if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID\n", __func__);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
|
|
|
|
session_type = SESSION_TYPE_RX;
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_RX;
|
|
|
|
} else {
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_TX;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
|
2024-09-09 08:52:07 +00:00
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (!is_be_dai_extproc(i) &&
|
|
|
|
(afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
|
|
|
|
(msm_bedais[i].active) &&
|
|
|
|
(test_bit(fedai_id, &msm_bedais[i].fe_sessions))) {
|
|
|
|
mode = afe_get_port_type(msm_bedais[i].port_id);
|
|
|
|
adm_connect_afe_port(mode, dspst_id,
|
|
|
|
msm_bedais[i].port_id);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
|
|
|
|
int dspst_id, int stream_type,
|
|
|
|
uint32_t compr_passthr_mode)
|
|
|
|
{
|
|
|
|
int i, j, session_type, path_type, port_type, topology, num_copps = 0;
|
|
|
|
struct route_payload payload;
|
|
|
|
u32 channels, sample_rate;
|
|
|
|
u16 bit_width = 16;
|
|
|
|
|
|
|
|
pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
|
|
|
|
__func__, fe_id, perf_mode, dspst_id,
|
|
|
|
stream_type, compr_passthr_mode);
|
|
|
|
|
|
|
|
if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID %d\n", __func__, fe_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
|
|
|
|
session_type = SESSION_TYPE_RX;
|
|
|
|
if (compr_passthr_mode != LEGACY_PCM)
|
|
|
|
path_type = ADM_PATH_COMPRESSED_RX;
|
|
|
|
else
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_RX;
|
|
|
|
} else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_TX;
|
|
|
|
} else {
|
|
|
|
pr_err("%s: invalid stream type %d\n", __func__, stream_type);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
|
|
|
payload.num_copps = 0; /* only RX needs to use payload */
|
|
|
|
fe_dai_map[fe_id][session_type].strm_id = dspst_id;
|
|
|
|
/* re-enable EQ if active */
|
|
|
|
msm_qti_pp_send_eq_values(fe_id);
|
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (test_bit(fe_id, &msm_bedais[i].fe_sessions))
|
|
|
|
msm_bedais[i].compr_passthr_mode = compr_passthr_mode;
|
|
|
|
|
|
|
|
if (!is_be_dai_extproc(i) &&
|
|
|
|
(afe_get_port_type(msm_bedais[i].port_id) ==
|
|
|
|
port_type) &&
|
|
|
|
(msm_bedais[i].active) &&
|
|
|
|
(test_bit(fe_id, &msm_bedais[i].fe_sessions))) {
|
|
|
|
int app_type, app_type_idx, copp_idx, acdb_dev_id;
|
|
|
|
channels = msm_bedais[i].channel;
|
|
|
|
|
|
|
|
if (msm_bedais[i].format == SNDRV_PCM_FORMAT_S16_LE)
|
|
|
|
bit_width = 16;
|
|
|
|
else if (msm_bedais[i].format ==
|
|
|
|
SNDRV_PCM_FORMAT_S24_LE)
|
|
|
|
bit_width = 24;
|
|
|
|
app_type = (stream_type == SNDRV_PCM_STREAM_PLAYBACK) ?
|
|
|
|
fe_dai_app_type_cfg[fe_id].app_type : 0;
|
|
|
|
if (app_type) {
|
|
|
|
app_type_idx =
|
|
|
|
msm_pcm_routing_get_app_type_idx(
|
|
|
|
app_type);
|
|
|
|
sample_rate =
|
|
|
|
app_type_cfg[app_type_idx].sample_rate;
|
|
|
|
bit_width =
|
|
|
|
app_type_cfg[app_type_idx].bit_width;
|
|
|
|
} else {
|
|
|
|
sample_rate = msm_bedais[i].sample_rate;
|
|
|
|
}
|
|
|
|
acdb_dev_id = fe_dai_app_type_cfg[fe_id].acdb_dev_id;
|
|
|
|
topology = msm_routing_get_adm_topology(path_type,
|
|
|
|
fe_id);
|
|
|
|
pr_err("%s: Before adm open topology %d\n", __func__,
|
|
|
|
topology);
|
|
|
|
|
|
|
|
copp_idx =
|
|
|
|
adm_open(msm_bedais[i].port_id,
|
|
|
|
path_type, sample_rate, channels,
|
|
|
|
topology, perf_mode, bit_width,
|
|
|
|
app_type, acdb_dev_id);
|
|
|
|
if ((copp_idx < 0) ||
|
|
|
|
(copp_idx >= MAX_COPPS_PER_PORT)) {
|
|
|
|
pr_err("%s:adm open failed coppid:%d\n",
|
|
|
|
__func__, copp_idx);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
|
|
|
|
__func__, fe_id, session_type, i);
|
|
|
|
set_bit(copp_idx,
|
|
|
|
&session_copp_map[fe_id][session_type][i]);
|
|
|
|
|
|
|
|
if (msm_is_fractional_resample_needed(
|
|
|
|
sample_rate,
|
|
|
|
msm_bedais[i].sample_rate))
|
|
|
|
adm_copp_mfc_cfg(
|
|
|
|
msm_bedais[i].port_id, copp_idx,
|
|
|
|
msm_bedais[i].sample_rate);
|
|
|
|
|
|
|
|
for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[fe_id][session_type][i];
|
|
|
|
if (test_bit(j, &copp)) {
|
|
|
|
payload.port_id[num_copps] =
|
|
|
|
msm_bedais[i].port_id;
|
|
|
|
payload.copp_idx[num_copps] = j;
|
|
|
|
num_copps++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
msm_routing_send_device_pp_params(msm_bedais[i].port_id,
|
|
|
|
copp_idx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (num_copps) {
|
|
|
|
payload.num_copps = num_copps;
|
|
|
|
payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
|
|
|
|
payload.app_type = fe_dai_app_type_cfg[fe_id].app_type;
|
|
|
|
payload.acdb_dev_id = fe_dai_app_type_cfg[fe_id].acdb_dev_id;
|
|
|
|
adm_matrix_map(path_type, payload, perf_mode);
|
|
|
|
msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
|
|
|
|
}
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
|
|
|
|
{
|
|
|
|
u32 session_id;
|
|
|
|
|
|
|
|
switch (val) {
|
|
|
|
case MSM_FRONTEND_DAI_CS_VOICE:
|
|
|
|
session_id = voc_get_session_id(VOICE_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOLTE:
|
|
|
|
session_id = voc_get_session_id(VOLTE_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOWLAN:
|
|
|
|
session_id = voc_get_session_id(VOWLAN_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOICE2:
|
|
|
|
session_id = voc_get_session_id(VOICE2_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_QCHAT:
|
|
|
|
session_id = voc_get_session_id(QCHAT_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOIP:
|
|
|
|
session_id = voc_get_session_id(VOIP_SESSION_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOICEMMODE1:
|
|
|
|
session_id = voc_get_session_id(VOICEMMODE1_NAME);
|
|
|
|
break;
|
|
|
|
case MSM_FRONTEND_DAI_VOICEMMODE2:
|
|
|
|
session_id = voc_get_session_id(VOICEMMODE2_NAME);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
session_id = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pr_debug("%s session_id 0x%x", __func__, session_id);
|
|
|
|
return session_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
|
2024-09-09 08:52:07 +00:00
|
|
|
int dspst_id, int stream_type)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
int i, j, session_type, path_type, port_type, topology, num_copps = 0;
|
2024-09-09 08:52:07 +00:00
|
|
|
struct route_payload payload;
|
2024-09-09 08:57:42 +00:00
|
|
|
u32 channels, sample_rate;
|
2024-09-09 08:52:07 +00:00
|
|
|
uint16_t bits_per_sample = 16;
|
|
|
|
|
|
|
|
if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
|
2024-09-09 08:57:42 +00:00
|
|
|
return -EINVAL;
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
|
|
|
|
session_type = SESSION_TYPE_RX;
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_RX;
|
|
|
|
} else {
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_TX;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
|
|
|
payload.num_copps = 0; /* only RX needs to use payload */
|
2024-09-09 08:57:42 +00:00
|
|
|
fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
|
|
|
|
fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
/* re-enable EQ if active */
|
2024-09-09 08:57:42 +00:00
|
|
|
msm_qti_pp_send_eq_values(fedai_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (!is_be_dai_extproc(i) &&
|
|
|
|
(afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
|
|
|
|
(msm_bedais[i].active) &&
|
|
|
|
(test_bit(fedai_id, &msm_bedais[i].fe_sessions))) {
|
2024-09-09 08:57:42 +00:00
|
|
|
int app_type, app_type_idx, copp_idx, acdb_dev_id;
|
2024-09-09 08:52:07 +00:00
|
|
|
channels = msm_bedais[i].channel;
|
2024-09-09 08:57:42 +00:00
|
|
|
msm_bedais[i].compr_passthr_mode =
|
|
|
|
LEGACY_PCM;
|
2024-09-09 08:52:07 +00:00
|
|
|
if (msm_bedais[i].format == SNDRV_PCM_FORMAT_S16_LE)
|
|
|
|
bits_per_sample = 16;
|
|
|
|
else if (msm_bedais[i].format ==
|
|
|
|
SNDRV_PCM_FORMAT_S24_LE)
|
|
|
|
bits_per_sample = 24;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
app_type = (stream_type == SNDRV_PCM_STREAM_PLAYBACK) ?
|
|
|
|
fe_dai_app_type_cfg[fedai_id].app_type : 0;
|
|
|
|
if (app_type) {
|
|
|
|
app_type_idx =
|
|
|
|
msm_pcm_routing_get_app_type_idx(app_type);
|
|
|
|
sample_rate =
|
|
|
|
fe_dai_app_type_cfg[fedai_id].sample_rate;
|
|
|
|
bits_per_sample =
|
|
|
|
app_type_cfg[app_type_idx].bit_width;
|
|
|
|
} else
|
|
|
|
sample_rate = msm_bedais[i].sample_rate;
|
|
|
|
|
|
|
|
acdb_dev_id = fe_dai_app_type_cfg[fedai_id].acdb_dev_id;
|
|
|
|
topology = msm_routing_get_adm_topology(path_type,
|
|
|
|
fedai_id);
|
|
|
|
copp_idx = adm_open(msm_bedais[i].port_id, path_type,
|
|
|
|
sample_rate, channels, topology,
|
|
|
|
perf_mode, bits_per_sample,
|
|
|
|
app_type, acdb_dev_id);
|
|
|
|
if ((copp_idx < 0) ||
|
|
|
|
(copp_idx >= MAX_COPPS_PER_PORT)) {
|
|
|
|
pr_err("%s: adm open failed copp_idx:%d\n",
|
|
|
|
__func__, copp_idx);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
|
|
|
|
__func__, fedai_id, session_type, i);
|
|
|
|
set_bit(copp_idx,
|
|
|
|
&session_copp_map[fedai_id][session_type][i]);
|
|
|
|
|
|
|
|
if (msm_is_fractional_resample_needed(
|
|
|
|
sample_rate,
|
|
|
|
msm_bedais[i].sample_rate))
|
|
|
|
adm_copp_mfc_cfg(
|
|
|
|
msm_bedais[i].port_id, copp_idx,
|
|
|
|
msm_bedais[i].sample_rate);
|
|
|
|
|
|
|
|
for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[fedai_id][session_type][i];
|
|
|
|
if (test_bit(j, &copp)) {
|
|
|
|
payload.port_id[num_copps] =
|
|
|
|
msm_bedais[i].port_id;
|
|
|
|
payload.copp_idx[num_copps] = j;
|
|
|
|
num_copps++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(msm_bedais[i].compr_passthr_mode ==
|
|
|
|
LEGACY_PCM))
|
|
|
|
msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
|
|
|
|
copp_idx, topology,
|
|
|
|
channels);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:57:42 +00:00
|
|
|
if (num_copps) {
|
|
|
|
payload.num_copps = num_copps;
|
|
|
|
payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
|
|
|
|
payload.app_type = fe_dai_app_type_cfg[fedai_id].app_type;
|
|
|
|
payload.acdb_dev_id = fe_dai_app_type_cfg[fedai_id].acdb_dev_id;
|
|
|
|
payload.sample_rate = fe_dai_app_type_cfg[fedai_id].sample_rate;
|
|
|
|
adm_matrix_map(path_type, payload, perf_mode);
|
|
|
|
msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
mutex_unlock(&routing_lock);
|
2024-09-09 08:57:42 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
|
|
|
|
int dspst_id, int stream_type,
|
|
|
|
struct msm_pcm_routing_evt event_info)
|
|
|
|
{
|
|
|
|
if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
|
|
|
|
stream_type)) {
|
|
|
|
pr_err("%s: failed to reg phy stream\n", __func__);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
|
|
|
|
fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
|
|
|
|
else
|
|
|
|
fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
|
|
|
|
return 0;
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
|
|
|
|
{
|
|
|
|
int i, port_type, session_type, path_type, topology;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct msm_pcm_routing_fdai_data *fdai;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID\n", __func__);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_RX;
|
|
|
|
session_type = SESSION_TYPE_RX;
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
|
|
|
} else {
|
|
|
|
port_type = MSM_AFE_PORT_TYPE_TX;
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (!is_be_dai_extproc(i) &&
|
|
|
|
(afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
|
|
|
|
(msm_bedais[i].active) &&
|
|
|
|
(test_bit(fedai_id, &msm_bedais[i].fe_sessions))) {
|
2024-09-09 08:57:42 +00:00
|
|
|
int idx;
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[fedai_id][session_type][i];
|
|
|
|
fdai = &fe_dai_map[fedai_id][session_type];
|
|
|
|
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
|
|
|
|
if (test_bit(idx, &copp))
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
|
|
|
|
pr_debug("%s: copp idx is invalid, exiting\n",
|
|
|
|
__func__);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
topology = adm_get_topology_for_port_copp_idx(
|
|
|
|
msm_bedais[i].port_id, idx);
|
|
|
|
adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
|
|
|
|
pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
|
|
|
|
__func__, copp, fedai_id, session_type, i);
|
|
|
|
clear_bit(idx,
|
|
|
|
&session_copp_map[fedai_id][session_type][i]);
|
|
|
|
if ((DOLBY_ADM_COPP_TOPOLOGY_ID == topology ||
|
|
|
|
DS2_ADM_COPP_TOPOLOGY_ID == topology) &&
|
|
|
|
(fdai->perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(msm_bedais[i].compr_passthr_mode ==
|
|
|
|
LEGACY_PCM))
|
|
|
|
msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
|
|
|
|
topology);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
|
|
|
|
fe_dai_map[fedai_id][session_type].be_srate = 0;
|
2024-09-09 08:52:07 +00:00
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Check if FE/BE route is set */
|
|
|
|
static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
|
|
|
|
{
|
|
|
|
bool rc = false;
|
|
|
|
|
|
|
|
if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* recheck FE ID in the mixer control defined in this file */
|
|
|
|
pr_err("%s: bad MM ID\n", __func__);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions))
|
|
|
|
rc = true;
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
int session_type, path_type, topology;
|
|
|
|
u32 channels, sample_rate;
|
2024-09-09 08:52:07 +00:00
|
|
|
uint16_t bits_per_sample = 16;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct msm_pcm_routing_fdai_data *fdai;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
|
|
|
|
|
|
|
|
if (val > MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* recheck FE ID in the mixer control defined in this file */
|
|
|
|
pr_err("%s: bad MM ID\n", __func__);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (afe_get_port_type(msm_bedais[reg].port_id) ==
|
|
|
|
MSM_AFE_PORT_TYPE_RX) {
|
|
|
|
session_type = SESSION_TYPE_RX;
|
2024-09-09 08:57:42 +00:00
|
|
|
if (msm_bedais[reg].compr_passthr_mode != LEGACY_PCM)
|
|
|
|
path_type = ADM_PATH_COMPRESSED_RX;
|
|
|
|
else
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
if (set) {
|
|
|
|
if (!test_bit(val, &msm_bedais[reg].fe_sessions) &&
|
2024-09-09 08:57:42 +00:00
|
|
|
((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
|
|
|
|
(msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
|
|
|
|
voc_start_playback(set, msm_bedais[reg].port_id);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
set_bit(val, &msm_bedais[reg].fe_sessions);
|
2024-09-09 08:57:42 +00:00
|
|
|
fdai = &fe_dai_map[val][session_type];
|
|
|
|
if (msm_bedais[reg].active && fdai->strm_id !=
|
2024-09-09 08:52:07 +00:00
|
|
|
INVALID_SESSION) {
|
2024-09-09 08:57:42 +00:00
|
|
|
int app_type, app_type_idx, copp_idx, acdb_dev_id;
|
2024-09-09 08:52:07 +00:00
|
|
|
channels = msm_bedais[reg].channel;
|
2024-09-09 08:57:42 +00:00
|
|
|
if (session_type == SESSION_TYPE_TX &&
|
|
|
|
fdai->be_srate &&
|
|
|
|
(fdai->be_srate != msm_bedais[reg].sample_rate)) {
|
|
|
|
pr_debug("%s: flush strm %d diff BE rates\n",
|
|
|
|
__func__, fdai->strm_id);
|
|
|
|
|
|
|
|
if (fdai->event_info.event_func)
|
|
|
|
fdai->event_info.event_func(
|
|
|
|
MSM_PCM_RT_EVT_BUF_RECFG,
|
|
|
|
fdai->event_info.priv_data);
|
|
|
|
fdai->be_srate = 0; /* might not need it */
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
if (msm_bedais[reg].format == SNDRV_PCM_FORMAT_S24_LE)
|
|
|
|
bits_per_sample = 24;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
app_type = (session_type == SESSION_TYPE_RX) ?
|
|
|
|
fe_dai_app_type_cfg[val].app_type : 0;
|
|
|
|
if (app_type) {
|
|
|
|
app_type_idx =
|
|
|
|
msm_pcm_routing_get_app_type_idx(app_type);
|
|
|
|
sample_rate =
|
|
|
|
fe_dai_app_type_cfg[val].sample_rate;
|
|
|
|
bits_per_sample =
|
|
|
|
app_type_cfg[app_type_idx].bit_width;
|
2024-09-09 08:52:07 +00:00
|
|
|
} else
|
2024-09-09 08:57:42 +00:00
|
|
|
sample_rate = msm_bedais[reg].sample_rate;
|
|
|
|
|
|
|
|
topology = msm_routing_get_adm_topology(path_type, val);
|
|
|
|
acdb_dev_id = fe_dai_app_type_cfg[val].acdb_dev_id;
|
|
|
|
copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
|
|
|
|
sample_rate, channels, topology,
|
|
|
|
fdai->perf_mode, bits_per_sample,
|
|
|
|
app_type, acdb_dev_id);
|
|
|
|
if ((copp_idx < 0) ||
|
|
|
|
(copp_idx >= MAX_COPPS_PER_PORT)) {
|
|
|
|
pr_err("%s: adm open failed\n", __func__);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
|
|
|
|
__func__, val, session_type, reg);
|
|
|
|
set_bit(copp_idx,
|
|
|
|
&session_copp_map[val][session_type][reg]);
|
|
|
|
|
|
|
|
if (msm_is_fractional_resample_needed(
|
|
|
|
sample_rate,
|
|
|
|
msm_bedais[reg].sample_rate))
|
|
|
|
adm_copp_mfc_cfg(
|
|
|
|
msm_bedais[reg].port_id, copp_idx,
|
|
|
|
msm_bedais[reg].sample_rate);
|
|
|
|
|
|
|
|
if (session_type == SESSION_TYPE_RX &&
|
|
|
|
fdai->event_info.event_func)
|
|
|
|
fdai->event_info.event_func(
|
|
|
|
MSM_PCM_RT_EVT_DEVSWITCH,
|
|
|
|
fdai->event_info.priv_data);
|
|
|
|
|
|
|
|
msm_pcm_routing_build_matrix(val, session_type,
|
|
|
|
path_type,
|
|
|
|
fdai->perf_mode);
|
|
|
|
if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(msm_bedais[reg].compr_passthr_mode ==
|
|
|
|
LEGACY_PCM))
|
|
|
|
msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
|
|
|
|
copp_idx, topology,
|
|
|
|
channels);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (test_bit(val, &msm_bedais[reg].fe_sessions) &&
|
2024-09-09 08:57:42 +00:00
|
|
|
((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
|
|
|
|
(msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
|
|
|
|
voc_start_playback(set, msm_bedais[reg].port_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
clear_bit(val, &msm_bedais[reg].fe_sessions);
|
2024-09-09 08:57:42 +00:00
|
|
|
fdai = &fe_dai_map[val][session_type];
|
|
|
|
if (msm_bedais[reg].active && fdai->strm_id !=
|
2024-09-09 08:52:07 +00:00
|
|
|
INVALID_SESSION) {
|
2024-09-09 08:57:42 +00:00
|
|
|
int idx;
|
|
|
|
int port_id;
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[val][session_type][reg];
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
|
|
|
|
if (test_bit(idx, &copp))
|
|
|
|
break;
|
|
|
|
|
|
|
|
port_id = msm_bedais[reg].port_id;
|
|
|
|
topology = adm_get_topology_for_port_copp_idx(port_id,
|
|
|
|
idx);
|
|
|
|
adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
|
|
|
|
idx);
|
|
|
|
pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
|
|
|
|
__func__, copp, val, session_type, reg,
|
|
|
|
topology);
|
|
|
|
clear_bit(idx,
|
|
|
|
&session_copp_map[val][session_type][reg]);
|
|
|
|
if ((DOLBY_ADM_COPP_TOPOLOGY_ID == topology ||
|
|
|
|
DS2_ADM_COPP_TOPOLOGY_ID == topology) &&
|
|
|
|
(fdai->perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(msm_bedais[reg].compr_passthr_mode ==
|
|
|
|
LEGACY_PCM))
|
|
|
|
msm_pcm_routing_deinit_pp(
|
|
|
|
msm_bedais[reg].port_id,
|
|
|
|
topology);
|
|
|
|
msm_pcm_routing_build_matrix(val, session_type,
|
|
|
|
path_type,
|
|
|
|
fdai->perf_mode);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
|
|
|
|
|| (msm_bedais[reg].port_id == VOICE_RECORD_TX))
|
2024-09-09 08:57:42 +00:00
|
|
|
voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
|
|
|
|
|
if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions))
|
|
|
|
ucontrol->value.integer.value[0] = 1;
|
|
|
|
else
|
|
|
|
ucontrol->value.integer.value[0] = 0;
|
|
|
|
|
|
|
|
pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (ucontrol->value.integer.value[0] &&
|
|
|
|
msm_pcm_routing_route_is_set(mc->reg, mc->shift) == false) {
|
|
|
|
msm_pcm_routing_process_audio(mc->reg, mc->shift, 1);
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else if (!ucontrol->value.integer.value[0] &&
|
|
|
|
msm_pcm_routing_route_is_set(mc->reg, mc->shift) == true) {
|
|
|
|
msm_pcm_routing_process_audio(mc->reg, mc->shift, 0);
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
|
|
|
|
{
|
|
|
|
u32 session_id = 0;
|
2024-09-09 08:57:42 +00:00
|
|
|
u16 path_type;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
session_id = msm_pcm_routing_get_voc_sessionid(val);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
|
|
|
|
__func__, val, session_id);
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
|
|
|
if (set)
|
|
|
|
set_bit(val, &msm_bedais[reg].fe_sessions);
|
|
|
|
else
|
|
|
|
clear_bit(val, &msm_bedais[reg].fe_sessions);
|
|
|
|
|
|
|
|
if (val == MSM_FRONTEND_DAI_DTMF_RX &&
|
|
|
|
afe_get_port_type(msm_bedais[reg].port_id) ==
|
|
|
|
MSM_AFE_PORT_TYPE_RX) {
|
|
|
|
pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
|
|
|
|
__func__, set, msm_bedais[reg].port_id);
|
|
|
|
afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (afe_get_port_type(msm_bedais[reg].port_id) ==
|
2024-09-09 08:57:42 +00:00
|
|
|
MSM_AFE_PORT_TYPE_RX)
|
|
|
|
path_type = RX_PATH;
|
|
|
|
else
|
|
|
|
path_type = TX_PATH;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (set) {
|
|
|
|
if (msm_bedais[reg].active) {
|
|
|
|
voc_set_route_flag(session_id, path_type, 1);
|
|
|
|
voc_set_device_config(session_id, path_type,
|
|
|
|
msm_bedais[reg].channel, msm_bedais[reg].port_id);
|
|
|
|
|
|
|
|
if (voc_get_route_flag(session_id, TX_PATH) &&
|
|
|
|
voc_get_route_flag(session_id, RX_PATH))
|
|
|
|
voc_enable_device(session_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s BE is not active\n", __func__);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
} else {
|
2024-09-09 08:57:42 +00:00
|
|
|
voc_set_route_flag(session_id, path_type, 0);
|
|
|
|
voc_disable_device(session_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
|
|
|
if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions))
|
|
|
|
ucontrol->value.integer.value[0] = 1;
|
|
|
|
else
|
|
|
|
ucontrol->value.integer.value[0] = 0;
|
|
|
|
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
|
|
|
pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (ucontrol->value.integer.value[0]) {
|
|
|
|
msm_pcm_routing_process_voice(mc->reg, mc->shift, 1);
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
|
|
|
msm_pcm_routing_process_voice(mc->reg, mc->shift, 0);
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
|
|
|
|
if (test_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions))
|
|
|
|
ucontrol->value.integer.value[0] = 1;
|
|
|
|
else
|
|
|
|
ucontrol->value.integer.value[0] = 0;
|
|
|
|
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
|
|
|
pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (ucontrol->value.integer.value[0]) {
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
set_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
clear_bit(mc->shift, &msm_bedais[mc->reg].fe_sessions);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = fm_switch_enable;
|
|
|
|
pr_debug("%s: FM Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: FM Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
if (ucontrol->value.integer.value[0])
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
else
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
fm_switch_enable = ucontrol->value.integer.value[0];
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = hfp_switch_enable;
|
|
|
|
pr_debug("%s: HFP Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
|
|
|
|
|
|
|
pr_debug("%s: HFP Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
if (ucontrol->value.integer.value[0])
|
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
|
|
|
|
1, update);
|
|
|
|
else
|
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
|
|
|
|
0, update);
|
|
|
|
hfp_switch_enable = ucontrol->value.integer.value[0];
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
|
|
|
|
pr_debug("%s: FM Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: FM Switch enable %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
if (ucontrol->value.integer.value[0])
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
else
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_lsm_mux_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = lsm_mux_slim_port;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_lsm_mux_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
2024-09-09 08:52:07 +00:00
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
|
|
|
|
int mux = ucontrol->value.enumerated.item[0];
|
2024-09-09 08:57:42 +00:00
|
|
|
int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
|
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
pr_debug("%s: LSM enable %ld\n", __func__,
|
2024-09-09 08:57:42 +00:00
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
switch (ucontrol->value.integer.value[0]) {
|
|
|
|
case 1:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
pr_err("Default lsm port");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
set_lsm_port(lsm_port);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
if (ucontrol->value.integer.value[0]) {
|
|
|
|
lsm_mux_slim_port = ucontrol->value.integer.value[0];
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
lsm_mux_slim_port = ucontrol->value.integer.value[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
u16 port_id;
|
|
|
|
enum afe_mad_type mad_type;
|
|
|
|
|
|
|
|
pr_debug("%s: enter\n", __func__);
|
|
|
|
for (i = 0; i < ARRAY_SIZE(mad_audio_mux_text); i++)
|
|
|
|
if (!strncmp(kcontrol->id.name, mad_audio_mux_text[i],
|
|
|
|
strlen(mad_audio_mux_text[i])))
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (i-- == ARRAY_SIZE(mad_audio_mux_text)) {
|
|
|
|
WARN(1, "Invalid id name %s\n", kcontrol->id.name);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
/*Check for Tertiary TX port*/
|
|
|
|
if (!strcmp(kcontrol->id.name, mad_audio_mux_text[7])) {
|
|
|
|
ucontrol->value.integer.value[0] = MADSWAUDIO;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
port_id = i * 2 + 1 + SLIMBUS_0_RX;
|
|
|
|
mad_type = afe_port_get_mad_type(port_id);
|
|
|
|
pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
|
|
|
|
mad_type);
|
|
|
|
switch (mad_type) {
|
|
|
|
case MAD_HW_NONE:
|
|
|
|
ucontrol->value.integer.value[0] = MADNONE;
|
|
|
|
break;
|
|
|
|
case MAD_HW_AUDIO:
|
|
|
|
ucontrol->value.integer.value[0] = MADAUDIO;
|
|
|
|
break;
|
|
|
|
case MAD_HW_BEACON:
|
|
|
|
ucontrol->value.integer.value[0] = MADBEACON;
|
|
|
|
break;
|
|
|
|
case MAD_HW_ULTRASOUND:
|
|
|
|
ucontrol->value.integer.value[0] = MADULTRASOUND;
|
|
|
|
break;
|
2024-09-09 08:57:42 +00:00
|
|
|
case MAD_SW_AUDIO:
|
|
|
|
ucontrol->value.integer.value[0] = MADSWAUDIO;
|
|
|
|
break;
|
2024-09-09 08:52:07 +00:00
|
|
|
default:
|
|
|
|
WARN(1, "Unknown\n");
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
u16 port_id;
|
|
|
|
enum afe_mad_type mad_type;
|
|
|
|
|
|
|
|
pr_debug("%s: enter\n", __func__);
|
|
|
|
for (i = 0; i < ARRAY_SIZE(mad_audio_mux_text); i++)
|
|
|
|
if (!strncmp(kcontrol->id.name, mad_audio_mux_text[i],
|
|
|
|
strlen(mad_audio_mux_text[i])))
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (i-- == ARRAY_SIZE(mad_audio_mux_text)) {
|
|
|
|
WARN(1, "Invalid id name %s\n", kcontrol->id.name);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
port_id = i * 2 + 1 + SLIMBUS_0_RX;
|
|
|
|
switch (ucontrol->value.integer.value[0]) {
|
|
|
|
case MADNONE:
|
|
|
|
mad_type = MAD_HW_NONE;
|
|
|
|
break;
|
|
|
|
case MADAUDIO:
|
|
|
|
mad_type = MAD_HW_AUDIO;
|
|
|
|
break;
|
|
|
|
case MADBEACON:
|
|
|
|
mad_type = MAD_HW_BEACON;
|
|
|
|
break;
|
|
|
|
case MADULTRASOUND:
|
|
|
|
mad_type = MAD_HW_ULTRASOUND;
|
|
|
|
break;
|
2024-09-09 08:57:42 +00:00
|
|
|
case MADSWAUDIO:
|
|
|
|
mad_type = MAD_SW_AUDIO;
|
|
|
|
break;
|
2024-09-09 08:52:07 +00:00
|
|
|
default:
|
|
|
|
WARN(1, "Unknown\n");
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
/*Check for Tertiary TX port*/
|
|
|
|
if (!strcmp(kcontrol->id.name, mad_audio_mux_text[7])) {
|
|
|
|
port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
|
|
|
|
mad_type = MAD_SW_AUDIO;
|
|
|
|
}
|
|
|
|
|
|
|
|
pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
|
2024-09-09 08:52:07 +00:00
|
|
|
mad_type);
|
|
|
|
return afe_port_set_mad_type(port_id, mad_type);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
pr_debug("%s: AANC Mux Port %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct aanc_data aanc_info;
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
memset(&aanc_info, 0x00, sizeof(aanc_info));
|
|
|
|
pr_debug("%s: AANC Mux Port %ld\n", __func__,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
|
|
|
|
if (ucontrol->value.integer.value[0] == 0) {
|
|
|
|
aanc_info.aanc_active = false;
|
|
|
|
aanc_info.aanc_tx_port = 0;
|
|
|
|
aanc_info.aanc_rx_port = 0;
|
|
|
|
} else {
|
|
|
|
aanc_info.aanc_active = true;
|
|
|
|
aanc_info.aanc_rx_port = SLIMBUS_0_RX;
|
|
|
|
aanc_info.aanc_tx_port =
|
|
|
|
(SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
|
|
|
|
}
|
|
|
|
afe_set_aanc_info(&aanc_info);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (test_bit(mc->shift,
|
|
|
|
(unsigned long *)&msm_bedais[mc->reg].port_sessions))
|
2024-09-09 08:52:07 +00:00
|
|
|
ucontrol->value.integer.value[0] = 1;
|
|
|
|
else
|
|
|
|
ucontrol->value.integer.value[0] = 0;
|
|
|
|
|
|
|
|
pr_debug("%s: reg %x shift %x val %ld\n", __func__, mc->reg, mc->shift,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct soc_mixer_control *mc =
|
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s: reg 0x%x shift 0x%x val %ld\n", __func__, mc->reg,
|
2024-09-09 08:52:07 +00:00
|
|
|
mc->shift, ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
if (ucontrol->value.integer.value[0]) {
|
|
|
|
afe_loopback(1, msm_bedais[mc->reg].port_id,
|
|
|
|
msm_bedais[mc->shift].port_id);
|
|
|
|
set_bit(mc->shift,
|
2024-09-09 08:57:42 +00:00
|
|
|
(unsigned long *)&msm_bedais[mc->reg].port_sessions);
|
2024-09-09 08:52:07 +00:00
|
|
|
} else {
|
|
|
|
afe_loopback(0, msm_bedais[mc->reg].port_id,
|
|
|
|
msm_bedais[mc->shift].port_id);
|
|
|
|
clear_bit(mc->shift,
|
2024-09-09 08:57:42 +00:00
|
|
|
(unsigned long *)&msm_bedais[mc->reg].port_sessions);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
|
2024-09-09 08:57:42 +00:00
|
|
|
mutex_lock(&routing_lock);
|
2024-09-09 08:52:07 +00:00
|
|
|
ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
|
2024-09-09 08:57:42 +00:00
|
|
|
mutex_unlock(&routing_lock);
|
2024-09-09 08:52:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ec_ref_port_id;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
int mux = ucontrol->value.enumerated.item[0];
|
|
|
|
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
|
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
switch (ucontrol->value.integer.value[0]) {
|
|
|
|
case 0:
|
|
|
|
msm_route_ec_ref_rx = 0;
|
2024-09-09 08:57:42 +00:00
|
|
|
ec_ref_port_id = AFE_PORT_INVALID;
|
2024-09-09 08:52:07 +00:00
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
msm_route_ec_ref_rx = 1;
|
2024-09-09 08:57:42 +00:00
|
|
|
ec_ref_port_id = SLIMBUS_0_RX;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
msm_route_ec_ref_rx = 2;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
msm_route_ec_ref_rx = 3;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
msm_route_ec_ref_rx = 4;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
msm_route_ec_ref_rx = 5;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
msm_route_ec_ref_rx = 6;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
msm_route_ec_ref_rx = 7;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
msm_route_ec_ref_rx = 9;
|
|
|
|
ec_ref_port_id = SLIMBUS_5_RX;
|
|
|
|
break;
|
|
|
|
case 10:
|
|
|
|
msm_route_ec_ref_rx = 10;
|
|
|
|
ec_ref_port_id = SLIMBUS_1_TX;
|
|
|
|
break;
|
|
|
|
case 11:
|
|
|
|
msm_route_ec_ref_rx = 11;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
|
|
|
|
break;
|
|
|
|
case 12:
|
|
|
|
msm_route_ec_ref_rx = 12;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
|
|
|
|
break;
|
|
|
|
case 13:
|
|
|
|
msm_route_ec_ref_rx = 13;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
|
|
|
|
break;
|
|
|
|
case 14:
|
|
|
|
msm_route_ec_ref_rx = 14;
|
|
|
|
ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
|
2024-09-09 08:52:07 +00:00
|
|
|
break;
|
|
|
|
default:
|
2024-09-09 08:57:42 +00:00
|
|
|
msm_route_ec_ref_rx = 0; /* NONE */
|
|
|
|
pr_err("%s EC ref rx %ld not valid\n",
|
|
|
|
__func__, ucontrol->value.integer.value[0]);
|
|
|
|
ec_ref_port_id = AFE_PORT_INVALID;
|
2024-09-09 08:52:07 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
adm_ec_ref_rx_id(ec_ref_port_id);
|
|
|
|
pr_debug("%s: msm_route_ec_ref_rx = %d\n",
|
|
|
|
__func__, msm_route_ec_ref_rx);
|
|
|
|
mutex_unlock(&routing_lock);
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e, update);
|
2024-09-09 08:52:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
|
|
|
|
"PRI_MI2S_TX", "SEC_MI2S_TX",
|
|
|
|
"TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
|
|
|
|
"SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
|
|
|
|
"QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2"};
|
2024-09-09 08:52:07 +00:00
|
|
|
static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_ENUM_SINGLE_EXT(15, ec_ref_rx),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
|
|
|
|
SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
|
|
|
|
msm_route_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
|
|
|
|
|
|
|
|
static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
struct snd_soc_dapm_widget_list *wlist =
|
|
|
|
dapm_kcontrol_get_wlist(kcontrol);
|
|
|
|
struct snd_soc_dapm_widget *widget = wlist->widgets[0];
|
|
|
|
int mux = ucontrol->value.enumerated.item[0];
|
|
|
|
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
|
|
|
|
int ret = 0;
|
|
|
|
bool state = false;
|
|
|
|
struct snd_soc_dapm_update *update = NULL;
|
|
|
|
|
|
|
|
pr_debug("%s: msm_route_ec_ref_rx = %d value = %ld\n",
|
|
|
|
__func__, msm_route_ext_ec_ref,
|
|
|
|
ucontrol->value.integer.value[0]);
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
switch (ucontrol->value.integer.value[0]) {
|
|
|
|
case EC_PORT_ID_PRIMARY_MI2S_TX:
|
|
|
|
msm_route_ext_ec_ref = AFE_PORT_ID_PRIMARY_MI2S_TX;
|
|
|
|
state = true;
|
|
|
|
break;
|
|
|
|
case EC_PORT_ID_SECONDARY_MI2S_TX:
|
|
|
|
msm_route_ext_ec_ref = AFE_PORT_ID_SECONDARY_MI2S_TX;
|
|
|
|
state = true;
|
|
|
|
break;
|
|
|
|
case EC_PORT_ID_TERTIARY_MI2S_TX:
|
|
|
|
msm_route_ext_ec_ref = AFE_PORT_ID_TERTIARY_MI2S_TX;
|
|
|
|
state = true;
|
|
|
|
break;
|
|
|
|
case EC_PORT_ID_QUATERNARY_MI2S_TX:
|
|
|
|
msm_route_ext_ec_ref = AFE_PORT_ID_QUATERNARY_MI2S_TX;
|
|
|
|
state = true;
|
|
|
|
break;
|
|
|
|
case EC_PORT_ID_SLIMBUS_1_TX:
|
|
|
|
msm_route_ext_ec_ref = SLIMBUS_1_TX;
|
|
|
|
state = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
msm_route_ext_ec_ref = AFE_PORT_INVALID;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (!voc_set_ext_ec_ref(msm_route_ext_ec_ref, state)) {
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e, update);
|
|
|
|
} else {
|
|
|
|
ret = -EINVAL;
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
|
|
|
|
"SEC_MI2S_TX", "TERT_MI2S_TX",
|
|
|
|
"QUAT_MI2S_TX", "SLIM_1_TX"};
|
|
|
|
|
|
|
|
static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
|
|
|
|
SOC_ENUM_SINGLE_EXT(6, ext_ec_ref_rx),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new voc_ext_ec_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
|
|
|
|
msm_routing_ext_ec_get, msm_routing_ext_ec_put);
|
|
|
|
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_I2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_I2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SPDIF_RX ,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SPDIF_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SPDIF_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SPDIF_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SPDIF_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SPDIF_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SPDIF_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_5_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_5_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUINARY_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERTIARY_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SECONDARY_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mi2s_hl_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_PRI_MI2S_RX ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
/* incall music delivery mixer */
|
|
|
|
static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_4_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_4_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_4_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_4_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SLIMBUS_6_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SLIMBUS_6_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SLIMBUS_6_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SLIMBUS_6_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_INT_FM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_0 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_1 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_2 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_TERT_TDM_RX_3 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_0 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_1 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_2 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MultiMedia1", MSM_BACKEND_DAI_QUAT_TDM_RX_3 ,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia6", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia7", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia8", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia9", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia10", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia11", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia12", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia13", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia14", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia15", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MultiMedia16", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_4_TX", MSM_BACKEND_DAI_SLIMBUS_4_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_QUINARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_DL", MSM_BACKEND_DAI_INCALL_RECORD_RX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("VOC_REC_UL", MSM_BACKEND_DAI_INCALL_RECORD_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_6_TX", MSM_BACKEND_DAI_SLIMBUS_6_TX,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_TX_0,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_TX_1,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_TX_2,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_TX_3,
|
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
|
|
|
|
msm_routing_put_audio_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_RX ,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_INT_BT_SCO_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_INT_BT_SCO_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_INT_BT_SCO_RX ,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_INT_BT_SCO_RX ,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_INT_BT_SCO_RX ,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_QUINARY_MI2S_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AFE_PCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AFE_PCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AFE_PCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AFE_PCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
2024-09-09 08:52:07 +00:00
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AFE_PCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_AUXPCM_RX,
|
2024-09-09 08:52:07 +00:00
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("CSVoice", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voip", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoWLAN", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("DTMF", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("QCHAT", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode1", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoiceMMode2", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_EXTPROC_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_EXTPROC_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_EXTPROC_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("Voice Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("Voice2 Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("VoLTE Stub", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voice_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_Voice", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_Voice", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_Voice", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_CS_VOICE, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_Voice", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_Voice", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_Voice", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX_Voice", MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_Voice", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_CS_VOICE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voice2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_Voice2", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_Voice2", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_Voice2", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voice2",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICE2, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_Voice2", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voice2", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_Voice2", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_Voice2", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_volte_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_VoLTE", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_VoLTE", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoLTE",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOLTE, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_VoLTE", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoLTE", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_VoLTE", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_VoLTE", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_VoLTE", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_vowlan_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_VoWLAN", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_VoWLAN", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_VoWLAN",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOWLAN, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_VoWLAN", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_VoWLAN", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_VoWLAN", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOWLAN, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_MMode1", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_MMode1", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_MMode1",
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
|
|
|
|
1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_MMode2", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_MMode2", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INT_BT_SCO_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
|
|
|
|
0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_MMode2",
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
|
|
|
|
1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_Voip", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_Voip", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_Voip", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_Voip", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_Voip", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_Voip", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_Voip", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_Voip", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_Voip", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("STUB_TX_HL", MSM_BACKEND_DAI_EXTPROC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_1_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("STUB_1_TX_HL", MSM_BACKEND_DAI_EXTPROC_EC_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
|
|
|
|
msm_routing_put_voice_stub_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_TX_QCHAT", MSM_BACKEND_DAI_PRI_I2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX_QCHAT", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX_QCHAT",
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_QCHAT, 1, 0,
|
|
|
|
msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX_QCHAT", MSM_BACKEND_DAI_AFE_PCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_TX_QCHAT", MSM_BACKEND_DAI_SEC_AUXPCM_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX_QCHAT", MSM_BACKEND_DAI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX_QCHAT", MSM_BACKEND_DAI_PRI_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX_QCHAT", MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
|
|
|
|
MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
|
|
|
|
msm_routing_put_voice_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
|
2024-09-09 08:52:07 +00:00
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SEC_AUXPCM_RX,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_SLIMBUS_1_RX,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:57:42 +00:00
|
|
|
SOC_SINGLE_EXT("AFE_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_RX", MSM_BACKEND_DAI_SLIMBUS_3_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_AFE_PCM_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
|
|
|
|
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_SEC_I2S_RX,
|
|
|
|
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SLIM_1_TX", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUIN_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_MI2S_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_TERT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_0,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_1,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_2,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_MI2S_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("TERT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_1", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_2", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
SOC_SINGLE_EXT("QUAT_TDM_TX_3", MSM_BACKEND_DAI_QUAT_TDM_RX_3,
|
|
|
|
MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
|
|
|
|
msm_routing_get_port_mixer,
|
|
|
|
msm_routing_put_port_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
|
|
|
|
msm_routing_put_fm_pcmrx_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_switch_mixer,
|
|
|
|
msm_routing_put_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_hfp_switch_mixer,
|
|
|
|
msm_routing_put_hfp_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_hfp_switch_mixer,
|
|
|
|
msm_routing_put_hfp_switch_mixer);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
|
|
|
|
SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
|
|
|
|
0, 1, 0, msm_routing_get_hfp_switch_mixer,
|
|
|
|
msm_routing_put_hfp_switch_mixer);
|
|
|
|
|
|
|
|
static const struct soc_enum lsm_mux_enum =
|
|
|
|
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(mad_audio_mux_text), mad_audio_mux_text);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm1_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM1 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm2_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM2 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
static const struct snd_kcontrol_new lsm3_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM3 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm4_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM4 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
static const struct snd_kcontrol_new lsm5_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM5 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm6_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM6 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
static const struct snd_kcontrol_new lsm7_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM7 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm8_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("LSM8 MUX", lsm_mux_enum,
|
|
|
|
msm_routing_lsm_mux_get,
|
|
|
|
msm_routing_lsm_mux_put);
|
|
|
|
|
|
|
|
|
|
|
|
static const char * const lsm_func_text[] = {
|
|
|
|
"None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
|
|
|
|
};
|
|
|
|
static const struct soc_enum lsm_func_enum =
|
|
|
|
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
|
|
|
|
static const struct snd_kcontrol_new lsm_function[] = {
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char * const aanc_slim_0_rx_text[] = {
|
|
|
|
"ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
|
|
|
|
"SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct soc_enum aanc_slim_0_rx_enum =
|
|
|
|
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
|
|
|
|
aanc_slim_0_rx_text);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
|
|
|
|
SOC_DAPM_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
|
|
|
|
msm_routing_slim_0_rx_aanc_mux_get,
|
|
|
|
msm_routing_slim_0_rx_aanc_mux_put)
|
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_routing_get_stereo_to_custom_stereo_control(
|
|
|
|
struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = is_custom_stereo_on;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_stereo_to_custom_stereo_control(
|
|
|
|
struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int flag = 0, i = 0, rc = 0, idx = 0;
|
|
|
|
int be_index = 0, port_id, topo_id;
|
|
|
|
unsigned int session_id = 0;
|
|
|
|
uint16_t op_FL_ip_FL_weight = 0;
|
|
|
|
uint16_t op_FL_ip_FR_weight = 0;
|
|
|
|
uint16_t op_FR_ip_FL_weight = 0;
|
|
|
|
uint16_t op_FR_ip_FR_weight = 0;
|
|
|
|
flag = ucontrol->value.integer.value[0];
|
|
|
|
pr_debug("%s E flag %d\n", __func__, flag);
|
|
|
|
|
|
|
|
if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
|
|
|
|
pr_err("%s: is_custom_stereo_on %d, flag %d\n",
|
|
|
|
__func__, is_custom_stereo_on, flag);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
is_custom_stereo_on = flag ? true : false;
|
|
|
|
pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
|
|
|
|
for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
|
|
|
|
port_id = msm_bedais[be_index].port_id;
|
|
|
|
if (!msm_bedais[be_index].active)
|
|
|
|
continue;
|
|
|
|
if ((port_id != SLIMBUS_0_RX) &&
|
|
|
|
(port_id != RT_PROXY_PORT_001_RX) &&
|
|
|
|
(port_id != AFE_PORT_ID_PRIMARY_MI2S_RX))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
for_each_set_bit(i, &msm_bedais[be_index].fe_sessions,
|
|
|
|
MSM_FRONTEND_DAI_MM_SIZE) {
|
|
|
|
if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
|
|
|
|
LEGACY_PCM_MODE)
|
|
|
|
goto skip_send_custom_stereo;
|
|
|
|
session_id =
|
|
|
|
fe_dai_map[i][SESSION_TYPE_RX].strm_id;
|
|
|
|
if (is_custom_stereo_on) {
|
|
|
|
op_FL_ip_FL_weight =
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE;
|
|
|
|
op_FL_ip_FR_weight =
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE;
|
|
|
|
op_FR_ip_FL_weight =
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE;
|
|
|
|
op_FR_ip_FR_weight =
|
|
|
|
Q14_GAIN_ZERO_POINT_FIVE;
|
|
|
|
} else {
|
|
|
|
op_FL_ip_FL_weight = Q14_GAIN_UNITY;
|
|
|
|
op_FL_ip_FR_weight = 0;
|
|
|
|
op_FR_ip_FL_weight = 0;
|
|
|
|
op_FR_ip_FR_weight = Q14_GAIN_UNITY;
|
|
|
|
}
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[i]
|
|
|
|
[SESSION_TYPE_RX][be_index];
|
|
|
|
if (!test_bit(idx, &copp))
|
|
|
|
goto skip_send_custom_stereo;
|
|
|
|
topo_id = adm_get_topology_for_port_copp_idx(
|
|
|
|
msm_bedais[be_index].port_id, idx);
|
|
|
|
if (topo_id < 0)
|
|
|
|
pr_debug("%s:Err:custom stereo topo %d",
|
|
|
|
__func__, topo_id);
|
|
|
|
pr_debug("idx %d\n", idx);
|
|
|
|
if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
|
|
|
|
rc = msm_ds2_dap_set_custom_stereo_onoff
|
|
|
|
(msm_bedais[be_index].port_id,
|
|
|
|
idx, is_custom_stereo_on);
|
|
|
|
else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
|
|
|
|
rc = dolby_dap_set_custom_stereo_onoff(
|
|
|
|
msm_bedais[be_index].port_id,
|
|
|
|
idx, is_custom_stereo_on);
|
|
|
|
else
|
|
|
|
rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
|
|
|
|
(msm_bedais[be_index].port_id,
|
|
|
|
idx, session_id,
|
|
|
|
op_FL_ip_FL_weight,
|
|
|
|
op_FL_ip_FR_weight,
|
|
|
|
op_FR_ip_FL_weight,
|
|
|
|
op_FR_ip_FR_weight);
|
|
|
|
if (rc < 0)
|
|
|
|
skip_send_custom_stereo:
|
|
|
|
pr_err("%s: err setting custom stereo\n",
|
|
|
|
__func__);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
|
|
|
|
1, 0, msm_routing_get_stereo_to_custom_stereo_control,
|
|
|
|
msm_routing_put_stereo_to_custom_stereo_control),
|
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int i = 0, j;
|
|
|
|
int num_app_types = ucontrol->value.integer.value[i++];
|
|
|
|
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
memset(app_type_cfg, 0, MAX_APP_TYPES*
|
|
|
|
sizeof(struct msm_pcm_routing_app_type_data));
|
|
|
|
if (num_app_types > MAX_APP_TYPES) {
|
|
|
|
pr_err("%s: number of app types exceed the max supported\n",
|
|
|
|
__func__);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
for (j = 0; j < num_app_types; j++) {
|
|
|
|
app_type_cfg[j].app_type =
|
|
|
|
ucontrol->value.integer.value[i++];
|
|
|
|
app_type_cfg[j].sample_rate =
|
|
|
|
ucontrol->value.integer.value[i++];
|
|
|
|
app_type_cfg[j].bit_width =
|
|
|
|
ucontrol->value.integer.value[i++];
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new app_type_cfg_controls[] = {
|
|
|
|
SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
|
|
|
|
0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
|
|
|
|
msm_routing_put_app_type_cfg_control),
|
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_routing_get_use_ds1_or_ds2_control(
|
|
|
|
struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = is_ds2_on;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_put_use_ds1_or_ds2_control(
|
|
|
|
struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
is_ds2_on = ucontrol->value.integer.value[0];
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
|
|
|
|
SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
|
|
|
|
1, 0, msm_routing_get_use_ds1_or_ds2_control,
|
|
|
|
msm_routing_put_use_ds1_or_ds2_control),
|
|
|
|
};
|
|
|
|
|
|
|
|
int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol) {
|
|
|
|
int rc = 0;
|
|
|
|
int be_idx = 0;
|
|
|
|
char *param_value;
|
|
|
|
int *update_param_value;
|
|
|
|
uint32_t param_length = sizeof(uint32_t);
|
|
|
|
uint32_t param_payload_len = RMS_PAYLOAD_LEN * sizeof(uint32_t);
|
|
|
|
param_value = kzalloc(param_length, GFP_KERNEL);
|
|
|
|
if (!param_value) {
|
|
|
|
pr_err("%s, param memory alloc failed\n", __func__);
|
|
|
|
return -ENOMEM;
|
|
|
|
}
|
|
|
|
for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
|
|
|
|
if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
|
|
|
|
break;
|
|
|
|
if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
|
|
|
|
rc = adm_get_params(SLIMBUS_0_TX, 0,
|
|
|
|
RMS_MODULEID_APPI_PASSTHRU,
|
|
|
|
RMS_PARAM_FIRST_SAMPLE,
|
|
|
|
param_length + param_payload_len,
|
|
|
|
param_value);
|
|
|
|
if (rc) {
|
|
|
|
pr_err("%s: get parameters failed:%d\n", __func__, rc);
|
|
|
|
kfree(param_value);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
update_param_value = (int *)param_value;
|
|
|
|
ucontrol->value.integer.value[0] = update_param_value[0];
|
|
|
|
|
|
|
|
pr_debug("%s: FROM DSP value[0] 0x%x\n",
|
|
|
|
__func__, update_param_value[0]);
|
|
|
|
}
|
|
|
|
kfree(param_value);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
voc_session_id = ucontrol->value.integer.value[0];
|
|
|
|
|
|
|
|
pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
ucontrol->value.integer.value[0] = voc_session_id;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct snd_kcontrol_new msm_voc_session_controls[] = {
|
|
|
|
SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
|
|
|
|
0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
|
|
|
|
msm_voc_session_id_put),
|
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_info *uinfo)
|
|
|
|
{
|
|
|
|
uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
|
|
|
|
uinfo->count = sizeof(struct sound_focus_param);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct sound_focus_param soundFocusData;
|
|
|
|
|
|
|
|
memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
|
|
|
|
sizeof(struct sound_focus_param));
|
|
|
|
ret = voc_set_sound_focus(soundFocusData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error setting Sound Focus Params, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct sound_focus_param soundFocusData;
|
|
|
|
|
|
|
|
memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
|
|
|
|
|
|
|
|
ret = voc_get_sound_focus(&soundFocusData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error getting Sound Focus Params, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
|
|
|
|
sizeof(struct sound_focus_param));
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_info *uinfo)
|
|
|
|
{
|
|
|
|
uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
|
|
|
|
uinfo->count = sizeof(struct source_tracking_param);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct source_tracking_param sourceTrackingData;
|
|
|
|
|
|
|
|
memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
|
|
|
|
|
|
|
|
ret = voc_get_source_tracking(&sourceTrackingData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error getting Source Tracking Params, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
|
|
|
|
sizeof(struct source_tracking_param));
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
|
|
|
|
int *copp_idx)
|
|
|
|
{
|
|
|
|
int i, idx, be_idx;
|
|
|
|
int ret = 0;
|
|
|
|
unsigned long copp;
|
|
|
|
|
|
|
|
pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
|
|
|
|
|
|
|
|
ret = q6audio_validate_port(port_id);
|
|
|
|
if (ret < 0) {
|
|
|
|
pr_err("%s: port validation failed id 0x%x ret %d\n",
|
|
|
|
__func__, port_id, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
|
|
|
|
if (msm_bedais[be_idx].port_id == port_id)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (be_idx >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_err("%s: Invalid be id %d\n", __func__, be_idx);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions,
|
|
|
|
MSM_FRONTEND_DAI_MM_SIZE) {
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
|
|
|
|
copp = session_copp_map[i]
|
|
|
|
[session_type][be_idx];
|
|
|
|
if (test_bit(idx, &copp))
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (idx >= MAX_COPPS_PER_PORT)
|
|
|
|
continue;
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
|
|
|
|
pr_err("%s: Invalid FE, exiting\n", __func__);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
*copp_idx = idx;
|
|
|
|
pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
|
|
|
|
const char *prefix, int *port_id)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
|
|
|
|
pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
|
|
|
|
* where the prefix is "Sound Focus Audio Tx ". Skip the prefix
|
|
|
|
* and compare the string with the backend name to derive the port id.
|
|
|
|
*/
|
|
|
|
if (!strcmp(kcontrol->id.name + strlen(prefix),
|
|
|
|
"SLIMBUS_0")) {
|
|
|
|
*port_id = SLIMBUS_0_TX;
|
|
|
|
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
|
|
|
"TERT_MI2S")) {
|
|
|
|
*port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
|
|
|
|
} else {
|
|
|
|
pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
|
|
|
|
__func__, kcontrol->id.name);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
|
|
|
|
__func__, kcontrol->id.name, *port_id);
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct sound_focus_param soundFocusData;
|
|
|
|
int port_id, copp_idx;
|
|
|
|
|
|
|
|
ret = msm_audio_sound_focus_derive_port_id(kcontrol,
|
|
|
|
"Sound Focus Audio Tx ", &port_id);
|
|
|
|
if (ret != 0) {
|
|
|
|
pr_err("%s: Error in deriving port id, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
|
|
|
|
&copp_idx);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Could not get copp idx for port_id=%d\n",
|
|
|
|
__func__, port_id);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
|
|
|
|
sizeof(struct sound_focus_param));
|
|
|
|
|
|
|
|
ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error setting Sound Focus Params, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct sound_focus_param soundFocusData;
|
|
|
|
int port_id, copp_idx;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = msm_audio_sound_focus_derive_port_id(kcontrol,
|
|
|
|
"Sound Focus Audio Tx ", &port_id);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error in deriving port id, err=%d\n",
|
|
|
|
__func__, ret);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
|
|
|
|
&copp_idx);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Could not get copp idx for port_id=%d\n",
|
|
|
|
__func__, port_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error getting Sound Focus Params, err=%d\n",
|
|
|
|
__func__, ret);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
|
|
|
|
sizeof(struct sound_focus_param));
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct source_tracking_param sourceTrackingData;
|
|
|
|
int port_id, copp_idx;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = msm_audio_sound_focus_derive_port_id(kcontrol,
|
|
|
|
"Source Tracking Audio Tx ", &port_id);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error in deriving port id, err=%d\n",
|
|
|
|
__func__, ret);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
|
|
|
|
&copp_idx);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Could not get copp idx for port_id=%d\n",
|
|
|
|
__func__, port_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
|
|
|
|
if (ret) {
|
|
|
|
pr_err("%s: Error getting Source Tracking Params, err=%d\n",
|
|
|
|
__func__, ret);
|
|
|
|
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
|
|
|
|
sizeof(struct source_tracking_param));
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Sound Focus Voice Tx SLIMBUS_0",
|
|
|
|
.info = msm_sound_focus_info,
|
|
|
|
.get = msm_voice_sound_focus_get,
|
|
|
|
.put = msm_voice_sound_focus_put,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Source Tracking Voice Tx SLIMBUS_0",
|
|
|
|
.info = msm_source_tracking_info,
|
|
|
|
.get = msm_voice_source_tracking_get,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Sound Focus Audio Tx SLIMBUS_0",
|
|
|
|
.info = msm_sound_focus_info,
|
|
|
|
.get = msm_audio_sound_focus_get,
|
|
|
|
.put = msm_audio_sound_focus_put,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Source Tracking Audio Tx SLIMBUS_0",
|
|
|
|
.info = msm_source_tracking_info,
|
|
|
|
.get = msm_audio_source_tracking_get,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Sound Focus Voice Tx TERT_MI2S",
|
|
|
|
.info = msm_sound_focus_info,
|
|
|
|
.get = msm_voice_sound_focus_get,
|
|
|
|
.put = msm_voice_sound_focus_put,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Source Tracking Voice Tx TERT_MI2S",
|
|
|
|
.info = msm_source_tracking_info,
|
|
|
|
.get = msm_voice_source_tracking_get,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Sound Focus Audio Tx TERT_MI2S",
|
|
|
|
.info = msm_sound_focus_info,
|
|
|
|
.get = msm_audio_sound_focus_get,
|
|
|
|
.put = msm_audio_sound_focus_put,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
|
|
|
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
|
|
|
.name = "Source Tracking Audio Tx TERT_MI2S",
|
|
|
|
.info = msm_source_tracking_info,
|
|
|
|
.get = msm_audio_source_tracking_get,
|
|
|
|
},
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
int item;
|
|
|
|
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
|
|
|
|
pr_debug("%s item is %d\n", __func__,
|
|
|
|
ucontrol->value.enumerated.item[0]);
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
item = ucontrol->value.enumerated.item[0];
|
2024-09-09 08:57:42 +00:00
|
|
|
if (item < e->items) {
|
2024-09-09 08:52:07 +00:00
|
|
|
pr_debug("%s RX DAI ID %d TX DAI id %d\n",
|
|
|
|
__func__, e->shift_l , e->values[item]);
|
|
|
|
if (e->shift_l < MSM_BACKEND_DAI_MAX &&
|
|
|
|
e->values[item] < MSM_BACKEND_DAI_MAX)
|
|
|
|
/* Enable feedback TX path */
|
|
|
|
ret = afe_spk_prot_feed_back_cfg(
|
|
|
|
msm_bedais[e->values[item]].port_id,
|
|
|
|
msm_bedais[e->shift_l].port_id, 1, 0, 1);
|
|
|
|
else {
|
|
|
|
pr_debug("%s values are out of range item %d\n",
|
|
|
|
__func__, e->values[item]);
|
|
|
|
/* Disable feedback TX path */
|
|
|
|
if (e->values[item] == MSM_BACKEND_DAI_MAX)
|
|
|
|
ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
|
|
|
|
else
|
|
|
|
ret = -EINVAL;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
pr_err("%s item value is out of range item\n", __func__);
|
|
|
|
ret = -EINVAL;
|
|
|
|
}
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
int item;
|
|
|
|
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
|
|
|
|
pr_debug("%s item is %d\n", __func__,
|
|
|
|
ucontrol->value.enumerated.item[0]);
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
item = ucontrol->value.enumerated.item[0];
|
|
|
|
if (item < e->items) {
|
|
|
|
pr_debug("%s RX DAI ID %d TX DAI id %d\n",
|
|
|
|
__func__, e->shift_l , e->values[item]);
|
|
|
|
if (e->shift_l < MSM_BACKEND_DAI_MAX &&
|
|
|
|
e->values[item] < MSM_BACKEND_DAI_MAX)
|
|
|
|
/* Enable feedback TX path */
|
|
|
|
ret = afe_spk_prot_feed_back_cfg(
|
|
|
|
msm_bedais[e->values[item]].port_id,
|
|
|
|
msm_bedais[e->shift_l].port_id,
|
|
|
|
1, 1, 1);
|
|
|
|
else {
|
|
|
|
pr_debug("%s values are out of range item %d\n",
|
|
|
|
__func__, e->values[item]);
|
|
|
|
/* Disable feedback TX path */
|
|
|
|
if (e->values[item] == MSM_BACKEND_DAI_MAX)
|
|
|
|
ret = afe_spk_prot_feed_back_cfg(0,
|
|
|
|
0, 0, 0, 0);
|
|
|
|
else
|
|
|
|
ret = -EINVAL;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
pr_err("%s item value is out of range item\n", __func__);
|
|
|
|
ret = -EINVAL;
|
|
|
|
}
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
ucontrol->value.enumerated.item[0] = 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
|
|
|
|
"ZERO", "SLIM4_TX"
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
|
|
|
|
"ZERO", "SLIM4_TX"
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
|
|
|
|
"ZERO", "SENARY_TX"
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const int const slim0_rx_vi_fb_tx_lch_value[] = {
|
|
|
|
MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
|
|
|
|
};
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
static const int const slim0_rx_vi_fb_tx_rch_value[] = {
|
|
|
|
MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
|
|
|
|
};
|
|
|
|
|
|
|
|
static const int const mi2s_rx_vi_fb_tx_value[] = {
|
|
|
|
MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
|
|
|
|
};
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
|
|
|
|
SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
|
|
|
|
ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
|
|
|
|
slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
|
|
|
|
SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
|
|
|
|
ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
|
|
|
|
slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
|
|
|
|
|
|
|
|
static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
|
|
|
|
SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
|
|
|
|
ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
|
|
|
|
mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
|
|
|
|
slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
|
|
|
|
spkr_prot_put_vi_lch_port);
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
|
|
|
|
slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
|
|
|
|
spkr_prot_put_vi_rch_port);
|
|
|
|
|
|
|
|
static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
|
|
|
|
SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
|
|
|
|
mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
|
|
|
|
spkr_prot_put_vi_lch_port);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
|
|
|
|
/* Frontend AIF */
|
|
|
|
/* Widget name equals to Front-End DAI name<Need confirmation>,
|
|
|
|
* Stream name must contains substring of front-end dai name
|
|
|
|
*/
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("CS-VOICE_DL1", "CS-VOICE Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("CS-VOICE_UL1", "CS-VOICE Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("VOICE2_DL", "Voice2 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICE2_UL", "Voice2 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("VoLTE_DL", "VoLTE Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VoLTE_UL", "VoLTE Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("VoWLAN_DL", "VoWLAN Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VoWLAN_UL", "VoWLAN Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
|
|
|
|
"VoiceMMode1 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
|
|
|
|
"VoiceMMode1 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
|
|
|
|
"VoiceMMode2 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
|
|
|
|
"VoiceMMode2 Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
|
|
|
|
"Primary MI2S_RX Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
|
|
|
|
"Secondary MI2S_RX Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
|
|
|
|
"Quaternary MI2S_RX Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
|
|
|
|
SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
|
|
|
|
"Tertiary MI2S_TX Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
|
|
|
|
"Primary MI2S_TX Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
|
|
|
|
"Quaternary MI2S_TX Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
|
|
|
|
"Primary TDM0 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
|
|
|
|
"Primary TDM0 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
|
|
|
|
"Primary TDM1 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
|
|
|
|
"Primary TDM1 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
|
|
|
|
"Primary TDM2 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
|
|
|
|
"Primary TDM2 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
|
|
|
|
"Primary TDM3 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
|
|
|
|
"Primary TDM3 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
|
|
|
|
"Primary TDM4 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
|
|
|
|
"Primary TDM4 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
|
|
|
|
"Primary TDM5 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
|
|
|
|
"Primary TDM5 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
|
|
|
|
"Primary TDM6 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
|
|
|
|
"Primary TDM6 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
|
|
|
|
"Primary TDM7 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
|
|
|
|
"Primary TDM7 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
|
|
|
|
"Secondary TDM0 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
|
|
|
|
"Secondary TDM0 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
|
|
|
|
"Secondary TDM1 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
|
|
|
|
"Secondary TDM1 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
|
|
|
|
"Secondary TDM2 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
|
|
|
|
"Secondary TDM2 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
|
|
|
|
"Secondary TDM3 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
|
|
|
|
"Secondary TDM3 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
|
|
|
|
"Secondary TDM4 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
|
|
|
|
"Secondary TDM4 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
|
|
|
|
"Secondary TDM5 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
|
|
|
|
"Secondary TDM5 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
|
|
|
|
"Secondary TDM6 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
|
|
|
|
"Secondary TDM6 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
|
|
|
|
"Secondary TDM7 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
|
|
|
|
"Secondary TDM7 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
|
|
|
|
"Tertiary TDM0 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
|
|
|
|
"Tertiary TDM0 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
|
|
|
|
"Tertiary TDM1 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
|
|
|
|
"Tertiary TDM1 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
|
|
|
|
"Tertiary TDM2 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
|
|
|
|
"Tertiary TDM2 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
|
|
|
|
"Tertiary TDM3 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
|
|
|
|
"Tertiary TDM3 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
|
|
|
|
"Tertiary TDM4 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
|
|
|
|
"Tertiary TDM4 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
|
|
|
|
"Tertiary TDM5 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
|
|
|
|
"Tertiary TDM5 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
|
|
|
|
"Tertiary TDM6 Hostless Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
|
|
|
|
"Tertiary TDM6 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
|
|
|
|
"Tertiary TDM7 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
|
|
|
|
"Tertiary TDM7 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
|
|
|
|
"Quaternary TDM0 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
|
|
|
|
"Quaternary TDM0 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
|
|
|
|
"Quaternary TDM1 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
|
|
|
|
"Quaternary TDM1 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
|
|
|
|
"Quaternary TDM2 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
|
|
|
|
"Quaternary TDM2 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
|
|
|
|
"Quaternary TDM3 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
|
|
|
|
"Quaternary TDM3 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
|
|
|
|
"Quaternary TDM4 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
|
|
|
|
"Quaternary TDM4 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
|
|
|
|
"Quaternary TDM5 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
|
|
|
|
"Quaternary TDM5 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
|
|
|
|
"Quaternary TDM6 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
|
|
|
|
"Quaternary TDM6 Hostless Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
|
|
|
|
"Quaternary TDM7 Hostless Playback",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
|
|
|
|
"Quaternary TDM7 Hostless Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
/* LSM */
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
|
2024-09-09 08:52:07 +00:00
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
/* Backend AIF */
|
|
|
|
/* Stream name equals to backend dai link stream name
|
|
|
|
*/
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
|
|
|
|
0, 0, 0 , 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0 , 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
|
|
|
|
"Secondary MI2S Playback SD1",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
|
|
|
|
0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
|
|
|
|
0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
|
|
|
|
0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
|
|
|
|
0, 0, 0 , 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
/* incall */
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
|
|
|
|
0, 0, 0 , 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
|
|
|
|
0, 0, 0 , 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
|
|
|
|
0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
|
|
|
|
0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
|
|
|
|
|
|
|
|
SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
|
|
|
|
0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
|
2024-09-09 08:57:42 +00:00
|
|
|
/* In- call recording */
|
|
|
|
SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0 , 0),
|
|
|
|
SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
/* Switch Definitions */
|
|
|
|
SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
&slim_fm_switch_mixer_controls),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
&slim1_fm_switch_mixer_controls),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
&slim3_fm_switch_mixer_controls),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
&slim4_fm_switch_mixer_controls),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&pcm_rx_switch_mixer_controls),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&pri_mi2s_rx_switch_mixer_controls),
|
|
|
|
SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&quat_mi2s_rx_switch_mixer_controls),
|
|
|
|
SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&hfp_pri_aux_switch_mixer_controls),
|
|
|
|
SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&hfp_aux_switch_mixer_controls),
|
|
|
|
SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
|
|
|
|
&hfp_int_switch_mixer_controls),
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
/* Mux Definitions */
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MUX("LSM1 MUX", SND_SOC_NOPM, 0, 0, &lsm1_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM2 MUX", SND_SOC_NOPM, 0, 0, &lsm2_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM3 MUX", SND_SOC_NOPM, 0, 0, &lsm3_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM4 MUX", SND_SOC_NOPM, 0, 0, &lsm4_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM5 MUX", SND_SOC_NOPM, 0, 0, &lsm5_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM6 MUX", SND_SOC_NOPM, 0, 0, &lsm6_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM7 MUX", SND_SOC_NOPM, 0, 0, &lsm7_mux),
|
|
|
|
SND_SOC_DAPM_MUX("LSM8 MUX", SND_SOC_NOPM, 0, 0, &lsm8_mux),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MUX("SLIM_0_RX AANC MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
aanc_slim_0_rx_mux),
|
|
|
|
|
|
|
|
/* Mixer definitions */
|
|
|
|
SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quaternary_mi2s_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tertiary_mi2s_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
secondary_mi2s_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
secondary_mi2s_rx2_mixer_controls,
|
|
|
|
ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mi2s_hl_mixer_controls,
|
|
|
|
ARRAY_SIZE(mi2s_hl_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
primary_mi2s_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quinary_mi2s_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_0_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_1_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_2_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_3_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_0_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_1_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_2_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_3_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
|
|
|
|
/* incall */
|
|
|
|
SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
incall_music_delivery_mixer_controls,
|
|
|
|
ARRAY_SIZE(incall_music_delivery_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
incall_music2_delivery_mixer_controls,
|
|
|
|
ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
2024-09-09 08:57:42 +00:00
|
|
|
slimbus_4_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_6_rx_mixer_controls,
|
|
|
|
ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
/* Voice Mixer */
|
|
|
|
SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(pri_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
sec_i2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
sec_mi2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
bt_sco_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
afe_pcm_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
aux_pcm_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
sec_aux_pcm_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
hdmi_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
mi2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
pri_mi2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_mi2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0,
|
|
|
|
quin_mi2s_rx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("Voice_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_voice_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voice_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("Voice2_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_voice2_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voice2_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voip_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("VoLTE_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_volte_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_volte_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("VoWLAN_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_vowlan_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_vowlan_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tx_voice2_stub_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
/* port mixer */
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
sbus_1_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
bt_sco_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
primary_mi2s_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_mi2s_rx_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_0_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_1_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_2_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
tert_tdm_rx_3_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_0_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_1_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_2_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
|
|
|
|
quat_tdm_rx_3_port_mixer_controls,
|
|
|
|
ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
|
|
|
|
SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
|
|
|
|
SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
|
|
|
|
ARRAY_SIZE(tx_qchat_mixer_controls)),
|
2024-09-09 08:52:07 +00:00
|
|
|
/* Virtual Pins to force backends ON atm */
|
|
|
|
SND_SOC_DAPM_OUTPUT("BE_OUT"),
|
|
|
|
SND_SOC_DAPM_INPUT("BE_IN"),
|
|
|
|
|
|
|
|
SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&slim0_rx_vi_fb_lch_mux),
|
2024-09-09 08:57:42 +00:00
|
|
|
SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&slim0_rx_vi_fb_rch_mux),
|
|
|
|
SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&mi2s_rx_vi_fb_mux),
|
|
|
|
|
|
|
|
SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&voc_ext_ec_mux),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul1),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul2),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul4),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul5),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul6),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul8),
|
|
|
|
SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
|
|
|
|
&ext_ec_ref_mux_ul9),
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct snd_soc_dapm_route intercon[] = {
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"HDMI Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"HDMI Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"HDMI Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"HDMI Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"HDMI Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"HDMI Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"HDMI Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"HDMI Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"HDMI Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"HDMI Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"HDMI Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"HDMI Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"HDMI Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"HDMI Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"HDMI Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"HDMI Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"HDMI", NULL, "HDMI Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
|
|
|
|
|
|
|
|
/* incall */
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
|
|
|
|
{"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
|
|
|
|
{"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
|
|
|
|
{"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
|
|
|
|
|
|
|
|
{"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
|
|
|
|
{"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"MultiMedia5 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
|
|
|
|
{"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
|
|
|
|
{"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
|
|
|
|
{"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
|
|
|
|
{"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
|
|
|
|
{"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
|
|
|
|
{"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MM_UL1", NULL, "MultiMedia1 Mixer"},
|
|
|
|
{"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"MM_UL2", NULL, "MultiMedia2 Mixer"},
|
|
|
|
{"MM_UL4", NULL, "MultiMedia4 Mixer"},
|
|
|
|
{"MM_UL5", NULL, "MultiMedia5 Mixer"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MM_UL6", NULL, "MultiMedia6 Mixer"},
|
|
|
|
{"MM_UL8", NULL, "MultiMedia8 Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
|
|
|
|
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
|
|
|
|
|
|
|
|
{"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"PRI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"PRI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"PRI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"SEC_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"SEC_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"SEC_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIM_0_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIM_0_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AFE_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AUX_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"HDMI_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"HDMI_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"HDMI_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"HDMI_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"HDMI", NULL, "HDMI_RX_Voice Mixer"},
|
|
|
|
{"HDMI", NULL, "HDMI_DL_HL"},
|
|
|
|
|
|
|
|
{"MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
|
|
|
|
{"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
|
|
|
|
{"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "CSVoice", "CS-VOICE_DL1"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "Voice2", "VOICE2_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "VoLTE", "VoLTE_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "VoWLAN", "VoWLAN_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
|
|
|
|
{"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"VOC_EXT_EC MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"VOC_EXT_EC MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"VOC_EXT_EC MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"VOC_EXT_EC MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
{"VOC_EXT_EC MUX", "SLIM_1_TX" , "SLIMBUS_1_TX"},
|
|
|
|
{"CS-VOICE_UL1", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
{"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
{"VoLTE_UL", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
{"VOICE2_UL", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
{"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
{"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX" , "SLIMBUS_1_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX" , "PRI_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX" , "SEC_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX" , "TERT_MI2S_TX"},
|
|
|
|
{"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX" , "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
|
|
|
|
{"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
|
|
|
|
{"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
|
|
|
|
{"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
|
|
|
|
{"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
|
|
|
|
{"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
|
|
|
|
{"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voice_Tx Mixer", "PRI_TX_Voice", "PRI_I2S_TX"},
|
|
|
|
{"Voice_Tx Mixer", "PRI_MI2S_TX_Voice", "PRI_MI2S_TX"},
|
|
|
|
{"Voice_Tx Mixer", "MI2S_TX_Voice", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice_Tx Mixer", "TERT_MI2S_TX_Voice", "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voice_Tx Mixer", "SLIM_0_TX_Voice", "SLIMBUS_0_TX"},
|
|
|
|
{"Voice_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice", "INT_BT_SCO_TX"},
|
|
|
|
{"Voice_Tx Mixer", "AFE_PCM_TX_Voice", "PCM_TX"},
|
|
|
|
{"Voice_Tx Mixer", "AUX_PCM_TX_Voice", "AUX_PCM_TX"},
|
|
|
|
{"Voice_Tx Mixer", "SEC_AUX_PCM_TX_Voice", "SEC_AUX_PCM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice_Tx Mixer", "SEC_MI2S_TX_Voice", "SEC_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"CS-VOICE_UL1", NULL, "Voice_Tx Mixer"},
|
|
|
|
|
|
|
|
{"Voice2_Tx Mixer", "PRI_TX_Voice2", "PRI_I2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice2_Tx Mixer", "PRI_MI2S_TX_Voice2", "PRI_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voice2_Tx Mixer", "MI2S_TX_Voice2", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice2_Tx Mixer", "TERT_MI2S_TX_Voice2", "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voice2_Tx Mixer", "SLIM_0_TX_Voice2", "SLIMBUS_0_TX"},
|
|
|
|
{"Voice2_Tx Mixer", "INTERNAL_BT_SCO_TX_Voice2", "INT_BT_SCO_TX"},
|
|
|
|
{"Voice2_Tx Mixer", "AFE_PCM_TX_Voice2", "PCM_TX"},
|
|
|
|
{"Voice2_Tx Mixer", "AUX_PCM_TX_Voice2", "AUX_PCM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice2_Tx Mixer", "SEC_AUX_PCM_TX_Voice2", "SEC_AUX_PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"VOICE2_UL", NULL, "Voice2_Tx Mixer"},
|
|
|
|
|
|
|
|
{"VoLTE_Tx Mixer", "PRI_TX_VoLTE", "PRI_I2S_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "SLIM_0_TX_VoLTE", "SLIMBUS_0_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "INTERNAL_BT_SCO_TX_VoLTE", "INT_BT_SCO_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "AFE_PCM_TX_VoLTE", "PCM_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "AUX_PCM_TX_VoLTE", "AUX_PCM_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "SEC_AUX_PCM_TX_VoLTE", "SEC_AUX_PCM_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "MI2S_TX_VoLTE", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"VoLTE_Tx Mixer", "PRI_MI2S_TX_VoLTE", "PRI_MI2S_TX"},
|
|
|
|
{"VoLTE_Tx Mixer", "TERT_MI2S_TX_VoLTE", "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"VoLTE_UL", NULL, "VoLTE_Tx Mixer"},
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
{"VoWLAN_Tx Mixer", "PRI_TX_VoWLAN", "PRI_I2S_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "SLIM_0_TX_VoWLAN", "SLIMBUS_0_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "INTERNAL_BT_SCO_TX_VoWLAN", "INT_BT_SCO_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "AFE_PCM_TX_VoWLAN", "PCM_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "AUX_PCM_TX_VoWLAN", "AUX_PCM_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "SEC_AUX_PCM_TX_VoWLAN", "SEC_AUX_PCM_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "MI2S_TX_VoWLAN", "MI2S_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "PRI_MI2S_TX_VoWLAN", "PRI_MI2S_TX"},
|
|
|
|
{"VoWLAN_Tx Mixer", "TERT_MI2S_TX_VoWLAN", "TERT_MI2S_TX"},
|
|
|
|
{"VoWLAN_UL", NULL, "VoWLAN_Tx Mixer"},
|
|
|
|
|
|
|
|
{"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
|
|
|
|
{"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
|
|
|
|
{"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
|
|
|
|
|
|
|
|
{"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
|
|
|
|
{"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
|
|
|
|
{"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
|
|
|
|
{"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
|
|
|
|
{"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
|
|
|
|
{"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
|
|
|
|
{"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
|
|
|
|
{"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
|
|
|
|
{"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
|
|
|
|
{"VOIP_UL", NULL, "Voip_Tx Mixer"},
|
2024-09-09 08:57:42 +00:00
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
|
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
|
|
|
|
{"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
|
|
|
|
{"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
|
|
|
|
{"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
|
|
|
|
{"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
|
|
|
|
{"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
|
|
|
|
{"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
|
|
|
|
{"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
|
|
|
|
{"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
|
|
|
|
{"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
|
|
|
|
{"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
|
|
|
|
|
|
|
|
{"LSM1 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM1 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM1 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM1 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM1 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"LSM1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"LSM1_UL_HL", NULL, "LSM1 MUX"},
|
|
|
|
|
|
|
|
{"LSM2 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM2 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM2 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM2 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM2 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"LSM2_UL_HL", NULL, "LSM2 MUX"},
|
|
|
|
|
|
|
|
|
|
|
|
{"LSM3 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM3 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM3 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM3 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM3 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"LSM3_UL_HL", NULL, "LSM3 MUX"},
|
|
|
|
|
|
|
|
|
|
|
|
{"LSM4 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM4 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM4 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM4 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM4 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"LSM4_UL_HL", NULL, "LSM4 MUX"},
|
|
|
|
|
|
|
|
{"LSM5 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM5 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM5 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM5 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM5 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"LSM5_UL_HL", NULL, "LSM5 MUX"},
|
|
|
|
|
|
|
|
{"LSM6 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM6 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM6 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM6 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM6 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM6_UL_HL", NULL, "LSM6 MUX"},
|
|
|
|
|
|
|
|
|
|
|
|
{"LSM7 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM7 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM7 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM7 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM7 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM7_UL_HL", NULL, "LSM7 MUX"},
|
|
|
|
|
|
|
|
|
|
|
|
{"LSM8 MUX", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"LSM8 MUX", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"LSM8 MUX", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"LSM8 MUX", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"LSM8 MUX", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
|
|
|
|
{"LSM8_UL_HL", NULL, "LSM8 MUX"},
|
|
|
|
|
|
|
|
|
|
|
|
{"CPE_LSM_UL_HL", NULL, "BE_IN"},
|
|
|
|
{"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
|
|
|
|
{"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
|
|
|
|
{"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"INT_FM_RX", NULL, "INTFM_DL_HL"},
|
|
|
|
{"INTFM_UL_HL", NULL, "INT_FM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTHFP_UL_HL", "NULL", "HFP_PRI_AUX_UL_HL"},
|
|
|
|
{"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
|
|
|
|
{"INTHFP_UL_HL", "NULL", "HFP_AUX_UL_HL"},
|
|
|
|
{"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
|
|
|
|
{"INTHFP_UL_HL", "NULL", "HFP_INT_UL_HL"},
|
|
|
|
{"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
|
|
|
|
{"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
|
|
|
|
{"MI2S_RX", NULL, "MI2S_DL_HL"},
|
|
|
|
{"MI2S_UL_HL", NULL, "MI2S_TX"},
|
|
|
|
{"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
|
|
|
|
{"PCM_RX", NULL, "PCM_RX_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
|
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
|
|
|
|
|
|
|
|
{"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
|
|
|
|
{"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
|
|
|
|
{"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
|
|
|
|
{"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
|
|
|
|
{"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
|
|
|
|
|
|
|
|
{"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
|
|
|
|
{"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_0_DL_HL"},
|
|
|
|
{"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_0_DL_HL"},
|
|
|
|
{"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_0_DL_HL"},
|
|
|
|
{"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
|
|
|
|
{"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
|
|
|
|
{"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
|
|
|
|
{"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
|
|
|
|
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
|
|
|
|
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
|
|
|
|
{"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
|
|
|
|
{"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
|
|
|
|
{"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
|
|
|
|
|
|
|
|
{"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
|
|
|
|
|
|
|
|
{"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
{"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"STUB_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"STUB_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"STUB_RX", NULL, "STUB_RX Mixer"},
|
|
|
|
{"SLIMBUS_1_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_1_RX Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"SLIMBUS_1_RX Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
|
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"AFE_PCM_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_3_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
|
|
|
|
{"SLIMBUS_3_RX_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
|
|
|
|
|
|
|
|
{"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
|
|
|
{"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
|
|
|
{"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
|
|
|
|
{"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
|
|
|
|
{"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
|
|
|
|
{"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
|
|
|
|
{"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
|
|
|
|
|
|
|
|
|
|
|
|
{"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"HDMI", NULL, "HDMI_RX Port Mixer"},
|
|
|
|
|
|
|
|
{"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
|
|
|
|
|
|
|
|
{"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
|
|
|
{"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
|
|
|
|
{"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
|
{"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
|
|
|
|
{"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
{"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
|
|
|
|
{"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
|
|
|
{"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
/* Backend Enablement */
|
|
|
|
|
|
|
|
{"BE_OUT", NULL, "PRI_I2S_RX"},
|
|
|
|
{"BE_OUT", NULL, "SEC_I2S_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_0_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_1_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_3_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_4_RX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "SLIMBUS_5_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_6_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"BE_OUT", NULL, "HDMI"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "SPDIF_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"BE_OUT", NULL, "MI2S_RX"},
|
|
|
|
{"BE_OUT", NULL, "QUAT_MI2S_RX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "QUIN_MI2S_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"BE_OUT", NULL, "TERT_MI2S_RX"},
|
|
|
|
{"BE_OUT", NULL, "SEC_MI2S_RX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"BE_OUT", NULL, "PRI_MI2S_RX"},
|
|
|
|
{"BE_OUT", NULL, "INT_BT_SCO_RX"},
|
|
|
|
{"BE_OUT", NULL, "INT_FM_RX"},
|
|
|
|
{"BE_OUT", NULL, "PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_3_RX"},
|
|
|
|
{"BE_OUT", NULL, "AUX_PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "INT_BT_SCO_RX"},
|
|
|
|
{"BE_OUT", NULL, "INT_FM_RX"},
|
|
|
|
{"BE_OUT", NULL, "PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "SLIMBUS_3_RX"},
|
|
|
|
{"BE_OUT", NULL, "AUX_PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
|
|
|
|
{"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
|
|
|
|
{"BE_OUT", NULL, "TERT_TDM_RX_0"},
|
|
|
|
{"BE_OUT", NULL, "TERT_TDM_RX_1"},
|
|
|
|
{"BE_OUT", NULL, "TERT_TDM_RX_2"},
|
|
|
|
{"BE_OUT", NULL, "TERT_TDM_RX_3"},
|
|
|
|
{"BE_OUT", NULL, "QUAT_TDM_RX_0"},
|
|
|
|
{"BE_OUT", NULL, "QUAT_TDM_RX_1"},
|
|
|
|
{"BE_OUT", NULL, "QUAT_TDM_RX_2"},
|
|
|
|
{"BE_OUT", NULL, "QUAT_TDM_RX_3"},
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
{"PRI_I2S_TX", NULL, "BE_IN"},
|
|
|
|
{"MI2S_TX", NULL, "BE_IN"},
|
|
|
|
{"QUAT_MI2S_TX", NULL, "BE_IN"},
|
|
|
|
{"PRI_MI2S_TX", NULL, "BE_IN"},
|
|
|
|
{"TERT_MI2S_TX", NULL, "BE_IN"},
|
|
|
|
{"SEC_MI2S_TX", NULL, "BE_IN"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SENARY_MI2S_TX", NULL, "BE_IN" },
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_TX", NULL, "BE_IN" },
|
|
|
|
{"SLIMBUS_1_TX", NULL, "BE_IN" },
|
|
|
|
{"SLIMBUS_3_TX", NULL, "BE_IN" },
|
|
|
|
{"SLIMBUS_4_TX", NULL, "BE_IN" },
|
|
|
|
{"SLIMBUS_5_TX", NULL, "BE_IN" },
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_6_TX", NULL, "BE_IN" },
|
2024-09-09 08:52:07 +00:00
|
|
|
{"INT_BT_SCO_TX", NULL, "BE_IN"},
|
|
|
|
{"INT_FM_TX", NULL, "BE_IN"},
|
|
|
|
{"PCM_TX", NULL, "BE_IN"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"BE_OUT", NULL, "SLIMBUS_3_RX"},
|
|
|
|
{"BE_OUT", NULL, "STUB_RX"},
|
|
|
|
{"STUB_TX", NULL, "BE_IN"},
|
|
|
|
{"STUB_1_TX", NULL, "BE_IN"},
|
|
|
|
{"BE_OUT", NULL, "AUX_PCM_RX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"AUX_PCM_TX", NULL, "BE_IN"},
|
|
|
|
{"SEC_AUX_PCM_TX", NULL, "BE_IN"},
|
|
|
|
{"INCALL_RECORD_TX", NULL, "BE_IN"},
|
|
|
|
{"INCALL_RECORD_RX", NULL, "BE_IN"},
|
|
|
|
{"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
|
|
|
|
{"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
|
2024-09-09 08:52:07 +00:00
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
|
2024-09-09 08:57:42 +00:00
|
|
|
{"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
|
|
|
|
{"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
|
|
|
|
{"TERT_TDM_TX_0", NULL, "BE_IN"},
|
|
|
|
{"TERT_TDM_TX_1", NULL, "BE_IN"},
|
|
|
|
{"TERT_TDM_TX_2", NULL, "BE_IN"},
|
|
|
|
{"TERT_TDM_TX_3", NULL, "BE_IN"},
|
|
|
|
{"QUAT_TDM_TX_0", NULL, "BE_IN"},
|
|
|
|
{"QUAT_TDM_TX_1", NULL, "BE_IN"},
|
|
|
|
{"QUAT_TDM_TX_2", NULL, "BE_IN"},
|
|
|
|
{"QUAT_TDM_TX_3", NULL, "BE_IN"},
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
|
|
|
|
struct snd_pcm_hw_params *params)
|
|
|
|
{
|
|
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
|
|
unsigned int be_id = rtd->dai_link->be_id;
|
|
|
|
|
|
|
|
if (be_id >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_err("%s: unexpected be_id %d\n", __func__, be_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
msm_bedais[be_id].sample_rate = params_rate(params);
|
|
|
|
msm_bedais[be_id].channel = params_channels(params);
|
|
|
|
msm_bedais[be_id].format = params_format(params);
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s: BE Sample Rate (%d) format (%d) be_id %d\n",
|
|
|
|
__func__, msm_bedais[be_id].sample_rate,
|
|
|
|
msm_bedais[be_id].format, be_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
|
|
|
|
{
|
|
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
|
|
unsigned int be_id = rtd->dai_link->be_id;
|
|
|
|
int i, session_type, path_type, topology;
|
|
|
|
struct msm_pcm_routing_bdai_data *bedai;
|
2024-09-09 08:57:42 +00:00
|
|
|
struct msm_pcm_routing_fdai_data *fdai;
|
|
|
|
|
|
|
|
pr_debug("%s: substream->pcm->id:%s\n",
|
|
|
|
__func__, substream->pcm->id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (be_id >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_err("%s: unexpected be_id %d\n", __func__, be_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
bedai = &msm_bedais[be_id];
|
|
|
|
session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
|
|
|
|
0 : 1);
|
|
|
|
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
|
|
|
else
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
for_each_set_bit(i, &bedai->fe_sessions, MSM_FRONTEND_DAI_MM_SIZE) {
|
2024-09-09 08:57:42 +00:00
|
|
|
fdai = &fe_dai_map[i][session_type];
|
|
|
|
if (fdai->strm_id != INVALID_SESSION) {
|
|
|
|
int idx;
|
|
|
|
int port_id;
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[i][session_type][be_id];
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
|
|
|
|
if (test_bit(idx, &copp))
|
|
|
|
break;
|
|
|
|
fdai->be_srate = bedai->sample_rate;
|
|
|
|
port_id = bedai->port_id;
|
|
|
|
topology = adm_get_topology_for_port_copp_idx(port_id,
|
|
|
|
idx);
|
|
|
|
adm_close(bedai->port_id, fdai->perf_mode, idx);
|
|
|
|
pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
|
|
|
|
__func__, copp, i, session_type, be_id,
|
|
|
|
topology);
|
|
|
|
clear_bit(idx,
|
|
|
|
&session_copp_map[i][session_type][be_id]);
|
|
|
|
if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(bedai->compr_passthr_mode == LEGACY_PCM))
|
|
|
|
msm_pcm_routing_deinit_pp(bedai->port_id,
|
|
|
|
topology);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
bedai->compr_passthr_mode = LEGACY_PCM;
|
2024-09-09 08:52:07 +00:00
|
|
|
bedai->active = 0;
|
|
|
|
bedai->sample_rate = 0;
|
|
|
|
bedai->channel = 0;
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
|
|
|
|
{
|
|
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
|
|
unsigned int be_id = rtd->dai_link->be_id;
|
2024-09-09 08:57:42 +00:00
|
|
|
int i, path_type, session_type, topology;
|
2024-09-09 08:52:07 +00:00
|
|
|
struct msm_pcm_routing_bdai_data *bedai;
|
2024-09-09 08:57:42 +00:00
|
|
|
u32 channels, sample_rate;
|
2024-09-09 08:52:07 +00:00
|
|
|
bool playback, capture;
|
2024-09-09 08:57:42 +00:00
|
|
|
uint16_t bits_per_sample = 16, voc_path_type;
|
|
|
|
struct msm_pcm_routing_fdai_data *fdai;
|
|
|
|
u32 session_id;
|
|
|
|
|
|
|
|
pr_debug("%s: substream->pcm->id:%s\n",
|
|
|
|
__func__, substream->pcm->id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
if (be_id >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_err("%s: unexpected be_id %d\n", __func__, be_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
bedai = &msm_bedais[be_id];
|
|
|
|
|
|
|
|
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
|
2024-09-09 08:57:42 +00:00
|
|
|
if (bedai->compr_passthr_mode != LEGACY_PCM)
|
|
|
|
path_type = ADM_PATH_COMPRESSED_RX;
|
|
|
|
else
|
|
|
|
path_type = ADM_PATH_PLAYBACK;
|
2024-09-09 08:52:07 +00:00
|
|
|
session_type = SESSION_TYPE_RX;
|
|
|
|
} else {
|
|
|
|
path_type = ADM_PATH_LIVE_REC;
|
|
|
|
session_type = SESSION_TYPE_TX;
|
|
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&routing_lock);
|
|
|
|
if (bedai->active == 1)
|
|
|
|
goto done; /* Ignore prepare if back-end already active */
|
|
|
|
|
|
|
|
/* AFE port is not active at this point. However, still
|
|
|
|
* go ahead setting active flag under the notion that
|
|
|
|
* QDSP6 is able to handle ADM starting before AFE port
|
|
|
|
* is started.
|
|
|
|
*/
|
|
|
|
bedai->active = 1;
|
|
|
|
playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
|
|
|
|
capture = substream->stream == SNDRV_PCM_STREAM_CAPTURE;
|
|
|
|
|
|
|
|
for_each_set_bit(i, &bedai->fe_sessions, MSM_FRONTEND_DAI_MM_SIZE) {
|
2024-09-09 08:57:42 +00:00
|
|
|
fdai = &fe_dai_map[i][session_type];
|
|
|
|
if (fdai->strm_id != INVALID_SESSION) {
|
|
|
|
int app_type, app_type_idx, copp_idx, acdb_dev_id;
|
|
|
|
if (session_type == SESSION_TYPE_TX &&
|
|
|
|
fdai->be_srate &&
|
|
|
|
(fdai->be_srate != bedai->sample_rate)) {
|
|
|
|
pr_debug("%s: flush strm %d diff BE rates\n",
|
|
|
|
__func__,
|
|
|
|
fdai->strm_id);
|
|
|
|
|
|
|
|
if (fdai->event_info.event_func)
|
|
|
|
fdai->event_info.event_func(
|
|
|
|
MSM_PCM_RT_EVT_BUF_RECFG,
|
|
|
|
fdai->event_info.priv_data);
|
|
|
|
fdai->be_srate = 0; /* might not need it */
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
if (bedai->format == SNDRV_PCM_FORMAT_S24_LE)
|
|
|
|
bits_per_sample = 24;
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
app_type = playback ?
|
|
|
|
fe_dai_app_type_cfg[i].app_type : 0;
|
|
|
|
if (app_type) {
|
|
|
|
app_type_idx =
|
|
|
|
msm_pcm_routing_get_app_type_idx(app_type);
|
|
|
|
sample_rate =
|
|
|
|
fe_dai_app_type_cfg[i].sample_rate;
|
|
|
|
bits_per_sample =
|
|
|
|
app_type_cfg[app_type_idx].bit_width;
|
|
|
|
} else
|
|
|
|
sample_rate = bedai->sample_rate;
|
|
|
|
channels = bedai->channel;
|
|
|
|
acdb_dev_id = fe_dai_app_type_cfg[i].acdb_dev_id;
|
|
|
|
topology = msm_routing_get_adm_topology(path_type, i);
|
|
|
|
copp_idx = adm_open(bedai->port_id, path_type,
|
|
|
|
sample_rate, channels, topology,
|
|
|
|
fdai->perf_mode, bits_per_sample,
|
|
|
|
app_type, acdb_dev_id);
|
|
|
|
if ((copp_idx < 0) ||
|
|
|
|
(copp_idx >= MAX_COPPS_PER_PORT)) {
|
|
|
|
pr_err("%s: adm open failed\n", __func__);
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
return -EINVAL;
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
|
|
|
|
__func__, i, session_type, be_id);
|
|
|
|
set_bit(copp_idx,
|
|
|
|
&session_copp_map[i][session_type][be_id]);
|
|
|
|
|
|
|
|
if (msm_is_fractional_resample_needed(
|
|
|
|
sample_rate,
|
|
|
|
bedai->sample_rate))
|
|
|
|
adm_copp_mfc_cfg(
|
|
|
|
bedai->port_id, copp_idx,
|
|
|
|
bedai->sample_rate);
|
|
|
|
|
|
|
|
msm_pcm_routing_build_matrix(i, session_type, path_type,
|
|
|
|
fdai->perf_mode);
|
|
|
|
if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
|
|
|
|
(bedai->compr_passthr_mode ==
|
|
|
|
LEGACY_PCM))
|
|
|
|
msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
|
|
|
|
topology, channels);
|
|
|
|
}
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for_each_set_bit(i, &bedai->fe_sessions, MSM_FRONTEND_DAI_MAX) {
|
|
|
|
session_id = msm_pcm_routing_get_voc_sessionid(i);
|
|
|
|
if (session_id) {
|
|
|
|
pr_debug("%s voice session_id: 0x%x",
|
|
|
|
__func__, session_id);
|
|
|
|
|
|
|
|
if (session_type == SESSION_TYPE_TX)
|
|
|
|
voc_path_type = TX_PATH;
|
|
|
|
else
|
|
|
|
voc_path_type = RX_PATH;
|
|
|
|
|
|
|
|
voc_set_route_flag(session_id, voc_path_type, 1);
|
|
|
|
voc_set_device_config(session_id, voc_path_type,
|
|
|
|
bedai->channel, bedai->port_id);
|
|
|
|
|
|
|
|
if (voc_get_route_flag(session_id, RX_PATH) &&
|
|
|
|
voc_get_route_flag(session_id, TX_PATH))
|
|
|
|
voc_enable_device(session_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
done:
|
|
|
|
mutex_unlock(&routing_lock);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_send_device_pp_params(int port_id, int copp_idx)
|
2024-09-09 08:52:07 +00:00
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
int index, topo_id, be_idx;
|
|
|
|
unsigned long pp_config = 0;
|
|
|
|
bool mute_on;
|
|
|
|
int latency;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (port_id != HDMI_RX) {
|
|
|
|
pr_err("%s: Device pp params on invalid port %d\n",
|
|
|
|
__func__, port_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
|
|
|
|
if (port_id == msm_bedais[be_idx].port_id)
|
|
|
|
break;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (be_idx >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
|
|
|
|
if (msm_bedais_pp_params[index].port_id == port_id)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
|
|
|
|
pr_err("%s: Invalid backend pp params index %d\n",
|
|
|
|
__func__, index);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
|
|
|
|
if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
|
|
|
|
pr_err("%s: Invalid passthrough topology 0x%x\n",
|
|
|
|
__func__, topo_id);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
pp_config = msm_bedais_pp_params[index].pp_params_config;
|
|
|
|
if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
|
|
|
|
pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
|
|
|
|
clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
|
|
|
|
mute_on = msm_bedais_pp_params[index].mute_on;
|
|
|
|
if ((msm_bedais[be_idx].active) &&
|
|
|
|
(msm_bedais[be_idx].compr_passthr_mode !=
|
|
|
|
LEGACY_PCM))
|
|
|
|
adm_send_compressed_device_mute(port_id,
|
|
|
|
copp_idx,
|
|
|
|
mute_on);
|
|
|
|
}
|
|
|
|
if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
|
|
|
|
pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
|
|
|
|
clear_bit(ADM_PP_PARAM_LATENCY_BIT,
|
|
|
|
&pp_config);
|
|
|
|
latency = msm_bedais_pp_params[index].latency;
|
|
|
|
if ((msm_bedais[be_idx].active) &&
|
|
|
|
(msm_bedais[be_idx].compr_passthr_mode !=
|
|
|
|
LEGACY_PCM))
|
|
|
|
adm_send_compressed_device_latency(port_id,
|
|
|
|
copp_idx,
|
|
|
|
latency);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
int pp_id = ucontrol->value.integer.value[0];
|
|
|
|
int port_id = 0;
|
|
|
|
int index, be_idx, i, topo_id, idx;
|
|
|
|
bool mute;
|
|
|
|
int latency;
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
|
|
|
|
port_id = msm_bedais[be_idx].port_id;
|
|
|
|
if (port_id == HDMI_RX)
|
|
|
|
break;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
if (be_idx >= MSM_BACKEND_DAI_MAX) {
|
|
|
|
pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
|
|
|
|
if (msm_bedais_pp_params[index].port_id == port_id)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
|
|
|
|
pr_err("%s: Invalid pp params backend index %d\n",
|
|
|
|
__func__, index);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions,
|
|
|
|
MSM_FRONTEND_DAI_MM_SIZE) {
|
|
|
|
for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
|
|
|
|
unsigned long copp =
|
|
|
|
session_copp_map[i]
|
|
|
|
[SESSION_TYPE_RX][be_idx];
|
|
|
|
if (!test_bit(idx, &copp))
|
|
|
|
continue;
|
|
|
|
topo_id = adm_get_topology_for_port_copp_idx(port_id,
|
|
|
|
idx);
|
|
|
|
if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
|
|
|
|
continue;
|
|
|
|
pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
|
|
|
|
__func__, port_id, copp, msm_bedais[be_idx].active,
|
|
|
|
msm_bedais[be_idx].compr_passthr_mode);
|
|
|
|
switch (pp_id) {
|
|
|
|
case ADM_PP_PARAM_MUTE_ID:
|
|
|
|
pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
|
|
|
|
mute = ucontrol->value.integer.value[1] ? true : false;
|
|
|
|
msm_bedais_pp_params[index].mute_on = mute;
|
|
|
|
set_bit(ADM_PP_PARAM_MUTE_BIT,
|
|
|
|
&msm_bedais_pp_params[index].pp_params_config);
|
|
|
|
if ((msm_bedais[be_idx].active) &&
|
|
|
|
(msm_bedais[be_idx].compr_passthr_mode !=
|
|
|
|
LEGACY_PCM))
|
|
|
|
adm_send_compressed_device_mute(port_id,
|
|
|
|
copp, mute);
|
|
|
|
break;
|
|
|
|
case ADM_PP_PARAM_LATENCY_ID:
|
|
|
|
pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
|
|
|
|
msm_bedais_pp_params[index].latency =
|
|
|
|
ucontrol->value.integer.value[1];
|
|
|
|
set_bit(ADM_PP_PARAM_LATENCY_BIT,
|
|
|
|
&msm_bedais_pp_params[index].pp_params_config);
|
|
|
|
latency = msm_bedais_pp_params[index].latency =
|
|
|
|
ucontrol->value.integer.value[1];
|
|
|
|
if ((msm_bedais[be_idx].active) &&
|
|
|
|
(msm_bedais[be_idx].compr_passthr_mode !=
|
|
|
|
LEGACY_PCM))
|
|
|
|
adm_send_compressed_device_latency(port_id,
|
|
|
|
copp, latency);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
pr_info("%s, device pp param %d not supported\n",
|
|
|
|
__func__, pp_id);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
|
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
|
{
|
|
|
|
pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
|
|
|
|
return 0;
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
|
|
|
|
SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
|
|
|
|
0, 3, msm_routing_get_device_pp_params_mixer,
|
|
|
|
msm_routing_put_device_pp_params_mixer),
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct snd_pcm_ops msm_routing_pcm_ops = {
|
|
|
|
.hw_params = msm_pcm_routing_hw_params,
|
|
|
|
.close = msm_pcm_routing_close,
|
|
|
|
.prepare = msm_pcm_routing_prepare,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Not used but frame seems to require it */
|
|
|
|
static int msm_routing_probe(struct snd_soc_platform *platform)
|
|
|
|
{
|
|
|
|
snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
|
|
|
|
ARRAY_SIZE(msm_qdsp6_widgets));
|
|
|
|
snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
|
|
|
|
ARRAY_SIZE(intercon));
|
|
|
|
|
|
|
|
snd_soc_dapm_new_widgets(platform->component.dapm.card);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform, lsm_function,
|
|
|
|
ARRAY_SIZE(lsm_function));
|
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform,
|
|
|
|
aanc_slim_0_rx_mux,
|
|
|
|
ARRAY_SIZE(aanc_slim_0_rx_mux));
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_add_platform_controls(platform, msm_voc_session_controls,
|
|
|
|
ARRAY_SIZE(msm_voc_session_controls));
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
snd_soc_add_platform_controls(platform, app_type_cfg_controls,
|
|
|
|
ARRAY_SIZE(app_type_cfg_controls));
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform,
|
2024-09-09 08:57:42 +00:00
|
|
|
stereo_to_custom_stereo_controls,
|
|
|
|
ARRAY_SIZE(stereo_to_custom_stereo_controls));
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
msm_qti_pp_add_controls(platform);
|
|
|
|
|
|
|
|
msm_dts_srs_tm_add_controls(platform);
|
|
|
|
|
|
|
|
msm_dolby_dap_add_controls(platform);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform,
|
2024-09-09 08:57:42 +00:00
|
|
|
use_ds1_or_ds2_controls,
|
|
|
|
ARRAY_SIZE(use_ds1_or_ds2_controls));
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform,
|
2024-09-09 08:57:42 +00:00
|
|
|
device_pp_params_mixer_controls,
|
|
|
|
ARRAY_SIZE(device_pp_params_mixer_controls));
|
|
|
|
|
|
|
|
msm_dts_eagle_add_controls(platform);
|
|
|
|
|
|
|
|
snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
|
|
|
|
ARRAY_SIZE(msm_source_tracking_controls));
|
2024-09-09 08:52:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
|
|
|
|
{
|
|
|
|
return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
|
|
|
|
}
|
|
|
|
|
|
|
|
void msm_routing_pcm_free(struct snd_pcm *pcm)
|
|
|
|
{
|
|
|
|
msm_pcm_routing_hwdep_free(pcm);
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static struct snd_soc_platform_driver msm_soc_routing_platform = {
|
|
|
|
.ops = &msm_routing_pcm_ops,
|
|
|
|
.probe = msm_routing_probe,
|
2024-09-09 08:57:42 +00:00
|
|
|
.pcm_new = msm_routing_pcm_new,
|
|
|
|
.pcm_free = msm_routing_pcm_free,
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int msm_routing_pcm_probe(struct platform_device *pdev)
|
2024-09-09 08:52:07 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
|
|
|
|
return snd_soc_register_platform(&pdev->dev,
|
|
|
|
&msm_soc_routing_platform);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_pcm_remove(struct platform_device *pdev)
|
|
|
|
{
|
|
|
|
snd_soc_unregister_platform(&pdev->dev);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct of_device_id msm_pcm_routing_dt_match[] = {
|
|
|
|
{.compatible = "qcom,msm-pcm-routing"},
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
|
|
|
|
|
|
|
|
static struct platform_driver msm_routing_pcm_driver = {
|
|
|
|
.driver = {
|
|
|
|
.name = "msm-pcm-routing",
|
|
|
|
.owner = THIS_MODULE,
|
|
|
|
.of_match_table = msm_pcm_routing_dt_match,
|
|
|
|
},
|
|
|
|
.probe = msm_routing_pcm_probe,
|
2024-09-09 08:57:42 +00:00
|
|
|
.remove = msm_routing_pcm_remove,
|
2024-09-09 08:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int msm_routing_check_backend_enabled(int fedai_id)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
if (fedai_id >= MSM_FRONTEND_DAI_MM_MAX_ID) {
|
|
|
|
/* bad ID assigned in machine driver */
|
|
|
|
pr_err("%s: bad MM ID\n", __func__);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
|
|
|
|
if (test_bit(fedai_id, &msm_bedais[i].fe_sessions))
|
|
|
|
return msm_bedais[i].active;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
static int get_cal_path(int path_type)
|
|
|
|
{
|
|
|
|
if (path_type == ADM_PATH_PLAYBACK ||
|
|
|
|
path_type == ADM_PATH_COMPRESSED_RX)
|
|
|
|
return RX_DEVICE;
|
|
|
|
else
|
|
|
|
return TX_DEVICE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_set_cal(int32_t cal_type,
|
|
|
|
size_t data_size, void *data)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
ret = cal_utils_set_cal(data_size, data, cal_data, 0, NULL);
|
|
|
|
if (ret < 0) {
|
|
|
|
pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
|
|
|
|
__func__, ret, cal_type);
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
done:
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void msm_routing_delete_cal_data(void)
|
|
|
|
{
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
cal_utils_destroy_cal_types(1, &cal_data);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int msm_routing_init_cal_data(void)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
struct cal_type_info cal_type_info = {
|
|
|
|
{ADM_TOPOLOGY_CAL_TYPE,
|
|
|
|
{NULL, NULL, NULL,
|
|
|
|
msm_routing_set_cal, NULL, NULL} },
|
|
|
|
{NULL, NULL, cal_utils_match_buf_num}
|
|
|
|
};
|
|
|
|
pr_debug("%s\n", __func__);
|
|
|
|
|
|
|
|
ret = cal_utils_create_cal_types(1, &cal_data,
|
|
|
|
&cal_type_info);
|
|
|
|
if (ret < 0) {
|
|
|
|
pr_err("%s: could not create cal type!\n",
|
|
|
|
__func__);
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
err:
|
|
|
|
msm_routing_delete_cal_data();
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
static int __init msm_soc_routing_platform_init(void)
|
|
|
|
{
|
|
|
|
mutex_init(&routing_lock);
|
2024-09-09 08:57:42 +00:00
|
|
|
if (msm_routing_init_cal_data())
|
|
|
|
pr_err("%s: could not init cal data!\n", __func__);
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
return platform_driver_register(&msm_routing_pcm_driver);
|
|
|
|
}
|
|
|
|
module_init(msm_soc_routing_platform_init);
|
|
|
|
|
|
|
|
static void __exit msm_soc_routing_platform_exit(void)
|
|
|
|
{
|
2024-09-09 08:57:42 +00:00
|
|
|
msm_routing_delete_cal_data();
|
2024-09-09 08:52:07 +00:00
|
|
|
platform_driver_unregister(&msm_routing_pcm_driver);
|
|
|
|
}
|
|
|
|
module_exit(msm_soc_routing_platform_exit);
|
|
|
|
|
|
|
|
MODULE_DESCRIPTION("MSM routing platform driver");
|
|
|
|
MODULE_LICENSE("GPL v2");
|