summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-29 02:45:59 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-05 08:50:13 -0400
commitef732d5e2813ff5ef30cdb280b2d133e74213555 (patch)
treef264fc4a5ba5d4b1ec51e2da9d78a2c2991692ab /include/media
parentad2220aa4591f3a25705b2d44f8a518d19346433 (diff)
media: v4l2-mem2mem: add try_en/decoder_cmd ioctl helpers
Most if not all codecs will need to implement these ioctls and it is expected to be the same for all codecs. So add this to the core v4l2-mem2mem framework so that this code can easily be reused. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-mem2mem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-mem2mem.h b/include/media/v4l2-mem2mem.h
index bb3e63d6bd1a..2e0c989266a7 100644
--- a/include/media/v4l2-mem2mem.h
+++ b/include/media/v4l2-mem2mem.h
@@ -672,6 +672,10 @@ int v4l2_m2m_ioctl_streamon(struct file *file, void *fh,
672 enum v4l2_buf_type type); 672 enum v4l2_buf_type type);
673int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh, 673int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh,
674 enum v4l2_buf_type type); 674 enum v4l2_buf_type type);
675int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
676 struct v4l2_encoder_cmd *ec);
677int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh,
678 struct v4l2_decoder_cmd *dc);
675int v4l2_m2m_fop_mmap(struct file *file, struct vm_area_struct *vma); 679int v4l2_m2m_fop_mmap(struct file *file, struct vm_area_struct *vma);
676__poll_t v4l2_m2m_fop_poll(struct file *file, poll_table *wait); 680__poll_t v4l2_m2m_fop_poll(struct file *file, poll_table *wait);
677 681