Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0cd19e0 authored by kunleiz's avatar kunleiz Committed by Gerrit - the friendly Code Review server
Browse files

dsp: adm: change channel number for SMECNS_V2 module



SMECNS_V2 module in COPreP topology doesn't support
stereo input. Update channel number to mono for
VPM_TX_VOICE_SMECNS_V2_COPP_TOPOLOGY, which contains
SMECNS_V2 module.

Change-Id: I04b971b41328f6a32bf0ff42b21496b49bb4140b
Signed-off-by: default avatarKunlei Zhang <kunleiz@codeaurora.org>
parent 979ae8e7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2833,6 +2833,9 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
	    (topology == VPM_TX_DM_RFECNS_COPP_TOPOLOGY))
		rate = 16000;

	if (topology == VPM_TX_VOICE_SMECNS_V2_COPP_TOPOLOGY)
		channel_mode = 1;

	/*
	 * Routing driver reuses the same adm for streams with the same
	 * app_type, sample_rate etc.
+1 −0
Original line number Diff line number Diff line
@@ -4892,6 +4892,7 @@ struct afe_param_id_lpass_core_shared_clk_cfg {
#define COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY         0x0001076B
#define COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY            0x00010774
#define VPM_TX_SM_ECNS_V2_COPP_TOPOLOGY			0x00010F89
#define VPM_TX_VOICE_SMECNS_V2_COPP_TOPOLOGY		0x10000003
#define VPM_TX_DM_FLUENCE_COPP_TOPOLOGY			0x00010F72
#define VPM_TX_QMIC_FLUENCE_COPP_TOPOLOGY		0x00010F75
#define VPM_TX_DM_RFECNS_COPP_TOPOLOGY			0x00010F86