Browse Source

dsp: voice: Reset music_info on SSR

Reset music_info playback states during SSR to fix incall music session
failure after SSR.
Music delivery session requests are getting ignored if the state is not reset.

Change-Id: I7dd736baa538fb3697c874230c5a9c02f90b6a06
Signed-off-by: Dhananjay Kumar <[email protected]>
Dhananjay Kumar 4 years ago
parent
commit
02aa9f5f33
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dsp/q6voice.c

+ 2 - 0
dsp/q6voice.c

@@ -515,6 +515,8 @@ static void voc_set_error_state(uint16_t reset_proc)
 		if (v != NULL) {
 			v->voc_state = VOC_ERROR;
 			v->rec_info.recording = 0;
+			v->music_info.playing = 0;
+			v->music_info.force = 0;
 		}
 	}
 }