audiochip.h 1.1 KB

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