audiodsp_control.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef ENABLE_WAIT_FORMAT
  2. #define ENABLE_WAIT_FORMAT
  3. #endif
  4. #ifndef AUDIODSP_CONTROL_H
  5. #define AUDIODSP_CONTROL_H
  6. struct audiodsp_cmd
  7. {
  8. int cmd;
  9. int fmt;
  10. int data_len;
  11. char *data;
  12. };
  13. #define AUDIODSP_SYNC_AUDIO_PAUSE _IO('a', 0x01)
  14. #define AUDIODSP_SYNC_AUDIO_RESUME _IO('a', 0x02)
  15. #define AUDIODSP_SET_FMT _IOW('a',1,long)
  16. #define AUDIODSP_START _IOW('a',2,long)
  17. #define AUDIODSP_STOP _IOW('a',3,long)
  18. #define AUDIODSP_DECODE_START _IOW('a',4,long)
  19. #define AUDIODSP_DECODE_STOP _IOW('a',5,long)
  20. #define AUDIODSP_REGISTER_FIRMWARE _IOW('a',6,long)
  21. #define AUDIODSP_UNREGISTER_ALLFIRMWARE _IOW('a',7,long)
  22. #define AUDIODSP_SYNC_AUDIO_START _IOW('a',8,unsigned long)
  23. #define AUDIODSP_SYNC_AUDIO_TSTAMP_DISCONTINUITY _IOW('a',9,unsigned long)
  24. #define AUDIODSP_SYNC_SET_APTS _IOW('a',10,unsigned long)
  25. #ifdef ENABLE_WAIT_FORMAT
  26. #define AUDIODSP_WAIT_FORMAT _IOW('a',11,long)
  27. #endif
  28. #define AUDIODSP_DROP_PCMDATA _IOW('a',12, unsigned long)
  29. #define AUDIODSP_GET_CHANNELS_NUM _IOR('r',1,long)
  30. #define AUDIODSP_GET_SAMPLERATE _IOR('r',2,long)
  31. #define AUDIODSP_GET_BITS_PER_SAMPLE _IOR('r',3,long)
  32. #define AUDIODSP_GET_PTS _IOR('r',4,long)
  33. #define AUDIODSP_GET_DECODED_NB_FRAMES _IOR('r',5,long)
  34. #define AUDIODSP_GET_FIRST_PTS_FLAG _IOR('r',6,long)
  35. #define AUDIODSP_SYNC_GET_APTS _IOR('r',7,unsigned long)
  36. #define AUDIODSP_SYNC_GET_PCRSCR _IOR('r',8,unsigned long)
  37. #define MCODEC_FMT_MPEG123 (1<<0)
  38. #define MCODEC_FMT_AAC (1<<1)
  39. #define MCODEC_FMT_AC3 (1<<2)
  40. #define MCODEC_FMT_DTS (1<<3)
  41. #define MCODEC_FMT_FLAC (1<<4)
  42. #define MCODEC_FMT_COOK (1<<5)
  43. #define MCODEC_FMT_AMR (1<<6)
  44. #define MCODEC_FMT_RAAC (1<<7)
  45. #define MCODEC_FMT_ADPCM (1<<8)
  46. #define MCODEC_FMT_WMA (1<<9)
  47. #define MCODEC_FMT_PCM (1<<10)
  48. #define MCODEC_FMT_WMAPRO (1<<11)
  49. #define MCODEC_FMT_ALAC (1<<12)
  50. #define MCODEC_FMT_APE (1<<15)
  51. #endif