Skip to content

dw-dma: enable interrupts based on the scheduling mode - #1116

Merged
lgirdwood merged 2 commits into
thesofproject:masterfrom
tlauda:topic/dw-dma-irq-enabled
Mar 13, 2019
Merged

lgirdwood merged 2 commits into
thesofproject:masterfrom
tlauda:topic/dw-dma-irq-enabled

Conversation

@tlauda

@tlauda tlauda commented Mar 12, 2019

Copy link
Copy Markdown
Contributor

Adds new functionality to DW-DMA driver to enable/disable
interrupts based on the pipeline scheduling mode. If
we are scheduling on timer there is no need to touch
any irq related registers.

Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com

Adds simple method to check if pipeline is scheduled
with timer or not.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda
tlauda force-pushed the topic/dw-dma-irq-enabled branch from 912b576 to b0c09af Compare March 12, 2019 12:47
@tlauda tlauda changed the title dw-dma: enable interrupts base on the scheduling mode dw-dma: enable interrupts based on the scheduling mode Mar 12, 2019
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/drivers/dw/dma.c Outdated
Comment thread src/audio/dai.c Outdated
@lyakh

lyakh commented Mar 12, 2019

Copy link
Copy Markdown
Collaborator

@tlauda is timer-based scheduling actually already available? I don't see any uses of .timer_delay in the sources?

@tlauda

tlauda commented Mar 12, 2019

Copy link
Copy Markdown
Contributor Author

@lyakh Not yet, working towards it.

@tlauda
tlauda force-pushed the topic/dw-dma-irq-enabled branch 2 times, most recently from 65586ec to 3ff3394 Compare March 12, 2019 14:51
Adds new functionality to DW-DMA driver to enable/disable
interrupts based on the pipeline scheduling mode. If
we are scheduling on timer there is no need to touch
any irq related registers.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@lgirdwood
lgirdwood merged commit 2242616 into thesofproject:master Mar 13, 2019
@lgirdwood

Copy link
Copy Markdown
Member

@tlauda we should also hard code irq_disabled = true for HDA-DMA with a comment to make it obvious to anyone that its not supported.

@tlauda
tlauda deleted the topic/dw-dma-irq-enabled branch November 22, 2019 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants