mirror of https://github.com/thesofproject/sof.git
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:
parent
6119126d90
commit
8256465955
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue