vs1053.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef _DEV_VS1053_H_
  2. #define _DEV_VS1053_H_
  3. /*
  4. * Copyright (C) 2009 by egnite GmbH
  5. *
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. Neither the name of the copyright holders nor the names of
  18. * contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  31. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. * SUCH DAMAGE.
  33. *
  34. * For additional information see http://www.ethernut.de/
  35. */
  36. /*
  37. * $Id: vs1053.h 2660 2009-09-01 17:59:55Z haraldkipp $
  38. */
  39. #define VS_HAS_SM_LAYER12 1
  40. #define VS_HAS_SM_FFWD 0
  41. #define VS_HAS_SM_MP12 0
  42. #define VS_HAS_SM_OUTOFWAV 0
  43. #define VS_HAS_SM_CANCEL 1
  44. #define VS_HAS_SM_PDOWN 0
  45. #define VS_HAS_SM_EARSPEAKER 1
  46. #define VS_HAS_SM_DAC 0
  47. #define VS_HAS_SM_TESTS 1
  48. #define VS_HAS_SM_DACMONO 0
  49. #define VS_HAS_SM_STREAM 1
  50. #define VS_HAS_SM_BASS 0
  51. #define VS_HAS_SM_IBMODE 0
  52. #define VS_HAS_SM_SDISHARE 1
  53. #define VS_HAS_SM_IBCLK 0
  54. #define VS_HAS_SM_SDINEW 1
  55. #define VS_HAS_SM_ADPCM 1
  56. #define VS_HAS_SM_ADPCM_HP 0
  57. #define VS_HAS_SM_LINE_IN 1
  58. #define VS_HAS_SM_CLK_RANGE 1
  59. #define VS_HAS_SS_AVOL 0
  60. #define VS_HAS_SS_VREF_1_65 1
  61. #define VS_HAS_SS_AD_CLOCK 1
  62. #define VS_HAS_SS_VCM_DISABLE 1
  63. #define VS_HAS_SS_VCM_OVERLOAD 1
  64. #define VS_HAS_SS_SWING 1
  65. #define VS_HAS_SS_DO_NOT_JUMP 1
  66. #define VS_HAS_INT_FCTLH_REG 0
  67. #define VS_HAS_BASS_REG 1
  68. #define VS_HAS_SC_FREQ 0
  69. #define VS_HAS_SC_X3FREQ 1
  70. #define VS_HAS_SC_ADD 1
  71. #define VS_HAS_SC_ADD2 1
  72. #define VS_HAS_SC_MULT 1
  73. #define VS_HAS_SC_MULT5 1
  74. #define VS_HAS_CF_DOUBLER 0
  75. #define VS_HAS_AD_STEREO_BIT0 1
  76. #define VS_HAS_AD_SAMRATE 1
  77. #define VS_HAS_AD_BITRATE 0
  78. #define VS_HAS_AD_SAMRATE_IDX 0
  79. #define VS_HAS_HDAT0_REG 1
  80. #define VS_HAS_IN0_REG 0
  81. #define VS_HAS_HDAT1_REG 1
  82. #define VS_HAS_IN1_REG 0
  83. #define VS_HAS_MIXERVOL_REG 0
  84. #define VS_HAS_ADPCMRECCTL_REG 0
  85. #define VS_HAS_AICTRL0_REG 1
  86. #define VS_HAS_AICTRL_REG 0
  87. #define VS_HAS_AICTRL1_REG 1
  88. #define VS_HAS_AICTRL2_REG 1
  89. #define VS_HAS_AICTRL3_REG 1
  90. #define VS_FLUSH_BYTES 2048
  91. #define VS_DECODER_CAPS (AUDIO_FMT_WAV_PCM | AUDIO_FMT_WAV_IMA_ADPCM \
  92. | AUDIO_FMT_MPEG1_L1 | AUDIO_FMT_MPEG1_L2 | AUDIO_FMT_MPEG1_L3 \
  93. | AUDIO_FMT_MPEG2_AAC | AUDIO_FMT_MPEG4_AAC \
  94. | AUDIO_FMT_WMA_V2 | AUDIO_FMT_WMA_V7 | AUDIO_FMT_WMA_V8 | AUDIO_FMT_WMA_V9)
  95. #define VS_ENCODER_CAPS (AUDIO_FMT_WAV_IMA_ADPCM | AUDIO_FMT_VORBIS)
  96. #define VS_MIDI_CAPS (AUDIO_FMT_GMIDI1 | AUDIO_FMT_GMIDI2 | AUDIO_FMT_SPMIDI0)
  97. #endif