audiochip.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * $Id: audiochip.h,v 1.3 2005/06/12 04:19:19 mchehab Exp $
  3. */
  4. #ifndef AUDIOCHIP_H
  5. #define AUDIOCHIP_H
  6. /* ---------------------------------------------------------------------- */
  7. /* v4l device was opened in Radio mode */
  8. #define AUDC_SET_RADIO _IO('m',2)
  9. /* select from TV,radio,extern,MUTE */
  10. #define AUDC_SET_INPUT _IOW('m',17,int)
  11. /* audio inputs */
  12. #define AUDIO_TUNER 0x00
  13. #define AUDIO_RADIO 0x01
  14. #define AUDIO_EXTERN 0x02
  15. #define AUDIO_INTERN 0x03
  16. #define AUDIO_OFF 0x04
  17. #define AUDIO_ON 0x05
  18. #define AUDIO_EXTERN_1 AUDIO_EXTERN
  19. #define AUDIO_EXTERN_2 0x06
  20. #define AUDIO_MUTE 0x80
  21. #define AUDIO_UNMUTE 0x81
  22. /* all the stuff below is obsolete and just here for reference. I'll
  23. * remove it once the driver is tested and works fine.
  24. *
  25. * Instead creating alot of tiny API's for all kinds of different
  26. * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
  27. * yet...). It is a bit less flexible, but most/all used i2c chips
  28. * make sense in v4l context only. So I think that's acceptable...
  29. */
  30. /* misc stuff to pass around config info to i2c chips */
  31. #define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
  32. #endif /* AUDIOCHIP_H */