Cc: Hans Verkuil <[email protected]>
Signed-off-by: Prashant Laddha <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html