p17v.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
  3. * Driver p17v chips
  4. * Version: 0.01
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. */
  21. /******************************************************************************/
  22. /* Audigy2Value Tina (P17V) pointer-offset register set,
  23. * accessed through the PTR20 and DATA24 registers */
  24. /******************************************************************************/
  25. /* 00 - 07: Not used */
  26. #define P17V_PLAYBACK_FIFO_PTR 0x08 /* Current playback fifo pointer
  27. * and number of sound samples in cache.
  28. */
  29. /* 09 - 12: Not used */
  30. #define P17V_CAPTURE_FIFO_PTR 0x13 /* Current capture fifo pointer
  31. * and number of sound samples in cache.
  32. */
  33. /* 14 - 17: Not used */
  34. #define P17V_PB_CHN_SEL 0x18 /* P17v playback channel select */
  35. #define P17V_SE_SLOT_SEL_L 0x19 /* Sound Engine slot select low */
  36. #define P17V_SE_SLOT_SEL_H 0x1a /* Sound Engine slot select high */
  37. /* 1b - 1f: Not used */
  38. /* 20 - 2f: Not used */
  39. /* 30 - 3b: Not used */
  40. #define P17V_SPI 0x3c /* SPI interface register */
  41. #define P17V_I2C_ADDR 0x3d /* I2C Address */
  42. #define P17V_I2C_0 0x3e /* I2C Data */
  43. #define P17V_I2C_1 0x3f /* I2C Data */
  44. #define P17V_START_AUDIO 0x40 /* Start Audio bit */
  45. /* 41 - 47: Reserved */
  46. #define P17V_START_CAPTURE 0x48 /* Start Capture bit */
  47. #define P17V_CAPTURE_FIFO_BASE 0x49 /* Record FIFO base address */
  48. #define P17V_CAPTURE_FIFO_SIZE 0x4a /* Record FIFO buffer size */
  49. #define P17V_CAPTURE_FIFO_INDEX 0x4b /* Record FIFO capture index */
  50. #define P17V_CAPTURE_VOL_H 0x4c /* P17v capture volume control */
  51. #define P17V_CAPTURE_VOL_L 0x4d /* P17v capture volume control */
  52. /* 4e - 4f: Not used */
  53. /* 50 - 5f: Not used */
  54. #define P17V_SRCSel 0x60 /* SRC48 and SRCMulti sample rate select
  55. * and output select
  56. */
  57. #define P17V_MIXER_AC97_10K1_VOL_L 0x61 /* 10K to Mixer_AC97 input volume control */
  58. #define P17V_MIXER_AC97_10K1_VOL_H 0x62 /* 10K to Mixer_AC97 input volume control */
  59. #define P17V_MIXER_AC97_P17V_VOL_L 0x63 /* P17V to Mixer_AC97 input volume control */
  60. #define P17V_MIXER_AC97_P17V_VOL_H 0x64 /* P17V to Mixer_AC97 input volume control */
  61. #define P17V_MIXER_AC97_SRP_REC_VOL_L 0x65 /* SRP Record to Mixer_AC97 input volume control */
  62. #define P17V_MIXER_AC97_SRP_REC_VOL_H 0x66 /* SRP Record to Mixer_AC97 input volume control */
  63. /* 67 - 68: Reserved */
  64. #define P17V_MIXER_Spdif_10K1_VOL_L 0x69 /* 10K to Mixer_Spdif input volume control */
  65. #define P17V_MIXER_Spdif_10K1_VOL_H 0x6A /* 10K to Mixer_Spdif input volume control */
  66. #define P17V_MIXER_Spdif_P17V_VOL_L 0x6B /* P17V to Mixer_Spdif input volume control */
  67. #define P17V_MIXER_Spdif_P17V_VOL_H 0x6C /* P17V to Mixer_Spdif input volume control */
  68. #define P17V_MIXER_Spdif_SRP_REC_VOL_L 0x6D /* SRP Record to Mixer_Spdif input volume control */
  69. #define P17V_MIXER_Spdif_SRP_REC_VOL_H 0x6E /* SRP Record to Mixer_Spdif input volume control */
  70. /* 6f - 70: Reserved */
  71. #define P17V_MIXER_I2S_10K1_VOL_L 0x71 /* 10K to Mixer_I2S input volume control */
  72. #define P17V_MIXER_I2S_10K1_VOL_H 0x72 /* 10K to Mixer_I2S input volume control */
  73. #define P17V_MIXER_I2S_P17V_VOL_L 0x73 /* P17V to Mixer_I2S input volume control */
  74. #define P17V_MIXER_I2S_P17V_VOL_H 0x74 /* P17V to Mixer_I2S input volume control */
  75. #define P17V_MIXER_I2S_SRP_REC_VOL_L 0x75 /* SRP Record to Mixer_I2S input volume control */
  76. #define P17V_MIXER_I2S_SRP_REC_VOL_H 0x76 /* SRP Record to Mixer_I2S input volume control */
  77. /* 77 - 78: Reserved */
  78. #define P17V_MIXER_AC97_ENABLE 0x79 /* Mixer AC97 input audio enable */
  79. #define P17V_MIXER_SPDIF_ENABLE 0x7A /* Mixer SPDIF input audio enable */
  80. #define P17V_MIXER_I2S_ENABLE 0x7B /* Mixer I2S input audio enable */
  81. #define P17V_AUDIO_OUT_ENABLE 0x7C /* Audio out enable */
  82. #define P17V_MIXER_ATT 0x7D /* SRP Mixer Attenuation Select */
  83. #define P17V_SRP_RECORD_SRR 0x7E /* SRP Record channel source Select */
  84. #define P17V_SOFT_RESET_SRP_MIXER 0x7F /* SRP and mixer soft reset */
  85. #define P17V_AC97_OUT_MASTER_VOL_L 0x80 /* AC97 Output master volume control */
  86. #define P17V_AC97_OUT_MASTER_VOL_H 0x81 /* AC97 Output master volume control */
  87. #define P17V_SPDIF_OUT_MASTER_VOL_L 0x82 /* SPDIF Output master volume control */
  88. #define P17V_SPDIF_OUT_MASTER_VOL_H 0x83 /* SPDIF Output master volume control */
  89. #define P17V_I2S_OUT_MASTER_VOL_L 0x84 /* I2S Output master volume control */
  90. #define P17V_I2S_OUT_MASTER_VOL_H 0x85 /* I2S Output master volume control */
  91. /* 86 - 87: Not used */
  92. #define P17V_I2S_CHANNEL_SWAP_PHASE_INVERSE 0x88 /* I2S out mono channel swap
  93. * and phase inverse */
  94. #define P17V_SPDIF_CHANNEL_SWAP_PHASE_INVERSE 0x89 /* SPDIF out mono channel swap
  95. * and phase inverse */
  96. /* 8A: Not used */
  97. #define P17V_SRP_P17V_ESR 0x8B /* SRP_P17V estimated sample rate and rate lock */
  98. #define P17V_SRP_REC_ESR 0x8C /* SRP_REC estimated sample rate and rate lock */
  99. #define P17V_SRP_BYPASS 0x8D /* srps channel bypass and srps bypass */
  100. /* 8E - 92: Not used */
  101. #define P17V_I2S_SRC_SEL 0x93 /* I2SIN mode sel */