audiochip.h 1.1 KB

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