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

Commit 4c10d97a authored by Narsinga Rao Chella's avatar Narsinga Rao Chella Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: remove hard coding of audio COPP topology



The audio COPP topology is hard coded to NULL topology in
case of incall recording use case. This is removed so that
the calibration sent from user space will be applied as is.
This change is needed to be able to fine tune audio
calibration data for incall recording stream.

Change-Id: Iccb3fa14297758efee91ffd902c6a4cf5f397550
Signed-off-by: default avatarNarsinga Rao Chella <nrchella@codeaurora.org>
parent 3005501e
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -732,9 +732,6 @@ int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
			acdb_dev_id = fe_dai_app_type_cfg[fedai_id].acdb_dev_id;
			topology = msm_routing_get_adm_topology(path_type,
								fedai_id);
			if (msm_bedais[i].port_id == VOICE_RECORD_RX ||
			    msm_bedais[i].port_id == VOICE_RECORD_TX)
				topology = NULL_COPP_TOPOLOGY;
			copp_idx = adm_open(msm_bedais[i].port_id, path_type,
					    sample_rate, channels, topology,
					    perf_mode, bits_per_sample,
@@ -946,9 +943,6 @@ static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)

			topology = msm_routing_get_adm_topology(path_type, val);
			acdb_dev_id = fe_dai_app_type_cfg[val].acdb_dev_id;
			if (msm_bedais[reg].port_id == VOICE_RECORD_RX ||
			    msm_bedais[reg].port_id == VOICE_RECORD_TX)
				topology = NULL_COPP_TOPOLOGY;
			copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
					    sample_rate, channels, topology,
					    fdai->perf_mode, bits_per_sample,
@@ -5449,9 +5443,6 @@ static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
			channels = bedai->channel;
			acdb_dev_id = fe_dai_app_type_cfg[i].acdb_dev_id;
			topology = msm_routing_get_adm_topology(path_type, i);
			if (bedai->port_id == VOICE_RECORD_RX ||
			    bedai->port_id == VOICE_RECORD_TX)
				topology = NULL_COPP_TOPOLOGY;
			copp_idx = adm_open(bedai->port_id, path_type,
					    sample_rate, channels, topology,
					    fdai->perf_mode, bits_per_sample,