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

Commit d84669e4 authored by Nidhisha Dhananjayan's avatar Nidhisha Dhananjayan Committed by Gerrit - the friendly Code Review server
Browse files

asoc: Stream_open issue fix for gapless playback



msm_compr_trigger for next track is updated with
q6asm_stream_open_write_v5 depending on the
avcs_api_version.

Change-Id: I6b3862a7b8e0480fffdcddc2ff0949cf5399d7a6

Signed-off-by: default avatarNidhisha Dhananjayan <nidhis@codeaurora.org>
parent 8766446f
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -2687,13 +2687,22 @@ static int msm_compr_trigger(struct snd_compr_stream *cstream, int cmd)

		pr_debug("%s: open_write stream_id %d bits_per_sample %d",
				__func__, stream_id, bits_per_sample);

		if (q6core_get_avcs_api_version_per_service(
					APRV2_IDS_SERVICE_ID_ADSP_ASM_V) >=
					ADSP_ASM_API_VERSION_V2)
			rc = q6asm_stream_open_write_v5(prtd->audio_client,
				prtd->codec, bits_per_sample,
				stream_id,
				prtd->gapless_state.use_dsp_gapless_mode);
		else
			rc = q6asm_stream_open_write_v4(prtd->audio_client,
				prtd->codec, bits_per_sample,
				stream_id,
				prtd->gapless_state.use_dsp_gapless_mode);
		if (rc < 0) {
			pr_err("%s: Session out open failed for gapless\n",
				 __func__);
			pr_err("%s: Session out open failed for gapless [%d]\n",
				__func__, rc);
			break;
		}