msm_audio_ac3.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __MSM_AUDIO_AC3_H
  2. #define __MSM_AUDIO_AC3_H
  3. #include <linux/msm_audio.h>
  4. #define AUDIO_SET_AC3_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
  5. (AUDIO_MAX_COMMON_IOCTL_NUM+0), unsigned)
  6. #define AUDIO_GET_AC3_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
  7. (AUDIO_MAX_COMMON_IOCTL_NUM+1), unsigned)
  8. #define AUDAC3_DEF_WORDSIZE 0
  9. #define AUDAC3_DEF_USER_DOWNMIX_FLAG 0x0
  10. #define AUDAC3_DEF_USER_KARAOKE_FLAG 0x0
  11. #define AUDAC3_DEF_ERROR_CONCEALMENT 0
  12. #define AUDAC3_DEF_MAX_REPEAT_COUNT 0
  13. struct msm_audio_ac3_config {
  14. unsigned short numChans;
  15. unsigned short wordSize;
  16. unsigned short kCapableMode;
  17. unsigned short compMode;
  18. unsigned short outLfeOn;
  19. unsigned short outputMode;
  20. unsigned short stereoMode;
  21. unsigned short dualMonoMode;
  22. unsigned short fsCod;
  23. unsigned short pcmScaleFac;
  24. unsigned short dynRngScaleHi;
  25. unsigned short dynRngScaleLow;
  26. unsigned short user_downmix_flag;
  27. unsigned short user_karaoke_flag;
  28. unsigned short dm_address_high;
  29. unsigned short dm_address_low;
  30. unsigned short ko_address_high;
  31. unsigned short ko_address_low;
  32. unsigned short error_concealment;
  33. unsigned short max_rep_count;
  34. unsigned short channel_routing_mode[6];
  35. };
  36. #endif /* __MSM_AUDIO_AC3_H */