host: unify host_copy for all DMAs

Unifies host_copy implementation for all types
of DMA.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-06-13 14:40:15 +02:00 committed by Janusz Jankowski
parent 4549747e37
commit bc10926d67
1 changed files with 0 additions and 10 deletions

View File

@ -730,9 +730,7 @@ static int host_copy_one_shot(struct comp_dev *dev)
/* copy and process stream data from source to sink buffers */
static int host_copy(struct comp_dev *dev)
{
#if CONFIG_DMA_GW
struct host_data *hd = comp_get_drvdata(dev);
#endif
int ret = 0;
tracev_host("host_copy()");
@ -740,10 +738,6 @@ static int host_copy(struct comp_dev *dev)
if (dev->state != COMP_STATE_ACTIVE)
return 0;
/* TODO: this could be run-time if() based on the same attribute
* as in the host_trigger().
*/
#if CONFIG_DMA_GW
/* here only do preload, further copies happen
* in host_buffer_cb()
*/
@ -763,10 +757,6 @@ static int host_copy(struct comp_dev *dev)
return ret;
}
}
#endif
/* For !CONFIG_DMA_GW preload happens in host_trigger() and
* further copies happen in host_buffer_cb()
*/
return ret;
}