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:
Tomasz Lauda 2019-10-16 13:33:20 +02:00 committed by Janusz Jankowski
parent 9b535ce1a2
commit 276463d6dc
9 changed files with 5 additions and 26 deletions

View File

@ -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)) {

View File

@ -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
*/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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