mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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 <quic_hongtaop@quicinc.com>
This commit is contained in:
parent
dd9977f073
commit
ca6e1b40e3
1 changed files with 3 additions and 3 deletions
6
dsp/q6adm.c
Executable file → Normal file
6
dsp/q6adm.c
Executable file → Normal file
|
|
@ -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 <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue