Commit 8f025d3
committed
audio: host-zephyr: clean DMA if channel set at free
Add code to check for a valid DMA channel in host_common_free()
and if a DMA channel is set, stop the channel and free DMA
resources.
Issue found in code review. This should not be hit in normal
use-cases, but this makes the free implementation more robust in
case of errors.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 3558c49 commit 8f025d3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
787 | 794 | | |
788 | 795 | | |
789 | 796 | | |
| |||
0 commit comments