diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-12-13 11:13:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 04:13:49 -0500 |
commit | 79aeb3f3083a8a795467eae429cb2d6faf482f32 (patch) | |
tree | e4cdd6d755b879d1de5eaf63a70d0354f499fdca /drivers/media/platform/s5p-tv | |
parent | c108e660f9196a4cebea79fbd650ed6850934fcc (diff) |
[media] vb2: return ENOBUFS in start_streaming in case of too few buffers
This works together with the retry_start_streaming mechanism to allow userspace
to start streaming even if not all required buffers have been queued.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: Tomasz Stanislawski <t.stanislaws@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Kamil Debski <k.debski@samsung.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-tv')
-rw-r--r-- | drivers/media/platform/s5p-tv/mixer_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c index 81b97db111d8..c5059ba0d733 100644 --- a/drivers/media/platform/s5p-tv/mixer_video.c +++ b/drivers/media/platform/s5p-tv/mixer_video.c | |||
@@ -948,7 +948,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) | |||
948 | 948 | ||
949 | if (count == 0) { | 949 | if (count == 0) { |
950 | mxr_dbg(mdev, "no output buffers queued\n"); | 950 | mxr_dbg(mdev, "no output buffers queued\n"); |
951 | return -EINVAL; | 951 | return -ENOBUFS; |
952 | } | 952 | } |
953 | 953 | ||
954 | /* block any changes in output configuration */ | 954 | /* block any changes in output configuration */ |