ASoC: qcom: lpass-platform: Update memremap flag to MEMREMAP_WC
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Wed, 13 Apr 2022 10:09:56 +0000 (15:39 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:04:07 +0000 (12:04 +0100)
Update memremap flag from MEMREMAP_WT to MEMREMAP_WC for better
performance.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Link: https://lore.kernel.org/r/1649844596-5264-1-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-platform.c

index 74d62f3..f03a7ae 100644 (file)
@@ -1160,7 +1160,7 @@ static int lpass_platform_prealloc_cdc_dma_buffer(struct snd_soc_component *comp
                break;
        }
 
-       buf->area = (unsigned char * __force)memremap(buf->addr, buf->bytes, MEMREMAP_WT);
+       buf->area = (unsigned char * __force)memremap(buf->addr, buf->bytes, MEMREMAP_WC);
 
        return 0;
 }