summary refs log tree commit diff
path: root/sound/hda
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-05-08 13:32:31 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-07-02 15:58:06 +0300
commitd642d3acd89454006fd6ca9cc4dd57f26959f9d1 (patch)
tree0c0f7238f48796678d3c7203e4073d949c8bdefa /sound/hda
parent393a949f51994a67e8e33b2f79c6f2020959a7e2 (diff)
downloadlinux-d642d3acd89454006fd6ca9cc4dd57f26959f9d1.tar.gz
drm/omap: fix align_pitch() for 24 bits per pixel
align_pitch() uses ALIGN() to ensure the pitch is aligned to SGX's
requirement of 8 pixels. However, ALIGN() expects the alignment value to
be a power of two, which is not the case for 24 bits per pixels.

Use roundup() instead, which works for all alignments.

This fixes the error seen with 24 bits per pixel modes:

"buffer pitch (2176 bytes) is not a multiple of pixel size (3 bytes)"

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'sound/hda')
0 files changed, 0 insertions, 0 deletions