Skip to content

Commit 5d902ea

Browse files
softwareckifabiobaltieri
authored andcommitted
dma: dw: Align error code for xrun reporting
The hda driver uses -EPIPE to signal xrun, as proposed in the alsa lib https://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html. This commit changes the xrun error code in dw dma driver from -ENODATA to -EPIPE to make it consistent across drivers. Signed-off-by: Adrian Warecki <[email protected]>
1 parent c21299a commit 5d902ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dma_dw_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ int dw_dma_get_status(const struct device *dev, uint32_t channel,
786786
#if CONFIG_DMA_DW_HW_LLI
787787
if (!(dw_read(dev_cfg->base, DW_DMA_CHAN_EN) & DW_CHAN(channel))) {
788788
LOG_ERR("xrun detected");
789-
return -ENODATA;
789+
return -EPIPE;
790790
}
791791
#endif
792792
return 0;

0 commit comments

Comments
 (0)