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:
Pan Xiuli 2018-03-15 13:19:37 +08:00 committed by Liam Girdwood
parent aa09938fd3
commit ced518efdb
1 changed files with 3 additions and 0 deletions

View File

@ -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;