0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
ALC5640-VB-CG

ALC5640-VB-CG

  • 厂商:

    REALTEK(瑞昱)

  • 封装:

    QFN48_6X6MM_EP

  • 描述:

    音频编解码器 QFN48_6X6MM_EP

  • 数据手册
  • 价格&库存
ALC5640-VB-CG 数据手册
ALC5640-VB Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices Datasheet Rev. 0.91 Realtek Semiconductor Corp. No. 2, Innovation Road II, Hsinchu Science Park, Hsinchu 300, Taiwan Tel.: +886-3-578-0211. Fax: +886-3-577-6047 www.realtek.com ALC5640-VB Datasheet COPYRIGHT © 2013 Realtek Semiconductor Corp. All rights reserved. No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means without the written permission of Realtek Semiconductor Corp. DISCLAIMER Realtek provides this document “as is”, without warranty of any kind. Realtek may make improvements and/or changes in this document or in the product described in this document at any time. This document could include technical inaccuracies or typographical errors. TRADEMARKS Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document are trademarks/registered trademarks of their respective owners. USING THIS DOCUMENT This document is intended for the hardware and software engineer’s general information on the Realtek ALC5640 Audio Codec IC. Though every effort has been made to ensure that this document is current and accurate, more information may have become available subsequent to the production of this guide. Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices ii Rev. 0.91 ALC5640-VB Datasheet REVISION HISTORY Revision 0.9 0.91 Release Date 2013/4/15 2013/11/27 Summary ALC5640-VB first release Add pin function description Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices iii Rev. 0.91 ALC5640-VB Datasheet Table of Contents 1. GENERAL DESCRIPTION .............................................................................................................................................. 1 2. FEATURES ......................................................................................................................................................................... 2 3. SYSTEM APPLICATION ................................................................................................................................................. 3 4. FUNCTION BLOCK AND MIXER PATH ..................................................................................................................... 4 4.1. 4.2. 4.3. FUNCTION BLOCK ........................................................................................................................................................ 4 AUDIO MIXER PATH..................................................................................................................................................... 5 DIGITAL MIXER PATH .................................................................................................................................................. 6 5. PIN ASSIGNMENTS ......................................................................................................................................................... 7 6. PIN DESCRIPTIONS......................................................................................................................................................... 8 6.1. 6.2. 6.3. 6.4. 7. DIGITAL I/O PINS ......................................................................................................................................................... 8 ANALOG I/O PINS ........................................................................................................................................................ 9 FILTER/REFERENCE.................................................................................................................................................... 10 POWER/GROUND ........................................................................................................................................................ 10 FUNCTION DESCRIPTION .......................................................................................................................................... 11 7.1. POWER ....................................................................................................................................................................... 11 7.2. POWER SUPPLY ON/OFF SEQUENCE ........................................................................................................................... 12 7.3. RESET ........................................................................................................................................................................ 15 7.3.1. Power-On Reset (POR) ........................................................................................................................................ 15 7.3.2. Software Reset ...................................................................................................................................................... 15 7.4. CLOCKING .................................................................................................................................................................. 16 7.4.1. Phase-Locked Loop .............................................................................................................................................. 17 7.4.2. I2C and Two I2S/PCM Interface ........................................................................................................................... 18 7.5. DIGITAL DATA INTERFACE ........................................................................................................................................ 22 7.5.1. Two I2S/PCM Interface ......................................................................................................................................... 22 7.6. AUDIO DATA PATH .................................................................................................................................................... 25 7.6.1. 2 Analog ADCs with 4-Channel Record Path ...................................................................................................... 25 7.6.2. 4 DACs with 4-Channel Playback Path................................................................................................................ 26 7.6.3. Mixers ................................................................................................................................................................... 27 7.7. ANALOG AUDIO INPUT PORT ..................................................................................................................................... 28 7.8. ANALOG AUDIO OUTPUT PORT .................................................................................................................................. 29 7.9. MULTI-FUNCTION PINS .............................................................................................................................................. 31 7.10. DRC AND AGC FUNCTION ........................................................................................................................................ 33 7.11. SPEAKER AMPLIFIER RATIO GAIN.............................................................................................................................. 36 7.12. SOUNZREAL SOUND EFFECT ...................................................................................................................................... 37 7.13. EQUALIZER BLOCK .................................................................................................................................................... 37 7.14. WIND FILTER WITH DYNAMIC WIND NOISE DETECTOR ............................................................................................. 37 7.14.1. Wind Filter ....................................................................................................................................................... 37 7.14.2. Dynamic Wind Noise Detector ........................................................................................................................ 40 7.15. I2C CONTROL INTERFACE .......................................................................................................................................... 41 7.15.1. Address Setting ................................................................................................................................................ 41 7.15.2. Complete Data Transfer .................................................................................................................................. 41 7.16. GPIO, INTERRUPT AND JACK DETECTION .................................................................................................................. 43 7.17. POWER MANAGEMENT............................................................................................................................................... 46 7.18. SMART NOISE CANCELLATION FUNCTION (SNC) ...................................................................................................... 47 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices iv Rev. 0.91 ALC5640-VB Datasheet 7.19. 8. PROGRAMMABLE REGISTER ARRAY .......................................................................................................................... 48 REGISTERS LIST ........................................................................................................................................................... 49 8.1. 8.2. 8.3. 8.4. 8.5. 8.6. 8.7. 8.8. 8.9. 8.10. 8.11. 8.12. 8.13. 8.14. 8.15. 8.16. 8.17. 8.18. 8.19. 8.20. 8.21. 8.22. 8.23. 8.24. 8.25. 8.26. 8.27. 8.28. 8.29. 8.30. 8.31. 8.32. 8.33. 8.34. 8.35. 8.36. 8.37. 8.38. 8.39. 8.40. 8.41. 8.42. 8.43. 8.44. 8.45. 8.46. 8.47. 8.48. 8.49. 8.50. 8.51. 8.52. REGISTER MAP .......................................................................................................................................................... 49 MX-00H: S/W RESET & DEVICE ID ........................................................................................................................... 52 MX-01H: SPEAKER OUTPUT CONTROL ...................................................................................................................... 52 MX-02H: HEADPHONE OUTPUT CONTROL................................................................................................................. 53 MX-03H: LINE OUTPUT CONTROL ........................................................................................................................... 55 MX-04H: MONO OUTPUT CONTROL ........................................................................................................................ 56 MX-0DH: IN1 INPUT CONTROL ................................................................................................................................. 57 MX-0EH: IN2 INPUT CONTROL ................................................................................................................................. 58 MX-0FH: INL & INR VOLUME CONTROL ................................................................................................................. 58 MX-19H: DACL1/R1 DIGITAL VOLUME ................................................................................................................... 59 MX-1AH: DACL2/R2 DIGITAL VOLUME .................................................................................................................. 60 MX-1BH: DACL2/R2 MUTE/UN-MUTE CONTROL ................................................................................................... 62 MX-1CH: STEREO ADC DIGITAL VOLUME CONTROL ............................................................................................... 62 MX-1DH: MONO ADC DIGITAL VOLUME CONTROL ................................................................................................. 63 MX-1EH: ADC DIGITAL BOOST GAIN CONTROL ...................................................................................................... 64 MX-27H: STEREO ADC DIGITAL MIXER CONTROL ................................................................................................... 65 MX-28H: MONO ADC DIGITAL MIXER CONTROL ..................................................................................................... 65 MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL..................................................................................... 66 MX-2AH: STEREO DAC DIGITAL MIXER CONTROL .................................................................................................. 67 MX-2BH: MONO DAC DIGITAL MIXER CONTROL .................................................................................................... 67 MX-2CH: DAC DIGITAL MIXER CONTROL ............................................................................................................... 68 MX-2FH: INTERFACE DAC/ADC DATA CONTROL.................................................................................................... 69 MX-3BH: RECMIXL CONTROL 1 ............................................................................................................................. 70 MX-3CH: RECMIXL CONTROL 2 ............................................................................................................................. 71 MX-3DH: RECMIXR CONTROL 1 ............................................................................................................................. 72 MX-3EH: RECMIXR CONTROL 2 ............................................................................................................................. 72 MX-45H: HPOMIX CONTROL ................................................................................................................................... 73 MX-46H: SPKMIXL CONTROL ................................................................................................................................. 74 MX-47H: SPKMIXR CONTROL ................................................................................................................................. 75 MX-48H: SPOLMIX CONTROL ................................................................................................................................. 76 MX-49H: SPORMIX CONTROL ................................................................................................................................. 76 MX-4AH: SPOL/RMIX GAIN CONTROL ................................................................................................................... 77 MX-4CH: MONOMIX CONTROL .............................................................................................................................. 77 MX-4DH: OUTMIXL CONTROL 1 ............................................................................................................................ 78 MX-4EH: OUTMIXL CONTROL 2 ............................................................................................................................. 79 MX-4FH: OUTMIXL CONTROL 3 ............................................................................................................................. 79 MX-50H: OUTMIXR CONTROL 1 ............................................................................................................................. 80 MX-51H: OUTMIXR CONTROL 2 ............................................................................................................................. 81 MX-52H: OUTMIXR CONTROL 3 ............................................................................................................................. 82 MX-53H: LOUTMIX CONTROL ................................................................................................................................ 83 MX-61H: POWER MANAGEMENT CONTROL 1 ............................................................................................................ 83 MX-62H: POWER MANAGEMENT CONTROL 2 ............................................................................................................ 84 MX-63H: POWER MANAGEMENT CONTROL 3 ............................................................................................................ 85 MX-64H: POWER MANAGEMENT CONTROL 4 ............................................................................................................ 86 MX-65H: POWER MANAGEMENT CONTROL 5 ............................................................................................................ 86 MX-66H: POWER MANAGEMENT CONTROL 6 ............................................................................................................ 87 MX-6AH: PRIVATE REGISTER INDEX......................................................................................................................... 88 MX-6CH: PRIVATE REGISTER DATA.......................................................................................................................... 88 MX-70H: I2S1 DIGITAL INTERFACE CONTROL .......................................................................................................... 89 MX-71H: I2S2 DIGITAL INTERFACE CONTROL .......................................................................................................... 90 MX-73H: ADC/DAC CLOCK CONTROL 1 .................................................................................................................. 91 MX-74H: ADC/DAC CLOCK CONTROL 2 .................................................................................................................. 92 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices v Rev. 0.91 ALC5640-VB Datasheet 8.53. 8.54. 8.55. 8.56. 8.57. 8.58. 8.59. 8.60. 8.61. 8.62. 8.63. 8.64. 8.65. 8.66. 8.67. 8.68. 8.69. 8.70. 8.71. 8.72. 8.73. 8.74. 8.75. 8.76. 8.77. 8.78. 8.79. 8.80. 8.81. 8.82. 8.83. 8.84. 8.85. 8.86. 8.87. 8.88. 8.89. 8.90. 8.91. 8.92. 8.93. 8.94. 8.95. 8.96. 8.97. 8.98. 8.99. 8.100. 8.101. 8.102. 8.103. 8.104. 8.105. 8.106. 8.107. MX-75H: DIGITAL MICROPHONE CONTROL .............................................................................................................. 92 MX-80H: GLOBAL CLOCK CONTROL ......................................................................................................................... 93 MX-81H: PLL CONTROL 1......................................................................................................................................... 93 MX-82H: PLL CONTROL 2......................................................................................................................................... 94 MX-83H: ASRC CONTROL 1 ..................................................................................................................................... 94 MX-84H: ASRC CONTROL 2 ..................................................................................................................................... 95 MX-85H: ASRC CONTROL 3 ..................................................................................................................................... 96 MX-89H: ASRC CONTROL 4 ..................................................................................................................................... 96 MX-8AH: ASRC CONTROL 5 .................................................................................................................................... 97 MX-8CH: CLASS-D AMP OC CONTROL..................................................................................................................... 97 MX-8DH: CLASS-D AMP OUTPUT CONTROL ............................................................................................................. 98 MX-8EH: HP AMP CONTROL 1 .................................................................................................................................. 98 MX-8FH: HP AMP CONTROL 2 .................................................................................................................................. 99 MX-91H: HP AMP CONTROL ..................................................................................................................................... 99 MX-92H: SPKVDD DETECTION CONTROL ............................................................................................................. 100 MX-93H: MICBIAS CONTROL ................................................................................................................................ 100 MX-B0H: EQ CONTROL 1 ........................................................................................................................................ 101 MX-B1H: EQ CONTROL 2 ........................................................................................................................................ 102 MX-B4H: DRC/AGC CONTROL 1 ........................................................................................................................... 103 MX-B5H: DRC/AGC CONTROL 2 ........................................................................................................................... 104 MX-B6H: DRC/AGC CONTROL 3 ........................................................................................................................... 106 MX-BBH: JACK DETECTION CONTROL 1 ................................................................................................................. 107 MX-BCH: JACK DETECTION CONTROL 2 ................................................................................................................. 108 MX-BDH: IRQ CONTROL 1 ..................................................................................................................................... 108 MX-BEH: IRQ CONTROL 2 ...................................................................................................................................... 109 MX-BFH: GPIO AND INTERNAL STATUS ................................................................................................................. 109 MX-C0H: GPIO CONTROL 1 .................................................................................................................................... 110 MX-C2H: GPIO CONTROL 2 .................................................................................................................................... 110 MX-C8H: PROGRAMMABLE REGISTER ARRAY CONTROL 1 ..................................................................................... 111 MX-C9H: PROGRAMMABLE REGISTER ARRAY CONTROL 2 ..................................................................................... 111 MX-CAH: PROGRAMMABLE REGISTER ARRAY CONTROL 3 .................................................................................... 112 MX-CBH: PROGRAMMABLE REGISTER ARRAY CONTROL 4 .................................................................................... 112 MX-CCH: PROGRAMMABLE REGISTER ARRAY CONTROL 5 .................................................................................... 112 MX-CFH: SOUNZREAL BASSBACK CONTROL ......................................................................................................... 113 MX-D0H: SOUNZREAL TRUTREBLE CONTROL 1 ..................................................................................................... 113 MX-D1H: SOUNZREAL TRUTREBLE CONTROL 2 ..................................................................................................... 114 MX-D2H: SOUNZREAL OMNIHEADPHONE CONTROL .............................................................................................. 115 MX-D3H: WIND FILTER CONTROL – ENABLE/DISABLE .......................................................................................... 115 MX-D6H:HP AMP CONTROL ................................................................................................................................... 116 MX-D9H: SOFT VOLUME & ZCD CONTROL ............................................................................................................ 116 MX-FAH: GENERAL CONTROL 1 ............................................................................................................................. 117 MX-FBH: GENERAL CONTROL 2 ............................................................................................................................. 118 PR-3DH: ADC/DAC RESET CONTROL .................................................................................................................. 119 PR-63H: SOUNZREAL OMNISOUND CONTROL ......................................................................................................... 119 PR-6CH: WIND DETECTOR CONTROL 1 ................................................................................................................... 120 PR-6DH: WIND DETECTOR CONTROL 2 ................................................................................................................... 120 PR-6EH: WIND DETECTOR CONTROL 3 ................................................................................................................... 121 PR-6FH: WIND DETECTOR CONTROL 4 ............................................................................................................... 121 PR-70H: WIND DETECTOR CONTROL 5 ............................................................................................................... 121 PR-73H: WIND DETECTOR CONTROL 6 ............................................................................................................... 121 PR-75H: SOUNZREAL DIPOLE SPEAKER CONTROL ............................................................................................. 122 PR-A0H: EQ LOW PASS FILTER COEFFICIENT (LPF:A1) ..................................................................................... 122 PR-A1H: EQ LOW PASS FILTER GAIN (LPF:H0) ................................................................................................ 122 PR-A2H: EQ BAND 1 COEFFICIENT (BPF1:A1) ................................................................................................... 123 PR-A3H: EQ BAND 1 COEFFICIENT (BPF1:A2) ................................................................................................... 123 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices vi Rev. 0.91 ALC5640-VB Datasheet 8.108. 8.109. 8.110. 8.111. 8.112. 8.113. 8.114. 8.115. 8.116. 8.117. 8.118. 8.119. 8.120. 8.121. 8.122. 8.123. 9. PR-A4H: EQ BAND 1 GAIN (BPF1:H0) .............................................................................................................. 123 PR-A5H: EQ BAND 2 COEFFICIENT (BPF2:A1) ................................................................................................... 123 PR-A6H: EQ BAND 2 COEFFICIENT (BPF2:A2) ................................................................................................... 124 PR-A7H: EQ BAND 2 GAIN (BPF2:H0) .............................................................................................................. 124 PR-A8H: EQ BAND 3 COEFFICIENT (BPF3:A1) ................................................................................................... 124 PR-A9H: EQ BAND 3 COEFFICIENT (BPF3:A2) ................................................................................................... 124 PR-AAH: EQ BAND 3 GAIN (BPF3:H0).............................................................................................................. 125 PR-ABH: EQ BAND 4 COEFFICIENT (BPF4:A1) .................................................................................................. 125 PR-ACH: EQ BAND 4 COEFFICIENT (BPF4:A2) .................................................................................................. 125 PR-ADH: EQ BAND 4 GAIN (BPF4:H0).............................................................................................................. 125 PR-AEH: EQ HIGH PASS FILTER 1 COEFFICIENT (HPF1:A1) .............................................................................. 126 PR-AFH: EQ HIGH PASS FILTER 1 GAIN (HPF1:H0) .......................................................................................... 126 PR-B0H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A1) ............................................................................... 126 PR-B1H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A2) ............................................................................... 126 PR-B2H: EQ HIGH PASS FILTER 2 GAIN (HPF2:H0) ........................................................................................... 127 MX-FEH: VENDOR ID ........................................................................................................................................ 127 ELECTRICAL CHARACTERISTICS ........................................................................................................................ 128 9.1. DC CHARACTERISTICS ............................................................................................................................................. 128 9.1.1. Absolute Maximum Ratings ................................................................................................................................ 128 9.1.2. Recommended Operating Conditions ................................................................................................................. 128 9.1.3. Static Characteristics ......................................................................................................................................... 128 9.2. ANALOG PERFORMANCE CHARACTERISTICS ............................................................................................................ 129 9.3. SIGNAL TIMING ........................................................................................................................................................ 131 9.3.1. I2C Control Interface .......................................................................................................................................... 131 9.3.2. I2S/PCM Interface Master Mode ........................................................................................................................ 132 9.3.3. I2S/PCM Interface Slave Mode ........................................................................................................................... 133 9.3.4. Digital Microphone Interface ............................................................................................................................. 134 10. APPLICATION CIRCUITS ..................................................................................................................................... 135 11. PACKAGE INFORMATION ................................................................................................................................... 137 11.1. 11.2. 12. MECHANICAL DIMENSIONS ...................................................................................................................................... 137 PACKAGE THERMAL INFORMATION ......................................................................................................................... 138 ORDERING INFORMATION ................................................................................................................................. 139 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices vii Rev. 0.91 ALC5640-VB Datasheet List of Tables TABLE 1. TABLE 2. TABLE 3. TABLE 4. TABLE 5. TABLE 6. TABLE 7. TABLE 8. TABLE 10. TABLE 11. TABLE 12. TABLE 13. TABLE 14. TABLE 15. TABLE 16. TABLE 17. TABLE 18. TABLE 19. TABLE 20. TABLE 21. TABLE 22. TABLE 23. TABLE 24. TABLE 25. TABLE 26. TABLE 27. TABLE 28. TABLE 29. TABLE 30. TABLE 31. TABLE 32. TABLE 33. TABLE 34. TABLE 35. TABLE 36. TABLE 37. TABLE 38. TABLE 39. TABLE 40. TABLE 41. TABLE 42. TABLE 43. TABLE 44. TABLE 45. TABLE 46. TABLE 47. TABLE 48. TABLE 49. TABLE 50. TABLE 51. TABLE 52. DIGITAL I/O PINS .......................................................................................................................................................... 8 ANALOG I/O PINS .......................................................................................................................................................... 9 FILTER/REFERENCE ..................................................................................................................................................... 10 POWER/GROUND ......................................................................................................................................................... 10 POWER SUPPLY FOR BEST PERFORMANCE................................................................................................................... 11 POWER SUPPLY CONDITION FOR POWER DOWN LEAKAGE.......................................................................................... 11 RESET OPERATION ...................................................................................................................................................... 15 POWER-ON RESET VOLTAGE....................................................................................................................................... 15 CLOCK SETTING TABLE FOR 48K (UNIT: MHZ) ........................................................................................................ 17 CLOCK SETTING TABLE FOR 44.1K (UNIT: MHZ) ..................................................................................................... 17 THE RELATIVE OF SYSCLK/BCLK/LRCK ............................................................................................................... 18 REGISTER SETTINGS FOR ASRC FUNCTION ON MASTER MODE ................................................................................ 19 REGISTER SETTINGS FOR ASRC FUNCTION ON SLAVE MODE ................................................................................... 21 RATION GAIN TABLE FOR SPKVDD AND AVDD ..................................................................................................... 36 SAMPLE RATE WITH FILTER COEFFICIENT FOR WIND FILTER..................................................................................... 38 ADDRESS SETTING (0X38H) ...................................................................................................................................... 41 WRITE WORD PROTOCOL ........................................................................................................................................ 42 READ WORD PROTOCOL .......................................................................................................................................... 42 PROGRAMMABLE REGISTER TABLE ........................................................................................................................... 48 REGISTER MAP .......................................................................................................................................................... 49 MX-00H: S/W RESET & DEVICE ID .......................................................................................................................... 52 MX-01H: SPEAKER OUTPUT CONTROL ..................................................................................................................... 52 MX-02H: HEADPHONE OUTPUT CONTROL ................................................................................................................ 53 MX-03H: LINE OUTPUT CONTROL ........................................................................................................................... 55 MX-04H: MONO OUTPUT CONTROL ........................................................................................................................ 56 MX-0DH: IN1 INPUT CONTROL ................................................................................................................................ 57 MX-0EH: IN2 INPUT CONTROL ................................................................................................................................. 58 MX-0FH: INL & INR VOLUME CONTROL................................................................................................................. 58 MX-19H: DACL1/R1 DIGITAL VOLUME .................................................................................................................. 59 MX-1AH: DACL2/R2 DIGITAL VOLUME.................................................................................................................. 60 MX-1BH: DACL2/R2 MUTE/UN-MUTE CONTROL ................................................................................................... 62 MX-1CH: STEREO ADC DIGITAL VOLUME CONTROL .............................................................................................. 62 MX-1DH: MONO ADC DIGITAL VOLUME CONTROL ................................................................................................ 63 MX-1EH: ADC DIGITAL BOOST GAIN CONTROL ...................................................................................................... 64 MX-27H: STEREO ADC DIGITAL MIXER CONTROL .................................................................................................. 65 MX-28H: MONO ADC DIGITAL MIXER CONTROL .................................................................................................... 65 MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL .................................................................................... 66 MX-2AH: STEREO DAC DIGITAL MIXER CONTROL ................................................................................................. 67 MX-2BH: MONO DAC DIGITAL MIXER CONTROL.................................................................................................... 67 MX-2CH: DAC DIGITAL MIXER CONTROL ............................................................................................................... 68 MX-2FH: INTERFACE DAC/ADC DATA CONTROL ................................................................................................... 69 MX-3BH: RECMIXL CONTROL 1 ............................................................................................................................ 70 MX-3CH: RECMIXL CONTROL 2 ............................................................................................................................ 71 MX-3DH: RECMIXR CONTROL 1 ............................................................................................................................ 72 MX-3EH: RECMIXR CONTROL 2 ............................................................................................................................ 72 MX-45H: HPOMIX CONTROL .................................................................................................................................. 73 MX-46H: SPKMIXL CONTROL ................................................................................................................................ 74 MX-47H: SPKMIXR CONTROL ................................................................................................................................ 75 MX-48H: SPOLMIX CONTROL ................................................................................................................................ 76 MX-49H: SPORMIX CONTROL ................................................................................................................................ 76 MX-4AH: SPOL/RMIX GAIN CONTROL .................................................................................................................. 77 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices viii Rev. 0.91 ALC5640-VB Datasheet TABLE 53. TABLE 54. TABLE 55. TABLE 56. TABLE 57. TABLE 58. TABLE 59. TABLE 60. TABLE 61. TABLE 62. TABLE 63. TABLE 64. TABLE 65. TABLE 66. TABLE 67. TABLE 68. TABLE 69. TABLE 70. TABLE 71. TABLE 72. TABLE 73. TABLE 74. TABLE 75. TABLE 76. TABLE 77. TABLE 78. TABLE 79. TABLE 80. TABLE 81. TABLE 82. TABLE 83. TABLE 84. TABLE 85. TABLE 86. TABLE 87. TABLE 88. TABLE 89. TABLE 90. TABLE 91. TABLE 92. TABLE 93. TABLE 94. TABLE 95. TABLE 96. TABLE 97. TABLE 98. TABLE 99. TABLE 100. TABLE 101. TABLE 102. TABLE 103. TABLE 104. TABLE 105. TABLE 106. TABLE 107. MX-4CH: MONOMIX CONTROL ............................................................................................................................. 77 MX-4DH: OUTMIXL CONTROL 1 ............................................................................................................................ 78 MX-4EH: OUTMIXL CONTROL 2 ............................................................................................................................ 79 MX-4FH: OUTMIXL CONTROL 3 ............................................................................................................................ 79 MX-50H: OUTMIXR CONTROL 1 ............................................................................................................................ 80 MX-51H: OUTMIXR CONTROL 2 ............................................................................................................................ 81 MX-52H: OUTMIXR CONTROL 3 ............................................................................................................................ 82 MX-53H: LOUTMIX CONTROL ............................................................................................................................... 83 MX-61H: POWER MANAGEMENT CONTROL 1 ........................................................................................................... 83 MX-62H: POWER MANAGEMENT CONTROL 2 ........................................................................................................... 84 MX-63H: POWER MANAGEMENT CONTROL 3 ........................................................................................................... 85 MX-64H: POWER MANAGEMENT CONTROL 4 ........................................................................................................... 86 MX-65H: POWER MANAGEMENT CONTROL 5 ........................................................................................................... 86 MX-66H: POWER MANAGEMENT CONTROL 6 ........................................................................................................... 87 MX-6AH: PRIVATE REGISTER INDEX ........................................................................................................................ 88 MX-6CH: PRIVATE REGISTER DATA ......................................................................................................................... 88 MX-70H: I2S1 DIGITAL INTERFACE CONTROL.......................................................................................................... 89 MX-71H: I2S2 DIGITAL INTERFACE CONTROL.......................................................................................................... 90 MX-73H: ADC/DAC CLOCK CONTROL 1 ................................................................................................................. 91 MX-74H: ADC/DAC CLOCK CONTROL 2 ................................................................................................................. 92 MX-75H: DIGITAL MICROPHONE CONTROL .............................................................................................................. 92 MX-80H: GLOBAL CLOCK CONTROL ........................................................................................................................ 93 MX-81H: PLL CONTROL 1 ........................................................................................................................................ 93 MX-82H: PLL CONTROL 2 ........................................................................................................................................ 94 MX-83H: ASRC CONTROL 1 ..................................................................................................................................... 94 MX-84H: ASRC CONTROL 2 ..................................................................................................................................... 95 MX-85H: ASRC CONTROL 3 ..................................................................................................................................... 96 MX-89H: ASRC CONTROL 4 ..................................................................................................................................... 96 MX-8AH: ASRC CONTROL 5 .................................................................................................................................... 97 MX-8CH: CLASS-D AMP OC CONTROL .................................................................................................................... 97 MX-8DH: CLASS-D AMP OUTPUT CONTROL ............................................................................................................ 98 MX-8EH: HP AMP CONTROL 1 ................................................................................................................................. 98 MX-8FH: HP AMP CONTROL 2 ................................................................................................................................. 99 MX-91H: HP AMP CONTROL .................................................................................................................................... 99 MX-92H: SPKVDD DETECTION CONTROL ............................................................................................................. 100 MX-93H: MICBIAS CONTROL ............................................................................................................................... 100 MX-B0H: EQ CONTROL 1 ....................................................................................................................................... 101 MX-B1H: EQ CONTROL 2 ....................................................................................................................................... 102 MX-B4H: DRC/AGC CONTROL 1 ........................................................................................................................... 103 MX-B5H: DRC/AGC CONTROL 2 ........................................................................................................................... 104 MX-B6H: DRC/AGC CONTROL 3 ........................................................................................................................... 106 MX-BBH: JACK DETECTION CONTROL 1 ................................................................................................................ 107 MX-BCH: JACK DETECTION CONTROL 2 ................................................................................................................ 108 MX-BDH: IRQ CONTROL 1 ..................................................................................................................................... 108 MX-BEH: IRQ CONTROL 2 ..................................................................................................................................... 109 MX-BFH: GPIO AND INTERNAL STATUS ................................................................................................................ 109 MX-C0H: GPIO CONTROL 1 ................................................................................................................................... 110 MX-C2H: GPIO CONTROL 2 ................................................................................................................................. 110 MX-C8H: PROGRAMMABLE REGISTER ARRAY CONTROL 1 .................................................................................. 111 MX-C9H: PROGRAMMABLE REGISTER ARRAY CONTROL 2 .................................................................................. 111 MX-CAH: PROGRAMMABLE REGISTER ARRAY CONTROL 3 ................................................................................. 112 MX-CBH: PROGRAMMABLE REGISTER ARRAY CONTROL 4.................................................................................. 112 MX-CCH: PROGRAMMABLE REGISTER ARRAY CONTROL 5.................................................................................. 112 MX-CFH: SOUNZREAL BASSBACK CONTROL ...................................................................................................... 113 MX-D0H: SOUNZREAL TRUTREBLE CONTROL 1 .................................................................................................. 113 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices ix Rev. 0.91 ALC5640-VB Datasheet TABLE 108. TABLE 109. TABLE 110. TABLE 111. TABLE 112. TABLE 113. TABLE 114. TABLE 115. TABLE 116. TABLE 117. TABLE 118. TABLE 119. TABLE 120. TABLE 121. TABLE 122. TABLE 123. TABLE 124. TABLE 125. TABLE 126. TABLE 127. TABLE 128. TABLE 129. TABLE 130. TABLE 131. TABLE 132. TABLE 133. TABLE 134. TABLE 135. TABLE 136. TABLE 137. TABLE 138. TABLE 139. TABLE 140. TABLE 141. TABLE 142. TABLE 143. TABLE 144. TABLE 145. TABLE 146. TABLE 147. TABLE 148. TABLE 149. TABLE 150. TABLE 151. TABLE 152. TABLE 153. TABLE 154. MX-D1H: SOUNZREAL TRUTREBLE CONTROL 2 .................................................................................................. 114 MX-D2H: SOUNZREAL OMNIHEADPHONE CONTROL ........................................................................................... 115 MX-D3H: WIND FILTER CONTROL – ENABLE/DISABLE ........................................................................................ 115 MX-D6H: HP AMP CONTROL................................................................................................................................ 116 MX-D9H: SOFT VOLUME & ZCD CONTROL ......................................................................................................... 116 MX-FAH: GENERAL CONTROL 1........................................................................................................................... 117 MX-FBH: GENERAL CONTROL 2 ........................................................................................................................... 118 PR-3AH: DIGITAL IO DRIVING CONTROL ............................................................................................................. 119 PR-3DH: ADC/DAC RESET CONTROL................................................................................................................ 119 PR-63H: SOUNZREAL OMNISOUND CONTROL ...................................................................................................... 119 PR-6CH: WIND DETECTOR CONTROL 1 ................................................................................................................. 120 PR-6DH: WIND DETECTOR CONTROL 2 ................................................................................................................ 120 PR-6EH: WIND DETECTOR CONTROL 3 ................................................................................................................. 121 PR-6FH: WIND DETECTOR CONTROL 4 ................................................................................................................. 121 PR-70H: WIND DETECTOR CONTROL 5 ................................................................................................................. 121 PR-73H: WIND DETECTOR CONTROL 6 ................................................................................................................. 121 PR-75H: SOUNZREAL DIPOLE SPEAKER CONTROL................................................................................................ 122 PR-A0H: EQ LOW PASS FILTER COEFFICIENT (LPF:A1) ....................................................................................... 122 PR-A1H: EQ LOW PASS FILTER GAIN (LPF:H0) ................................................................................................... 122 PR-A2H: EQ BAND 1 COEFFICIENT (BPF1:A1) ..................................................................................................... 123 PR-A3H: EQ BAND 1 COEFFICIENT (BPF1:A2) ..................................................................................................... 123 PR-A4H: EQ BAND 1 GAIN (BPF1:H0) ................................................................................................................. 123 PR-A5H: EQ BAND 2 COEFFICIENT (BPF2:A1) ..................................................................................................... 123 PR-A6H: EQ BAND 2 COEFFICIENT (BPF2:A2) ..................................................................................................... 124 PR-A7H: EQ BAND 2 GAIN (BPF2:H0) ................................................................................................................. 124 PR-A8H: EQ BAND 3 COEFFICIENT (BPF3:A1) ..................................................................................................... 124 PR-A9H: EQ BAND 3 COEFFICIENT (BPF3:A2) ..................................................................................................... 124 PR-AAH: EQ BAND 3 GAIN (BPF3:H0) ................................................................................................................ 125 PR-ABH: EQ BAND 4 COEFFICIENT (BPF4:A1) .................................................................................................... 125 PR-ACH: EQ BAND 4 COEFFICIENT (BPF4:A2) .................................................................................................... 125 PR-ADH: EQ BAND 4 GAIN (BPF4:H0) ................................................................................................................ 125 PR-AEH: EQ HIGH PASS FILTER 1 COEFFICIENT (HPF1:A1) ................................................................................ 126 PR-AFH: EQ HIGH PASS FILTER 1 GAIN (HPF1:H0) ............................................................................................ 126 PR-B0H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A1) ................................................................................. 126 PR-B1H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A2) ................................................................................. 126 PR-B2H: EQ HIGH PASS FILTER 2 GAIN (HPF2:H0) ............................................................................................. 127 MX-FEH: VENDOR ID........................................................................................................................................... 127 ABSOLUTE MAXIMUM RATINGS ............................................................................................................................ 128 RECOMMENDED OPERATING CONDITIONS............................................................................................................. 128 STATIC CHARACTERISTICS .................................................................................................................................... 128 ANALOG PERFORMANCE CHARACTERISTICS ......................................................................................................... 129 I2C TIMING ............................................................................................................................................................ 131 TIMING OF I2S/PCM MASTER MODE ..................................................................................................................... 132 I2S/PCM SLAVE MODE TIMING ............................................................................................................................. 133 DIGITAL MICROPHONE INTERFACE TIMING ........................................................................................................... 134 THERMAL INFORMATION ....................................................................................................................................... 138 ORDERING INFORMATION ...................................................................................................................................... 139 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices x Rev. 0.91 ALC5640-VB Datasheet List of Figures FIGURE 1. FIGURE 2. FIGURE 3. FIGURE 4. FIGURE 5. FIGURE 6. FIGURE 7. FIGURE 8. FIGURE 9. FIGURE 10. FIGURE 11. FIGURE 12. FIGURE 13. FIGURE 14. FIGURE 15. FIGURE 16. FIGURE 17. FIGURE 18. FIGURE 19. FIGURE 20. FIGURE 21. FIGURE 22. FIGURE 23. FIGURE 24. FIGURE 26. FIGURE 27. FIGURE 27. FIGURE 28. FIGURE 29. FIGURE 30. FIGURE 31. FIGURE 32. FIGURE 33. FIGURE 34. FIGURE 35. FIGURE 36. BLOCK DIAGRAM ....................................................................................................................................................... 4 AUDIO MIXER PATH ................................................................................................................................................... 5 DIGITAL MIXER PATH ................................................................................................................................................ 6 PIN ASSIGNMENTS ...................................................................................................................................................... 7 POWER ON/OFF SEQUENCE ...................................................................................................................................... 14 AUDIO CLOCK TREE ................................................................................................................................................. 16 SYSTEM CONNECTION FOR ASRC FUNCTION ........................................................................................................... 20 PCM MONO DATA MODE A FORMAT (BCLK POLARITY=0) .............................................................................. 22 PCM MONO DATA MODE A FORMAT (BCLK POLARITY=1) .............................................................................. 22 PCM MONO DATA MODE B FORMAT (BCLK POLARITY=0) ............................................................................ 23 PCM STEREO DATA MODE A FORMAT (BCLK POLARITY=0) ............................................................................ 23 PCM STEREO DATA MODE B FORMAT (BCLK POLARITY=0).............................................................................. 23 I2S DATA FORMAT (BCLK POLARITY=0) ............................................................................................................. 24 LEFT-JUSTIFIED DATA FORMAT (BCLK POLARITY=0) ........................................................................................ 24 4-CHANNEL RECORDING PATH ................................................................................................................................ 25 4-CHANNEL PLAYBACK PATH .................................................................................................................................. 26 SPEAKER OUTPUT MODE – STEREO MODE............................................................................................................... 29 DAC DRC FUNCTION BLOCK .................................................................................................................................. 33 ADC AGC FUNCTION BLOCK .................................................................................................................................. 33 DRC/AGC FOR PLAYBACK/RECORDING MODE ....................................................................................................... 34 DRC/AGC FOR NOISE GATE MODE ......................................................................................................................... 35 RATIO GAIN BEHAVIOR FOR SPKVDD AND AVDD ................................................................................................ 36 WIND NOISE DETECTOR ........................................................................................................................................... 40 DATA TRANSFER OVER I2C CONTROL INTERFACE ................................................................................................... 41 GPIO FUNCTION BLOCK .......................................................................................................................................... 43 IRQ FUNCTION BLOCK............................................................................................................................................. 44 JD SOURCE SELECTION ............................................................................................................................................ 45 POWER MANAGEMENT ............................................................................................................................................. 46 SNC FUNCTION DIAGRAM ....................................................................................................................................... 47 SNC FUNCTION BLOCK ............................................................................................................................................ 47 I2C CONTROL INTERFACE ....................................................................................................................................... 131 TIMING OF I2S/PCM MASTER MODE ...................................................................................................................... 132 I2S/PCM SLAVE MODE TIMING ............................................................................................................................. 133 DIGITAL MICROPHONE INTERFACE TIMING............................................................................................................ 134 APPLICATION CIRCUIT ........................................................................................................................................... 136 PACKAGE DIMENSION ............................................................................................................................................ 137 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices xi Rev. 0.91 ALC5640-VB Datasheet 1. General Description The ALC5640 is a high performance, low power, dual I2S interface audio CODEC. Dual I2S interface can connect to different devices and let the ALC5640 to be an Audio Hub. Each device can pass through the Audio Hub and then perform as input or output application. Asynchronous Sample Rate Converter (ASRC) provides independent and asynchronous connections to different processors, such as an application processor, baseband processor or wireless transceiver(BT). Stereo Class-D speaker amplifiers provide 1.5W per channel into 8Ω or 2.5W per channel into 4Ω with a 5V supply, with excellent PSRR and low EMI. A mono differential earpiece amplifier is also provided, providing output from any DAC or Analog-in. The ALC5640 features an ultra low power cap-free headphone amplifier. It consumes only less than 5mW power during playback, providing mobile system longer battery life under headphone listening mode. The integrated DRC(Dynamic Range Controller) and 7-band parametric Equalizer provide further digital sound processing capability of audio playback paths. The DRC in ALC5640 continuously monitors the DAC output level. When the power level is low, it increases the input signal gain to make it sound louder. At the same time, if a peaking signal is detected, it autonomously reduces the applied gain to avoid hard clipping. It ensures the maximum/consistent signal amplitude without producing audio clipping and speaker damage. The 7-band parametric Equalizer contains 7 independent filters with programmable gain, center frequency and bandwidth to tailor the frequency characteristics of embedded speaker system according to user preferences. For microphone recording, the DRC in ALC5640 can be used as AGC(Auto Gain Controller) to maintain a constant recording volume. Besides, a dynamic wind reduction filter is built in on recording path. The filter can detect the level of wind noise and on/off dynamically to keep the recording quality. SounzRealTM digital sound effect technology is configurable to provide better listening experience. OminiSound EXPTM expands the sound field of embedded stereo speaker. BassBack EXPTM and TruBass EXPTM bring LFE(low frequency effect) to listeners without subwoofer needed. OmniHeadphone EXPTM provides broader sound field when wearing headphone. TruTreble EXPTM adds processed harmonic tones at high frequency, bringing more melody and details for music listening. ALC5640 only requires two voltage supplies and consume ultra low power, making it ideal for mobile devices. Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 1 Rev. 0.91 ALC5640-VB Datasheet 2. Features Analog Features:           Digital-to-Analog Converter with 100dBA SNR Analog-to-Digital Converter with 94dBA SNR Differential analog microphone inputs with boost pre-amplifiers and low noise microphone bias  +20/+24/+30/+35/+40/+44/+50/+52 dB microphone boost gain  MIC input to ADC with 50dB boost gain, SNR > 66dBA and THD+N < -65dB  Adjustable MICBIAS (0.9*MICVDD or 0.75*MICVDD) Stereo line inputs  Line input to ADC with 0dB gain, SNR >= 94dBA, THD+N = 100dBA, THD+N SNC bypass => De-pop process => Monitor mode => Parameter fine-tune ADC MIC Figure 30. SNC Function Block Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 47 Rev. 0.91 ALC5640-VB Datasheet 7.19. Programmable Register Array The Programmable Register Array is used for continuing executing register set by one register command. These registers are need to program first. There are 16-sequences register settings can be set. For each sequence, can fill in MX type registers, PR type register or time delay (100us ~ 100ms). These 16-sequences registers can be divided to two sequencers. The start point and end point for each sequencer can be set from sequence-0 to sequence-15. For example, you can program sequencer-1 to execute sequence-0 to sequence-10 and sequencer-2 to execute sequence-11 to sequence-15 or program sequencer-1 to execute sequence -6 to sequence -15 and sequencer-2 to execute sequence -0 to sequence -5. The Table 17 shown as programmable register table with two sequencers. Sequencer (1-bit) Start 1 End Start 2 End Sequences (4-bit) 0000’b 0001’b 0010’b 0011’b 0100’b 0101’b 0110’b 0111’b 1000’b 1001’b 1010’b 1011’b 1100’b 1101’b 1110’b 1111’b Table 20. Programmable Register Table Delay Time Register Level Register Index (8-bit) (1-bit) (8-bit) x xx xx x xx xx x xx xx x xx xx x xx xx x xx xx x xx xx x xx xx - Register Data (16-bit) xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx - Settings Procedures: 1. Set Programmable Register Table => Set register level (MX-C8[9])/register index (MX-C8[7:0])/register data (MX-C9) for each sequence (MX-C8[15:12]) => Set delay time (MX-CA[15:8]) for each sequence (MX-C8[15:12]) => Set start point (MX-CB[11:8]/MX-CC[11:8]) and end point (MX-CB[3:0]/MX-CC[3:0]) for each sequencer 2. Enable Programmable Register Function (MX-CA[7]) 3. Execute Sequencer-1/2 => Sequencer-1 (MX-CA[6]) => Sequencer-2 (MX-CA[5]) 4. Check Sequencer-1/2 finished or not? => Sequencer-1 (MX-C8[11]) => Sequencer-2 (MX-C8[10]) Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 48 Rev. 0.91 ALC5640-VB Datasheet 8. Registers List ALC5640 register map as shown as following and accessing unimplemented registers, will return a 0. 8.1. Register Map Type Reset I/O Digital Gain/Volume Digital Mixer Input Mixer Output Mixer Power Management Name S/W Reset SPKOUT HPOUT LOUT MONOOUT IN1 IN2 INL/INR DACL1/R1 DACL2/R2-1 DACL2/R2-2 ADCL/R-1 ADCL/R-2 ADCL/R-3 ADC-1 ADC-2 ADC-3 DAC-1 DAC-2 DAC-3 Copy Mode RECMIXL-1 RECMIXL-2 RECMIXR-1 RECMIXR-2 HPOMIX SPKMIXL SPKMIXR SPOMIXL SPOMIXR SPOMIXL/R MONOMIX OUTMIXL-1 OUTMIXL-2 OUTMIXL-3 OUTMIXR-1 OUTMIXR-2 OUTMIXR-3 LOUTMIX Management1 Table 21. Register Map Description S/W Reset & Device ID Speaker Output Volume & Mute/Un-Mute Headphone Output Volume & Mute/Un-Mute Line Output Volume & Mute/Un-Mute MONO Output Mute/Un-Mute IN1 Mode and Gain Boost Control IN2 Mode and Gain Boost Control INL/INR Volume Control DACL1/R1 Digital Volume Control DACL2/R2 Digital Volume Control DACL2/R2 Digital Mute/Un-Mute Control ADCL/R Digital Volume & Mute/Un-Mute Control ADCL/R Digital Path Volume Control ADC Boost Gain for DMIC ADC Stereo Digital Mixer Control ADC Mono Digital Mixer Control ADC to DAC Digital Mixer Control DAC Stereo Digital Mixer Control DAC Mono Digital Mixer Control DAC Stereo to Mono Mixer Control ADC/DAC Data Copy Mode Control RECMIXL Gain Control RECMIXL Gain & Selection Control RECMIXR Gain Control RECMIXR Gain & Selection Control HPOMIX Gain & Selection Control SPKMIXL Gain & Selection Control SPKMIXR Gain & Selection Control SPOMIXL Selection Comtrol SPOMIXR Selection Control SPOMIXL/R Gain Control MONOMIX Gain & Selection Control OUTMIXL Gain Control-1 OUTMIXL Gain Control-2 OUTMIXL Selection Control OUTMIXR Gain Control-1 OUTMIXR Gain Control-2 OUTMIXR Selection Control LOUTMIX Gain & Selection Control Register Address MX-00h MX-01h MX-02h MX-03h MX-04h MX-0Dh MX-0Eh MX-0Fh MX-19h MX-1Ah MX-1Bh MX-1Ch MX-1Dh MX-1Eh MX-27h MX-28h MX-29h MX-2Ah MX-2Bh MX-2Ch MX-2Fh MX-3Bh MX-3Ch MX-3Dh MX-3Eh MX-45h MX-46h MX-47h MX-48h MX-49h MX-4Ah MX-4Ch MX-4Dh MX-4Eh MX-4Fh MX-50h MX-51h MX-52h MX-53h Reset State 0x0004’h 0xC8C8’h 0xC8C8’h 0xC8C8’h 0x8000’h 0x0000’h 0x0000’h 0x0808’h 0xAFAF’h 0xAFAF’h 0x0000’h 0x2F2F’h 0x2F2F’h 0x0000’h 0x7060’h 0x7070’h 0x8080’h 0x5454’h 0x5454’h 0xAA00’h 0x0000’h 0x0000’h 0x007F’h 0x0000’h 0x007F’h 0xE000’h 0x003E’h 0x003E’h 0xF800’h 0x3800’h 0x0004’h 0xFC00’h 0x0000’h 0x0000’h 0x01FF’h 0x0000’h 0x0000’h 0x01FF’h 0xF000’h I2S & DAC & ADC & Class-D Power Control MX-61h 0x0000’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 49 Rev. 0.91 ALC5640-VB Datasheet Type PR Register Digital Interface Digital MIC Global Clock SPK Amp Name Management2 Management3 Management4 Management5 Management6 PR Index PR Data I2S1 Port Ctrl I2S2 Port Ctrl ADC/DAC Clock-1 ADC/DAC Clock-2 DMIC Global Clock PLL-1 PLL-2 ASRC-1 ASRC-2 ASRC-3 ASRC-6 ASRC-7 Class-D Class-D HP Amp HP SPK Amp MICBIAS PV Detection MICBIAS EQ-1 EQ-2 EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter EQ Description Register Address Reset State Digital Filter Power Control MX-62h 0x0000’h VREF & MBias & LOUTMIX & Mono & HP & LDO2 Power Control MX-63h 0x00C0’h MICBST & MICBIAS Power Control MX-64h 0x0000’h OUTMIX & SPKMIX & RECMIX Power Control MX-65h 0x0000’h MX-66h 0x0000’h MX-6Ah Mx-6Ch MX-70h MX-71h 0x0000’h 0x0000’h 0x8000’h 0x8000’h ADC/DAC Clock Control-1 MX-73h 0x1110’h ADC/DAC Clock Control-2 MX-74h 0x0C00’h Digital Microphone Control Global Clock Control PLL Control-1 PLL Control-2 ASRC Control-1 ASRC Control-2 ASRC Control-3 ASRC Control-4 ASRC Control-5 Class-D OC Control Class-D Ratio Gain & Mode Control HP Output De-Pop Control 1 HP Output De-Pop Control 2 HP Control SPKVDD Detection Control MICBIAS Control EQ Control-1 EQ Control-2 EQ Low Pass Filter – a1 EQ Low Pass Filter – H0 EQ Band Pass Filter 1 – a1 EQ Band Pass Filter 1 – a2 EQ Band Pass Filter 1 – H0 EQ Band Pass Filter 2 – a1 EQ Band Pass Filter 2 – a2 EQ Band Pass Filter 2 – H0 EQ Band Pass Filter 3 – a1 EQ Band Pass Filter 3 – a2 EQ Band Pass Filter 3 – H0 EQ Band Pass Filter 4 – a1 EQ Band Pass Filter 4 – a2 EQ Band Pass Filter 4 – H0 EQ High Pass Filter 1 – a1 MX-75h MX-80h MX-81h MX-82h MX-83h MX-84h MX-85h MX-89h MX-8Ah MX-8Ch MX-8Dh MX-8Eh MX-8Fh MX-D6h MX-92h MX-93h MX-B0h MX-B1h PR-A0h PR-A1h PR-A2h PR-A3h PR-A4h PR-A5h PR-A6h PR-A7h PR-A8h PR-A9h PR-AAh PR-ABh PR-ACh PR-ADh PR-AEh 0x1D00’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0008’h 0x0000’h 0x0000’h 0x0228’h 0xA800’h 0x0004’h 0x1100’h 0x0400’h 0x0000’h 0x3000’h 0x2000’h 0x0000’h 0x1C10’h 0x01F4’h 0xC5E9’h 0x1A98’h 0x1D2C’h 0xC882’h 0x1C10’h 0x01F4’h 0xE904’h 0x1C10’h 0x01F4’h 0xE904’h 0x1C10’h 0x01F4’h 0x1C10’h SPOVOL & OUTVOL & HPOVOL & INVOL Power Control PR Register Index PR Register Data I2S-1 Interface Control I2S-2 Interface Control Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 50 Rev. 0.91 ALC5640-VB Datasheet Type Name EQ-Parameter EQ-Parameter EQ-Parameter EQ-Parameter DRC/AGC-1 DRC/AGC DRC/AGC-2 DRC/AGC-3 SNC-1 SNC SNC-2 SNC-3 JD-1 Jack Detection JD-2 IRQ-1 IRQ IRQ-2 Flag Status Status GPIO-1 GPIO GPIO-2 Control-1 Control-2 Register Array Control-3 Control-4 Control-5 BassBack TruTreble TruTreble SounzReal OmniHeadpho Sound Effect ne OmniSound Dipole SPK Control-1 Control-2 Control-3 Wind Filter Control-4 Control-5 Control-6 Control-7 SVOL & ZCD SVOL & ZCD General Control Vendor ID ID Description EQ High Pass Filter 1 – H0 EQ High Pass Filter 2 – a1 EQ High Pass Filter 2 – a2 EQ High Pass Filter 2 – H0 DRC/AGC Control-1 DRC/AGC Control-2 DRC/AGC Control-3 SNC Control-1 SNC Control-2 SNC Control-3 Jack Detection Control-1 Jack Detection Control-2 IRQ Control-1 IRQ Control-2 GPIO & Internal Status GPIO Control-1 GPIO Control-2 Register Array Control-1 Register Array Control-2 Register Array Control-3 Register Array Control-4 Register Array Control-5 BassBack Control TruTreble Control-1 TruTreble Control-2 Register Address PR-AFh PR-B0h PR-B1h PR-B2h MX-B4h MX-B5h MX-B6h MX-B8h MX-B9h MX-BAh MX-BBh MX-BCh MX-BDh MX-BEh MX-BFh MX-C0h MX-C2h MX-C8h MX-C9h MX-CAh MX-CBh MX-CCh MX-CFh MX-D0h MX-D1h Reset State 0x01F4’h 0x2000’h 0x0000’h 0x2000’h 0x2206’h 0x1F00’h 0x0000’h 0x034B’h 0x0066’h 0x000B’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0400’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0000’h 0x0013’h 0x0680’h 0x1C17’h OmniHeadphone Control MX-D2h 0x8C00’h OmniSound Control Dipole Speaker Control Wind Filter Control – Enable/Disable, Sample Rate Wind Detector Enable Control Wind Detector Parameter Control Wind Filter Control - Fc Wind Detector Parameter Control Wind Detector Parameter Control Wind Detector Parameter Control Soft Volume and ZCD Control General Control 1 General Control 2 Digital I/O driving Control ADC/DAC RESET Control Vendor ID PR-63h PR-75h MX-D3h PR-6Ch PR-6Dh PR-6Eh PR-6Fh PR-70h PR-73h MX-D9h MX-FAh MX-FBh PR-3Ah PR-3Dh MX-FEh 0x3737’h 0x5000’h 0xAA20’h 0x1AC5’h 0x00C0’h 0x3019’h 0x4096’h 0xC0BE’h 0x0000’h 0x0809’h 0x3400’h 0x0000’h 0x4002’h 0x2400’h 0x10EC’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 51 Rev. 0.91 ALC5640-VB Datasheet 8.2. MX-00h: S/W Reset & Device ID Default: 0004’h Table 22. MX-00h: S/W Reset & Device ID Port Name Bits Read/Write Reset State Description 15:3 R 0’h Reserved Reserved 2:1 R 2’h Device_id ALC5640 0 R 0’h Reserved Reserved Note: Writes to this register will reset all registers to their default values. 8.3. MX-01h: Speaker Output Control Default: C8C8’h Port Name mu_spo_l Bits 15 Table 23. MX-01h: Speaker Output Control Read/Write Reset State Description R/W 1’h Mute Control for Left Speaker Output Port (SPOLP/LN) 0’b: Un-Mute 1’b: Mute Mu_spkvoll_in 14 R/W 1’h Mute Control for Left Speaker Volume Channel (SPKVOLL) 0’b: Un-Mute 1’b: Mute vol_spol 13:8 R/W 8’h Left Speaker Channel Volume Control (SPKVOLL)  00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step mu_spo_r 7 R/W 1’h Mute Control for Right Speaker Output Port (SPORP/RN) 0’b: Un-Mute 1’b: Mute Mu_spkvolr_in 6 R/W 1’h Mute Control for Right Speaker Volume Channel (SPKVOLR) 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 52 Rev. 0.91 ALC5640-VB Datasheet Port Name Vol_spor Bits 5:0 Read/Write R/W Reset State Description 8’h Right Speaker Channel Volume Control (SPKVOLR)  00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step Volume Table DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 0 0 12 16 10 -12 32 20 -36 1 1 10.5 17 11 -13.5 33 21 -37.5 2 2 9 18 12 -15 34 22 -39 3 3 7.5 19 13 -16.5 35 23 -40.5 4 4 6 20 14 -18 36 24 -42 5 5 4.5 21 15 -19.5 37 25 -43.5 6 6 3 22 16 -21 38 26 -45 7 7 1.5 23 17 -22.5 39 27 -46.5 8 8 0 24 18 -24 9 9 -1.5 25 19 -25.5 10 A -3 26 1A -27 11 B -4.5 27 1B -28.5 12 C -6 28 1C -30 13 D -7.5 29 1D -31.5 14 E -9 30 1E -33 15 F -10.5 31 1F -34.5 8.4. MX-02h: Headphone Output Control Default: C8C8’h Name mu_hpo_l Bits 15 Table 24. MX-02h: Headphone Output Control Read/Write Reset State Description R/W 1’h Mute Control for Left Headphone Output Port (HPOL) 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 53 Rev. 0.91 ALC5640-VB Datasheet Name Mu_hpovoll_in Bits Read/Write Reset State 14 R/W 1’h Description Mute Control for Left Headphone Volume Channel (HPOVOLL) 0’b: Un-Mute 1’b: Mute vol_hpol 13:8 R/W Left Headphone Channel Volume Control (HPOVOLL)  8’h 00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step mu_hpo_r 7 1’h R/W Mute Control Right Headphone Output Port (HPOR) 0’b: Un-Mute 1’b: Mute Mu_hpovolr_in 6 R/W Mute Control for Right Headphone Volume Channel 1’h (HPOVOLR) 0’b: Un-Mute 1’b: Mute Vol_hpor 5:0 R/W 8’h Right Headphone Channel Volume Control (HPOVOLR) 00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step Volume Table DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 0 0 12 16 10 -12 32 20 -36 1 1 10.5 17 11 -13.5 33 21 -37.5 2 2 9 18 12 -15 34 22 -39 3 3 7.5 19 13 -16.5 35 23 -40.5 4 4 6 20 14 -18 36 24 -42 5 5 4.5 21 15 -19.5 37 25 -43.5 6 6 3 22 16 -21 38 26 -45 7 7 1.5 23 17 -22.5 39 27 -46.5 8 8 0 24 18 -24 9 9 -1.5 25 19 -25.5 10 A -3 26 1A -27 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 54 Rev. 0.91 ALC5640-VB Datasheet 11 B -4.5 27 1B -28.5 12 C -6 28 1C -30 13 D -7.5 29 1D -31.5 14 E -9 30 1E -33 15 F -10.5 31 1F -34.5 8.5. MX-03h: LINE Output Control Default: C8C8’h Name Mu_lout_l Bits 15 Mu_outvoll_in 14 Vol_outl 13:8 Table 25. MX-03h: LINE Output Control Read/Write Reset State Description R/W 1’h Mute Control for Left Line Output Port(LOUTL) 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for Left Output Volume Channel (OUTVOLL) 0’b: Un-Mute 1’b: Mute R/W 08’h Left Output Volume Control (OUTVOLL)  00’h: +12dB … 08’h: 0dB … Mu_lout_r 7 R/W 1’h Mu_outvolr_in 6 R/W 1’h 5:0 R/W 08’h Vol_outr 27’h: -46.5dB, with 1.5dB/step Mute Control for Right Line Output Port (LOUTR) 0’b: Un-Mute 1’b: Mute Mute Control for Right Output Volume Channel (OUTVOLR) 0’b: Un-Mute 1’b: Mute Right Output Volume Control  00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step Volume Table DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 0 0 12 16 10 -12 32 20 -36 1 1 10.5 17 11 -13.5 33 21 -37.5 2 2 9 18 12 -15 34 22 -39 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 55 Rev. 0.91 ALC5640-VB Datasheet 3 3 7.5 19 13 -16.5 35 23 -40.5 4 4 6 20 14 -18 36 24 -42 5 5 4.5 21 15 -19.5 37 25 -43.5 6 6 3 22 16 -21 38 26 -45 7 7 1.5 23 17 -22.5 39 27 -46.5 8 8 0 24 18 -24 9 9 -1.5 25 19 -25.5 10 A -3 26 1A -27 11 B -4.5 27 1B -28.5 12 C -6 28 1C -30 13 D -7.5 29 1D -31.5 14 E -9 30 1E -33 15 F -10.5 31 1F -34.5 8.6. MX-04h: MONO Output Control Default: 8000’h Name mu_mono Bits 15 Table 26. MX-04h: MONO Output Control Read/Write Reset State Description R/W 1’h Mute Control for MONO Output Port 0’b: Un-Mute 1’b: Mute reserved 14:0 R 0’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices Reserved 56 Rev. 0.91 ALC5640-VB Datasheet 8.7. MX-0Dh: IN1 Input Control Default: 0000’h Name Sel_bst1 Bits 15:12 Sel_bst3 11:8 En_in1_df 7 Table 27. MX-0Dh: IN1 Input Control Read/Write Reset State Description R/W 0’h IN1 Boost Control (BST1) 0000’b: Bypass 0001’b: +20dB 0010’b: +24dB 0011’b: +30dB 0100’b: +35dB 0101’b: +40dB 0110’b: +44dB 0111’b: +50dB 1000’b: +52dB Others : Reserved R/W 0’h IN3 Boost Control (BST3) 0000’b: Bypass 0001’b: +20dB 0010’b: +24dB 0011’b: +30dB 0100’b: +35dB 0101’b: +40dB 0110’b: +44dB 0111’b: +50dB 1000’b: +52dB Others : Reserved R/W 0’h IN1 Input Mode Control 0’b: Single Ended Mode 1’b: Differential Mode En_in3_df 6 R/W 0’h IN3 Input Mode Control 0’b: Single Ended Mode 1’b: Differential Mode reserved 5:0 R/W 0’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices Reserved 57 Rev. 0.91 ALC5640-VB Datasheet 8.8. MX-0Eh: IN2 Input Control Default: 0000’h Table 28. MX-0Eh: IN2 Input Control Read/Write Reset State Description R/W 0’h Reserved Name Reserved Bits 15:12 Sel_bst2 11:8 R/W 0’h Reserved 7 R 0’h IN2 Boost Control (BST2) 0000’b: Bypass 0001’b: +20dB 0010’b: +24dB 0011’b: +30dB 0100’b: +35dB 0101’b: +40dB 0110’b: +44dB 0111’b: +50dB 1000’b: +52dB Others : Reserved Reserved En_in2_df 6 R/W 0’h IN2 Input Mode Control 0’b: Single Ended Mode 1’b: Differential Mode Reserved 5:0 R 0’h Reserved 8.9. MX-0Fh: INL & INR Volume Control Default: 0808’h Name reserved Bits 15:13 Vol_inl 12:8 Table 29. MX-0Fh: INL & INR Volume Control Read/Write Reset State Description R 0’h Reserved R/W 8’h INL Channel Volume Control  00’h: +12dB … 08’h: 0dB … Reserved 7:5 R 0’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 1F’h: -34.5dB, with 1.5dB/step Reserved 58 Rev. 0.91 ALC5640-VB Datasheet Name Vol_inr Bits 4:0 Read/Write R/W Reset State 8’h Description INR Channel Volume Control  00’h: +12dB … 08’h: 0dB … 1F’h: -34.5dB, with 1.5dB/step Volume Table: DEC HEX Boost Gain DEC HEX Boost Gain 0 0 12 16 10 -12 1 1 10.5 17 11 -13.5 2 2 9 18 12 -15 3 3 7.5 19 13 -16.5 4 4 6 20 14 -18 5 5 4.5 21 15 -19.5 6 6 3 22 16 -21 7 7 1.5 23 17 -22.5 8 8 0 24 18 -24 9 9 -1.5 25 19 -25.5 10 A -3 26 1A -27 11 B -4.5 27 1B -28.5 12 C -6 28 1C -30 13 D -7.5 29 1D -31.5 14 E -9 30 1E -33 15 F -10.5 31 1F -34.5 8.10. MX-19h: DACL1/R1 Digital Volume Default: AFAF’h Name vol_dac1_l Bits 15:8 Table 30. MX-19h: DACL1/R1 Digital Volume Read/Write Reset State Description R/W AF’h DAC1 Left Channel Digital Volume 00’h: -65.625dB … AF’h: 0dB, with 0.375dB/Step Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 59 Rev. 0.91 ALC5640-VB Datasheet Name vol_dac1_r Bits 7:0 Read/Write R/W Reset State Description AF’h DAC1 Right Channel Digital Volume 00’h: -65.625dB … AF’h: 0dB, with 0.375dB/Step 8.11. MX-1Ah: DACL2/R2 Digital Volume Default: AFAF’h Name vol_dac2_l Bits 15:8 Table 31. MX-1Ah: DACL2/R2 Digital Volume Read/Write Reset State Description R/W AF’h DAC2 Left Channel Digital Volume 00’h: -65.625dB … AF’h: 0dB, with 0.375dB/Step vol_dac2_r 7:0 R/W AF’h DAC2 Right Channel Digital Volume 00’h: -65.625dB … AF’h: 0dB, with 0.375dB/Step Volume Table: DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 0 0 -65.625 53 35 -45.75 106 6A -25.875 159 9F -6 212 D4 1 1 -65.25 54 36 -45.375 107 6B -25.5 160 A0 -5.625 213 D5 2 2 -64.875 55 37 -45 108 6C -25.125 161 A1 -5.25 214 D6 3 3 -64.5 56 38 -44.625 109 6D -24.75 162 A2 -4.875 215 D7 4 4 -64.125 57 39 -44.25 110 6E -24.375 163 A3 -4.5 216 D8 5 5 -63.75 58 3A -43.875 111 6F -24 164 A4 -4.125 217 D9 6 6 -63.375 59 3B -43.5 112 70 -23.625 165 A5 -3.75 218 DA 7 7 -63 60 3C -43.125 113 71 -23.25 166 A6 -3.375 219 DB 8 8 -62.625 61 3D -42.75 114 72 -22.875 167 A7 -3 220 DC 9 9 -62.25 62 3E -42.375 115 73 -22.5 168 A8 -2.625 221 DD 10 A -61.875 63 3F -42 116 74 -22.125 169 A9 -2.25 222 DE 11 B -61.5 64 40 -41.625 117 75 -21.75 170 AA -1.875 223 DF 12 C -61.125 65 41 -41.25 118 76 -21.375 171 AB -1.5 224 E0 13 D -60.75 66 42 -40.875 119 77 -21 172 AC -1.125 225 E1 14 E -60.375 67 43 -40.5 120 78 -20.625 173 AD -0.75 226 E2 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 60 Rev. 0.91 ALC5640-VB Datasheet 15 F -60 68 44 -40.125 121 79 -20.25 174 AE -0.375 227 E3 16 10 -59.625 69 45 -39.75 122 7A -19.875 175 AF 0 228 E4 17 11 -59.25 70 46 -39.375 123 7B -19.5 176 B0 229 E5 18 12 -58.875 71 47 -39 124 7C -19.125 177 B1 230 E6 19 13 -58.5 72 48 -38.625 125 7D -18.75 178 B2 231 E7 20 14 -58.125 73 49 -38.25 126 7E -18.375 179 B3 232 E8 21 15 -57.75 74 4A -37.875 127 7F -18 180 B4 233 E9 22 16 -57.375 75 4B -37.5 128 80 -17.625 181 B5 234 EA 23 17 -57 76 4C -37.125 129 81 -17.25 182 B6 235 EB 24 18 -56.625 77 4D -36.75 130 82 -16.875 183 B7 236 EC 25 19 -56.25 78 4E -36.375 131 83 -16.5 184 B8 237 ED 26 1A -55.875 79 4F -36 132 84 -16.125 185 B9 238 EE 27 1B -55.5 80 50 -35.625 133 85 -15.75 186 BA 239 EF 28 1C -55.125 81 51 -35.25 134 86 -15.375 187 BB 240 F0 29 1D -54.75 82 52 -34.875 135 87 -15 188 BC 241 F1 30 1E -54.375 83 53 -34.5 136 88 -14.625 189 BD 242 F2 31 1F -54 84 54 -34.125 137 89 -14.25 190 BE 243 F3 32 20 -53.625 85 55 -33.75 138 8A -13.875 191 BF 244 F4 33 21 -53.25 86 56 -33.375 139 8B -13.5 192 C0 245 F5 34 22 -52.875 87 57 -33 140 8C -13.125 193 C1 246 F6 35 23 -52.5 88 58 -32.625 141 8D -12.75 194 C2 247 F7 36 24 -52.125 89 59 -32.25 142 8E -12.375 195 C3 248 F8 37 25 -51.75 90 5A -31.875 143 8F -12 196 C4 249 F9 38 26 -51.375 91 5B -31.5 144 90 -11.625 197 C5 250 FA 39 27 -51 92 5C -31.125 145 91 -11.25 198 C6 251 FB 40 28 -50.625 93 5D -30.75 146 92 -10.875 199 C7 252 FC 41 29 -50.25 94 5E -30.375 147 93 -10.5 200 C8 253 FD 42 2A -49.875 95 5F -30 148 94 -10.125 201 C9 254 FE 43 2B -49.5 96 60 -29.625 149 95 -9.75 202 CA 255 FF 44 2C -49.125 97 61 -29.25 150 96 -9.375 203 CB 45 2D -48.75 98 62 -28.875 151 97 -9 204 CC 46 2E -48.375 99 63 -28.5 152 98 -8.625 205 CD 47 2F -48 100 64 -28.125 153 99 -8.25 206 CE 48 30 -47.625 101 65 -27.75 154 9A -7.875 207 CF 49 31 -47.25 102 66 -27.375 155 9B -7.5 208 D0 Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 61 Rev. 0.91 ALC5640-VB Datasheet 50 32 -46.875 103 67 -27 156 9C -7.125 209 D1 51 33 -46.5 104 68 -26.625 157 9D -6.75 210 D2 52 34 -46.125 105 69 -26.25 158 9E -6.375 211 D3 8.12. MX-1Bh: DACL2/R2 Mute/Un-Mute Control Default: 0000’h Name reserved Mu_dac2_l Bits 15:14 13 Table 32. MX-1Bh: DACL2/R2 Mute/Un-Mute Control Read/Write Reset State Description R 0’h Reserved R/W 0’h Mute Control for Left DAC2 Volume 0’b: Un-Mute 1’b: Mute Mu_dac2_r 12 R/W 0’h Mute Control for Right DAC2 Volume 0’b: Un-Mute 1’b: Mute reserved 11:0 R 0’h Reserved 8.13. MX-1Ch: Stereo ADC Digital Volume Control Default: 2F2F’h Name Mu_adc_vol_l Bits 15 Table 33. MX-1Ch: Stereo ADC Digital Volume Control Read/Write Reset State Description R/W 0’h Mute Control for Stereo ADC Left Volume Channel 0’b: Un-Mute 1’b: Mute Ad_gain_l 14:8 R/W 2F’h Stereo ADC Left Channel Volume Control  00’h: -17.625dB … 2F’h: 0dB … 7F’h: +30dB, with 0.375dB/Step Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 62 Rev. 0.91 ALC5640-VB Datasheet Mu_adc_vol_r 7 R/W 0’h Mute Control for Stereo ADC Right Volume Channel 0’b: Un-Mute 1’b: Mute Ad_gain_r 6:0 R/W 2F’h Stereo ADC Right Channel Volume Control  00’h: -17.625dB … 2F’h: 0dB … 7F’h: +30dB, with 0.375dB/Step 8.14. MX-1Dh: Mono ADC Digital Volume Control Default: 2F2F’h Name reserved Bits 15 Mono_ad_gain_l 14:8 Table 34. MX-1Dh: Mono ADC Digital Volume Control Read/Write Reset State Description R 0’h Reserved R/W 2F’h Mono ADC Left Channel Volume Control  00’h: -17.625dB … 2F’h: 0dB … 7F’h: +30dB, with 0.375dB/Step reserved Mono_ad_gain_r 7 R 0’h Reserved 6:0 R/W 2F’h Mono ADC Right Channel Volume Control  00’h: -17.625dB … 2F’h: 0dB … 7F’h: +30dB, with 0.375dB/Step Volume Table: DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain -17.625 -7.875 1.875 11.625 0 0 26 1A 52 34 78 4E -17.25 -7.5 2.25 12 1 1 27 1B 53 35 79 4F -16.875 -7.125 2.625 12.375 2 2 28 1C 54 36 80 50 -16.5 -6.75 3 12.75 3 3 29 1D 55 37 81 51 -16.125 -6.375 3.375 13.125 4 4 30 1E 56 38 82 52 -15.75 -6 3.75 13.5 5 5 31 1F 57 39 83 53 -15.375 -5.625 4.125 13.875 6 6 32 20 58 3A 84 54 Multi-Channel Audio Hub/CODEC and SounzRealTM 63 Digital Sound Effect for Mobile Devices DEC HEX Boost Gain 21.375 104 68 21.75 105 69 22.125 106 6A 22.5 107 6B 22.875 108 6C 23.25 109 6D 23.625 110 6E Rev. 0.91 ALC5640-VB Datasheet 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 -15 -14.625 -14.25 -13.875 -13.5 -13.125 -12.75 -12.375 -12 -11.625 -11.25 -10.875 -10.5 -10.125 -9.75 -9.375 -9 -8.625 -8.25 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 -5.25 -4.875 -4.5 -4.125 -3.75 -3.375 -3 -2.625 -2.25 -1.875 -1.5 -1.125 -0.75 -0.375 0 0.375 0.75 1.125 1.5 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4.5 4.875 5.25 5.625 6 6.375 6.75 7.125 7.5 7.875 8.25 8.625 9 9.375 9.75 10.125 10.5 10.875 11.25 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 14.25 14.625 15 15.375 15.75 16.125 16.5 16.875 17.25 17.625 18 18.375 18.75 19.125 19.5 19.875 20.25 20.625 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 24 24.375 24.75 25.125 25.5 25.875 26.25 26.625 27 27.375 27.75 28.125 28.5 28.875 29.25 29.625 30 21 8.15. MX-1Eh: ADC Digital Boost Gain Control Default: 0000’h Name Ad_boost_gain_l Bits 15:14 Table 35. MX-1Eh: ADC Digital Boost Gain Control Read/Write Reset State Description R/W 0’h ADC Left Channel Digital Boost Gain 00’b: 0dB 01’b: 12dB 10’b: 24dB 11’b: 36dB Ad_boost_gain_r 13:12 R/W 0’h ADC Right Channel Digital Boost Gain 00’b: 0dB 01’b: 12dB 10’b: 24dB 11’b: 36dB reserved 11:0 R/W 0’h Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices Reserved 64 Rev. 0.91 ALC5640-VB Datasheet 8.16. MX-27h: Stereo ADC Digital Mixer Control Default: 7060’h Name reserved mu_stereo_adcl1 Bits 15 14 mu_stereo_adcl2 13 sel_stereo_adc1 12 sel_stereo_adc2 11:10 reserved mu_stereo_adcr1 9:7 6 mu_stereo_adcr2 5 reserved 4:0 Table 36. MX-27h: Stereo ADC Digital Mixer Control Read/Write Reset State Description R 0’h reserved R/W 1’h Mute Control for Stereo ADC1 Left Channel 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for Stereo ADC2 Left Channel 0’b: Un-Mute 1’b: Mute R/W 1’h Select Control for Stereo ADC1 Source 0’b: DAC_MIXL/ DAC_MIXR 1’b: ADCL/ADCR R/W 0’h Select Control for Stereo ADC2 Source 00’b: DMIC_L1/ DMIC_R1 01’b: DMIC_L2/ DMIC_R2 10’b: DAC_MIXL/ DAC_MIXR 11’b: Reserved R 0’h Reserved R/W 1’h Mute Control for Stereo ADC1 Right Channel 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for Stereo ADC2 Right Channel 0’b: Un-Mute 1’b: Mute R 0’h reserved 8.17. MX-28h: Mono ADC Digital Mixer Control Default: 7070’h Name reserved mu_mono_adcl1 Bits 15 14 mu_mono_adcl2 13 sel_mono_adcl1 12 Table 37. MX-28h: Mono ADC Digital Mixer Control Read/Write Reset State Description R 0’h reserved R/W 1’h Mute Control for Mono ADC1 Left Channel 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for Mono ADC2 Left Channel 0’b: Un-Mute 1’b: Mute R/W 1’h Select Control for Mono ADC1 Left Channel Source 0’b: Mono_DAC_Mixer_L 1’b: ADCL Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 65 Rev. 0.91 ALC5640-VB Datasheet Name sel_mono_adcl2 Bits Read/Write 11:10 R/W reserved mu_mono_adcr1 9:7 6 R R/W mu_mono_adcr2 5 R/W sel_mono_adcr1 4 R/W sel_mono_adcr2 3:2 R/W reserved 1:0 R Reset State Description 0’h Select Control for Mono ADC2 Left Channel Source 00’b: DMIC_L1 01’b: DMIC_L2 10’b: Mono_DAC_Mixer_L 11’b: Reserved 0’h reserved 1’h Mute Control for Mono ADC1 Right Channel 0’b: Un-Mute 1’b: Mute 1’h Mute Control for Mono ADC2 Right Channel 0’b: Un-Mute 1’b: Mute 1’h Select Control for Mono ADC1 Right Channel Source 0’b: Mono_DAC_Mixer_R 1’b: ADCR 0’h Select Control for Mono ADC2 Right Channel Source 00’b: DMIC_R1 01’b: DMIC_R2 10’b: Mono_DAC_Mixer_R 11’b: Reserved 0’h Reserved 8.18. MX-29h: Stereo ADC to DAC Digital Mixer Control Default: 8080’h Table 38. MX-29h: Stereo ADC to DAC Digital Mixer Control Name Bits Read/Write Reset State Description mu_stereo_adc_mixer 15 R/W 1’h Mute Control for Stereo ADC Left Channel to DAC _l 0’b: Un-Mute 1’b: Mute mu_if1_dac_l 14 R/W 0’h Mute Control for I2S-1 to DAC Left Channel 0’b: Un-Mute 1’b: Mute reserved 13:8 R 0’h Reserved mu_stereo_adc_mixer 7 R/W 1’h Mute Control for Stereo ADC Right Channel to DAC _r 0’b: Un-Mute 1’b: Mute mu_if1_dac_r 6 R/W 0’h Mute Control for I2S-1 to DAC Right Channel 0’b: Un-Mute 1’b: Mute reserved 5:0 R 0’h reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 66 Rev. 0.91 ALC5640-VB Datasheet 8.19. MX-2Ah: Stereo DAC Digital Mixer Control Default: 5454’h Table 39. MX-2Ah: Stereo DAC Digital Mixer Control Name Bits Read/Write Reset State Description reserved 15 R 0’h reserved mu_stereo_dacl1 14 R/W 1’h Mute Control for DACL1 to Stereo DAC Left Mixer 0’b: Un-Mute 1’b: Mute gain_dacl1_to_stereo 13 R/W 0’h Gain Control for DACL1 to Stereo DAC Left Mixer _l 0’b: 0dB 1’b: -6dB mu_stereo_dacl2 12 R/W 1’h Mute Control for DACL2 to Stereo DAC Left Mixer 0’b: Un-Mute 1’b: Mute gain_dacl2_to_stereo 11 R/W 0’h Gain Control for DACL2 to Stereo DAC Left Mixer _l 0’b: 0dB 1’b: -6dB mu_snc_to_dac_l 10 R/W 1’h Mute Control for SNC Function to Stereo DAC Left Mixer 0’b: Un-Mute 1’b: Mute reserved 9:7 R 0’h reserved mu_stereo_dacr1 6 R/W 1’h Mute Control for DACR1 to Stereo DAC Right Mixer 0’b: Un-Mute 1’b: Mute gain_dacr1_to_stereo 5 R/W 0’h Gain Control for DACR1 to Stereo DAC Right Mixer _r 0’b: 0dB 1’b: -6dB mu_stereo_dacr2 4 R/W 1’h Mute Control for DACR2 to Stereo DAC Right Mixer 0’b: Un-Mute 1’b: Mute gain_dacr2_to_stereo 3 R/W 0’h Gain Control for DACR2 to Stereo DAC Right Mixer _r 0’b: 0dB 1’b: -6dB mu_snc_to_dac_r 2 R/W 1’h Mute Control for SNC Function to Stereo DAC Right Mixer 0’b: Un-Mute 1’b: Mute reserved 1:0 R 0’h reserved 8.20. MX-2Bh: Mono DAC Digital Mixer Control Default: 5454’h Name reserved Bits 15 Table 40. MX-2Bh: Mono DAC Digital Mixer Control Read/Write Reset State Description R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 67 Rev. 0.91 ALC5640-VB Datasheet Name mu_mono_l_dacl1 Bits 14 Read/Write R/W gain_mono_l_dacl1 13 R/W mu_mono_l_dacl2 12 R/W gain_mono_l_dacl2 11 R/W mu_mono_l_dacr2 10 R/W gain_mono_l_dacr2 9 R/W reserved mu_mono_r_dacr1 8:7 6 R R/W gain_mono_r_dacr1 5 R/W mu_mono_r_dacr2 4 R/W gain_mono_r_dacr2 3 R/W mu_mono_r_dacl2 2 R/W gain_mono_r_dacl2 1 R/W reserved 0 R Reset State Description 1’h Mute Control for DACL1 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACL1 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACL2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACL2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACR2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACR2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 0’h Reserved 1’h Mute Control for DACR1 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACR1 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACR2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACR2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACL2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACL2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB 0’h reserved 8.21. MX-2Ch: DAC Digital Mixer Control Default: AA00’h Name mu_dacl1_to_dacl Bits 15 Table 41. MX-2Ch: DAC Digital Mixer Control Read/Write Reset State Description R/W 1’h Mute Control for DACL1 to DACMIXL 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 68 Rev. 0.91 ALC5640-VB Datasheet Name gain_dacl1_to_dacl Bits 14 Read/Write R/W mu_dacl2_to_dacl 13 R/W gain_dacl2_to_dacl 12 R/W mu_dacr1_to_dacr 11 R/W gain_dacr1_to_dacr 10 R/W mu_dacr2_to_dacr 9 R/W gain_dacr2_to_dacr 8 R/W 7:0 R reserved Reset State Description 0’h Gain Control for DACL1 to DACMIXL 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACL2 to DACMIXL 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACL2 to DACMIXL 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACR1 to DACMIXR 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACR1 to DACMIXR 0’b: 0dB 1’b: -6dB 1’h Mute Control for DACR2 to DACMIXR 0’b: Un-Mute 1’b: Mute 0’h Gain Control for DACR2 to DACMIXR 0’b: 0dB 1’b: -6dB 0’h reserved 8.22. MX-2Fh: Interface DAC/ADC Data Control Default: 0000’h Name sel_if1_dac_data sel_if1_adc_data sel_if2_dac_data Table 42. MX-2Fh: Interface DAC/ADC Data Control Bits Read/Write Reset State Description 15:14 R/W 0’h Select Control for I2S1 DACDAT Data 00’b: Normal 01’b: Swap 10’b: Left Channel Copy to Right Channel 11’b: Right Channel Copy to Left Channel 13:12 R/W 0’h Select Control for I2S1 ADCDAT Data 00’b: Normal 01’b: Swap 10’b: Left Channel Copy to Right Channel 11’b: Right Channel Copy to Left Channel 11:10 R/W 0’h Select Control for I2S2 DACDAT Data 00’b: Normal 01’b: Swap 10’b: Left Channel Copy to Right Channel 11’b: Right Channel Copy to Left Channel Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 69 Rev. 0.91 ALC5640-VB Datasheet Name sel_if2_adc_data Bits 9:8 Read/Write R/W reserved 7:0 R Reset State Description 0’h Select Control for I2S2 ADCDAT Data 00’b: Normal 01’b: Swap 10’b: Left Channel Copy to Right Channel 11’b: Right Channel Copy to Left Channel 0’h reserved 8.23. MX-3Bh: RECMIXL Control 1 Default: 0000’h Name reserved Gain_inl_recmixl Gain_bst2_recmixl reserved Gain_bst3_recmixl reserved Table 43. MX-3Bh: RECMIXL Control 1 Bits Read/Write Reset State Description 15:13 R 0’h reserved 12:10 R/W 0’h Gain Control for INL to RECMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 9:7 R/W 0’h Gain Control for BST2 to RECMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 6:4 R/W 0’h reserved 3:1 R/W 0’h Gain Control for BST3 to RECMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 0 R 0’h reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 70 Rev. 0.91 ALC5640-VB Datasheet 8.24. MX-3Ch: RECMIXL Control 2 Default: 007F’h Table 44. MX-3Ch: RECMIXL Control 2 Name Bits Read/Write Reset State Description Gain_bst1_recmixl 15:13 R/W 0’h Gain Control for BST1 to RECMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Gain_outmixl_recmix 12:10 R/W 0’h Gain Control for OUTMIXL to RECMIXL l 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB reserved 9:6 R 0’h reserved Mu_inl_rexmixl 5 R/W 1’h Mute Control for INL to RECMIXL 0’b: Un-Mute 1’b: Mute Mu_bst2_recmixl 4 R/W 1’h Mute Control for BST2 to RECMIXL 0’b: Un-Mute 1’b: Mute reserved 3 R/W 1’h reserved Mu_bst3_recmixl 2 R/W 1’h Mute Control for BST3 to RECMIXL 0’b: Un-Mute 1’b: Mute Mu_bst1_recmixl 1 R/W 1’h Mute Control for BST1 to RECMIXL 0’b: Un-Mute 1’b: Mute Mu_outmixl_recmixl 0 R/W 1’h Mute Control for OUTMIXL to RECMIXL 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 71 Rev. 0.91 ALC5640-VB Datasheet 8.25. MX-3Dh: RECMIXR Control 1 Default: 0000’h Name reserved Gain_inr_recmixr Gain_bst2_recmixr reserved Gain_bst3_recmixr reserved Table 45. MX-3Dh: RECMIXR Control 1 Bits Read/Write Reset State Description 15:13 R/W 0’h Reserved 12:10 R/W 0’h Gain Control for INR to RECMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 9:7 R/W 0’h Gain Control for BST2 to RECMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 6:4 R/W 0’h Reserved 3:1 R/W 0’h Gain Control for BST3 to RECMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 0 R 0’h Reserved 8.26. MX-3Eh: RECMIXR Control 2 Default: 007F’h Name Gain_bst1_recmixr Table 46. MX-3Eh: RECMIXR Control 2 Bits Read/Write Reset State Description 15:13 R/W 0’h Gain Control for BST1 to RECMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 72 Rev. 0.91 ALC5640-VB Datasheet Name Bits Read/Write Gain_outmixr_recmix 12:10 R/W r reserved Mu_inr_rexmixr 9:6 5 R R/W Mu_bst2_recmixr 4 R/W Reserved Mu_bst2_recmixr 3 2 R/W R/W Mu_bst1_recmixr 1 R/W Mu_outmixr_recmixr 0 R/W Reset State Description 0’h Gain Control for OUTMIXR to RECMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB 0’h reserved 1’h Mute Control for INR to RECMIXR 0’b: Un-Mute 1’b: Mute 1’h Mute Control for BST2 to RECMIXR 0’b: Un-Mute 1’b: Mute 1’h reserved 1’h Mute Control for BST3 to RECMIXR 0’b: Un-Mute 1’b: Mute 1’h Mute Control for BST1 to RECMIXR 0’b: Un-Mute 1’b: Mute 1’h Mute Control for OUTMIXR to RECMIXR 0’b: Un-Mute 1’b: Mute 8.27. MX-45h: HPOMIX Control Default: E000’h Name mu_dac2_hpomix Bits 15 mu_dac1_hpomix 14 mu_hpovol_hpomix 13 Gain_hpomix 12 Reserved 11:0 Table 47. MX-45h: HPOMIX Control Read/Write Reset State Description R/W 1’h Mute Control for DAC2 to HPOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DAC1 to HPOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for HPOVOL to HPOMIX 0’b: Un-Mute 1’b: Mute R/W 0’h Gain Control for HPOMIX 0’b: 0dB 1’b: -6dB R 0’h reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 73 Rev. 0.91 ALC5640-VB Datasheet 8.28. MX-46h: SPKMIXL Control Default: 003E’h Table 48. MX-46h: SPKMIXL Control Name Bits Read/Write Reset State Description gain_recmixl_spkmix 15:14 R/W 0’h Gain Control for RECMIXL to SPKMIXL l 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_inl_spkmixl 13:12 R/W 0’h Gain Control for INL to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_dacl1_spkmixl 11:10 R/W 0’h Gain Control for DACL1 to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_dacl2_spkmixl 9:8 R/W 0’h Gain Control for DACL2 to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_outmixl_spkmi 7:6 R/W 0’h Gain Control for OUTMIXL to SPKMIXL xl 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Mu_recmix1_spkmixl 5 R/W 1’h Mute Control for RECMIXL to SPKMIXL 0’b: Un-Mute 1’b: Mute Mu_inl_spkmixl 4 R/W 1’h Mute Control for INL to SPKMIXL 0’b: Un-Mute 1’b: Mute Mu_dacl1_spkmixl 3 R/W 1’h Mute Control for DACL1 to SPKMIXL 0’b: Un-Mute 1’b: Mute Mu_dacl2_spkmixl 2 R/W 1’h Mute Control for DACL2 to SPKMIXL 0’b: Un-Mute 1’b: Mute Mu_outmixl_spkmixl 1 R/W 1’h Mute Control for OUTMIXL to SPKMIXL 0’b: Un-Mute 1’b: Mute Reserved 0 R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 74 Rev. 0.91 ALC5640-VB Datasheet 8.29. MX-47h: SPKMIXR Control Default: 003E’h Table 49. MX-47h: SPKMIXR Control Name Bits Read/Write Reset State Description gain_recmixr_spkmix 15:14 R/W 0’h Gain Control for RECMIXR to SPKMIXR r 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_inr_spkmixr 13:12 R/W 0’h Gain Control for INR to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_dacr1_spkmixr 11:10 R/W 0’h Gain Control for DACR1 to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_dacr2_spkmixr 9:8 R/W 0’h Gain Control for DACR2 to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Gain_outmixr_spkmi 7:6 R/W 0’h Gain Control for OUTMIXR to SPKMIXR xr 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Mu_recmixr_spkmixr 5 R/W 1’h Mute Control for RECMIXR to SPKMIXR 0’b: Un-Mute 1’b: Mute Mu_inr_spkmixr 4 R/W 1’h Mute Control for INR to SPKMIXR 0’b: Un-Mute 1’b: Mute Mu_dacr1_spkmixr 3 R/W 1’h Mute Control for DACR1 to SPKMIXR 0’b: Un-Mute 1’b: Mute Mu_dacr2_spkmixr 2 R/W 1’h Mute Control for DACR2 to SPKMIXR 0’b: Un-Mute 1’b: Mute Mu_outmixr_spkmixr 1 R/W 1’h Mute Control for OUTMIXR to SPKMIXR 0’b: Un-Mute 1’b: Mute Reserved 0 R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 75 Rev. 0.91 ALC5640-VB Datasheet 8.30. MX-48h: SPOLMIX Control Default: F800’h Name Mu_dacr1_spolmix Bits 15 Mu_dacl1_spolmix 14 Mu_spkvolr_spolmix 13 Mu_spkvoll_spolmix 12 Mu_bst1_spolmix 11 reserved 10:0 Table 50. MX-48h: SPOLMIX Control Read/Write Reset State Description R/W 1’h Mute Control for DACR1 to SPOLMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DACL1 to SPOLMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for SPKVOLR to SPOLMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for SPKVOLL to SPOLMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to SPOLMIX 0’b: Un-Mute 1’b: Mute R 0’h Reserved 8.31. MX-49h: SPORMIX Control Default: 3800’h Table 51. MX-49h: SPORMIX Control Name Bits Read/Write Reset State Description reserved 15:14 R 0’h Reserved Mu_dacr1_spormix 13 R/W 1’h Mute Control for DACR1 to SPORMIX 0’b: Un-Mute 1’b: Mute Mu_spkvolr_spormix 12 R/W 1’h Mute Control for SPKVOLR to SPORMIX 0’b: Un-Mute 1’b: Mute Mu_bst1_spormix 11 R/W 1’h Mute Control for BST1 to SPORMIX 0’b: Un-Mute 1’b: Mute reserved 10:0 R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 76 Rev. 0.91 ALC5640-VB Datasheet 8.32. MX-4Ah: SPOL/RMIX Gain Control Default: 0004’h Name reserved Spk_gain_clsd Bits 15:3 2:0 Table 52. MX-4Ah: SPOL/RMIX Gain Control Read/Write Reset State Description R 0’h Reserved R/W 4’h Gain Control for SPOL/RMIX 000’b: -6dB (0.50x) 001’b: -4.5dB (0.60x) 010’b: -3dB (0.71x) 011’b: -1.5dB (0.84x) 100’b: 0dB (1.0x) 101’b: 0.83dB (1.1x) 110’b: 1.58dB (1.2x) 111’b: 2.28dB (1.3x) 8.33. MX-4Ch: MONOMIX Control Default: FC00’h Name Mu_dacr2_monomix Bits 15 Mu_dacl2_monomix 14 Mu_outvolr_monomi x 13 Mu_outvoll_monomi x 12 Mu_bst1_monomix 11 Gain_mono 10 reserved 9:0 Table 53. MX-4Ch: MONOMIX Control Read/Write Reset State Description R/W 1’h Mute Control for DACR2 to MONOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DACL2 to MONOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for OUTVOLR to MONOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for OUTVOLL to MONOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to MONOMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Gain Control for MONOMIX 0’b: 0dB 1’b: -6dB R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 77 Rev. 0.91 ALC5640-VB Datasheet 8.34. MX-4Dh: OUTMIXL Control 1 Default: 0000’h Table 54. MX-4Dh: OUTMIXL Control 1 Name Bits Read/Write Reset State Description reserved 15:13 R/W 0’h Reserved Gain_bst3_outmixl 12:10 R/W 0’h Gain Control for BST3 to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Gain_bst1_outmixl 9:7 R/W 0’h Gain Control for BST1 to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Gain_inl_outmixl 6:4 R/W 0’h Gain Control for INL to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Gain_recmixl_outmix 3:1 R/W 0’h Gain Control for RECMIXL to OUTMIXL l 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Reserved 0 R 0’h reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 78 Rev. 0.91 ALC5640-VB Datasheet 8.35. MX-4Eh: OUTMIXL Control 2 Default: 0000’h Name Gain_dacr2_outmixl Gain_dacl2_outmixl Gain_dacl1_outmixl reserved Table 55. MX-4Eh: OUTMIXL Control 2 Bits Read/Write Reset State Description 15:13 R/W 0’h Gain Control for DACR2 to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 12:10 R/W 0’h Gain Control for DACL2 to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 9:7 R/W 0’h Gain Control for DACL1 to OUTMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 6:0 R 0’h Reserved 8.36. MX-4Fh: OUTMIXL Control 3 Default: 01FF’h Name reserved Mu_bst3_outmixl Bits 15:7 6 Mu_bst1_outmixl 5 Table 56. MX-4Fh: OUTMIXL Control 3 Read/Write Reset State Description R 3’h Reserved R/W 1’h Mute Control for BST3 to OUTMIXL 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to OUTMIXL 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 79 Rev. 0.91 ALC5640-VB Datasheet Name Mu_inl_outmixl Bits 4 Read/Write R/W Mu_recmixl_outmixl 3 R/W Mu_dacr2_outmixl 2 R/W Mu_dacl2_outmixl 1 R/W Mu_dacl1_outmixl 0 R/W Reset State Description 1’h Mute Control for INL to OUTMIXL 0’b: Un-Mute 1’b: Mute 1’h Mute Control for RECMIXL to OUTMIXL 0’b: Un-Mute 1’b: Mute 1’h Mute Control for DACR2 to OUTMIXL 0’b: Un-Mute 1’b: Mute 1’h Mute Control for DACL2 to OUTMIXL 0’b: Un-Mute 1’b: Mute 1’h Mute Control for DACL1 to OUTMIXL 0’b: Un-Mute 1’b: Mute 8.37. MX-50h: OUTMIXR Control 1 Default: 0000’h Name Gain_bst2_outmixr Gain_bst3_outmixr Table 57. MX-50h: OUTMIXR Control 1 Bits Read/Write Reset State Description 15:13 R/W 0’h Gain Control for BST2 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 12:10 R/W 0’h Gain Control for BST3 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 80 Rev. 0.91 ALC5640-VB Datasheet Name Gain_bst1_outmixr Bits 9:7 Read/Write R/W Gain_inr_outmixr 6:4 R/W Gain_recmixr_outmix 3:1 r R/W reserved 0 R Reset State Description 0’h Gain Control for BST1 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 0’h Gain Control for INR to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 0’h Gain Control for RECMIXR to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 0’h Reserved 8.38. MX-51h: OUTMIXR Control 2 Default: 0000’h Name Gain_dacl2_outmixr Table 58. MX-51h: OUTMIXR Control 2 Bits Read/Write Reset State Description 15:13 R/W 0’h Gain Control for DACL2 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 81 Rev. 0.91 ALC5640-VB Datasheet Name Bits Read/Write Gain_dacr2_outmixr 12:10 R/W Gain_dacr1_outmixr 9:7 R/W reserved 6:0 R Reset State Description 0’h Gain Control for DACR2 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 0’h Gain Control for DACR1 to OUTMIXR 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB Others: reserved 0’h Reserved 8.39. MX-52h: OUTMIXR Control 3 Default: 01FF’h Name reserved Mu_bst2_outmixr Bits 15:8 7 Mu_bst3_outmixr 6 Mu_bst1_outmixr 5 Mu_inr_outmixr 4 Mu_recmixr_outmixr 3 Mu_dacl2_outmixr 2 Mu_dacr2_outmixr 1 Table 59. MX-52h: OUTMIXR Control 3 Read/Write Reset State Description R/W 1’h Reserved R/W 1’h Mute Control for BST2 to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST3 to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for INR to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for RECMIXR to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DACL2 to OUTMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DACR2 to OUTMIXR 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 82 Rev. 0.91 ALC5640-VB Datasheet Name Mu_dacr1_outmixr Bits 0 Read/Write R/W Reset State Description 1’h Mute Control for DACR1 to OUTMIXR 0’b: Un-Mute 1’b: Mute 8.40. MX-53h: LOUTMIX Control Default: F000’h Name Mu_dacl1_lout Bits 15 Mu_dacr1_lout 14 Mu_outvoll_lout 13 Mu_outvolr_lout 12 Gain_lout 11 reserved 10:0 Table 60. MX-53h: LOUTMIX Control Read/Write Reset State Description R/W 1’h Mute Control for DACL1 to LOUTMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for DACR1 to LOUTMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for OUTVOLL to LOUTMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for OUTVOLR to LOUTMIX 0’b: Un-Mute 1’b: Mute R/W 0’h Gain Control for LOUTMIX 0’b: 0dB 1’b: -6dB R/W 0’h Reserved 8.41. MX-61h: Power Management Control 1 Default: 0000’h Name En_i2s1 Bits 15 En_i2s2 14 reserved Pow_dac_l_1 13 12 Table 61. MX-61h: Power Management Control 1 Read/Write Reset State Description R/W 0’h I2S1 Digital Interface Power Control 0’b: Power Down 1’b: Power On R/W 0’h I2S2 Digital Interface Power Control 0’b: Power Down 1’b: Power On R/W 0’h Reserved R/W 0’h Analog DACL1 Power Control 0’b: Power Down 1’b: Power On Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 83 Rev. 0.91 ALC5640-VB Datasheet Name Pow_dac_r_1 Bits 11 Read/Write R/W reserved Pow_dac_l_2 10:8 7 R R/W Pow_dac_r_2 6 R/W reserved Pow_adc_l 5:3 2 R R/W Pow_adc_r 1 R/W Pow_clsd 0 R/W Reset State Description 0’h Analog DACR1 Power Control 0’b: Power Down 1’b: Power On 0’h Reserved 0’h Analog DACL2 Power Control 0’b: Power Down 1’b: Power On 0’h Analog DACR2 Power Control 0’b: Power Down 1’b: Power On 0’h Reserved 0’h Analog ADCL Power Control 0’b: Power Down 1’b: Power On 0’h Analog ADCR Power Control 0’b: Power Down 1’b: Power On 0’h Class-D Amp Power Control 0’b: Power Down 1’b: Power On 8.42. MX-62h: Power Management Control 2 Default: 0000’h Name Bits Pow_adc_stereo_filte 15 r Pow_adc_monol_filte r 14 Pow_adc_monor_filte r 13 reserved 12:0 Table 62. MX-62h: Power Management Control 2 Read/Write Reset State Description R/W 0’h Stereo ADC Digital Filter Power Control 0’b: Power Down 1’b: Power On R/W 0’h Mono ADC_L Digital Filter Power Control 0’b: Power Down 1’b: Power On R/W 0’h Mono ADC_R Digital Filter Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 84 Rev. 0.91 ALC5640-VB Datasheet 8.43. MX-63h: Power Management Control 3 Default: 00C0’h Name Pow_vref1 Bits 15 En_fastb1 14 Pow_main_bias 13 Pow_lout 12 Pow_bg_bias 11 Pow_mono 10 reserved En_amp_mono 9 8 En_l_hp 7 En_r_hp 6 En_amp_hp 5 Pow_vref2 4 En_fastb2 3 Pow_ldo2 2 reserved 1:0 Table 63. MX-63h: Power Management Control 3 Read/Write Reset State Description R/W 0’h VREF1 Power Control 0’b: Power Down 1’b: Power On R/W 0’h VREF1 Fast Mode Control 0’b: Fast VREF 1’b: Slow VREF, (For good analog performance) R/W 0’h MBIAS Power Control 0’b: Power Down 1’b: Power On R/W 0’h LOUTMIX Power Control 0’b: Power Down 1’b: Power On R/W 0’h MBIAS Bandgap Power Control 0’b: Power Down 1’b: Power On R/W 0’h MONOMIX Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved R/W 0’h Mono Amp Power Control 0’b: Power Down 1’b: Power On R/W 1’h Left Headphone Amp Power Control 0’b: Power Down 1’b: Power On R/W 1’h Right Headphone Amp Power Control 0’b: Power Down 1’b: Power On R/W 0’h Improve HP Amp Driving 0’b: Disable 1’b: Enable R/W 0’h VREF2 Power Control 0’b: Power Down 1’b: Power On R/W 0’h VREF2 Fast Mode Control 0’b: Fast VREF 1’b: Slow VREF, (For good analog performance) R/W 0’h LDO2 Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 85 Rev. 0.91 ALC5640-VB Datasheet 8.44. MX-64h: Power Management Control 4 Default: 0000’h Name Pow_bst1 Bits 15 Pow_bst3 14 reserved Pow_bst2 13 12 Pow_micbias1 11 reserved Pow_pll 10 9 reserved 8:0 Table 64. MX-64h: Power Management Control 4 Read/Write Reset State Description R/W 0’h MIC BST1 Power Control 0’b: Power Down 1’b: Power On R/W 0’h MIC BST3 Power Control 0’b: Power Down 1’b: Power On R/W 0’h reserved R/W 0’h MIC BST2 Power Control 0’b: Power Down 1’b: Power On R/W 0’h MICBIAS1 Power Control 0’b: Power Down 1’b: Power On R/W 0’h reserved R/W 0’h PLL Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved 8.45. MX-65h: Power Management Control 5 Default: 0000’h Name Pow_outmixl Bits 15 Pow_outmixr 14 Pow_spkmixl 13 Pow_spkmixr 12 Pow_recmixl 11 Table 65. MX-65h: Power Management Control 5 Read/Write Reset State Description R/W 0’h OUTMIXL Power Control 0’b: Power Down 1’b: Power On R/W 0’h OUTMIXR Power Control 0’b: Power Down 1’b: Power On R/W 0’h SPKMIXL Power Control 0’b: Power Down 1’b: Power On R/W 0’h SPKMIXR Power Control 0’b: Power Down 1’b: Power On R/W 0’h RECMIXL Power Control 0’b: Power Down 1’b: Power On Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 86 Rev. 0.91 ALC5640-VB Datasheet Name Pow_recmixr Bits 10 Read/Write R/W reserved 9:0 R Reset State Description 0’h RECMIXR Power Control 0’b: Power Down 1’b: Power On 0’h Reserved 8.46. MX-66h: Power Management Control 6 Default: 0000’h Name Pow_spkvoll Bits 15 Pow_spkvolr 14 Pow_outvoll 13 Pow_outvolr 12 Pow_hpovoll 11 Pow_hpovolr 10 Pow_inlvol 9 Pow_inrvol 8 reserved 7:0 Table 66. MX-66h: Power Management Control 6 Read/Write Reset State Description R/W 0’h SPKVOLL Power Control 0’b: Power Down 1’b: Power On R/W 0’h SPKVOLR power Control 0’b: Power Down 1’b: Power On R/W 0’h OUTVOLL Power Control 0’b: Power Down 1’b: Power On R/W 0’h OUTVOLR Power Control 0’b: Power Down 1’b: Power On R/W 0’h HPOVOLL Power Control 0’b: Power Down 1’b: Power On R/W 0’h HPOVOLR Power Control 0’b: Power Down 1’b: Power On R/W 0’h INLVOL Power Control 0’b: Power Down 1’b: Power On R/W 0’h INRVOL Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 87 Rev. 0.91 ALC5640-VB Datasheet 8.47. MX-6Ah: Private Register Index Default: 0000’h Name reserved Pr_index Bits 15:8 7:0 Table 67. MX-6Ah: Private Register Index Read/Write Reset State Description R 0’h reserved R/W 0’h PR Register Index 8.48. MX-6Ch: Private Register Data Default: 0000’h Name Pr_data Bits 15:0 Table 68. MX-6Ch: Private Register Data Read/Write Reset State Description R/W 0’h PR Register Data Multi-Channel Audio Hub/CODEC and SounzRealTM Digital Sound Effect for Mobile Devices 88 Rev. 0.91 ALC5640-VB Datasheet 8.49. MX-70h: I2S1 Digital Interface Control Default: 8000’h Name Sel_i2s1_ms Sel_i2s1_in en_i2s1_out_comp en_i2s1_in_comp Inv_i2s1_bclk reserved sel_i2s1_len sel_i2s1_format Table 69. MX-70h: I2S1 Digital Interface Control Bits Read/Write Reset State Description 15 R/W 0’h I2S1 Digital Interface Mode Control 0’b: Master Mode 1’b: Slave Mode 14:12 R/W 0’h I2S Digital Interface Input Port Selection Control 000’b: I2S1
ALC5640-VB-CG 价格&库存

很抱歉,暂时无法提供与“ALC5640-VB-CG”相匹配的价格&库存,您可以联系我们找货

免费人工找货
ALC5640-VB-CG
  •  国内价格
  • 1+11.20996
  • 10+10.35997
  • 30+10.18997
  • 100+9.67997

库存:60