From ca6e1b40e30309620a3da6586207ea691d63d268 Mon Sep 17 00:00:00 2001 From: Hongtao Peng Date: Thu, 24 Feb 2022 10:30:40 +0800 Subject: [PATCH] dsp: support ADM output map for less then 2 channels Remove the conditional restriction greater than 2 in adm_arrange_mch_map_v8 Change-Id: I3bab28ddb443cd589d8de3751bd19b2a199978ab Signed-off-by: Hongtao Peng --- dsp/q6adm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 dsp/q6adm.c diff --git a/dsp/q6adm.c b/dsp/q6adm.c old mode 100755 new mode 100644 index 53a70d396ab2..9ad4cd90cd20 --- a/dsp/q6adm.c +++ b/dsp/q6adm.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include @@ -2720,9 +2721,8 @@ static int adm_arrange_mch_map_v8( goto non_mch_path; }; - if ((ep_payload->dev_num_channel > 2) && - (port_channel_map[port_idx].set_channel_map || - multi_ch_maps[idx].set_channel_map)) { + if (port_channel_map[port_idx].set_channel_map || + multi_ch_maps[idx].set_channel_map) { if (port_channel_map[port_idx].set_channel_map) memcpy(ep_payload->dev_channel_mapping, port_channel_map[port_idx].channel_mapping,