audiochip.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. */
  3. #ifndef AUDIOCHIP_H
  4. #define AUDIOCHIP_H
  5. enum audiochip {
  6. AUDIO_CHIP_NONE,
  7. AUDIO_CHIP_UNKNOWN,
  8. /* Provided by video chip */
  9. AUDIO_CHIP_INTERNAL,
  10. /* Provided by tvaudio.c */
  11. AUDIO_CHIP_TDA8425,
  12. AUDIO_CHIP_TEA6300,
  13. AUDIO_CHIP_TEA6420,
  14. AUDIO_CHIP_TDA9840,
  15. AUDIO_CHIP_TDA985X,
  16. AUDIO_CHIP_TDA9874,
  17. AUDIO_CHIP_PIC16C54,
  18. /* Provided by msp3400.c */
  19. AUDIO_CHIP_MSP34XX
  20. };
  21. /* ---------------------------------------------------------------------- */
  22. /* v4l device was opened in Radio mode */
  23. #define AUDC_SET_RADIO _IO('m',2)
  24. /* select from TV,radio,extern,MUTE */
  25. #define AUDC_SET_INPUT _IOW('m',17,int)
  26. /* audio inputs */
  27. #define AUDIO_TUNER 0x00
  28. #define AUDIO_RADIO 0x01
  29. #define AUDIO_EXTERN 0x02
  30. #define AUDIO_INTERN 0x03
  31. #define AUDIO_OFF 0x04
  32. #define AUDIO_ON 0x05
  33. #define AUDIO_EXTERN_1 AUDIO_EXTERN
  34. #define AUDIO_EXTERN_2 0x06
  35. #define AUDIO_MUTE 0x80
  36. #define AUDIO_UNMUTE 0x81
  37. /* all the stuff below is obsolete and just here for reference. I'll
  38. * remove it once the driver is tested and works fine.
  39. *
  40. * Instead creating alot of tiny API's for all kinds of different
  41. * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
  42. * yet...). It is a bit less flexible, but most/all used i2c chips
  43. * make sense in v4l context only. So I think that's acceptable...
  44. */
  45. /* misc stuff to pass around config info to i2c chips */
  46. #define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
  47. #endif /* AUDIOCHIP_H */