dma: remove unused DMA_COPY_PRELOAD flags

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-10-21 11:31:46 +02:00 committed by Tomasz Lauda
parent 048145fe60
commit d6f86e57ee
2 changed files with 2 additions and 12 deletions

View File

@ -370,15 +370,6 @@ static int hda_dma_host_copy(struct dma_chan_data *channel, int bytes,
hda_dma_get_dbg_vals(channel, HDA_DBG_PRE, HDA_DBG_HOST);
if (flags & DMA_COPY_PRELOAD) {
/* report lack of data if preload is not yet finished */
ret = channel->direction == DMA_DIR_HMEM_TO_LMEM ?
hda_dma_is_buffer_full(channel) :
hda_dma_is_buffer_empty(channel);
if (!ret)
return -ENODATA;
}
/* blocking mode copy */
if (flags & DMA_COPY_BLOCKING) {
ret = channel->direction == DMA_DIR_HMEM_TO_LMEM ?

View File

@ -66,9 +66,8 @@ struct comp_buffer;
#define DMA_CB_TYPE_COPY BIT(1)
/* DMA copy flags */
#define DMA_COPY_PRELOAD BIT(0)
#define DMA_COPY_BLOCKING BIT(1)
#define DMA_COPY_ONE_SHOT BIT(2)
#define DMA_COPY_BLOCKING BIT(0)
#define DMA_COPY_ONE_SHOT BIT(1)
/* We will use this enum in cb handler to inform dma what
* action we need to perform.