[media] vivid sdr: Use LUT based implementation for sin/cos()
authorPrashant Laddha <prladdha@cisco.com>
Wed, 4 Feb 2015 09:07:31 +0000 (06:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 17:51:32 +0000 (14:51 -0300)
commit4e30a37345e6f723553d457becc423efa4bf2703
treeee35f58a991571ddfc59179ff395d6c9f8c9f37c
parent559addc25b00ff3a40eff03a0b3873c2b6d726f8
[media] vivid sdr: Use LUT based implementation for sin/cos()

The common implementation for sin/cos in include/linux/fixp-arith.h
has been improved recently to provide higher precision.

Replacing native implementation of sin/cos in vivid sdr with common
implementation. This serves two purposes:

1. Improved accuracy: the native implementation based on the Taylor
   series is more prone to rounding errors.
2. Reuse of common function: this is better compared to maintaining
   native versions for each driver.

Suggested by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Prashant Laddha <prladdha@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-sdr-cap.c