[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230316162249.17044-1-quic_visr@quicinc.com>
Date: Thu, 16 Mar 2023 21:52:49 +0530
From: Ravulapati Vishnu Vardhan Rao <quic_visr@...cinc.com>
To: <quic_visr@...cinc.com>
CC: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Banajit Goswami <bgoswami@...cinc.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
"moderated list:QCOM AUDIO (ASoC) DRIVERS"
<alsa-devel@...a-project.org>,
open list <linux-kernel@...r.kernel.org>
Subject: [PATCH] ASoC: codecs:rx-macro: Fixing uninitialized variables.
Initializing the uninitialized variables to avoid any unexpected garbage
value to be propagated further.
Signed-off-by: Ravulapati Vishnu Vardhan Rao <quic_visr@...cinc.com>
---
sound/soc/codecs/lpass-rx-macro.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c
index a73a7d7a1c0a..0c8b79ff2fc5 100644
--- a/sound/soc/codecs/lpass-rx-macro.c
+++ b/sound/soc/codecs/lpass-rx-macro.c
@@ -2219,6 +2219,8 @@ static void rx_macro_hd2_control(struct snd_soc_component *component,
u16 interp_idx, int event)
{
u16 hd2_scale_reg, hd2_enable_reg;
+ hd2_scale_reg = 0;
+ hd2_enable_reg = 0;
switch (interp_idx) {
case INTERP_HPHL:
--
2.17.1
Powered by blists - more mailing lists