[yavta PATCH v3 02/11] Provide functions for setting the buffer type and checking its validity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxx>
---
 yavta.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/yavta.c b/yavta.c
index c7ad7b4..d8f0c59 100644
--- a/yavta.c
+++ b/yavta.c
@@ -220,6 +220,16 @@ static const char *v4l2_format_name(unsigned int fourcc)
 	return name;
 }
 
+static void video_set_buf_type(struct device *dev, enum v4l2_buf_type type)
+{
+	dev->type = type;
+}
+
+static bool video_has_valid_buf_type(struct device *dev)
+{
+	return (int)dev->type != -1;
+}
+
 static void video_init(struct device *dev)
 {
 	memset(dev, 0, sizeof *dev);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux