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

Commit cfade7b5 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat
Browse files

Asoc: msm: qdsp6v2: Use the same topology for next stream



For gapless playback topology being set for next stream is not
the same topology used for previous stream.
Topology will not be null if driver is opening the next
stream using same session, so it can use same
topology for next stream.

Change-Id: Ie4206b31d9443338868c687e1dbce55140e7a86e
Signed-off-by: default avatarPreetam Singh Ranawat <apranawat@codeaurora.org>
parent e3a543d6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2250,6 +2250,11 @@ static int __q6asm_open_write(struct audio_client *ac, uint32_t format,
	pr_debug("%s: perf_mode %d asm_topology 0x%x bps %d\n", __func__,
		 ac->perf_mode, open.postprocopo_id, open.bits_per_sample);

	/*
	 * For Gapless playback it will use the same session for next stream,
	 * So use the same topology
	 */
	if (!ac->topology)
		ac->topology = open.postprocopo_id;
	switch (format) {
	case FORMAT_LINEAR_PCM: