dsp: adm: Obtain path type from session type
In programable channel mixer, path type is derived based on afe port id. Due to this, wrong path type is obtained in case of loopback usecase where Rx port is used to capture ec ref signals. This leads to wrong channel map being set in channel mixer. Instead use session type to obtain path type. Change-Id: I5292ed5eed1366ac28d72e4ca0815ab62e91fa60 Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
0965ec588f
commit
6bd4088d76
@@ -42,6 +42,8 @@
|
|||||||
#define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
|
#define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SESSION_TYPE_RX 0
|
||||||
|
|
||||||
/* ENUM for adm_status */
|
/* ENUM for adm_status */
|
||||||
enum adm_cal_status {
|
enum adm_cal_status {
|
||||||
ADM_STATUS_CALIBRATION_REQUIRED = 0,
|
ADM_STATUS_CALIBRATION_REQUIRED = 0,
|
||||||
@@ -573,7 +575,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,
|
|||||||
adm_pspd_params[3] = ch_mixer->input_channels[channel_index];
|
adm_pspd_params[3] = ch_mixer->input_channels[channel_index];
|
||||||
index = 4;
|
index = 4;
|
||||||
|
|
||||||
path_type = (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
|
path_type = (session_type == SESSION_TYPE_RX) ?
|
||||||
ADM_PATH_PLAYBACK : ADM_PATH_LIVE_REC;
|
ADM_PATH_PLAYBACK : ADM_PATH_LIVE_REC;
|
||||||
|
|
||||||
if (ch_mixer->override_out_ch_map) {
|
if (ch_mixer->override_out_ch_map) {
|
||||||
|
Reference in New Issue
Block a user