ivtv-fileops.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. file operation functions
  4. Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
  5. Copyright (C) 2005-2007 Hans Verkuil <[email protected]>
  6. */
  7. #ifndef IVTV_FILEOPS_H
  8. #define IVTV_FILEOPS_H
  9. /* Testing/Debugging */
  10. int ivtv_v4l2_open(struct file *filp);
  11. ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
  12. loff_t * pos);
  13. ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
  14. loff_t * pos);
  15. int ivtv_v4l2_close(struct file *filp);
  16. __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
  17. __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
  18. int ivtv_start_capture(struct ivtv_open_id *id);
  19. void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);
  20. int ivtv_start_decoding(struct ivtv_open_id *id, int speed);
  21. void ivtv_mute(struct ivtv *itv);
  22. void ivtv_unmute(struct ivtv *itv);
  23. /* Utilities */
  24. /* Shared with ivtv-alsa module */
  25. int ivtv_claim_stream(struct ivtv_open_id *id, int type);
  26. void ivtv_release_stream(struct ivtv_stream *s);
  27. #endif