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 <adrian.warecki@intel.com>
This commit is contained in:
parent
c21299ad53
commit
5d902ea621
1 changed files with 1 additions and 1 deletions
|
@ -786,7 +786,7 @@ int dw_dma_get_status(const struct device *dev, uint32_t channel,
|
|||
#if CONFIG_DMA_DW_HW_LLI
|
||||
if (!(dw_read(dev_cfg->base, DW_DMA_CHAN_EN) & DW_CHAN(channel))) {
|
||||
LOG_ERR("xrun detected");
|
||||
return -ENODATA;
|
||||
return -EPIPE;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue