[PATCH 4/5] Vivid sine gen: Renamed SIN_TAB_SIZE to SIN_LUT_SIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cc: Hans Verkuil <hans.verkuil@xxxxxxxxx>
Signed-off-by: Prashant Laddha <prladdha@xxxxxxxxx>
---
 drivers/media/platform/vivid/vivid-sin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/platform/vivid/vivid-sin.c b/drivers/media/platform/vivid/vivid-sin.c
index f2158a3..35bf495 100644
--- a/drivers/media/platform/vivid/vivid-sin.c
+++ b/drivers/media/platform/vivid/vivid-sin.c
@@ -22,7 +22,7 @@
 
 #include "vivid-sin.h"
 
-#define SIN_TAB_SIZE 256
+#define SIN_LUT_SIZE 256
 
 static s32 sin[65] = {
 		 0,   31,   63,   94,  125,  156,  187,  218,  249,  279,  310,  340,
@@ -118,7 +118,7 @@ s32 calc_sin(u32 phase)
     u64 temp0;
     u64 temp1;
 
-    temp0 = phase * SIN_TAB_SIZE;
+    temp0 = phase * SIN_LUT_SIZE;
     index = (temp0 * 7) /(44 << FIX_PT_PREC);
 
     temp0 = (temp0 * 7) /44;
@@ -141,7 +141,7 @@ s32 calc_cos(u32 phase)
     u64 temp0;
     u64 temp1;
 
-    temp0 = phase * SIN_TAB_SIZE;
+    temp0 = phase * SIN_LUT_SIZE;
     index = (temp0 * 7) /(44 << FIX_PT_PREC);
 
     temp0 = (temp0 * 7) /44;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux