drivers:audio: cxd56: move helpers to the header file
The Queue helpers should be moved to the header file Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
9c19db6e14
commit
d572b06a6c
@ -170,17 +170,6 @@
|
|||||||
#define CXD56_DMA_CMD_FIFO_NOT_FULL 1
|
#define CXD56_DMA_CMD_FIFO_NOT_FULL 1
|
||||||
#define CXD56_DMA_START_ADDR_MASK 0x3fffffff
|
#define CXD56_DMA_START_ADDR_MASK 0x3fffffff
|
||||||
|
|
||||||
/* Queue helpers */
|
|
||||||
|
|
||||||
#define dq_put(q,n) (dq_addlast((dq_entry_t*)n,(q)))
|
|
||||||
#define dq_get(q) (dq_remfirst(q))
|
|
||||||
#define dq_clear(q) \
|
|
||||||
do \
|
|
||||||
{ \
|
|
||||||
dq_remlast(q); \
|
|
||||||
} \
|
|
||||||
while (!dq_empty(q))
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -1360,6 +1349,7 @@ static void cxd56_dma_int_handler(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
audinfo("Unhandled interrupt\n");
|
audinfo("Unhandled interrupt\n");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,6 +227,18 @@
|
|||||||
# define CONFIG_CXD56_AUDIO_NUM_BUFFERS 4
|
# define CONFIG_CXD56_AUDIO_NUM_BUFFERS 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Queue helpers */
|
||||||
|
|
||||||
|
#define dq_get(q) (dq_remfirst(q))
|
||||||
|
#define dq_put(q,n) (dq_addlast((dq_entry_t*)n,(q)))
|
||||||
|
#define dq_put_back(q,n) (dq_addfirst((dq_entry_t*)n,(q)))
|
||||||
|
#define dq_clear(q) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
dq_remlast(q); \
|
||||||
|
} \
|
||||||
|
while (!dq_empty(q))
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user