host: remove need of host buffer alignment

Removes the check for host buffer period size alignment
for Host DMA Gateways. It isn't required for this type
of DMA.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-03-12 17:01:13 +01:00 committed by Liam Girdwood
parent 2242616755
commit 57b6c22e57
1 changed files with 2 additions and 0 deletions

View File

@ -554,6 +554,7 @@ static int host_params(struct comp_dev *dev)
return err;
}
#if !CONFIG_DMA_GW
/* component buffer size must be divisor of host buffer size */
if (hd->host_size % hd->period_bytes) {
trace_comp_error("host_params() error: component buffer size "
@ -562,6 +563,7 @@ static int host_params(struct comp_dev *dev)
hd->host_size, hd->period_bytes);
return -EINVAL;
}
#endif
/* create SG DMA elems for local DMA buffer */
err = create_local_elems(dev);