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

Commit 9a2dd3bd authored by Deru Wang's avatar Deru Wang
Browse files

asoc: set default value for port_id of logging kcontrol



Uninitialized values may cause the get function
of logging kcontrol to exit abnormally with error on
auto LA platform.

Change-Id: Id1f91a5454daafe499211763e26572bfe5dcbd47
Signed-off-by: default avatarDeru Wang <quic_deruwang@quicinc.com>
parent 7743f757
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2022, The Linux Foundation. All rights reserved.
 */

#include <linux/init.h>
@@ -474,7 +474,7 @@ static const struct soc_enum tdm_config_enum[] = {
	SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(tdm_header_type), tdm_header_type),
};

static u16 afe_port_logging_port_id;
static u16 afe_port_logging_port_id = 0x9000;

static bool afe_port_logging_item[IDX_TDM_MAX];