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

Commit 4ccd0ee6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: update dma_buf cache ops"

parents 5d579037 d188b958
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -599,18 +599,11 @@ int msm_audio_ion_cache_operations(struct audio_buffer *abuff, int cache_op)
		/* MSM_AUDIO_ION_INV_CACHES or MSM_AUDIO_ION_CLEAN_CACHES */
		switch (cache_op) {
		case MSM_AUDIO_ION_INV_CACHES:
			rc = dma_buf_begin_cpu_access(abuff->dma_buf,
						      DMA_BIDIRECTIONAL);
			if (rc)
				pr_err("%s: failed to invalidate caches. rc = %d\n",
				       __func__, rc);
			break;
		case MSM_AUDIO_ION_CLEAN_CACHES:
			rc = dma_buf_end_cpu_access(abuff->dma_buf,
			dma_buf_begin_cpu_access(abuff->dma_buf,
						  DMA_BIDIRECTIONAL);
			dma_buf_end_cpu_access(abuff->dma_buf,
						  DMA_BIDIRECTIONAL);
			if (rc)
				pr_err("%s: failed to clean caches. rc = %d\n",
				       __func__, rc);
			break;
		default:
			pr_err("%s: Invalid cache operation %d\n",