From 9a2dd3bd1d84629aef2efa32db7a9cbb3c3eb6a8 Mon Sep 17 00:00:00 2001 From: Deru Wang Date: Tue, 11 Jan 2022 21:35:14 +0800 Subject: [PATCH] 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: Deru Wang --- asoc/msm-dai-q6-v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/msm-dai-q6-v2.c b/asoc/msm-dai-q6-v2.c index 201aedd3cf24..70ab355ac3c0 100755 --- a/asoc/msm-dai-q6-v2.c +++ b/asoc/msm-dai-q6-v2.c @@ -1,5 +1,5 @@ // 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 @@ -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];