mirror of https://github.com/thesofproject/sof.git
host: Stop dma when pause
For gw-dma host, we need to stop the dma to make sure status are correct for resume. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
parent
aa09938fd3
commit
ced518efdb
|
@ -465,6 +465,9 @@ static int host_cmd(struct comp_dev *dev, int cmd, void *data)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
|
case COMP_CMD_PAUSE:
|
||||||
|
dma_stop(hd->dma, hd->chan);
|
||||||
|
break;
|
||||||
case COMP_CMD_STOP:
|
case COMP_CMD_STOP:
|
||||||
ret = host_stop(dev);
|
ret = host_stop(dev);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue