Skip to content

Commit 1b3219a

Browse files
committed
zephyr: test: userspace: intel_hda_dma: add check for DMA channel
Add test check that correct channel is retrieved with sof_dma_request_channel(). Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 27fb824 commit 1b3219a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zephyr/test/userspace/test_intel_hda_dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ static void intel_hda_dma_user(void *p1, void *p2, void *p3)
6262
LOG_INF("configure DMA channel");
6363

6464
channel = sof_dma_request_channel(dma, TEST_CHANNEL);
65+
zassert_equal(channel, TEST_CHANNEL);
6566
LOG_INF("sof_dma_request_channel: ret %d", channel);
6667

6768
err = sof_dma_get_attribute(dma, DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT,

0 commit comments

Comments
 (0)