Cc: Hans Verkuil <hans.verk...@cisco.com>
Cc: Antti Palosaari <cr...@iki.fi>
Signed-off-by: Prashant Laddha <prlad...@cisco.com>
---
 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 c9face9..1ba6df9 100644
--- a/drivers/media/platform/vivid/vivid-sin.c
+++ b/drivers/media/platform/vivid/vivid-sin.c
@@ -23,7 +23,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,
@@ -123,7 +123,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;
@@ -145,7 +145,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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to