mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge c3f431c2c7 on remote branch
Change-Id: I6f290310f9a6ea4788dd3ce7d159d83af15c47c6
This commit is contained in:
commit
444ee12f94
1 changed files with 8 additions and 4 deletions
12
dsp/q6adm.c
12
dsp/q6adm.c
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023, 2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -3910,10 +3910,14 @@ void adm_copp_mfc_cfg(int port_id, int copp_idx, int dst_sample_rate)
|
|||
pr_err("%s: unable to get channal map\n", __func__);
|
||||
goto fail_cmd;
|
||||
}
|
||||
|
||||
for (i = 0; i < mfc_cfg.num_channels; i++)
|
||||
mfc_cfg.channel_type[i] =
|
||||
if (mfc_cfg.num_channels <= AUDPROC_MFC_OUT_CHANNELS_MAX) {
|
||||
for (i = 0; i < mfc_cfg.num_channels; i++)
|
||||
mfc_cfg.channel_type[i] =
|
||||
(uint16_t) open.dev_channel_mapping[i];
|
||||
} else {
|
||||
pr_err("%s: size of num_channels is greater than channel type \n", __func__);
|
||||
goto fail_cmd;
|
||||
}
|
||||
|
||||
atomic_set(&this_adm.copp.stat[port_idx][copp_idx], -1);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue