mxb.h 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __MXB__
  2. #define __MXB__
  3. #define BASE_VIDIOC_MXB 10
  4. #define MXB_S_AUDIO_CD _IOW ('V', BASE_VIDIOC_PRIVATE+BASE_VIDIOC_MXB+0, int)
  5. #define MXB_S_AUDIO_LINE _IOW ('V', BASE_VIDIOC_PRIVATE+BASE_VIDIOC_MXB+1, int)
  6. #define MXB_IDENTIFIER "Multimedia eXtension Board"
  7. #define MXB_AUDIOS 6
  8. /* these are the available audio sources, which can switched
  9. to the line- and cd-output individually */
  10. static struct v4l2_audio mxb_audios[MXB_AUDIOS] = {
  11. {
  12. .index = 0,
  13. .name = "Tuner",
  14. .capability = V4L2_AUDCAP_STEREO,
  15. } , {
  16. .index = 1,
  17. .name = "AUX1",
  18. .capability = V4L2_AUDCAP_STEREO,
  19. } , {
  20. .index = 2,
  21. .name = "AUX2",
  22. .capability = V4L2_AUDCAP_STEREO,
  23. } , {
  24. .index = 3,
  25. .name = "AUX3",
  26. .capability = V4L2_AUDCAP_STEREO,
  27. } , {
  28. .index = 4,
  29. .name = "Radio (X9)",
  30. .capability = V4L2_AUDCAP_STEREO,
  31. } , {
  32. .index = 5,
  33. .name = "CD-ROM (X10)",
  34. .capability = V4L2_AUDCAP_STEREO,
  35. }
  36. };
  37. #endif