[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:18 +0000 (20:22 +0300)
commit76ff055bdd31477c0b529f74d1cc23c8da7a4bfb
tree3723d13c987132ed4cd7b8d57b81748f5abedcef
parent11eae4bc028bbfee1163dc3caadbee1a117fb9d5
[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