mirror of https://github.com/thesofproject/sof.git
hda-dma: allocate RUNTIME_SHARED for hda_chan
The DMA channels need to be shared among pipelines and DSP cores, allocate buffer for it in RUNTIME_SHARED area. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
472c3a4a39
commit
9809350a62
|
@ -814,7 +814,7 @@ static int hda_dma_probe(struct dma *dma)
|
||||||
chan->status = COMP_STATE_INIT;
|
chan->status = COMP_STATE_INIT;
|
||||||
chan->core = DMA_CORE_INVALID;
|
chan->core = DMA_CORE_INVALID;
|
||||||
|
|
||||||
hda_chan = rzalloc(SOF_MEM_ZONE_SYS_RUNTIME, 0,
|
hda_chan = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0,
|
||||||
SOF_MEM_CAPS_RAM,
|
SOF_MEM_CAPS_RAM,
|
||||||
sizeof(struct hda_chan_data));
|
sizeof(struct hda_chan_data));
|
||||||
if (!hda_chan) {
|
if (!hda_chan) {
|
||||||
|
|
Loading…
Reference in New Issue