Merge pull request #633 from libinyang/host_release_channel

host: release dw-dma channel when pcm free
This commit is contained in:
Liam Girdwood 2018-11-27 13:58:43 +00:00 committed by GitHub
commit 24840b4dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -398,9 +398,6 @@ static void host_free(struct comp_dev *dev)
trace_host("fre");
#if !defined CONFIG_DMA_GW
dma_channel_put(hd->dma, hd->chan);
#endif
dma_put(hd->dma);
dma_sg_free(&hd->config.elem_array);
@ -618,6 +615,7 @@ static int host_reset(struct comp_dev *dev)
trace_host("res");
#if !defined CONFIG_DMA_GW
dma_channel_put(hd->dma, hd->chan);
/* free all host DMA elements */
dma_sg_free(&hd->host.elem_array);