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

Commit 51a4a77d authored by Kuirong Wang's avatar Kuirong Wang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Initialize local variable output_meta_data



The local variable output_meta_data is not initialized if
prtd->meta_data_mode is false. It can lead unexpected behavior.

Change-Id: I1801af9bc9c8bf31a9902388e01f4ae5c165be28
CRs-fixed: 539805
Signed-off-by: default avatarKuirong Wang <kuirongw@codeaurora.org>
parent f7e6c0cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -290,6 +290,7 @@ static int msm_pcm_restart(struct snd_pcm_substream *substream)
	struct output_meta_data_st output_meta_data;

	pr_debug("%s: restart\n", __func__);
	memset(&output_meta_data, 0x0, sizeof(struct output_meta_data_st));
	if (runtime->render_flag & SNDRV_RENDER_STOPPED) {
		buf = prtd->audio_client->port[IN].buf;
		pr_debug("%s:writing %d bytes of buffer[%d] to dsp 2\n",