mirror of https://github.com/thesofproject/sof.git
platform: rename and move PLATFORM_HOST_DMA_TIMEOUT
Renames PLATFORM_HOST_DMA_TIMEOUT to HDA_DMA_TIMEOUT and moves to hda-dma, where it belongs. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
9b535ce1a2
commit
276463d6dc
|
@ -66,6 +66,9 @@
|
|||
#define HDA_DMA_BUFFER_ALIGNMENT 0x20
|
||||
#define HDA_DMA_COPY_ALIGNMENT 0x20
|
||||
|
||||
/* DMA host transfer timeout in microseconds */
|
||||
#define HDA_DMA_TIMEOUT 200
|
||||
|
||||
/*
|
||||
* DMA Pointer Trace
|
||||
*
|
||||
|
@ -219,7 +222,7 @@ static int hda_dma_wait_for_buffer_full(struct dma_chan_data *chan)
|
|||
{
|
||||
uint64_t deadline = platform_timer_get(platform_timer) +
|
||||
clock_ms_to_ticks(PLATFORM_DEFAULT_CLOCK, 1) *
|
||||
PLATFORM_HOST_DMA_TIMEOUT / 1000;
|
||||
HDA_DMA_TIMEOUT / 1000;
|
||||
|
||||
while (!hda_dma_is_buffer_full(chan)) {
|
||||
if (deadline < platform_timer_get(platform_timer)) {
|
||||
|
@ -243,7 +246,7 @@ static int hda_dma_wait_for_buffer_empty(struct dma_chan_data *chan)
|
|||
{
|
||||
uint64_t deadline = platform_timer_get(platform_timer) +
|
||||
clock_ms_to_ticks(PLATFORM_DEFAULT_CLOCK, 1) *
|
||||
PLATFORM_HOST_DMA_TIMEOUT / 1000;
|
||||
HDA_DMA_TIMEOUT / 1000;
|
||||
|
||||
while (!hda_dma_is_buffer_empty(chan)) {
|
||||
if (deadline < platform_timer_get(platform_timer)) {
|
||||
|
|
|
@ -56,9 +56,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 8
|
||||
#define PLATFORM_MAX_STREAMS 16
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/*! \def PLATFORM_LL_DEFAULT_TIMEOUT
|
||||
* \brief low latency scheduler default timeout in microseconds
|
||||
*/
|
||||
|
|
|
@ -61,9 +61,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 4
|
||||
#define PLATFORM_MAX_STREAMS 5
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* local buffer size of DMA tracing */
|
||||
#define DMA_TRACE_LOCAL_SIZE HOST_PAGE_SIZE
|
||||
|
||||
|
|
|
@ -64,9 +64,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 8
|
||||
#define PLATFORM_MAX_STREAMS 16
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* Host finish work schedule delay in microseconds */
|
||||
#define PLATFORM_HOST_FINISH_DELAY 100
|
||||
|
||||
|
|
|
@ -57,9 +57,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 4
|
||||
#define PLATFORM_MAX_STREAMS 5
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* local buffer size of DMA tracing */
|
||||
#define DMA_TRACE_LOCAL_SIZE HOST_PAGE_SIZE
|
||||
|
||||
|
|
|
@ -64,9 +64,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 8
|
||||
#define PLATFORM_MAX_STREAMS 16
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* Host finish work schedule delay in microseconds */
|
||||
#define PLATFORM_HOST_FINISH_DELAY 100
|
||||
|
||||
|
|
|
@ -46,9 +46,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 4
|
||||
#define PLATFORM_MAX_STREAMS 5
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 50
|
||||
|
||||
/* local buffer size of DMA tracing */
|
||||
#define DMA_TRACE_LOCAL_SIZE HOST_PAGE_SIZE
|
||||
|
||||
|
|
|
@ -60,9 +60,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 4
|
||||
#define PLATFORM_MAX_STREAMS 5
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* Host finish work schedule delay in microseconds */
|
||||
#define PLATFORM_HOST_FINISH_DELAY 100
|
||||
|
||||
|
|
|
@ -64,9 +64,6 @@ struct timer;
|
|||
#define PLATFORM_MAX_CHANNELS 8
|
||||
#define PLATFORM_MAX_STREAMS 16
|
||||
|
||||
/* DMA host transfer timeouts in microseconds */
|
||||
#define PLATFORM_HOST_DMA_TIMEOUT 200
|
||||
|
||||
/* Host finish work schedule delay in microseconds */
|
||||
#define PLATFORM_HOST_FINISH_DELAY 100
|
||||
|
||||
|
|
Loading…
Reference in New Issue