[COMMON] media: smfc: fix configuration to MAX_STREAM_SIZE register
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 13 May 2015 01:14:43 +0000 (10:14 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:31:00 +0000 (14:31 +0900)
commit36ca9d2ac44ab6cf7b370357443fe2a48aeabf6f
tree3f037c15dd00d8241a700ea06e911e65aed9213e
parentef88f1a07c655a3d396975c89a19f5cae2e48617
[COMMON] media: smfc: fix configuration to MAX_STREAM_SIZE register

If SMFC finds that the compressed stream should be written over the
size configured in MAX_STREAM_SIZE register, it stops working and
asserts interrupt to the CPU that the destination buffer is too small
to store the compressed stream.
The restriction of the value in MAX_STREAM_SIZE:
 - The value should be multiple of 64
 - If the stream base is not aligned by 16 bytes, 64 - unaligned bytes
   should be added to the value.

Change-Id: I2198d001d93a8b6ad03a0c02f928bd1d65b85983
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc-regs.c
drivers/media/platform/exynos/smfc/smfc-regs.h