host: fix wrong check for irq

This patch fixes the incorrect check of period irq in
host_period_bytes.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
Marcin Rajwa 2019-06-27 01:29:07 +02:00 committed by Janusz Jankowski
parent 6119126d90
commit 8256465955
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ static void host_update_position(struct comp_dev *dev, uint32_t bytes)
if (hd->local_pos >= hd->host_size)
hd->local_pos = 0;
/* NO_IRQ mode if host_period_size == 0 */
if (dev->params.host_period_bytes != 0) {
/* NO_IRQ mode if no_period_irq == 1 */
if (!dev->params.no_period_irq) {
hd->report_pos += bytes;
/* send IPC message to driver if needed */