[Sound-open-firmware] [PATCH] clock: use 64 bit values when converting us to ticks

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Sep 20 15:58:02 CEST 2017


Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/include/reef/clock.h    | 2 +-
 src/platform/baytrail/clk.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/reef/clock.h b/src/include/reef/clock.h
index 305044c..f43f30a 100644
--- a/src/include/reef/clock.h
+++ b/src/include/reef/clock.h
@@ -51,7 +51,7 @@ uint32_t clock_set_freq(int clock, unsigned int hz);
 
 uint32_t clock_get_freq(int clock);
 
-uint32_t clock_us_to_ticks(int clock, uint32_t us);
+uint64_t clock_us_to_ticks(int clock, uint64_t us);
 
 uint32_t clock_time_elapsed(int clock, uint32_t previous, uint32_t *current);
 
diff --git a/src/platform/baytrail/clk.c b/src/platform/baytrail/clk.c
index fdffcd5..1b1504e 100644
--- a/src/platform/baytrail/clk.c
+++ b/src/platform/baytrail/clk.c
@@ -225,7 +225,7 @@ uint32_t clock_get_freq(int clock)
 	return clk_pdata->clk[clock].freq;
 }
 
-uint32_t clock_us_to_ticks(int clock, uint32_t us)
+uint64_t clock_us_to_ticks(int clock, uint64_t us)
 {
 	return clk_pdata->clk[clock].ticks_per_usec * us;
 }
-- 
2.11.0



More information about the Sound-open-firmware mailing list