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

Commit 7c1dc5a7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: msm-pcm-q6-v2: Update memset for period size"

parents d757a256 b522d6a8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1008,9 +1008,9 @@ static int msm_pcm_capture_copy(struct snd_pcm_substream *substream,
			xfer = size;
		offset = prtd->in_frame_info[idx].offset;
		pr_debug("Offset value = %d\n", offset);
		if (size == 0 || size < fbytes) {
			memset(bufptr + offset + size, 0, fbytes - size);
			size = xfer = fbytes;
		if (size == 0 || size < prtd->pcm_count) {
			memset(bufptr + offset + size, 0, prtd->pcm_count - size);
			size = xfer = prtd->pcm_count;
		}

		if (copy_to_user(buf, bufptr+offset, xfer)) {