tuner-driver.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. tuner-driver.h - interface for different tuners
  3. Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de)
  4. minor modifications by Ralph Metzler (rjkm@thp.uni-koeln.de)
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef __TUNER_DRIVER_H__
  18. #define __TUNER_DRIVER_H__
  19. #include <linux/videodev2.h>
  20. #include <linux/i2c.h>
  21. #include "dvb_frontend.h"
  22. extern unsigned const int tuner_count;
  23. struct analog_demod_info {
  24. char *name;
  25. };
  26. struct analog_tuner_ops {
  27. struct analog_demod_info info;
  28. void (*set_params)(struct dvb_frontend *fe,
  29. struct analog_parameters *params);
  30. int (*has_signal)(struct dvb_frontend *fe);
  31. int (*is_stereo)(struct dvb_frontend *fe);
  32. int (*get_afc)(struct dvb_frontend *fe);
  33. void (*tuner_status)(struct dvb_frontend *fe);
  34. void (*standby)(struct dvb_frontend *fe);
  35. void (*release)(struct dvb_frontend *fe);
  36. int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
  37. /** This is to allow setting tuner-specific configuration */
  38. int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
  39. };
  40. #endif /* __TUNER_DRIVER_H__ */