CHROMIUM: vb2: Store dma_dir in vb2_queue.
authorPawel Osciak <posciak@chromium.org>
Wed, 16 Sep 2015 12:12:40 +0000 (21:12 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 30 Jun 2016 11:58:08 +0000 (19:58 +0800)
commite21bcf16b39e0ca3385505aacd0002dfd0aae049
treedd8d80758c31583120b6b3134a0eb89d4ad32b42
parent3bf4ef71eba1aa55fa1d61538d87509458e37659
CHROMIUM: vb2: Store dma_dir in vb2_queue.

Store dma_dir in struct vb2_queue and reuse it, instead of recalculating
it each time.

Signed-off-by: Pawel Osciak <posciak@chromium.org>
BUG=chrome-os-partner:45346
TEST=video playback

Reviewed-on: https://chromium-review.googlesource.com/300725
Commit-Ready: Pawel Osciak <posciak@chromium.org>
Tested-by: Pawel Osciak <posciak@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Owen Lin <owenlin@chromium.org>
Conflicts:
drivers/media/v4l2-core/videobuf2-core.c

Change-Id: Ia5405cd758ffef0b0319d184a2f32699ebc805ea
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
drivers/media/v4l2-core/videobuf2-core.c
include/media/videobuf2-core.h