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

Commit 532db2ae authored by Alexy Joseph's avatar Alexy Joseph Committed by Matt Wagantall
Browse files

ASoC: msm: qdsp6v2: force open ADM in 24-bit for DTS HPX CoPP



Always open ADM in 24 bit depth when opening with DTS HPX
postmix topology as HPX requires 24-bit processing.

Change-Id: Iccd2dde26c919e16144d35679f5ae361f7548392
Signed-off-by: default avatarAlexy Joseph <alexyj@codeaurora.org>
parent 46a8369d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2085,6 +2085,13 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
		 __func__, port_id, path, rate, channel_mode, perf_mode,
		 topology);

	/* For DTS EAGLE only, force 24 bit */
	if ((topology == ADM_CMD_COPP_OPEN_TOPOLOGY_ID_DTS_HPX) &&
		(perf_mode == LEGACY_PCM_MODE)) {
		bit_width = 24;
		pr_debug("%s: Force open adm in 24-bit for DTS HPX topology 0x%x\n",
			__func__, topology);
	}
	port_id = q6audio_convert_virtual_to_portid(port_id);
	port_idx = adm_validate_and_get_port_index(port_id);
	if (port_idx < 0) {