video: adf: add buffer padding quirk
authorGreg Hackmann <ghackmann@google.com>
Tue, 8 Apr 2014 19:36:41 +0000 (12:36 -0700)
committerGreg Hackmann <ghackmann@google.com>
Tue, 8 Apr 2014 23:41:17 +0000 (23:41 +0000)
commitadbe864576c5e5ac848d7e6009f760efdd00b44d
tree30e5c44f1cf0d821fb104abf0629a195863360fb
parent5ce32209e76f933062cd667b4cff51ac0c400c32
video: adf: add buffer padding quirk

Quirks specify common behaviors that vary slightly among devices, and
which ADF must account for.

The buffer padding quirk captures the way different devices fetch the
last scanline in a buffer: some devices fetch an entire line (including
padding to the pitch) while others only fetch up to the visible width.
ADF's buffer size validation now takes this quirk into account.

Change-Id: I828b13316e27621d8a9efd9d5fffa6ce12a525ff
Signed-off-by: Greg Hackmann <ghackmann@google.com>
drivers/video/adf/adf.c
include/video/adf.h