[Sound-open-firmware] [PATCH v3 5/6] dma: update dma users with the new API
Liam Girdwood
liam.r.girdwood at linux.intel.com
Sun Jun 10 22:02:44 CEST 2018
On Fri, 2018-06-08 at 15:18 -0700, Ranjani Sridharan wrote:
> @@ -201,7 +202,9 @@ static struct comp_dev *dai_new(struct sof_ipc_comp *comp)
> goto error;
> }
>
> - dd->dma = dma_get(ipc_dai->dmac_id);
> + /* request GP LP DMA with shared access privilege */
> + dma_cap = DMA_CAP_GP_LP | DMA_CAP_MEM_TO_DEV;
> + dd->dma = dma_get(dma_cap, DMA_ACCESS_SHARED);
> if (dd->dma == NULL) {
> trace_dai_error("eDd");
> goto error;
In general these caps we be LP and HP since it would work with either.
Liam
More information about the Sound-open-firmware
mailing list