]> git.baikalelectronics.ru Git - kernel.git/commit
[media] Revert "[media] v4l2: vb2: one more fix for REQBUFS()"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 8 Jun 2011 09:15:05 +0000 (06:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 01:32:28 +0000 (22:32 -0300)
commit205ce8f5462b2c032ddb10da0cec9469addc669d
treea24f0100160273770911025e7fd458fd02602288
parent38fbf4a5e0d6773cd8316f54e7a29b2a9477a8aa
[media] Revert "[media] v4l2: vb2: one more fix for REQBUFS()"

This reverts commit d516ea4a1e0ed364bce5b79580eadc5c21246885.

Queue should be reinitialized on each REQBUFS() call even if the memory
access method and buffer count have not been changed. The user might have
changed the format and if we go the short path introduced in that commit,
the memory buffer will not be reallocated to fit with new format.

The previous patch was just over-engineered optimization, which just
introduced a bug to videobuf2.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c