mirror of https://github.com/thesofproject/sof.git
dma: remove unused DMA_COPY_PRELOAD flags
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
048145fe60
commit
d6f86e57ee
|
@ -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 ?
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue