首页资源分类应用技术消费电子 > ACL5462 Datasheet

ACL5462 Datasheet

已有 445506个资源

下载专区

文档信息举报收藏

标    签:IC数据手册

分    享:

文档简介

ACL5462 Datasheet

文档预览

ALC5642-VF Multi-Channel Audio Hub/CODEC with embedded Voice DSP and SounzRealTM Digital Sound Effect for Mobile Devices Datasheet Rev. 0.9 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 ALC5642-VF 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 ALC5642 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 with embedded Voice ii DSP and SounzRealTM Digital Sound Effect Rev. 0.9 REVISION HISTORY Revision Release Date 0.9 2013/1/24 Summary First release for version F. ALC5642-VF Datasheet Multi-Channel Audio Hub/CODEC with embedded Voice iii DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Table of Contents 1. GENERAL DESCRIPTION ..............................................................................................................................................1 2. FEATURES .........................................................................................................................................................................2 3. SYSTEM APPLICATION .................................................................................................................................................3 4. FUNCTION BLOCK AND MIXER PATH .....................................................................................................................4 4.1. FUNCTION BLOCK ........................................................................................................................................................4 4.2. AUDIO MIXER PATH.....................................................................................................................................................5 4.3. DIGITAL MIXER PATH..................................................................................................................................................6 5. PIN ASSIGNMENTS .........................................................................................................................................................7 6. PIN DESCRIPTIONS.........................................................................................................................................................8 6.1. DIGITAL I/O PINS .........................................................................................................................................................8 6.2. ANALOG I/O PINS ........................................................................................................................................................9 6.3. FILTER/REFERENCE....................................................................................................................................................10 6.4. POWER/GROUND........................................................................................................................................................10 7. FUNCTION DESCRIPTION ..........................................................................................................................................11 7.1. POWER .......................................................................................................................................................................11 7.2. POWER SUPPLY ON/OFF SEQUENCE...........................................................................................................................12 7.3. RESET ........................................................................................................................................................................13 7.3.1. Power-On Reset (POR) ........................................................................................................................................13 7.3.2. Software Reset ......................................................................................................................................................13 7.4. CLOCKING..................................................................................................................................................................14 7.4.1. Phase-Locked Loop ..............................................................................................................................................15 7.4.2. I2C and Two I2S/PCM Interface ...........................................................................................................................16 7.5. DIGITAL DATA INTERFACE ........................................................................................................................................20 7.5.1. Two I2S/PCM Interface.........................................................................................................................................20 7.6. AUDIO DATA PATH ....................................................................................................................................................23 7.6.1. 2 Analog ADCs with 4-Channel Record Path ......................................................................................................23 7.6.2. 4 DACs with 4-Channel Playback Path................................................................................................................24 7.6.3. Mixers...................................................................................................................................................................25 7.7. ANALOG AUDIO INPUT PORT .....................................................................................................................................26 7.8. ANALOG AUDIO OUTPUT PORT..................................................................................................................................27 7.9. MULTI-FUNCTION PINS ..............................................................................................................................................29 7.10. DRC AND AGC FUNCTION ........................................................................................................................................31 7.11. SPEAKER AMPLIFIER RATIO GAIN..............................................................................................................................34 7.12. SOUNZREAL SOUND EFFECT......................................................................................................................................35 7.13. EQUALIZER BLOCK ....................................................................................................................................................35 7.14. DYNAMIC WIND NOISE REDUCTION FILTER ..............................................................................................................35 7.15. I2C CONTROL INTERFACE ..........................................................................................................................................38 7.15.1. Address Setting ................................................................................................................................................38 7.15.2. Complete Data Transfer ..................................................................................................................................38 7.16. GPIO, INTERRUPT AND JACK DETECTION ..................................................................................................................40 7.17. POWER MANAGEMENT...............................................................................................................................................43 7.18. SMART NOISE CANCELLATION FUNCTION (SNC) ......................................................................................................44 7.19. PROGRAMMABLE REGISTER ARRAY ..........................................................................................................................45 7.20. VOICE DSP FUNCTION ...............................................................................................................................................46 Multi-Channel Audio Hub/CODEC with embedded Voice iv DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8. REGISTERS LIST ...........................................................................................................................................................48 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. 8.53. REGISTER MAP ..........................................................................................................................................................48 MX-00H: S/W RESET & DEVICE ID...........................................................................................................................51 MX-01H: SPEAKER OUTPUT CONTROL ......................................................................................................................51 MX-02H: HEADPHONE OUTPUT CONTROL.................................................................................................................53 MX-03H: LINE OUTPUT CONTROL ...........................................................................................................................54 MX-04H: MONO OUTPUT CONTROL ........................................................................................................................55 MX-0DH: IN1/3 INPUT CONTROL..............................................................................................................................56 MX-0EH: IN2 INPUT CONTROL .................................................................................................................................57 MX-0FH: INL & INR VOLUME CONTROL .................................................................................................................57 MX-19H: DACL1/R1 DIGITAL VOLUME ...................................................................................................................58 MX-1AH: DACL2/R2 DIGITAL VOLUME ..................................................................................................................59 MX-1BH: DACL2/R2 MUTE/UN-MUTE CONTROL ...................................................................................................61 MX-1CH: STEREO ADC DIGITAL VOLUME CONTROL ...............................................................................................61 MX-1DH: MONO ADC DIGITAL VOLUME CONTROL.................................................................................................62 MX-1EH: ADC DIGITAL BOOST GAIN CONTROL ......................................................................................................63 MX-27H: STEREO ADC DIGITAL MIXER CONTROL...................................................................................................64 MX-28H: MONO ADC DIGITAL MIXER CONTROL.....................................................................................................64 MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL.....................................................................................65 MX-2AH: STEREO DAC DIGITAL MIXER CONTROL ..................................................................................................66 MX-2BH: MONO DAC DIGITAL MIXER CONTROL ....................................................................................................66 MX-2CH: DAC DIGITAL MIXER CONTROL ...............................................................................................................67 MX-2DH: VOICE DSP PATH CONTROL 1 ...................................................................................................................68 MX-2EH: VOICE DSP PATH CONTROL 2 ...................................................................................................................69 MX-2FH: INTERFACE DAC/ADC DATA CONTROL....................................................................................................70 MX-3BH: RECMIXL CONTROL 1 .............................................................................................................................70 MX-3CH: RECMIXL CONTROL 2 .............................................................................................................................71 MX-3DH: RECMIXR CONTROL 1.............................................................................................................................72 MX-3EH: RECMIXR CONTROL 2 .............................................................................................................................73 MX-45H: HPOMIX CONTROL...................................................................................................................................74 MX-46H: SPKMIXL CONTROL .................................................................................................................................74 MX-47H: SPKMIXR CONTROL.................................................................................................................................75 MX-48H: SPOLMIX CONTROL .................................................................................................................................76 MX-49H: SPORMIX CONTROL.................................................................................................................................77 MX-4AH: SPOL/RMIX GAIN CONTROL ...................................................................................................................77 MX-4CH: MONOMIX CONTROL..............................................................................................................................78 MX-4DH: OUTMIXL CONTROL 1 ............................................................................................................................78 MX-4EH: OUTMIXL CONTROL 2 .............................................................................................................................79 MX-4FH: OUTMIXL CONTROL 3 .............................................................................................................................80 MX-50H: OUTMIXR CONTROL 1 .............................................................................................................................81 MX-51H: OUTMIXR CONTROL 2 .............................................................................................................................82 MX-52H: OUTMIXR CONTROL 3 .............................................................................................................................83 MX-53H: LOUTMIX CONTROL ................................................................................................................................83 MX-61H: POWER MANAGEMENT CONTROL 1............................................................................................................84 MX-62H: POWER MANAGEMENT CONTROL 2............................................................................................................85 MX-63H: POWER MANAGEMENT CONTROL 3............................................................................................................85 MX-64H: POWER MANAGEMENT CONTROL 4............................................................................................................86 MX-65H: POWER MANAGEMENT CONTROL 5............................................................................................................87 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 ..........................................................................................................88 MX-71H: I2S2 DIGITAL INTERFACE CONTROL ..........................................................................................................89 MX-73H: ADC/DAC CLOCK CONTROL 1..................................................................................................................90 Multi-Channel Audio Hub/CODEC with embedded Voice v DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 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. 8.108. MX-74H: ADC/DAC CLOCK CONTROL 2..................................................................................................................91 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-92H: SPKVDD DETECTION CONTROL ...............................................................................................................99 MX-93H: MICBIAS CONTROL................................................................................................................................100 MX-B0H: EQ CONTROL 1........................................................................................................................................101 MX-B1H: EQ CONTROL 2........................................................................................................................................102 MX-B4H: DRC/AGC CONTROL 1 ...........................................................................................................................102 MX-B5H: DRC/AGC CONTROL 2 ...........................................................................................................................103 MX-B6H: DRC/AGC CONTROL 3 ...........................................................................................................................105 MX-B8H: SNC CONTROL 1 .....................................................................................................................................106 MX-B9H: SNC CONTROL 2 .....................................................................................................................................108 MX-BAH: SNC CONTROL 3 ....................................................................................................................................108 MX-BBH: JACK DETECTION CONTROL 1 .................................................................................................................109 MX-BCH: JACK DETECTION CONTROL 2 .................................................................................................................110 MX-BDH: IRQ CONTROL 1 .....................................................................................................................................110 MX-BEH: IRQ CONTROL 2......................................................................................................................................111 MX-BFH: GPIO AND INTERNAL STATUS.................................................................................................................111 MX-C0H: GPIO CONTROL 1....................................................................................................................................112 MX-C2H: GPIO CONTROL 2....................................................................................................................................112 MX-C4H: VOICE DSP CONTROL 1...........................................................................................................................113 MX-C5H: VOICE DSP CONTROL 2...........................................................................................................................113 MX-C6H: VOICE DSP CONTROL 3...........................................................................................................................113 MX-C8H: PROGRAMMABLE REGISTER ARRAY CONTROL 1.....................................................................................114 MX-C9H: PROGRAMMABLE REGISTER ARRAY CONTROL 2.....................................................................................114 MX-CAH: PROGRAMMABLE REGISTER ARRAY CONTROL 3 ....................................................................................115 MX-CBH: PROGRAMMABLE REGISTER ARRAY CONTROL 4 ....................................................................................115 MX-CCH: PROGRAMMABLE REGISTER ARRAY CONTROL 5 ....................................................................................115 MX-CFH: SOUNZREAL BASSBACK CONTROL .........................................................................................................116 MX-D0H: SOUNZREAL TRUTREBLE CONTROL 1.....................................................................................................116 MX-D1H: SOUNZREAL TRUTREBLE CONTROL 2.....................................................................................................117 MX-D2H: SOUNZREAL OMNIHEADPHONE CONTROL..............................................................................................118 MX-D3H: WIND FILTER CONTROL – ENABLE/DISABLE ..........................................................................................118 MX-D9H: SOFT VOLUME & ZCD CONTROL............................................................................................................119 MX-FAH: GENERAL CONTROL 1 .............................................................................................................................120 MX-FBH: GENERAL CONTROL 2.........................................................................................................................121 MX-FCH: GENERAL CONTROL 3.........................................................................................................................122 PR-3DH: ADC/DAC RESET CONTROL .............................................................................................................122 PR-3FH: DIGITAL PATH CONTROL ......................................................................................................................123 PR-63H: SOUNZREAL OMNISOUND CONTROL ....................................................................................................123 PR-6CH: WIND DETECTOR CONTROL 1 ..............................................................................................................124 PR-6DH: WIND DETECTOR CONTROL 2 ..............................................................................................................124 PR-6EH: WIND DETECTOR CONTROL 3...............................................................................................................125 PR-6FH: WIND DETECTOR CONTROL 4...............................................................................................................125 Multi-Channel Audio Hub/CODEC with embedded Voice vi DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 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. 8.124. 8.125. 8.126. 8.127. 8.128. 8.129. 8.130. 8.131. PR-70H: WIND DETECTOR CONTROL 5 ...............................................................................................................125 PR-73H: WIND DETECTOR CONTROL 6 ...............................................................................................................126 PR-75H: SOUNZREAL DIPOLE SPEAKER CONTROL .............................................................................................126 PR-A0H: EQ LOW PASS FILTER COEFFICIENT (LPF:A1).....................................................................................126 PR-A1H: EQ LOW PASS FILTER GAIN (LPF:H0) ................................................................................................127 PR-A2H: EQ BAND 1 COEFFICIENT (BPF1:A1)...................................................................................................127 PR-A3H: EQ BAND 1 COEFFICIENT (BPF1:A2)...................................................................................................127 PR-A4H: EQ BAND 1 GAIN (BPF1:H0) ..............................................................................................................127 PR-A5H: EQ BAND 2 COEFFICIENT (BPF2:A1)...................................................................................................128 PR-A6H: EQ BAND 2 COEFFICIENT (BPF2:A2)...................................................................................................128 PR-A7H: EQ BAND 2 GAIN (BPF2:H0) ..............................................................................................................128 PR-A8H: EQ BAND 3 COEFFICIENT (BPF3:A1)...................................................................................................128 PR-A9H: EQ BAND 3 COEFFICIENT (BPF3:A2)...................................................................................................129 PR-AAH: EQ BAND 3 GAIN (BPF3:H0)..............................................................................................................129 PR-ABH: EQ BAND 4 COEFFICIENT (BPF4:A1) ..................................................................................................129 PR-ACH: EQ BAND 4 COEFFICIENT (BPF4:A2) ..................................................................................................129 PR-ADH: EQ BAND 4 GAIN (BPF4:H0)..............................................................................................................130 PR-AEH: EQ HIGH PASS FILTER 1 COEFFICIENT (HPF1:A1) ..............................................................................130 PR-AFH: EQ HIGH PASS FILTER 1 GAIN (HPF1:H0) ..........................................................................................130 PR-B0H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A1) ...............................................................................130 PR-B1H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A2) ...............................................................................131 PR-B2H: EQ HIGH PASS FILTER 2 GAIN (HPF2:H0)...........................................................................................131 MX-FEH: VENDOR ID ........................................................................................................................................131 9. ELECTRICAL CHARACTERISTICS ........................................................................................................................132 9.1. DC CHARACTERISTICS.............................................................................................................................................132 9.1.1. Absolute Maximum Ratings ................................................................................................................................132 9.1.2. Recommended Operating Conditions .................................................................................................................132 9.1.3. Static Characteristics .........................................................................................................................................132 9.2. ANALOG PERFORMANCE CHARACTERISTICS............................................................................................................133 9.3. SIGNAL TIMING........................................................................................................................................................135 9.3.1. I2C Control Interface ..........................................................................................................................................135 9.3.2. I2S/PCM Interface Master Mode ........................................................................................................................136 9.3.3. I2S/PCM Interface Slave Mode...........................................................................................................................137 10. APPLICATION CIRCUITS .....................................................................................................................................138 11. PACKAGE INFORMATION ...................................................................................................................................141 11.1. MECHANICAL DIMENSIONS......................................................................................................................................141 11.2. PACKAGE THERMAL INFORMATION .........................................................................................................................142 12. ORDERING INFORMATION .................................................................................................................................143 Multi-Channel Audio Hub/CODEC with embedded Voice vii DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet List of Tables TABLE 1. DIGITAL I/O PINS ..........................................................................................................................................................8 TABLE 2. ANALOG I/O PINS..........................................................................................................................................................9 TABLE 3. FILTER/REFERENCE .....................................................................................................................................................10 TABLE 4. POWER/GROUND .........................................................................................................................................................10 TABLE 5. POWER SUPPLY FOR BEST PERFORMANCE...................................................................................................................11 TABLE 6. POWER SUPPLY CONDITION FOR POWER DOWN LEAKAGE..........................................................................................11 TABLE 7. RESET OPERATION ......................................................................................................................................................13 TABLE 8. POWER-ON RESET VOLTAGE.......................................................................................................................................13 TABLE 10. CLOCK SETTING TABLE FOR 48K (UNIT: MHZ) ........................................................................................................15 TABLE 11. CLOCK SETTING TABLE FOR 44.1K (UNIT: MHZ) .....................................................................................................15 TABLE 12. THE RELATIVE OF SYSCLK/BCLK/LRCK...............................................................................................................16 TABLE 13. REGISTER SETTINGS FOR ASRC FUNCTION ON MASTER MODE ................................................................................17 TABLE 14. REGISTER SETTINGS FOR ASRC FUNCTION ON SLAVE MODE ...................................................................................19 TABLE 15. RATION GAIN TABLE FOR SPKVDD AND AVDD .....................................................................................................34 TABLE 16. SAMPLE RATE WITH FILTER COEFFICIENT FOR WIND FILTER.....................................................................................36 TABLE 17. ADDRESS SETTING (0X38H) ......................................................................................................................................38 TABLE 18. WRITE WORD PROTOCOL ........................................................................................................................................39 TABLE 19. READ WORD PROTOCOL..........................................................................................................................................39 TABLE 20. PROGRAMMABLE REGISTER TABLE...........................................................................................................................45 TABLE 21. REGISTER MAP ..........................................................................................................................................................48 TABLE 22. MX-00H: S/W RESET ................................................................................................................................................51 TABLE 23. MX-01H: SPEAKER OUTPUT CONTROL .....................................................................................................................51 TABLE 24. MX-02H: HEADPHONE OUTPUT CONTROL ................................................................................................................53 TABLE 25. MX-03H: LINE OUTPUT CONTROL...........................................................................................................................54 TABLE 26. MX-04H: MONO OUTPUT CONTROL........................................................................................................................55 TABLE 27. MX-0DH: IN1/3 INPUT CONTROL .............................................................................................................................56 TABLE 28. MX-0EH: IN2 INPUT CONTROL.................................................................................................................................57 TABLE 29. MX-0FH: INL & INR VOLUME CONTROL.................................................................................................................57 TABLE 30. MX-19H: DACL1/R1 DIGITAL VOLUME ..................................................................................................................58 TABLE 31. MX-1AH: DACL2/R2 DIGITAL VOLUME..................................................................................................................59 TABLE 32. MX-1BH: DACL2/R2 MUTE/UN-MUTE CONTROL...................................................................................................61 TABLE 33. MX-1CH: STEREO ADC DIGITAL VOLUME CONTROL ..............................................................................................61 TABLE 34. MX-1DH: MONO ADC DIGITAL VOLUME CONTROL ................................................................................................62 TABLE 35. MX-1EH: ADC DIGITAL BOOST GAIN CONTROL......................................................................................................63 TABLE 36. MX-27H: STEREO ADC DIGITAL MIXER CONTROL ..................................................................................................64 TABLE 37. MX-28H: MONO ADC DIGITAL MIXER CONTROL ....................................................................................................64 TABLE 38. MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL ....................................................................................65 TABLE 39. MX-2AH: STEREO DAC DIGITAL MIXER CONTROL .................................................................................................66 TABLE 40. MX-2BH: MONO DAC DIGITAL MIXER CONTROL....................................................................................................66 TABLE 41. MX-2CH: DAC DIGITAL MIXER CONTROL...............................................................................................................67 TABLE 42. MX-2DH: VOICE DSP PATH CONTROL 1 ..................................................................................................................68 TABLE 43. MX-2EH: VOICE DSP PATH CONTROL 2...................................................................................................................69 TABLE 44. MX-2FH: INTERFACE DAC/ADC DATA CONTROL ...................................................................................................70 TABLE 45. MX-3BH: RECMIXL CONTROL 1 ............................................................................................................................70 TABLE 46. MX-3CH: RECMIXL CONTROL 2 ............................................................................................................................71 TABLE 47. MX-3DH: RECMIXR CONTROL 1 ............................................................................................................................72 TABLE 48. MX-3EH: RECMIXR CONTROL 2 ............................................................................................................................73 TABLE 49. MX-45H: HPOMIX CONTROL ..................................................................................................................................74 TABLE 50. MX-46H: SPKMIXL CONTROL ................................................................................................................................74 TABLE 51. MX-47H: SPKMIXR CONTROL ................................................................................................................................75 TABLE 52. MX-48H: SPOLMIX CONTROL ................................................................................................................................76 Multi-Channel Audio Hub/CODEC with embedded Voice viii DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet TABLE 53. MX-49H: SPORMIX CONTROL ................................................................................................................................77 TABLE 54. MX-4AH: SPOL/RMIX GAIN CONTROL ..................................................................................................................77 TABLE 55. MX-4CH: MONOMIX CONTROL .............................................................................................................................78 TABLE 56. MX-4DH: OUTMIXL CONTROL 1............................................................................................................................78 TABLE 57. MX-4EH: OUTMIXL CONTROL 2 ............................................................................................................................79 TABLE 58. MX-4FH: OUTMIXL CONTROL 3 ............................................................................................................................80 TABLE 59. MX-50H: OUTMIXR CONTROL 1 ............................................................................................................................81 TABLE 60. MX-51H: OUTMIXR CONTROL 2 ............................................................................................................................82 TABLE 61. MX-52H: OUTMIXR CONTROL 3 ............................................................................................................................83 TABLE 62. MX-53H: LOUTMIX CONTROL ...............................................................................................................................83 TABLE 63. MX-61H: POWER MANAGEMENT CONTROL 1 ...........................................................................................................84 TABLE 64. MX-62H: POWER MANAGEMENT CONTROL 2 ...........................................................................................................85 TABLE 65. MX-63H: POWER MANAGEMENT CONTROL 3 ...........................................................................................................85 TABLE 66. MX-64H: POWER MANAGEMENT CONTROL 4 ...........................................................................................................86 TABLE 67. MX-65H: POWER MANAGEMENT CONTROL 5 ...........................................................................................................87 TABLE 68. MX-66H: POWER MANAGEMENT CONTROL 6 ...........................................................................................................87 TABLE 69. MX-6AH: PRIVATE REGISTER INDEX ........................................................................................................................88 TABLE 70. MX-6CH: PRIVATE REGISTER DATA.........................................................................................................................88 TABLE 71. MX-70H: I2S1 DIGITAL INTERFACE CONTROL..........................................................................................................88 TABLE 72. MX-71H: I2S2 DIGITAL INTERFACE CONTROL..........................................................................................................89 TABLE 73. MX-73H: ADC/DAC CLOCK CONTROL 1 .................................................................................................................90 TABLE 74. MX-74H: ADC/DAC CLOCK CONTROL 2 .................................................................................................................91 TABLE 75. MX-75H: DIGITAL MICROPHONE CONTROL..............................................................................................................92 TABLE 76. MX-80H: GLOBAL CLOCK CONTROL ........................................................................................................................93 TABLE 77. MX-81H: PLL CONTROL 1 ........................................................................................................................................93 TABLE 78. MX-82H: PLL CONTROL 2 ........................................................................................................................................94 TABLE 79. MX-83H: ASRC CONTROL 1.....................................................................................................................................94 TABLE 80. MX-84H: ASRC CONTROL 2.....................................................................................................................................95 TABLE 81. MX-85H: ASRC CONTROL 3.....................................................................................................................................96 TABLE 82. MX-89H: ASRC CONTROL 4.....................................................................................................................................96 TABLE 83. MX-8AH: ASRC CONTROL 5....................................................................................................................................97 TABLE 84. MX-8CH: CLASS-D AMP OC CONTROL ....................................................................................................................97 TABLE 85. MX-8DH: CLASS-D AMP OUTPUT CONTROL ............................................................................................................98 TABLE 86. MX-8EH: HP AMP CONTROL 1 .................................................................................................................................98 TABLE 87. MX-8FH: HP AMP CONTROL 2 .................................................................................................................................99 TABLE 88. MX-92H: SPKVDD DETECTION CONTROL...............................................................................................................99 TABLE 89. MX-93H: MICBIAS CONTROL ...............................................................................................................................100 TABLE 90. MX-B0H: EQ CONTROL 1 .......................................................................................................................................101 TABLE 91. MX-B1H: EQ CONTROL 2 .......................................................................................................................................102 TABLE 92. MX-B4H: DRC/AGC CONTROL 1...........................................................................................................................102 TABLE 93. MX-B5H: DRC/AGC CONTROL 2...........................................................................................................................103 TABLE 94. MX-B6H: DRC/AGC CONTROL 3...........................................................................................................................105 TABLE 95. MX-B8H: SNC CONTROL 1.....................................................................................................................................106 TABLE 96. MX-B9H: SNC CONTROL 2.....................................................................................................................................108 TABLE 97. MX-BAH: SNC CONTROL 3....................................................................................................................................108 TABLE 98. MX-BBH: JACK DETECTION CONTROL 1 ................................................................................................................109 TABLE 99. MX-BCH: JACK DETECTION CONTROL 2 ................................................................................................................110 TABLE 100. MX-BDH: IRQ CONTROL 1...................................................................................................................................110 TABLE 101. MX-BEH: IRQ CONTROL 2 ...................................................................................................................................111 TABLE 102. MX-BFH: GPIO AND INTERNAL STATUS ..............................................................................................................111 TABLE 103. MX-C0H: GPIO CONTROL 1 .................................................................................................................................112 TABLE 104. MX-C2H: GPIO CONTROL 2 .................................................................................................................................112 TABLE 105. MX-C4H: VOICE DSP CONTROL 1 ........................................................................................................................113 TABLE 106. MX-C5H: VOICE DSP CONTROL 2 ........................................................................................................................113 TABLE 107. MX-C6H: VOICE DSP CONTROL 3 ........................................................................................................................113 Multi-Channel Audio Hub/CODEC with embedded Voice ix DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet TABLE 108. MX-C8H: PROGRAMMABLE REGISTER ARRAY CONTROL 1 ..................................................................................114 TABLE 109. MX-C9H: PROGRAMMABLE REGISTER ARRAY CONTROL 2 ..................................................................................114 TABLE 110. MX-CAH: PROGRAMMABLE REGISTER ARRAY CONTROL 3 .................................................................................115 TABLE 111. MX-CBH: PROGRAMMABLE REGISTER ARRAY CONTROL 4..................................................................................115 TABLE 112. MX-CCH: PROGRAMMABLE REGISTER ARRAY CONTROL 5..................................................................................115 TABLE 113. MX-CFH: SOUNZREAL BASSBACK CONTROL ......................................................................................................116 TABLE 114. MX-D0H: SOUNZREAL TRUTREBLE CONTROL 1 ..................................................................................................116 TABLE 115. MX-D1H: SOUNZREAL TRUTREBLE CONTROL 2 ..................................................................................................117 TABLE 116. MX-D2H: SOUNZREAL OMNIHEADPHONE CONTROL ...........................................................................................118 TABLE 117. MX-D3H: WIND FILTER CONTROL – ENABLE/DISABLE ........................................................................................118 TABLE 118. MX-D9H: SOFT VOLUME & ZCD CONTROL .........................................................................................................119 TABLE 119. MX-FAH: GENERAL CONTROL 1...........................................................................................................................120 TABLE 120. MX-FBH: GENERAL CONTROL 2...........................................................................................................................121 TABLE 121. MX-FCH: GENERAL CONTROL 3...........................................................................................................................122 TABLE 122. PR-3DH: ADC/DAC RESET CONTROL................................................................................................................122 TABLE 123. PR-3FH: DIGITAL PATH CONTROL ........................................................................................................................123 TABLE 124. PR-63H: SOUNZREAL OMNISOUND CONTROL ......................................................................................................124 TABLE 125. PR-6CH: WIND DETECTOR CONTROL 1.................................................................................................................124 TABLE 126. PR-6DH: WIND DETECTOR CONTROL 2 ................................................................................................................124 TABLE 127. PR-6EH: WIND DETECTOR CONTROL 3.................................................................................................................125 TABLE 128. PR-6FH: WIND DETECTOR CONTROL 4 .................................................................................................................125 TABLE 129. PR-70H: WIND DETECTOR CONTROL 5 .................................................................................................................125 TABLE 130. PR-73H: WIND DETECTOR CONTROL 6 .................................................................................................................126 TABLE 131. PR-75H: SOUNZREAL DIPOLE SPEAKER CONTROL................................................................................................126 TABLE 132. PR-A0H: EQ LOW PASS FILTER COEFFICIENT (LPF:A1) .......................................................................................126 TABLE 133. PR-A1H: EQ LOW PASS FILTER GAIN (LPF:H0)...................................................................................................127 TABLE 134. PR-A2H: EQ BAND 1 COEFFICIENT (BPF1:A1) .....................................................................................................127 TABLE 135. PR-A3H: EQ BAND 1 COEFFICIENT (BPF1:A2) .....................................................................................................127 TABLE 136. PR-A4H: EQ BAND 1 GAIN (BPF1:H0).................................................................................................................127 TABLE 137. PR-A5H: EQ BAND 2 COEFFICIENT (BPF2:A1) .....................................................................................................128 TABLE 138. PR-A6H: EQ BAND 2 COEFFICIENT (BPF2:A2) .....................................................................................................128 TABLE 139. PR-A7H: EQ BAND 2 GAIN (BPF2:H0).................................................................................................................128 TABLE 140. PR-A8H: EQ BAND 3 COEFFICIENT (BPF3:A1) .....................................................................................................128 TABLE 141. PR-A9H: EQ BAND 3 COEFFICIENT (BPF3:A2) .....................................................................................................129 TABLE 142. PR-AAH: EQ BAND 3 GAIN (BPF3:H0)................................................................................................................129 TABLE 143. PR-ABH: EQ BAND 4 COEFFICIENT (BPF4:A1) ....................................................................................................129 TABLE 144. PR-ACH: EQ BAND 4 COEFFICIENT (BPF4:A2) ....................................................................................................129 TABLE 145. PR-ADH: EQ BAND 4 GAIN (BPF4:H0)................................................................................................................130 TABLE 146. PR-AEH: EQ HIGH PASS FILTER 1 COEFFICIENT (HPF1:A1) ................................................................................130 TABLE 147. PR-AFH: EQ HIGH PASS FILTER 1 GAIN (HPF1:H0) ............................................................................................130 TABLE 148. PR-B0H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A1) .................................................................................130 TABLE 149. PR-B1H: EQ HIGH PASS FILTER 2 COEFFICIENT (HPF2:A2) .................................................................................131 TABLE 150. PR-B2H: EQ HIGH PASS FILTER 2 GAIN (HPF2:H0).............................................................................................131 TABLE 151. MX-FEH: VENDOR ID...........................................................................................................................................131 TABLE 152. ABSOLUTE MAXIMUM RATINGS............................................................................................................................132 TABLE 153. RECOMMENDED OPERATING CONDITIONS.............................................................................................................132 TABLE 154. STATIC CHARACTERISTICS ....................................................................................................................................132 TABLE 155. ANALOG PERFORMANCE CHARACTERISTICS .........................................................................................................133 TABLE 156. I2C TIMING ............................................................................................................................................................135 TABLE 157. TIMING OF I2S/PCM MASTER MODE.....................................................................................................................136 TABLE 158. I2S/PCM SLAVE MODE TIMING.............................................................................................................................137 TABLE 159. THERMAL INFORMATION .......................................................................................................................................142 TABLE 160. ORDERING INFORMATION......................................................................................................................................143 Multi-Channel Audio Hub/CODEC with embedded Voice x DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet List of Figures FIGURE 1. BLOCK DIAGRAM .......................................................................................................................................................4 FIGURE 2. AUDIO MIXER PATH ...................................................................................................................................................5 FIGURE 3. DIGITAL MIXER PATH ................................................................................................................................................6 FIGURE 4. PIN ASSIGNMENTS ......................................................................................................................................................7 FIGURE 5. AUDIO CLOCK TREE .................................................................................................................................................14 FIGURE 6. SYSTEM CONNECTION FOR ASRC FUNCTION...........................................................................................................18 FIGURE 7. PCM MONO DATA MODE A FORMAT (BCLK POLARITY=0) ..............................................................................20 FIGURE 8. PCM MONO DATA MODE A FORMAT (BCLK POLARITY=1) ..............................................................................20 FIGURE 9. PCM MONO DATA MODE B FORMAT (BCLK POLARITY=0) ..............................................................................21 FIGURE 10. PCM STEREO DATA MODE A FORMAT (BCLK POLARITY=0)............................................................................21 FIGURE 11. PCM STEREO DATA MODE B FORMAT (BCLK POLARITY=0)..............................................................................21 FIGURE 12. I2S DATA FORMAT (BCLK POLARITY=0).............................................................................................................22 FIGURE 13. LEFT-JUSTIFIED DATA FORMAT (BCLK POLARITY=0) ........................................................................................22 FIGURE 14. 4-CHANNEL RECORDING PATH ................................................................................................................................23 FIGURE 15. 4-CHANNEL PLAYBACK PATH ..................................................................................................................................24 FIGURE 16. STEREO BTL SPEAKER OUTPUT...............................................................................................................................27 FIGURE 17. DAC DRC FUNCTION BLOCK ..................................................................................................................................31 FIGURE 18. ADC AGC FUNCTION BLOCK..................................................................................................................................31 FIGURE 19. DRC/AGC FOR PLAYBACK/RECORDING MODE .......................................................................................................32 FIGURE 20. DRC/AGC FOR NOISE GATE MODE.........................................................................................................................33 FIGURE 21. RATIO GAIN BEHAVIOR FOR SPKVDD AND AVDD ................................................................................................34 FIGURE 22. DATA TRANSFER OVER I2C CONTROL INTERFACE ...................................................................................................38 FIGURE 23. GPIO FUNCTION BLOCK ..........................................................................................................................................40 FIGURE 24. IRQ FUNCTION BLOCK.............................................................................................................................................41 FIGURE 25. JD SOURCE SELECTION ............................................................................................................................................42 FIGURE 26. POWER MANAGEMENT.............................................................................................................................................43 FIGURE 27. SNC FUNCTION DIAGRAM .......................................................................................................................................44 FIGURE 28. SNC FUNCTION BLOCK............................................................................................................................................44 FIGURE 29. I2C CONTROL INTERFACE.......................................................................................................................................135 FIGURE 30. TIMING OF I2S/PCM MASTER MODE......................................................................................................................136 FIGURE 31. I2S/PCM SLAVE MODE TIMING .............................................................................................................................137 FIGURE 32. APPLICATION CIRCUIT ...........................................................................................................................................140 FIGURE 33. PACKAGE DIMENSION ............................................................................................................................................141 Multi-Channel Audio Hub/CODEC with embedded Voice xi DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 1. General Description The ALC5642 is a high performance, low power, dual I2S interface audio CODEC with embedded low power Voice DSP. Dual I2S interface can connect to different devices and let the ALC5642 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 ALC5642 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 ALC5642 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 ALC5642 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. ALC5642 embedded a low power wideband voice processor. The voice processor provides exceptional noise suppression, echo cancellation and beam forming under low power consumption. It combines 8/16 kHz sampling rate and 75MIPS digital signal processing to achieve high fidelity/dual-mic and non-stationary wideband performance. 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. ALC5642 only requires two voltage supplies and consume ultra low power, making it ideal for mobile devices. Multi-Channel Audio Hub/CODEC with embedded Voice 1 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF 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 <= -83dB  Stereo line outputs  DAC to line output with 0dB gain, SNR >= 100dBA, THD+N <= -86dB  Stereo/Mono BTL (Bridge-Tied-Load) Class-D amplifier  650mW/CH (SPKVDD=3.6V, THD+N < = 1%, 8Ohm Load)  500mW/CH (SPKVDD=3.6V, THD+N < = 0.1%, 8Ohm Load)  1.2W/CH (SPKVDD=5.0V, THD+N < = 1%, 8Ohm Load)  2.5W/CH (SPKVDD=5.0V, THD+N < = 10%, 4Ohm Load)  2.1W/CH (SPKVDD=5.0V, THD+N < = 1%, 4Ohm Load)  Stereo Cap-Free headphone amplifier with ultra low power consumption for playback  20mW/CH (AVDD=CPVDD=1.8V, THD+N <= -80dB, 16Ohm Load and 32Ohm Load)  Playback power consumption <= 5mW (AVDD=VBVDD=CPVDD=1.8V, 16Ohm, With I2S Clock, Playback Silence)  Playback power consumption <= 13mW (AVDD=VBVDD=CPVDD=1.8V, 16Ohm, With I2S Clock, Playback 1mW/CH)  Mono differential receiver amplifier  50mW/CH (AVDD=CPVDD=1.8V, THD+N <= -70dB, 16Ohm Load, BTL mode)  Audio jack insert/combo jack detection  Inside PLL can receiver wide range clock input Multi-Channel Audio Hub/CODEC with embedded Voice 2 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Digital Features:  Two 24bit/8kHz ~ 192kHz I2S/PCM interface for each mono DAC and stereo DAC  Two 24bit/8kHz ~ 192kHz I2S/PCM interface for stereo ADC  I2C control interface  Two digital microphone interface support  Asynchronous sample rate converter (ASRC) for each interface  Programmable register table with two sequencers  7-bands flexible equalizer (EQ) for DAC path or ADC path  Enhanced DRC(Dynamic Range Control)/AGC(Auto Gain Control) with compression function for DAC path or ADC path  Dynamic wind noise reduction filter  Zero detection and soft volume for pop noise suppression  Speaker amplifier DC term self-test function for speaker protection  SounzRealTM audio sound processing  OmniHeadphone EXPTM  OminiSound EXPTM  TruTreble EXPTM  BassBack EXPTM  TruBass EXPTM  2.1-Ch Generator from 2-Ch Track  Dipole Speaker  SNCII  Voice sound processing  Voice Communication Enhancement  Voice Recognition Enhancement  Far Field Pick-Up Technology 3. System Application  Smart Phones  Tablet Multi-Channel Audio Hub/CODEC with embedded Voice 3 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 4. Function Block and Mixer Path 4.1. Function Block ALC5642-VF Datasheet LDO1_EN DCVDD DBVDD SPKVDDR SPKVDDL MICVDD SPKGND AGND DGND LDO1_IN AVDD DACREF LDO1 Digital Core Analog Core DSP Digtial I/O LDO2 REG_EN MICBIAS1 0.9 * MICVDD 0.75 * MICVDD Class-D Power Stage Charge Pump Headphone block CPVDD CPGND CPP1 CPN1 CPP2 CPN2 CPVEE CPVPP IN1P IN1N IN3P IN3N IN2P IN2N MICBIAS1 VREF1 VREF2 MICBST1 MICBST2 INL INR MIC Boost Volume REC Mixer ADCL ADCR ADC Volume High Pass Filter Realtek Audio Sound Effect DACL1 DAC Volume High Pass Filter DACR1 DACL2 MICVDD DACR2 Output Mixer HPO_L_Vol HPO_R_Vol OUT_Vol SPO_L_Vol SPO_R_Vol HPOL HPOR LOUTL LOUTR MONOP MONON SPOLP SPOLN SPORP SPORN MICBIAS AVDD Reference PLL Voltage Digital Audio Interface Voice DSP DMIC Interface I2C Control Spike Filter Spike Filter MCLK BCLK1 LRCK1 DACDAT1 ADCDAT1 BCLK2 LRCK2 DACDAT2 ADCDAT2 GPIO1/IRQ DMIC_SCL/ GPIO2 DMIC1_SDA DMIC2_SDA SCL SDA Figure 1. Multi-Channel Audio Hub/CODEC with embedded Voice DSP and SounzRealTM Digital Sound Effect Block Diagram 4 Rev. 0.9 4.2. Audio Mixer Path IN1P IN1N IN2P IN2N IN3P IN3N DMIC1_SDA DMIC2_SDA 0/20/24/30/35/40/44/50/52 MX-0D[7] MICBST1 VMID MX-0D[15:12] MICBST1 MICBST1 Pwr Ctrl: MX-64[15] 0/20/24/30/35/40/44/50/52 -18 ~ 0dB, 3dB/step OUTMIXL Gain MX-3C[0] MX-3C[12:10] MICBST1 Gain MX-3C[1] MX-3C[15:13] MICBST2 Gain MX-3C[4] MX-3B[9:7] MICBST3 Gain MX-3C[2] MX-3B[3:1] INL Gain MX-3C[5] MX-3B[12:10] RECMIXL RECMIXL Pwr Ctrl: MX-65[11] RECMIXL ADC_L ADC_L Pwr Ctrl: MX-61[2] DMIC1/2_DAT MX-0E[6] MICBST2 MX-0E[11:8] VMID MICBST2 MICBST2 Pwr Ctrl: MX-64[12] MX-0F[4:0] INR -34.5~+12dB,1.5dB/step INRVOL Pwr Ctrl: MX-66[8] MX-0F[12:8] INL -34.5~+12dB,1.5dB/step INLVOL Pwr Ctrl: MX-66[9] -18 ~ 0dB, 3dB/step INR Gain MICBST1 MX-3E[5] MX-3D[12:10] Gain MX-3E[1] MX-3E[15:13] MICBST2 Gain MX-3E[4] MX-3D[9:7] MICBST3 Gain OUTMIXR MX-3E[2] MX-3D[3:1] Gain MX-3E[0] MX-3E[12:10] RECMIXR RECMIXR Pwr Ctrl: MX-65[10] ADC_R ADC_L Pwr Ctrl: MX-61[1] RECMIXR 0/20/24/30/35/40/44/50/52 MX-0D[6] MICBST3 VMID MX-0D[11:8] MICBST3 MICBST3 Pwr Ctrl: MX-64[14] Filter & Digital Volume Filter & Digital Volume ADC Stereo Mixer Pwr Ctrl: MX-62[15] ADC Mono L Mixer Pwr Ctrl: MX-62[14] ADC Mono R Mixer Pwr Ctrl: MX-62[13] Digital Sound Effect I2S1 Pwr Ctrl: MX-61[15] I2S2 Pwr Ctrl: MX-61[14] Filter & Digital Volume Filter & Digital Volume Filter & Digital Volume Filter & Digital Volume ALC5642-VF Datasheet RECMIXL INL DACL1 DACL2 SPKMIXL Pwr Ctrl: MX-65[13] -9 ~ 0dB, 3dB/step Gain MX-46[5] MX-46[15:14] SPKMIXL Gain MX-46[4] MX-46[13:12] Gain MX-46[3] MX-46[11:10] Gain MX-46[2] MX-46[9:8] Gain MX-46[1] MX-46[7:6] DAC_L1 DACL1 DAC_L1 Pwr Ctrl: MX-61[12] DAC_R1 DACR1 MICBST3 MICBST1 INL RECMIXL DACR2 DACL2 DACL1 OUTMIXL OUTMIXL Pwr Ctrl: MX-65[15] -18 ~ 0dB, 3dB/step OUTMIXL Gain MX-4F[6] MX-4D[12:10] Gain MX-4F[5] MX-4D[9:7] Gain MX-4F[4] MX-4D[6:4] Gain MX-4F[3] MX-4D[3:1] Gain MX-4F[2] MX-4E[15:13] Gain MX-4F[1] MX-4E[12:10] Gain MX-4F[0] MX-4E[9:7] DAC_R1 Pwr Ctrl: MX-61[11] DAC_L2 DACL2 DAC_L2 Pwr Ctrl: MX-61[7] DAC_R2 DACR2 DACR1 DACR2 DACL2 RECMIXR INR MICBST1 MICBST2 MICBST3 OUTMIXR Pwr Ctrl: MX-65[14] -18 ~ 0dB, 3dB/step OUTMIXR Gain MX-52[0] MX-51[9:7] Gain MX-52[1] MX-51[12:10] Gain MX-52[2] MX-51[15:13] Gain MX-52[3] MX-50[3:1] Gain MX-52[4] MX-50[6:4] Gain MX-52[5] MX-50[9:7] Gain MX-52[7] MX-50[15:13] Gain MX-52[6] MX-50[12:10] DAC_R2 Pwr Ctrl: MX-61[6] OUTMIXR DACR1 DACR2 INR RECMIXR SPKMIXR Pwr Ctrl: MX-65[12] -9 ~ 0dB, 3dB/step SPKMIXR Gain MX-47[1] MX-47[7:6] Gain MX-47[3] MX-47[11:10] Gain MX-47[2] MX-47[9:8] Gain MX-47[4] MX-47[13:12] Gain MX-47[5] MX-47[15:14] mu_spkvoll_in MX-01[14] SPKVOLL MX-01[13:8] SPKVOLL VOL_SPO_L (-46.5 ~ +12dB, 1.5dB/step) SPKVOLL Pwr Ctrl: MX-66[15] 2.27, 1.58, 0.58, 0, -1.5, -3, -4.5, -6dB MICBST1 Gain MX-48[11] SPKVOLL Gain MX-48[12] SPKVOLR Gain MX-48[13] DACL1 Gain MX-48[14] DACR1 Gain MX-48[15] MX-4A[2:0] SPOLMIX MU_SPO_L SPOLP MX-01[15] SPOLN Class D AMP Class-D Pwr Ctrl: MX-61[0] mu_hpovoll_in HPOVOLL HPOVOLL MX-02[14] MX-02[13:8] VOL_HPO_L (-46.5 ~ +12dB, 1.5dB/step) HPOVOLL Pwr Ctrl: MX-66[11] mu_outvoll_in MX-03[14] OUTVOLL OUTVOLL MX-03[13:8] VOL_O_L (-46.5 ~ +12dB, 1.5dB/step) OUTVOLL Pwr Ctrl: MX-66[13] mu_outvolr_in MX-03[6] OUTVOLR MX-03[5:0] OUTVOLR VOL_O_R (-46.5 ~ +12dB, 1.5dB/step) OUTVOLR Pwr Ctrl: MX-66[12] mu_hpovolr_in HPOVOLR MX-02[6] HPOVOLR MX-02[5:0] VOL_HPO_R (-46.5 ~ +12dB, 1.5dB/step) HPOVOLL Pwr Ctrl: MX-66[10] -6 ~ 0dB, 6dB/step HPOVOLL MX-45[13] DACL1 MX-45[14] DACL2 Gain Gain Gain MX-45[12] MX-45[15] HPOLMIX MU_HPO_L MX-02[15] DACL1 -6 ~ 0dB, 6dB/step Gain MX-53[15] DACR1 Gain MX-53[14] OUTVOLL Gain MX-53[13] MX-03[15] MU_LOUT MX-03[7] HPOL LOUTL LOUTR OUTVOLR Gain MX-53[12] MX-53[11] -6 ~ 0dB, 6dB/step MICBST1 Gain MX-4C[11] OUTVOLL Gain MX-4C[12] OUTVOLR Gain MX-4C[13] DACL2 DACR2 Gain MX-4C[14] Gain MX-4C[15] MX-4C[10] LOUTMIX Pwr Ctrl: LOUTMIX MX-63[12] MU_MONO MONOP MX-04[15] MONON MONO Amp Pwr Ctrl: MX-63[8] MONO MIX Pwr Ctrl: MONOMIX MX-63[10] -6 ~ 0dB, 6dB/step HPOVOLR Gain DACR1 MX-45[13] Gain DACR2 MX-45[14] Gain MX-45[15] MX-45[12] MU_HPO_R HPORMIX MX-02[7] HPOR 2.27, 1.58, 0.58, 0, -1.5, -3, -4.5, -6dB mu_spkvolr_in SPKVOLR MX-01[6] MX-01[5:0] SPKVOLR VOL_SPO_R (-46.5 ~ +12dB, 1.5dB/step) SPKVOLR Pwr Ctrl: MX-66[14] MICBST1 Gain MX-49[11] SPKVOLR Gain MX-49[12] DACR1 Gain MX-49[13] MX-4A[2:0] MU_SPO_R SPORP SPORMIX MX-01[7] SPORN Class D AMP Class-D Pwr Ctrl: MX-61[0] DACDAT1 ADCDAT1 DACDAT2 ADCDAT2 Figure 2. Audio Mixer Path Multi-Channel Audio Hub/CODEC with embedded Voice 5 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 4.3. Digital Mixer Path ADCL ADC_L ADCR ADC_R MX-27[11:10] DMIC1_L DMIC2_L DAC_MIXL MX-27[13] MX-27[12] MX-27[14] MX-27[12] MX-27[6] DAC_MIXR DMIC1_R DMIC2_R MX-27[11:10] MX-27[5] DMIC1_L DMIC2_L Mono_DAC_MIX_L MX-28[11:10] MX-28[13] MX-28[12] MX-28[14] MX-28[4] MX-28[6] Mono_DAC_MIX_R DMIC1_R DMIC2_R MX-28[3:2] MX-28[5] SNC - II Stereo_ADC_Mixer_L MX-D3 & PR-6E Wind filter Gain MX-1E[15:14] MX-1C[14:8] VOL MX-1C[15] Stereo_ADC_L IF1_DAC_L VOL MX-19[15:8] MX-29[15] MX-29[14] Stereo_ADC_Mixer_R Gain MX-1E[13:12] MX-D3 & PR-6E Wind filter MX-1C[6:0] VOL IF1_DAC_R VOL MX-1C[7] MX-19[7:0] Stereo_ADC_R MX-29[6] MX-29[7] Realtek Audio Sound Effect MX-2A[2] DACL1 DACL2 MX-2A[14] MX-2A[12] Gain MX-2A[13] Gain MX-2A[11] DACR1 DACR2 MX-2A[6] MX-2A[4] Gain MX-2A[5] Gain MX-2A[3] EQ/AGC (Share with DAC path) IF1_ADC_L IF1_ADC_R Mono_ADC_Mixer_L VOL MX-1D[14:8] MX-FA[13] Mono_ADC_Mixer_R VOL MX-1D[6:0] MX-FA[12] IF1_DAC_L IF1_DAC_R PR-3F[9] IF1_DAC DACL1 DACR1 DAC1 IF2_DAC_L IF2_DAC_R Stereo_ADC_L IF2_DAC Stereo_ADC PR-3F[10] L/L (L+R)/2 ↓3 RxDP Stereo_ADC_R MX-FB[3] Stereo_ADC_L PR-3F[11] MX-2D[15] Mono_ADC_Mixer_L Mono_ADC_Mixer_R Stereo_ADC_L LR LL RxDC RR RL MX-FB[7] MX-2E[9:8] DACL1 DACL2 DACR2 MX-2B[14] MX-2B[12] MX-2B[10] Gain MX-2B[13] Gain MX-2B[11] Gain MX-2B[9] MX-2E[15:14] Bass_DAC IF2_DAC_L MX-1A[15:8] VOL DACL2 MX-1B[13] DACR1 DACR2 DACL2 MX-2B[6] MX-2B[4] MX-2B[2] Gain MX-2B[5] Gain MX-2B[3] Gain MX-2B[1] MX-2E[5:4] LR TxDC LL RR RL MX-2E[13:12] IF2_DAC_R PR-3F[14] MX-1A[7:0] VOL DACR2 MX-1B[12] Voice DSP LR TxDP LL ↑3 RR RL MX-2D[14] MX-2E[3:2] By-Pass Mono_ADC_Mixer_L Mono_ADC_Mixer_R MX-2E[11] MX-2E[10] IF2_ADC_L IF2_ADC_R DACL1 DACL2 DACR1 DACR2 MX-2C[15] MX-2C[13] MX-2C[11] MX-2C[9] MX-2C[14] Gain Gain MX-2C[12] MX-2C[10] Gain Gain MX-2C[8] MX-2A[10] Stereo_DAC_Mixer_L Stereo_DAC_Mixer_R Mono_DAC_Mixer_L Mono_DAC_Mixer_R DAC_MIXL DAC_MIXR DACL1 DACR1 DACL2 DACR2 IF2_ADC_R IF2_ADC_L IF2_DAC_R IF2_DAC_L IF1_ADC_R IF1_ADC_L IF1_DAC_R IF1_DAC_L L L R R IF2_ADC LRLR L L R R IF2_DAC LRLR L L R R IF1_ADC LRLR LLRR LRLR MX-2F[15:14] IF1_DAC IF2_ADC IF1_ADC IF2_DAC IF1_DAC MX-2F[13:12] MX-2F[11:10] Digital Interface 1 Digital Interface Process MX-70[14:12] MX-2F[9:8] Digital Interface 2 MX-70[14:12] IF2_ADC IF1_ADC IF2_DAC IF1_DAC MX-71[6] MX-71[6] DACDAT1 ADCDAT1 DACDAT2 ADCDAT2 DACDAT2 ADCDAT2 DACDAT1 ADCDAT1 Figure 3. Digital Mixer Path Multi-Channel Audio Hub/CODEC with embedded Voice 6 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 5. Pin Assignments ALC5642-VF Datasheet BCLK1 LRCK1 ADCDAT1 DACDAT1 ADCDAT2 DACDAT2 BCLK2 LRCK2 HPO_L CPVEE HPO_R HPOFB 36 35 34 33 32 31 30 29 28 27 26 25 MCLK 37 24 SCL 38 23 SDA 39 22 GPIO1/IRQ 40 21 GPIO2/DMIC_SCL 41 20 DCVDD 42 19 DBVDD 43 18 LDO1_EN 44 ALC5642 17 SPO_RP 45 16 SPKVDDR 46 xxxxxxx ywwvs 15 SPO_RN 47 (Top View) 14 SPO_LN 48 13 1 2 3 4 5 6 7 8 9 10 11 12 CPVPP CPVDD CPGND CPN1 CPP1 CPP2 CPN2 LOUTR LOUTL AVDD MONON/IN3N MONOP/IN3P VREF2 VREF1 DACREF AGND IN2N/JD2 IN2P IN1N/DMIC2_DAT/JD1 IN1P/DMIC1_DAT MICBIAS1 MICVDD SPKVDDL SPO_LP Figure 4. Pin Assignments Multi-Channel Audio Hub/CODEC with embedded Voice 7 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 6. Pin Descriptions ALC5642-VF Datasheet 6.1. Digital I/O Pins Table 1. Digital I/O Pins Name Type Pin Description DACDAT1 First I2S interface serial data input I 33 ADCDAT1 O 34 First I2S interface serial data output First I2S interface serial bit clock Characteristic Definition Schmitt trigger (VIL=0.35*DBVDD, VIH=0.65*DBVDD) VOL=0.1*DBVDD, VOH=0.9*DBVDD Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD BCLK1 I/O 36 Slave: Schmitt trigger First I2S interface synchronous signal (VIL=0.35*DBVDD, VIH=0.65*DBVDD) Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD LRCK1 I/O 35 Slave: Schmitt trigger DACDAT2 ADCDAT2 Second I2S interface serial data input I 31 O 32 Second I2S interface serial data output Second I2S interface serial bit clock (VIL=0.35*DBVDD, VIH=0.65*DBVDD) Schmitt trigger (VIL=0.35*DBVDD, VIH=0.65*DBVDD) VOL=0.1*DBVDD, VOH=0.9*DBVDD Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD BCLK2 I/O 30 Slave: Schmitt trigger (VIL=0.35*DBVDD, VIH=0.65*DBVDD) Second I2S interface synchronous signal Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD LRCK2 I/O 29 Slave: Schmitt trigger SDA I/O 39 I2C interface serial data (VIL=0.35*DBVDD, VIH=0.65*DBVDD) Open drain structure SCL I 38 I2C interface clock input Schmitt trigger MCLK I2S interface master clock input I 37 General purpose input and output GPIO1/IRQ I/O 40 Interrupt output Schmitt trigger (VIL=0.35*DBVDD, VIH=0.65*DBVDD) Output: VOL =0.1*DBVDD, VOH =0.9*DBVDD Input: Schmitt trigger GPIO2/ General purpose input and output DMIC_SCL I/O 41 Digital microphone clock output LDO1_EN LDO1 enable control, for digital core I 44 power DCVDD Low: Disable, High: Enable Output: VOL =0.1*DBVDD, VOH =0.9*DBVDD Input: Schmitt trigger Input threshold: VIL = 0.35*DBVDD VIH = 0.65*DBVDD Total: 14 Pins Multi-Channel Audio Hub/CODEC with embedded Voice 8 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 6.2. Analog I/O Pins Table 2. Analog I/O Pins Name Type Pin Description Characteristic Definition LOUTR Line output type (single-end output) O 17 Right channel Analog output LOUTL Line output type (single-end output) O 16 Left channel Analog output IN2P Positive differential input for microphone Analog input I 72 Left channel line input Negative differential input for microphone 2 IN2N/JD2 I 8 Right channel line input Analog input JD threshold: VIL = 0.2V, VIH = 1.2V Second jack detection pin IN1P/DMIC1_ DAT I Positive differential input for microphone Analog input 51 Digital input First digital microphone data input IN1N/DMIC2 _DAT/JD1 I Negative differential input for microphone 1 6 Second digital microphone data input First jack detection pin Analog input Digital input JD threshold: VIL = 0.2V, VIH = 1.2V HPO_R O 26 Headphone amplifier output Right channel Analog output HPO_L Headphone amplifier output O 28 Left channel Analog output SPO_LP Speaker amplifier output Analog output O1 Left differential positive output channel SPO_LN Speaker amplifier output Analog output O 48 Left differential negative output channel SPO_RP O 45 Speaker amplifier output Analog output Right differential positive output channel SPO_RN O 47 Speaker amplifier output Analog output Right differential negative output channel Mono output with driving capability Analog output MONOP/IN3P I/O 13 Differential positive output channel Positive differential or single-end input for microphone 3 Analog input Mono output with driving capability Analog output MONON/IN3 N I/O 14 Differential negative output channel Negative differential input for microphone 3 Analog input Total: 14 Pins Multi-Channel Audio Hub/CODEC with embedded Voice 9 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 6.3. Filter/Reference Name MICBIAS1 VREF1 VREF2 HPOFB CPN1 CPP1 CPN2 CPP2 Table 3. Filter/Reference Type Pin Description Characteristic Definition O 4 Bias voltage output for microphone Programmable analog DC output O 11 First internal reference voltage 4.7uF capacitor to analog ground O 12 Second internal reference voltage 4.7uF capacitor to analog ground - 25 Headphone reference ground Headphone ground - 21 First charge pump bucket capacitor 2.2uf capacitor to CPP1 - 20 First charge pump bucket capacitor 2.2uf capacitor to CPN1 - 18 Second charge pump bucket capacitor 2.2uf capacitor to CPP2 - 19 Second charge pump bucket capacitor 2.2uf capacitor to CPN2 Total: 8 Pins 6.4. Power/Ground Name MICVDD AVDD DACREF AGND CPVDD CPGND CPVEE CPVPP DCVDD DBVDD SPKVDDL SPKVDDR SPKGND/ DGND Table 4. Power/Ground Type Pin Description Characteristic Definition P 3 Analog power for MICBIAS 3.0V ~ 3.3V (Default 3.3V is recommended) P 15 Analog power 1.71V ~ 1.9V (Default 1.8V is recommended) P 10 Analog power 1.71V ~ 1.9V (Default 1.8V is recommended) P 9 Analog ground P 23 Analog power for headphone charge pump 1.71V ~ 1.9V (Default 1.8V is recommended) P 22 Analog ground for headphone charge pump P 27 Charge pump negative voltage output 2.2uf capacitor to analog ground P 24 Charge pump positive voltage output 2.2uf capacitor to analog ground Digital power for digital core. 1.15V~1.3V Kept open if LDO1_EN is pulled high, or (Default open is recommended. Pull high P 42 connected to external 1.2V power. LDO1_EN to DBVDD to general 1.2V DCVDD by internal LDO. It can be connected to external 1.2V if LDO1_EN is pulled low.) P 43 Digital power for digital I/O buffer 1.71V~3.3V (Default 1.8V is recommended) P 2 Speaker AMP power for left channel 3.0V~5.0V (Default 5V or 3.3V) P 46 Speaker AMP power for right channel 3.0V~5.0V (Default 5V or 3.3V) P 49* Speaker AMP ground Digital ground Exposed-Pad Total: 12 Pins Multi-Channel Audio Hub/CODEC with embedded Voice 10 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 7. Function Description ALC5642-VF Datasheet 7.1. Power There are different power types in ALC5642. DBVDD is for digital I/O power, DCVDD is for digital core power, AVDD and DACREF are for analog power, CPVDD is for charge pump power, MICVDD is for MICBIAS power and SPKVDD is for speaker amplifier power. The power supplier limit condition are DBVDD ≧ DCVDD and SPKVDD ≧ MICVDD > AVDD = DACREF = CPVDD, AVDD ≧ DCVDD, and for the best performance, our design setting is shown as below. Power Setting Table 5. Power Supply for Best Performance DBVDD DCVDD AVDD DACREF CPVDD 1.8V 1.2V 1.8V 1.8V 1.8V MICVDD SPKVDD 3.3V 5.0V *1.2V DCVDD can be generated by internal LDO or supplied by external 1.2V power. To prevent all power down leakage, there are two settings for power supply. At these conditions, the leakage will be smaller. First setting is to power on all power pin. Second setting is to only power on SPKVDD and others are removed. The detail setting is shown as following table. Power Setting-1 Setting-2 Table 6. Power Supply Condition for Power Down Leakage DBVDD DCVDD AVDD DACREF CPVDD MICVDD Supplied Supplied Supplied Supplied Supplied Supplied N/A N/A N/A N/A N/A N/A SPKVDD Supplied Supplied Multi-Channel Audio Hub/CODEC with embedded Voice 11 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.2. Power Supply On/Off Sequence To prevent pop noise and make sure function work normally, following power on and off sequence are recommended. Power On Sequence: (Sequentially turn on power pins) 1. Pull LDO1_EN pin (Pin#44) to DGND (digital ground) 2. SPKVDD power supply on 3. DCVDD power supply on (This step is required if DCVDD is supplied by external 1.2V power. This step and Step 5 are exclusive.) 4. DBVDD/AVDD/DACREF/CPVDD power supply on 5. Pull LDO1_EN pin (Pin#44) to DBVDD (This step is required if DCVDD is generated by internal LDO. This step and step 3 are exclusive. If DCVDD is supplied by external 1.2V, LDO1_EN must be pulled low.) 6. MICVDD power supply on (This step is required if MICVDD is supplied by external power) 7. Initialize voice DSP of ALC5642. 8. Power down voice DSP of ALC5642. (Write 0x0400’h to register MX-C6’h) Power Off Sequence: (Sequentially turn off power pins) 1. Power down voice DSP of ALC5642. (Write 0x0400’h to register MX-C6’h) 2. Power down all Codec function (Write 0x0000’h to register MX-00’h) 3. Pull LDO1_EN pin (Pin#44) to DGND (If internal LDO is used to generate DCVDD) 4. MICVDD power supply off (If MICVDD is supplied by external power) 5. DBVDD/AVDD/DACREF/CPVDD power supply off 6. DCVDD power supply off (If DCVDD is supplied by external power) 7. SPKVDD power supply off Multi-Channel Audio Hub/CODEC with embedded Voice 12 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.3. Reset There are 2 types of reset operation: power on reset (POR) and register reset. Reset Type POR Register Reset Table 7. Reset Operation Trigger Condition CODEC Response Monitor digital power supply voltage reach VPOR Write MX-00h Reset all hardware logic and all registers to default values. Reset all registers to default values except some specify control registers and logic. 7.3.1. Power-On Reset (POR) When powered on, DCVDD passes through the VPOR band of the ALC5642 (VPOR_ON ~VPOR_OFF). A power on reset (POR) will generate an internal reset signal (POR reset ‘LOW’) to reset the whole chip. Symbol Min VPOR_ON - VPOR_OFF - Note: 1.VPOR_OFF must be below VPOR_ON 2. ToC = 25oC 3. When DCVDD is supplied 1.2V Table 8. Power-On Reset Voltage Typical 0.8 0.52 Max - Unit V V 7.3.2. Software Reset When MX-00h is wrote, all registers become to default value. Multi-Channel Audio Hub/CODEC with embedded Voice 13 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.4. Clocking The system clock of ALC5642 can be selected from MCLK or PLL. MCLK is always provided externally while the reference clock of PLL can be selected from MCLK, BCLK1/2. The driver should arrange the clock of each block and setup each divider. The Clk_sys_i2s1=256*Fs provides clocks into stereo DAC/ADC filter that can be selected from MCLK or PLL. Refer to Figure 5. Audio SYSCLK The Clk_sys_i2s2=256*Fs provides clocks into mono DAC/ADC filter that can be selected from MCLK, PLL, refer to Figure 5. Audio SYSCLK When enable ASRC (Asynchronous Sample Rate Converter) function, the clock sources from MCLK and BCLK1 (or BCLK2) are allowed to be asynchronous. The Realtek ASRC technology can ensure data accuracy and keep audio performance under clock source asynchronous. When ALC5642 at master mode, the clock source from MCLK will be divided and be sent to external device. The ratio of BCLK and LRCK can set by register – MX-73. MCLK MX80[3] ÷2 MX80[15:14] MCLK MX80[13:12] Inter. Clock (Slave) (Slave) PLL MX81 & MX82 PLL MX73[14:12] DIV_F1 Clk_sys_i2s1(256FS) System Clock MX73[10:8] Clk_sys_i2s2(256FS) DIV_F2 BCLK1 LRCK1 BCLK2 LRCK2 MX70[15] MX71[15] BCLK1(Master) MX70[15] LRCK1(Master) LRCK1(Slave) Master Mode LRCK/BCLK Ratio MX73[15] Filter_Clk1 (256FS) BCLK2(Master) MX71[15] LRCK2(Master) LRCK2(Slave) Master Mode LRCK/BCLK Ratio MX73[11] Clk_sys_i2s2(256FS) Figure 5. Audio Clock Tree Multi-Channel Audio Hub/CODEC with embedded Voice 14 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.4.1. Phase-Locked Loop A Phase-Locked Loop (PLL) is used to provide a flexible input clock from 2.048MHz to 40MHz. The source of the PLL can be set to MCLK, BCLK1 or BCLK2 by setting register. The S/W driver can set up the PLL to output a frequency to match the requirement of system clock. The PLL transmit formula as below: FOUT = (MCLK * (N+2)) / ((M+2) * (K+2)) {Typical K=2} MCLK 13 3.6864 2.048 4.096 12 15.36 16 19.2 19.68 24 Table 10. N 66 78 94 70 80 81 78 80 78 39 Clock Setting Table for 48K (Unit: MHz) M FVCO K 7 98.222 2 1 98.304 2 0 98.304 2 1 98.304 2 8 98.4 2 11 98.068 2 11 98.462 2 14 98.4 2 14 98.4 2 8 98.4 2 FOUT 24.555 24.576 24.576 24.576 24.6 24.517 24.615 24.6 24.6 24.6 MCLK 13 3.6864 2.048 4.096 12 15.36 16 19.2 19.68 24 Table 11. N 68 72 86 64 66 63 66 64 67 62 Clock Setting Table for 44.1K (Unit: MHz) M FVCO K 8 91 2 1 90.931 2 0 90.112 2 1 90.112 2 7 90.667 2 9 90.764 2 10 90.667 2 12 90.514 2 13 90.528 2 15 90.352 2 FOUT 22.75 22.733 22.528 22.528 22.667 22.691 22.667 22.629 22.632 22.588 Multi-Channel Audio Hub/CODEC with embedded Voice 15 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.4.2. I2C and Two I2S/PCM Interface The ALC5642 supports I2C for the digital control interface, and has two I2S/PCM for digital data interface. These two I2S/PCM audio digital interfaces are used to send data to 4 DACs or to receive data from a stereo ADC. These two I2S/PCM audio digital interfaces can be configured to Master mode or Slave mode. Master Mode Under master mode, BCLK and LRCK are configured as output. If I2S SYSCLK is selected from MCLK source, sel_sysclk1 (MX-80[15:14]) should set as 00’b. If selected from PLL output, sel_sysclk1 should set as 01’b. PLL’s source is suggested to provide frequency from 2.048MHz to 40MHz. The driver should set each divider (MX-73 and MX-89) to arrange the clock distribution. Refer to Figure5. Audio Clock Tree, for details. Register Settings MX-73[15]=0’b MX-73[15]=1’b MX-73[15]=0’b MX-73[15]=1’b Table 12. The relative of SYSCLK/BCLK/LRCK MCLK BCLK 256*FS=12.288MHz 32*FS=1.536MHz 256*FS=12.288MHz 64*FS=3.072MHz 256*FS=11.2896MHz 32*FS=1.4112MHz 256*FS=11.2896MHz 64*FS=2.8224MHz LRCK FS=48KHz FS=48KHz FS=44.1KHz FS=44.1KHz Example for master mode: Target format: Sample Rate: 48 KHz Channel Length: 32 bits LRCK=48KHz BCLK=3.071MHz (64 * 48KHz) MCLK clock request: MCLK=12.288MHz (256 * 48 KHz) Register settings: Set MX-FA[0] to “1” Set MX-61[15] to “1” Set MX-70[15] to “0” Set MX-73[15] to “1” Set MX-73[14:12] to “000” // For MCLK input clock getting control // Enable I2S-1 // Enable Master mode // Select 64*FS for BCLK in master mode // Select I2S-1 pre-divider Multi-Channel Audio Hub/CODEC with embedded Voice 16 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet For ASRC function on Codec master mode, the Codec only support it on some conditions. These conditions are sample rate fix at 48KHz, MCLK fix at 19.2MHz and frame rate fix at 50FS. Some registers need to set for this mode as shown at Table 13. Table 13. Register Settings for ASRC Function on Master Mode Condition: Codec as Master Mode MCLK = 19.2MHz Frame Rate = 50*FS Target Sample Rate (FS) = 48KHz Item Register Settings Note I2S-1 to DAC1 MX-83 = 0x8000’h For DAC1 playback ASRC settings MX-84 = 0x0020’h MX-FB = 0x0004’h I2S-2 to DAC2 MX-83 = 0x1800’h For DAC2 playback ASRC settings MX-84 = 0xC000’h MX-FB = 0x0002’h AMIC to Stereo ADC Filter to I2S-1 MX-83 = 0x8000’h MX-84 = 0x0800’h For AMIC to Stereo ADC Filter record ASRC settings MX-FB = 0x0004’h AMIC to Mono ADC Filter to I2S-2 MX-83 = 0x1800’h MX-84 = 0x3800’h For AMIC to Mono ADC Filter record ASRC settings MX-FA = 0x0731’h MX-FB = 0x0002’h DMIC1 to Stereo ADC Filter to I2S-1 MX-83 = 0x8200’h MX-FB = 0x0004’h For DMIC1 to Stereo ADC Filter record ASRC settings DMIC2 to Mono ADC Filter to I2S-2 MX-83 = 0x1900’h MX-84 = 0x3800’h For DMIC2 to Mono ADC Filter record ASRC settings MX-FA = 0x0741’h MX-FB = 0x0002’h Multi-Channel Audio Hub/CODEC with embedded Voice 17 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Slave Mode Under slave mode BCLK and LRCK are configured as input. The SYSCLK can be input from MCLK, and BCLK can be synchronous or asynchronous to MCLK. If the SYSCLK is selected from BCLK, the internal PLL should generate 256*FS by BCLK. And the driver should set each divider to arrange the clock distribution. Refer to Figure5. Audio Clock Tree, for details. If an asynchronous MCLK input for BCLK and LRCK, you can turn ASRC function for this situation. As Figure 6 shown, the MCLK is from external oscillator that clock is no relation (or asynchronous) with SOC and BT or 3G BaseBand. For the connection for SOC and BT can connect directly to Codec and let Codec as slave mode and SOC/BT as master mode. For the clock requirement of MCLK must large than 512*FS as SYSCLK that FS is sample rate. If the MCLK is smaller than 512*FS, that can use internal PLL to generate higher than 512*FS clock. Codec I2S-1 as Slave Mode I2S-1 as Slave Mode MCLK With ASRC With ASRC OSC SOC BT/3G BB Figure 6. System Connection for ASRC Function Multi-Channel Audio Hub/CODEC with embedded Voice 18 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Table 14. Register Settings for ASRC Function on Slave Mode Condition: Codec as Slave Mode MCLK = 12MHz Frame Rate = 64*FS Target Sample Rate (FS) = 48KHz Item Register Settings Note PLL Settings MX-81 = 0x1481’h PLL settings to generate 512*FS (24.576MHz) MX-82 = 0x5000’h for SYSCLK I2S-1 to DAC1 MX-83 = 0x8000’h For DAC1 playback ASRC settings MX-84 = 0x0020’h I2S-2 to DAC2 MX-83 = 0x1800’h For DAC2 playback ASRC settings MX-84 = 0xC000’h AMIC to Stereo ADC Filter to I2S-1 MX-83 = 0x8000’h MX-84 = 0x0800’h For AMIC to Stereo ADC Filter record ASRC settings AMIC to Mono ADC Filter to I2S-2 MX-83 = 0x1800’h MX-84 = 0x3800’h For AMIC to Mono ADC Filter record ASRC settings DMIC1 to Stereo ADC Filter to I2S-1 MX-83 = 0x8200’h For DMIC1 to Stereo ADC Filter record ASRC settings DMIC2 to Mono ADC Filter to I2S-2 MX-83 = 0x1900’h MX-84 = 0x3800’h For DMIC2 to Mono ADC Filter record ASRC settings Multi-Channel Audio Hub/CODEC with embedded Voice 19 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.5. Digital Data Interface 7.5.1. Two I2S/PCM Interface The two I2S/PCM interface can be configured as master mode or slave mode. Three audio data formats are supported:  PCM mode  Left justified mode  I2S mode 1/Fs LRCK BLCK DACDAT/ ADCDAT 12 MSB n-1 n LSB Figure 7. PCM MONO Data Mode A Format (BCLK POLARITY=0) 1/Fs LRCK BLCK DACDAT/ ADCDAT 12 MSB n-1 n LSB Figure 8. PCM MONO Data Mode A Format (BCLK POLARITY=1) Multi-Channel Audio Hub/CODEC with embedded Voice 20 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 1/Fs LRCK BLCK DACDAT/ ADCDAT 12 MSB n-1 n LSB Figure 9. PCM MONO Data Mode B Format (BCLK POLARITY=0) LRCK 1/ Fs BLCK DACDAT/ ADCDAT 123 n-1 n 1 2 3 n-1 n MSB LSBMSB LSB Left-Channel Right-Channel Figure 10. PCM Stereo Data Mode A Format (BCLK POLARITY=0) 1/Fs LRCK BLCK DACDAT/ ADCDAT 123 n-1 n 1 2 3 n-1 n MSB LSBMSB LSB Left-Channel Right-Channel Figure 11. PCM Stereo Data Mode B Format (BCLK POLARITY=0) Multi-Channel Audio Hub/CODEC with embedded Voice 21 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 LRCK Left Channel 1/ Fs Right Channel BLCK DACDAT/ ADCDAT 12 n-1 n 12 n-1 n MSB LSB MSB LSB Figure 12. I2S Data Format (BCLK POLARITY=0) ALC5642-VF Datasheet LRCK Left Channel 1/ Fs Right Channel BLCK DACDAT/ ADCDAT 12 MSB n-1 n LSB 12 MSB n-1 n LSB Figure 13. Left-Justified Data Format (BCLK POLARITY=0) Multi-Channel Audio Hub/CODEC with embedded Voice 22 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.6. Audio Data Path The ALC5642 provides 4-channel analog DACs for playback and 2-channel analog ADCs for recording. 7.6.1. 2 Analog ADCs with 4-Channel Record Path There are two analog ADCs and with up to 4-channel recording path. You can use two analog microphones pass to analog ADCs and two digital microphones to reach 4-channel recording. Or use two digital microphone interfaces to reach 4-channel recording. These 4-channel data need to pass to 2-I2S interface, maybe two channels for one I2S interface or mono channel for one I2S interface. The full scale input of analog ADC is around 0.55Vrms. In order to save power, the left and right analog ADC can be powered down separately by setting pow_adc_l (MX-61[2]) and pow_adc_r (MX-61[1]). And the volume control of the stereo ADC is also separately controlled by ad_gain_l (MX-1C[14:8]) and ad_gain_r (MX-1C[6:0]). DMIC1_L DMIC2_L DAC_MIXL DAC_MIXL Analog ADC_L DMIC1_R DMIC2_R DAC_MIXR DAC_MIXR Analog ADC_R CH1 I2S1 CH2 DMIC1_L DMIC2_L Mono_DAC_MIXL Mono_DAC_MIXL Analog ADC_L DMIC1_R DMIC2_R Mono_DAC_MIXR Mono_DAC_MIXR Analog ADC_R CH3 I2S2 CH4 Figure 14. 4-Channel Recording Path IF1_ADC IF2_ADC Multi-Channel Audio Hub/CODEC with embedded Voice 23 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.6.2. 4 DACs with 4-Channel Playback Path There are four analog DACs and with up to 4-channel playback path. Two I2S interfaces provide four channels data to analog DACs. And analog DAC can output audio signal to speaker output, headphone output, mono output or line output. The full scale output of analog DAC is around 1Vrms at line output port. In order to save power, the four analog DACs can be powered down separately by setting pow_dac_l_1 (MX-61[12]), pow_dac_r_1 (MX-61[11]), pow_dac_l_2 (MX-61[7]) and pow_dac_r_2 (MX-61[6]). And the digital volume control of the four DACs are also separately controlled by vol_dac1_l (MX-19[15:8]), vol_dac1_r (MX-19[7:0]), vol_mono_dacl (MX-1A[15:8] and vol_mono_dacr (MX-1A[7:0]). IF1_DAC L I2S1 R CH1 Analog DACL1 CH2 Analog DACR1 IF2_DAC L I2S2 R CH3 Analog DACL2 CH4 Analog DACR2 Figure 15. 4-Channel Playback Path Multi-Channel Audio Hub/CODEC with embedded Voice 24 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.6.3. Mixers The ALC5642 has digital and analog mixers build-in.  Output mixer - OUTMIXL/R The stereo analog mixer can do mixing for DAC output and analog input. The mixer output is mainly for headphone output and line output. Each input path has it’s mute control to the mixer block in MX-4D ~ MX-52. pow_outmixl and pow_outmixr can be used to power on/off OUTMIXL/R  Speaker mixer – SPKMIXL/R The stereo analog mixer can do mixing for OUTMIX output, DAC output and analog input. The mixer output is for speaker output. Each input path has it’s mute control to the mixer block in MX-46 and MX-47. pow_spkmixl and pow_spkmixr can be used to power on/off SPKMIXL/R.  Speaker_Out mixer – SPOMIXL/R The stereo analog mixer can do mixing for from speaker volume, DAC and analog input. The mixer output is direct to speaker output. Each input path has it’s mute control to the mixer block in MX-48 and MX-49.  LINE_Out mixer – LOUTMIX The stereo analog mixer can do mixing for analog input and DAC output. The mixer output is for line-out output for drive external amplifier. Each input has individual mute control to the mixer block in MX-53. pow_lout can be used to power on/off LOUTMIX.  Record mixer – RECMIXL/R The stereo analog mixer can do mixing for analog input and OUTMIX output. The mixer output is for ADC input. Each input path has it’s mute control to the mixer block in MX-3B ~ MX-3E. pow_recmixl and pow_recmixr can be used to power on/off RECMIXL/R.  HP mixer – HPOMIXL/R The stereo analog mixer can do mixing for headphone volume and DAC output. The mixer output directly output to external headphone device. Each input path has it’s mute control to the mixer block in MX-45.  Digital mixer There are ten digital mixers in ALC5642. Four digital mixers are assigned for ADC recording. These four mixers can mix analog line input, analog microphone input and digital microphone input then output to I2S interface to other device. Another four digital mixers are assigned DAC playback. These mixers can mix digital data from I2S interface or ADC data from external analog signal. The mixed data is output to analog DAC and output port to drive external device. The other two mixers are use for DA-AD processing. The incoming data from two I2S interfaces (DACDAT) uses these two mixers to do mixing and output to I2S interface (ADCDAT). Multi-Channel Audio Hub/CODEC with embedded Voice 25 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.7. Analog Audio Input Port The ALC5642 has two types analog input ports: microphone input and line input.  IN1P/N The IN1P/N is a microphone type input port. The input port can be configured to differential input or single-ended input by MX-0D[7]. The microphone input port has its microphone bias and microphone boost. The low noise microphone bias can improve recording performance and enhance recording quality. Build-in short current detection scheme can be used for switch detection. Multi-steps microphone boost gain set by sel_bst1 (MX-0D[15:12]) is easy to use for microphone application. Pow_bst1 can be used to power down the MIC1 boost and pow_micbias1 can be used to power down the microphone bias 1.  IN2P/N The IN2P/N is a dual type input port: microphone input and line input. Microphone input can be configured to differential input or single-ended input by MX-0E[6]. Multi-steps microphone boost gain set by sel_bst2 (MX-0E[11:8]) is easy to use for microphone application. Pow_bst2 can be used to power down the MIC2 boost. As line input, it has volume control for tuning by MX-0F[12:8] and MX-0F[4:0].  IN3P/N The IN3P/N is a microphone type input port. Microphone input can be configured to differential input or single-ended input by MX-0D[6]. Multi-steps microphone boost gain set by sel_bst3 (MX-0D[11:8]) is easy to use for microphone application. Pow_bst3 can be used to power down the MIC3 boost. The port is pin share with MONOP and MONON. If as IN3P/N port needs power down MONOP/N. And if as MONOP/N port needs power down IN3P/N. Multi-Channel Audio Hub/CODEC with embedded Voice 26 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 7.8. Analog Audio Output Port The ALC5642 supports four type output ports: ALC5642-VF Datasheet  SPO_L/R_P/N The speaker output of ALC5642 is a stereo BTL output with Class-D type amplifier. The power of speaker amplifier is an individual power pin and higher than AVDD. So the input and output of speaker amplifier has a gain ratio to enlarge or reduce the income analog signal. The gain ratio setting can be controlled by fbgain_clsd (MX-8D[15:12]). The input source of the speaker output port can be selected from analog input, SPKVOL, DAC output by setting MX-48/49. The front stage of speaker output has gain control and volume control. For gain control, the range is from 0dB to -9dB and controlled by MX-46/47. For volume control, the range is from +12dB to -46.5dB with 1.5dB/step controlled by MX-01. The pow_spo_voll (MX-66[15]) and pow_spo_volr (MX-66[14]) can be used to power on/off SPKVOLL and SPKVOLR. The pow_clsd (MX-61[0]) can be used to power on/off SPO_L/R_P/N. Analog Modulation LP Gate Drive SPKVDDL SPOLP SPKGND Analog Modulation LN Gate Drive SPKVDDL SPOLN SPKGND Analog Modulation RP Gate Drive SPKVDDR SPORP SPKGND Analog Modulation LN Gate Drive SPKVDDR SPORN SPKGND Figure 16. Stereo BTL Speaker Output Multi-Channel Audio Hub/CODEC with embedded Voice 27 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet  HPO_L/R The headphone output of ALC5642 is a stereo output with cap-free type headphone amplifier. It does not need to connect external capacitor and can connect to earphone device directly. The headphone output source can mix from output mixer (OUTMIX) or DAC by setting MX-45. The front stage of headphone output has volume control and gain control. The volume range is from +12dB to -46.5dB with 1.5dB/step by MX-02. En_l_hp and en_r_hp (MX-63[7/6]) can be used to power on/off Headphone Amplifier, and pow_hpo_voll and pow_hpo_volr (MX-66[11/10]) can be used to power on/off headphone volume control. In addition, pow_pump_hp (MX-8E[3]) can be used to power on/off charge pump circuit for Headphone Amplifier.  MONO_P/N The mono output is a differential output with Class-AB type amplifier. The mono output source can be mixed from analog input, OUTVOL and DAC output by setting MX-4C[15:11]. The front stage of mono output has gain control for attenuation, the gain control is 0dB or -6dB by MX-4C[10].  Line_OUT_L/R The output type is line type output. The output is a stereo single ended output. The input can be selected from OUTVOL or DAC output by setting MX-53[15:12]. The front stage of LOUT output has gain control for attenuation. The gain control is 0dB or -6dB by MX-53[11]. Multi-Channel Audio Hub/CODEC with embedded Voice 28 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.9. Multi-Function Pins There are five multi-function pins in ALC5640. For different functions in each pins are controlled by register. You need to set the right register settings for each multi-function pins by your application.  GPIO1/IRQ – Pin 40 The pin default is GPIO function. If want to change to IRQ output, write MX-C0[15] to 1’b that will switch to IRQ function.  GPIO2/DMIC_SCL – Pin 41 The pin default is GPIO function. If want to change to DMIC clock output, write MX-C0[14] to 1’b that will switch to DMIC clock output function.  IN1P/DMIC1_DAT – Pin 5 The pin default is DMIC1 data input function. In DMIC1 data input function, need to set these register settings: 1. Power down IN1P – MX-64[15] = 0’b 2. Mute IN1 to each analog mixer - (RECMIXL/RECMIXR/OUTMIXL/OUTMIXR/SPOLMIX/SPORMIX/MONOMIX). 3. Set IN1 as single-end mode – MX-FA[9] = 1’b In IN1P microphone input function, need to power down DMIC interface – MX75[15] = 0’b.  IN1N/DMIC2_DAT/JD1 – Pin 6 The pin default is DMIC1 data input function. In DMIC2 data input function, need to set these register settings: 1. Power down IN1N – MX-64[15] = 0’b 2. Mute IN1 to each analog mixer - (RECMIXL/RECMIXR/OUTMIXL/OUTMIXR/SPOLMIX/SPORMIX/MONOMIX). 3. Set IN1 as single-end mode – MX-FA[9] = 1’b In IN1N microphone input function, need to power down DMIC interface – MX75[15] = 0’b. In JD1 jack detection function, need to set these register settings: 1. Power down IN1N – MX-64[15] = 0’b 2. Mute IN1 to each analog mixer - (RECMIXL/RECMIXR/OUTMIXL/OUTMIXR/SPOLMIX/SPORMIX/MONOMIX). 3. Set IN1 as single-end mode – MX-FA[9] = 1’b 4. Enable JD1 as jack detection source – MX-BB[15:13] = 010’b Multi-Channel Audio Hub/CODEC with embedded Voice 29 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet  IN2N/JD2 – Pin 8 In IN2N microphone input function, need to disable JD2 jack detection function – MX-BB[15:13] = 000’b and MX-FB[8] = 0’b. In JD2 jack detection function, need to set these register settings: 1. Power down IN2N – MX-64[12] = 0’b 2. Mute IN2 to each analog mixer - (RECMIXL/RECMIXR/OUTMIXR). 3. Set IN2 as single-end mode – MX-FA[8] = 1’b 4. Enable JD2 as jack detection source – MX-BB[15:13] = 011’b Enable JD2 as extra jack detection source – MX-FB[8] = 1’b Multi-Channel Audio Hub/CODEC with embedded Voice 30 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.10. DRC and AGC Function The Dynamic Range Controller (DRC) dynamically adjusts the input signal and let the output signal achieve the target level. The ALC5642 supports playback DRC for DAC path, and the DRC can also be used as AGC(Auto Gain Controller) for ADC path. The control register is at MX-B4[15:14]. The function block is shown as below. The signal input pass through the Pre-Gain first, then DRC volume and Post-Gain then output. The Pre-Gain is use to enlarge the input signal. The DRC volume is use to attenuate the signal after detected by DRC. The Post-Gain is use to fine tune the signal after pass DRC tuning. I2C Interface 0 ~ 28.5dB, 1.5/step MXB5[4:0] Pre-Gain -95.625 ~ 0dB 0.375/step DRC Volume -11.625 ~ 12dB, 0.375/step MXB5[13:8] Post-Gain DAC Analog Pre-Boost DRC 1. Limiter level 2. Attack / Release time 3. Zero data Figure 17. DAC DRC Function Block ADC 0 ~ 28.5dB, 1.5/step MXB5[4:0] Pre-Gain -95.625 ~ 0dB 0.375/step AGC Volume -11.625 ~ 12dB, 0.375/step MXB5[13:8] Post-Gain I2S Interface AGC 1. Limiter level 2. Attack / Release time 3. Noise gate Figure 18. ADC AGC Function Block Multi-Channel Audio Hub/CODEC with embedded Voice 31 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Playback/Recording Mode: For DAC playback or ADC recording mode, when the input signal exceeds target threshold, the signal will decrease “DRC/AGC Digital Volume” (0.375dB/step at every zero-crossing) until drop to target level then keep the digital volume. When input signal is below the target threshold, the signal will step-up “DRC/AGC Digital Volume” (0.375dB/step every zero-crossing) until return to original level. If want to return to the target level, need to set the pre-gain to achieve. Fine tune parameters:  Limiter Threshold: 0 ~ -46.5dB, 1.5dB/step, MX-B6[11:7]  Attack Rate: T=(4*2^n)/sample rate, n = MX-B4[12:8]  Recovery Rate: T=(4*2^n)/sample rate, n = MX-B4[4:0] Input signal Target Level Volume 0dB Attack Rate Output signal Recovery Rate Figure 19. DRC/AGC for Playback/Recording Mode Multi-Channel Audio Hub/CODEC with embedded Voice 32 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Noise Gate Mode: The Noise Gate Function is use to reduce the noise floor for DAC path or ADC path. When input signal is below noise gate level, the input signal will be reduced by DRC/AGC volume in order to suppress the background noise. The reducing level can be set by register. And when input signal is above noise gate, the input signal will be boosted to target level. Fine tune parameters:  Noise Gate Threshold: -36 ~ -82.5dB, 1.5dB/step, MX-B6[4:0]  Noise Gate Attack Rate: T=(4*2^n)/sample rate, n = PR-06[4:0]  Noise Gate Recovery Rate: T=(4*2^n)/sample rate, n = PR-02[12:8]  Reducing Noise Level: 0 ~ 45dB, 3dB/step, MX-B6[15:12] Input signal Target Level Noise Gate Volume 0dB Attack Rate Output signal Recovery Rate Attack Rate Recovery Rate Noise Reduction Target Level Noise Gate Figure 20. DRC/AGC for Noise Gate Mode Multi-Channel Audio Hub/CODEC with embedded Voice 33 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.11. Speaker Amplifier Ratio Gain Owing to speaker power (SPKVDD) and analog power (AVDD) are under different power domain. And normally the speaker power is higher than analog power. So the audio input signal needs to be boosted or reduced by a gain then output from speaker amplifier. When SPKVDD is dropping, the gain needs to be reduced to prevent the signal is clipping. And when SPKVDD is rising, the gain need to be boosted to prevent the signal is too small. SPKVDD Table 15. Ration Gain Table for SPKVDD and AVDD AVDD = 1.8V AC + DC Ratio Gain Register Setting MX-8D[15:12] 3.0 V 1.94 0000'b, 1.94x 3.3 V 2.0 0001'b, 2.00x 3.5 V 2.11 0010'b, 2.11x 3.6 V 2.22 0011'b, 2.20x 3.8 V 2.33 0100'b, 2.33x 4.0 V 2.44 0101'b, 2.44x 4.2 V 2.55 0110'b, 2.55x 4.4 V 2.66 0111'b, 2.66x 4.6 V 2.77 1000’b, 2.77x 4.8 V 3.0 1001’b, 3.00x 5.0 V 3.3 1010’b, 3.30x AVDD = 1.8V VMID =0.9V SPKVDD = 4.2V SPKVDD = 3.6V VMID = 2.1V VMID = 1.8V Figure 21. Ratio Gain Behavior for SPKVDD and AVDD Multi-Channel Audio Hub/CODEC with embedded Voice 34 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 7.12. SounzReal Sound Effect The Realtek’s SounzReal sound effect is composed of:  OmniHeadphone  OmniSound  Dipole Speaker  MP3 Enhancement  BassBack  BassBoost ALC5642-VF Datasheet 7.13. Equalizer Block The equalizer block cascades 7 bands of equalizer to tailor the frequency characteristics of embedded speaker system according to user preferences and to emulate environment sound. The 7 bands equalizer includes two high pass filter, four band pass filter and one low pass filter. One high pass filter cascaded in the front end is used to drop low frequency tone, The tone has a large amplitude and may damage a mini speaker. The high pass filter can be used to adjust Treble strength with gain control. One low pass filter with gain control can adjust the Bass strength. Four bands of bi-quad band pass filters are used to emulate environment sounds, e.g., ‘Pub’, ‘Live’, ‘Rock’,… etc.. The gain, center frequency and bandwidth of each filter are all programmable. 7.14. Dynamic Wind Noise Reduction Filter The wind filter is implemented by a high pass filter equalizer. The wind filter is mainly for ADC recording used. The cut-off freqnecy of wind filter is programmable and is varied accroding to different sample rate. The filter is used to remove DC offset at normal condition, and to remove wind noise at application mode. The wind filter builds in auto detection scheme. When wind noise is higher than the threshold, the filter will be turn-on. When wind noise is lower than the threshold, the filter will be turn-off. This scheme will keep recording quality and also remove wind noise. Wind filter setting procedure: Step1: Disable wind noise detection if needed – PR-6C[15] Step2: Disable wind filter – MX-D3[15] Step3: Select target sample rate – MX-D3[14:12] and MX-D3[10:8] Step3: Fine tune wind filter Fc – PR-6E[11:6] Step4: Enable wind filter – MX-D3[15] Step5: Enable wind noise detection if needed – MX-D3[15] Multi-Channel Audio Hub/CODEC with embedded Voice 35 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 The following table (Table 13.) is shown the Fc with sample rate selection. For the formula of Fc calculation is also shown as: Fc = (Fs * tan-1(a/(2-a))) / π Where: Sample rate = 8K/12K/16K (MX-D3[14:12] and [10:8]), a = 2-6 + n * 2-6 (n is PR-6E[11:6]) Sample rate = 24K/32K (MX-D3[14:12] and [10:8]), a = 2-7 + n * 2-7 (n is PR-6E[11:6]) Sample rate = 44.1K/48L (MX-D3[14:12] and [10:8]), a = 2-8 + n * 2-8 (n is PR-6E[11:6]) Sample rate = 88.2K/96L (MX-D3[14:12] and [10:8]), a = 2-9 + n * 2-9 (n is PR-6E[11:6]) Sample rate = 176.4K/192L (MX-D3[14:12] and [10:8]), a = 2-10 + n * 2-10 (n is PR-6E[11:6]) PR-6E[11:6] n 000000’b, 0 000001’b, 1 000010’b, 2 000011’b, 3 000100’b, 4 000101’b, 5 000110’b, 6 000111’b, 7 001000’b, 8 001001’b, 9 001010’b, 10 001011’b, 11 001100’b, 12 001101’b, 13 001110’b, 14 001111’b, 15 010000’b, 16 010001’b, 17 010010’b, 18 010011’b, 19 010100’b, 20 010101’b, 21 010110’b, 22 010111’b, 23 011000’b, 24 011001’b, 25 011010’b, 26 011011’b, 27 011100’b, 28 011101’b, 29 011110’b, 30 011111’b, 31 100000’b, 32 100001’b, 33 100010’b, 34 100011’b, 35 100100’b, 36 Table 16. 8K 20.0 40.4 61.1 82.1 103.4 125.1 147.1 169.5 192.2 215.2 238.7 262.4 286.6 311.1 336.0 361.3 386.9 413.0 439.4 466.2 493.5 521.1 549.1 577.5 606.3 635.5 665.1 695.2 725.6 756.4 787.6 819.3 851.3 883.7 916.6 949.8 983.3 Sample Rate with filter coefficient for Wind Filter L & R Channel Sample Rate Setting 16K 32K 44.1K 40.1 39.9 27.4 80.8 80.2 55.0 122.2 120.7 82.7 164.2 161.6 110.5 206.9 202.8 138.4 250.2 244.4 166.4 294.3 286.2 194.5 339.0 328.4 222.7 384.4 371.0 251.1 430.5 413.8 279.5 477.4 457.0 308.1 524.9 500.5 336.8 573.2 544.4 365.6 622.3 588.6 394.5 672.1 633.2 423.5 722.6 678.1 452.6 773.9 723.3 481.9 826.0 768.9 511.2 878.9 814.9 540.7 932.5 861.2 570.3 987.0 907.8 600.0 1042.2 954.9 629.8 1098.2 1002.2 659.7 1155.0 1050.0 689.8 1212.7 1098.1 719.9 1271.1 1146.6 750.2 1330.3 1195.5 780.6 1390.4 1244.7 811.1 1451.2 1294.3 841.8 1512.9 1344.3 872.5 1575.3 1394.7 903.4 1638.6 1445.4 934.4 1702.7 1496.5 965.5 1767.5 1548.0 996.8 1822.3 1599.9 1028.1 1899.6 1652.2 1059.6 1966.7 1704.9 1091.2 Multi-Channel Audio Hub/CODEC with embedded Voice 36 DSP and SounzRealTM Digital Sound Effect ALC5642-VF Datasheet 48K 29.8 59.9 90.0 120.3 150.6 181.1 211.7 242.5 273.3 304.3 335.4 366.6 397.9 429.4 460.9 492.6 524.5 556.4 588.5 620.7 653.0 685.5 718.1 750.8 783.6 816.6 849.6 882.9 916.2 949.7 983.3 1017.0 1050.9 1084.9 1119.0 1153.3 1187.7 Rev. 0.9 PR-6E[11:6] n 100101’b, 37 100110’b, 38 100111’b, 39 101000’b, 40 101001’b, 41 101010’b, 42 101011’b, 43 101100’b, 44 101101’b, 45 101110’b, 46 101111’b, 47 110000’b, 48 110001’b, 49 110010’b, 50 110011’b, 51 110100’b, 52 110101’b, 53 110110’b, 54 110111’b, 55 111000’b, 56 111001’b, 57 111010’b, 58 111011’b, 59 111100’b, 60 111101’b, 61 111110’b, 62 111111’b, 63 8K 1017.3 1051.6 1086.3 1121.4 1156.8 1192.6 1228.7 1265.1 1301.8 1338.8 1376.1 1413.7 1451.5 1489.6 1528.0 1566.5 1605.3 1644.2 1683.3 1722.5 1761.9 1801.4 1841.0 1880.7 1920.4 1960.2 2000.0 L & R Channel Sample Rate Setting 16K 32K 44.1K 2034.7 1757.9 1122.9 2103.3 1811.4 1154.8 2172.7 1865.2 1186.7 2242.9 1919.5 1218.8 2313.7 1974.1 1251.0 2385.2 2029.1 1283.4 2457.4 2084.6 1315.8 2530.2 2140.4 1348.4 2603.6 2196.6 1381.1 2677.7 2253.3 1414.0 2752.3 2310.3 1447.0 2827.5 2367.7 1480.0 2903.1 2425.5 1513.3 2979.3 2483.8 1546.6 3056.0 2542.4 1580.1 3133.1 2601.5 1613.7 3210.6 2660.9 1647.4 3288.4 2720.8 1681.3 3366.6 2781.0 1715.3 3445.1 2841.7 1749.4 3523.9 2902.7 1783.6 3602.9 2964.2 1818.0 3682.1 3026.1 1852.5 3761.4 3088.3 1887.1 3840.8 3151.0 1921.9 3920.4 3214.1 1956.8 4000.0 3277.5 1991.8 ALC5642-VF Datasheet 48K 1222.2 1256.9 1291.7 1326.6 1361.7 1396.9 1432.2 1467.7 1503.3 1539.0 1574.9 1610.9 1647.1 1683.4 1719.8 1756.4 1793.1 1830.0 1867.0 1904.1 1941.4 1978.8 2016.3 2054.0 2091.9 2129.9 2168.0 Multi-Channel Audio Hub/CODEC with embedded Voice 37 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.15. I2C Control Interface I2C is a 2-wire (SCL/SDA) half-duplex serial communication interface, supporting only slave mode. SCL is used for clock and SDA is for data. SCL clock supports up to 400KHz rate and SDA data is a open drain structure. The input has built-in spike filter and can remove less than 50ns spike at SCL and SDA. 7.15.1. Address Setting (MSB) 0 0 Table 17. Address Setting (0x38h) BIT 1 1 1 0 7.15.2. Complete Data Transfer Data Transfer over I2C Control Interface (LSB) 0 R/W Figure 22. Data Transfer Over I2C Control Interface Multi-Channel Audio Hub/CODEC with embedded Voice 38 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Write WORD Protocol Table 18. Write WORD Protocol 1 7 11 S Device Address Wr A 8 1 Register Address A 8 1 Data Byte High A ALC5642-VF Datasheet 8 Data Byte Low 11 AP Read WORD Protocol Table 19. Read WORD Protocol 1 7 11 S Device Address Wr A 8 Register Address 1 7 1 A S Device Address Rd A 8 1 Data Byte High A 8 11 Data Byte Low NA P S: Start Condition Slave Address: 7-bit Device Address Wr: 0 for Write Command Rd: 1 for Read Command Command Code: 8-bit Register Address A: 0 for ACK, 1 for NACK Data Byte: 16-bit Mixer data : Master-to-Slave : Slave-to-Master Multi-Channel Audio Hub/CODEC with embedded Voice 39 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.16. GPIO, Interrupt and Jack Detection The ALC5642 supports two GPIOs – GPIO1/GPIO2. These two GPIOs are multi-function pins. GPIO1 can be configured to GPIO or IRQ output by MX-C0[15]. GPIO2 can be configured to GPIO or DMIC clock output by MX-C0[14]. These two GPIOs can also be configured to jack detection pins. For jack detection purpose, it needs switch GPIO to input pin. Basically, ALC5642 has dedicated jack detection pins – JD1 and JD2. The JD1 and JD2 share pins with IN1N and IN2N. For GPIO function, the GPIO can be configured to input or output. For input type, the internal circuit can read pin status and report to register table. For output type, the internal circuit can drive this pin to high or low to control external device. In GPIO function, the pin polarity can be controlled by register at output type. MX-C2[1] MX-C2[0] High Low MX-BF[8] EN_OBUF EN_IBUF MX-C2[2] GPIO1 MX-C2[4] MX-C2[3] High Low MX-BF[7] EN_OBUF EN_IBUF MX-C2[5] Figure 23. GPIO Function Block GPIO2 Multi-Channel Audio Hub/CODEC with embedded Voice 40 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet For IRQ function as shown at Figure 24, the IRQ output source can be selected from JD Status, JD2 Status, Over-Temperature Status and MICBIAS1 Over-Current Status. When either status is trigged, the GPIO will output a flag as interrupt signal. MX-BD[13] MX-BD[11] sta_jd_internal(MX-BF[4]) Sticky Control MX-BD[12] MX-BD[10] MX-BE[15] MX-BD[14] MX-BD[15] MX-FB[11] ovt_status(MX-BF[3]) Sticky Control MX-BE[7] IRQ MX-BE[11] ovc_micbias1(MX-BE[3]) Sticky Control MX-FB[9] MX-FB[10] Sta_jd2_internal(MX-FB[11]) Sticky Control Figure 24. IRQ Function Block In general, the IRQ output needs to combine with JD function. When JD is trigger, IRQ will output a flag to host to notice S/W driver. The S/W driver will do something by system design. The behavior flow chard as following: Initial Settings (For JD and IRQ) Device Plug-In JD Triggered IRQ Flag Output to Host S/W Driver Settings Clear JD Status for Next JD Trigger Multi-Channel Audio Hub/CODEC with embedded Voice 41 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet The MICBIAS supports short detection function. When MICBIAS circuit is short, MICBIAS circuit will generate an over-current flag. The flag can generate an interrupt signal to notice host and let S/W do follow-up processes. For jack detection function as shown Figure 25. There are two internal JD status can be set. For sta_jd_internal – MX-BF[4], there are four pins can as jack detection source - GPIO1, GPIO2, JD1 (share with IN1N) and JD2 (share with IN2N). The source selection control is at MX-BB[15:13]. For another JD status – sta_jd2_internal – MX-FB[11] is dedicated for JD2 pin. And the enable control is by MX-FB[8]. Owing to JD2 can as sta_jd_internal status and also can as sta_jd2_internal status, JD2 can’t be used together for these two status. Sta_jd_internal MX-BF[4] JD Source GPIO1 GPIO2 JD1 JD2 MX-BB[15:13] Sta_jd2_internal MX-FB[11] EN_JD2 MX-FB[8] Figure 25. JD Source Selection The jack detect function can be used to turn-on or turn-off the related output ports. When jack detect pin is trigged, the selected output ports will be turn-on or turn-off. For example on HP and SPK auto switch when JD is trigger. Setting procedure: 1. Select JD source: use JD1 as JD source. MX-BB[15:13] = 010’b 2. Set wanted behavior by JD action – HP & SPK auto switch when JD is trigger. MX-BB[11:6] = 111010’b 3. When JD status is low, HP_OUT is mute and SPK is un-mute. When JD status is low go high, HP is un-mute and SPK is mute. Note: For HP and SPK jack switch function, driver need to turn-on DAC to HP path and DAC to SPK path first. The register control of MX-BB[11:6] is only do mute/un-mute function for HP and SPK. Multi-Channel Audio Hub/CODEC with embedded Voice 42 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.17. Power Management ALC5642 detailed Power Management control registers are supported in MX-61h, 62h, 63h, 64h and 65h. Each particular block will only be active when each bit MX-61h, 62h, 63h, 64h, and 65h is set to enable. MX-61 I2S-1 Power I2S-2 Power DACL1/R1 Power MX-62 ADCL/R Power Class-D Amp Power Digital Filter Power Voice DSP Power MX-63 Analog MBias Analog Vref Power Power LOUT Mixer Power Headphone Amp Power LDO2 Power MX-64 MIC BST1 Power MIC BST2 Power MIC BST3 Power MICBIAS1 Power MX-65 PLL Power OUTMIXL Power OUTMIXR Power SPKMIXL Power SPKMIXR Power RECMIXL Power RECMIXR Power MX-65 SPKVOLL Power SPKVOLR Power OUTVOLL Power OUTVOLR Power HPOVOLL Power HPOVOLR Power Figure 26. Power Management Multi-Channel Audio Hub/CODEC with embedded Voice 43 DSP and SounzRealTM Digital Sound Effect INLVOL Power INRVOL Power Rev. 0.9 ALC5642-VF Datasheet 7.18. Smart Noise Cancellation Function (SNC) The Smart Noise Cancellation (SNC) Function is a noise cancellation with smart on/off scheme to get better headphone listening experience. The smart on/off scheme is to detect environment noise. When noise is higher than noise threshold, the scheme will auto turn-on noise cancellation function to cancel environment noise. When noise is lower than noise threshold, noise cancellation function will be auto turn-off/ The SNC will make listening experience more natural and sound good. The smart on/off function has its de-pop function, removing pop noise when auto on/off. The following is SNC function diagram. The environment noise is recorded by MIC to ALC5642, the ALC5642’s SNC block will generate an anti-phase wave to output to headphone for offsetting the environment noise. Environment Noise Headphone MIC Environment Noise Listen by Ear Environment Noise Inverse by ALC5638 ALC5638 SNC Figure 27. SNC Function Diagram The function block is showed as follow. The environment noise recorded from MIC and transfer to digital domain. The digitalized data passes to SNC block to do noise detection, filter process and de-pop process. The processed data will mix with playback data from I2S interface. Then mixed data pass to DAC and output headphone device. Headphone I2S Playback DAC SNC => Noise detection => SNC bypass => De-pop process => Monitor mode => Parameter fine-tune ADC MIC Figure 28. SNC Function Block Multi-Channel Audio Hub/CODEC with embedded Voice 44 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF 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 Table 20. Programmable Register Table Sequences Delay Time Register Level Register Index (4-bit) (8-bit) (1-bit) (8-bit) 0000’b - x xx 0001’b xx - - 0010’b - x xx 0011’b xx - - 0100’b - x xx 0101’b xx - - 0110’b - x xx 0111’b xx - - 1000’b - x xx 1001’b xx - - 1010’b - x xx 1011’b xx - - 1100’b - x xx 1101’b xx - - 1110’b - x xx 1111’b 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 with embedded Voice 45 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 7.20. Voice DSP Function The embedded voice DSP is a low power and high performance voice processor. It provides Acoustic Echo Cancellation (AEC), Beam Forming, Far Field Pick-Up (FFP), Noise Suppression (NS) and Voice Recognition (VR). Acoustic Echo Cancellation: The voice DSP suppresses echo effectively under all occasions, and the performance of which could be easily optimized for different types of acoustics set-up and applications ranging from mobile phones to tablet computers. Not only during periods of far-end single-talk are the echo returns completely absent on the upstream signal, the AEC performs robustly under prolonged double talk periods and provides full-duplex conversations without any cut-off, drop-out, howling, voice level pumpings, and annoying echoes. Noise Suppression: The voice DSP incorporates state-of-the-art digital signal processing technology that reduces both stationary noise and non-stationary noises. Stationary noise reduction is applied on both downstream and upstream signals and is highly effectively against hums, fan-noises, tones, and other pseudo-stationary noises. Stationary noise reduction is applicable in both 1-microphone and 2-microphone systems. For the upstream signal, any user system that deploys a 2-microphone signal front-end input could take advantage of the voice DSP 2-microphone non-stationary noise suppression and further improve the user experience by removing café noise, interfering background music and conversations, and other directional interference sounds. Far-Field Pickup: The far-field voice pick up technology that combines intelligent gain and signal dynamics control with sophisticated noise reduction to allow varying levels of microphone voice input to appear steady and stay at a comfortable range for the far-end listener. This feature allows user systems to perform end-to-end conferencing or voice-recording with the near-end talker speaking at varying distances within a 5 meters radius area from the microphone without any echoes, fade-outs, or severe intelligibility losses. Multi-Channel Audio Hub/CODEC with embedded Voice 46 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Beam Forming: Not only could the voice DSP dual microphone input signal processing could provide directional talker voice pickup when used in handset close-talk mode, the technology has been extended to hands-free applications such that the voice pick-up in hands-free operations. Directional voice pickup in hands-free mode improves the voice quality of microphone input by reducing unnecessary pick-ups on room reverberations and background noises. Voice Recognition Enhancement: With a combination of highly effective AEC, NS, FFP, and directional input, the voice DSP has shown effectiveness in improving voice-recognition during severe background noise situations. The main critical improvement is to filter or block out the background noise to improve the voice hit rate in voice recognition engine under noisy occasion. Multi-Channel Audio Hub/CODEC with embedded Voice 47 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8. Registers List ALC5642 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 Table 21. Register Map Name Description S/W Reset S/W Reset & Device ID SPKOUT Speaker Output Volume & Mute/Un-Mute HPOUT Headphone Output Volume & Mute/Un-Mute LOUT Line Output Volume & Mute/Un-Mute MONOOUT MONO Output Mute/Un-Mute IN1/3 IN1/3 Mode and Gain Boost Control IN2 IN2 Mode and Gain Boost Control INL/INR INL/INR Volume Control DACL1/R1 DACL1/R1 Digital Volume Control DACL2/R2-1 DACL2/R2 Digital Volume Control DACL2/R2-2 DACL2/R2 Digital Mute/Un-Mute Control ADCL/R-1 ADCL/R Digital Volume & Mute/Un-Mute Control ADCL/R-2 ADCL/R Digital Path Volume Control ADCL/R-3 ADC Boost Gain for DMIC ADC-1 ADC Stereo Digital Mixer Control ADC-2 ADC Mono Digital Mixer Control ADC-3 ADC to DAC Digital Mixer Control DAC-1 DAC Stereo Digital Mixer Control DAC-2 DAC Mono Digital Mixer Control DAC-3 DAC Stereo to Mono Mixer Control Voice DSP-1 Voice DSP Path Control-1 Voice DSP-2 Voice DSP Path Control-2 Copy Mode ADC/DAC Data Copy Mode Control RECMIXL-1 RECMIXL Gain Control RECMIXL-2 RECMIXL Gain & Selection Control RECMIXR-1 RECMIXR Gain Control RECMIXR-2 RECMIXR Gain & Selection Control HPOMIX HPOMIX Gain & Selection Control SPKMIXL SPKMIXL Gain & Selection Control SPKMIXR SPKMIXR Gain & Selection Control SPOMIXL SPOMIXL Selection Comtrol SPOMIXR SPOMIXR Selection Control SPOMIXL/R SPOMIXL/R Gain Control MONOMIX MONOMIX Gain & Selection Control OUTMIXL-1 OUTMIXL Gain Control-1 OUTMIXL-2 OUTMIXL Gain Control-2 OUTMIXL-3 OUTMIXL Selection Control OUTMIXR-1 OUTMIXR Gain Control-1 OUTMIXR-2 OUTMIXR Gain Control-2 OUTMIXR-3 OUTMIXR Selection Control LOUTMIX LOUTMIX Gain & Selection Control Register Address Reset State MX-00h 0x0006’h MX-01h 0xC8C8’h MX-02h 0xC8C8’h MX-03h 0xC8C8’h MX-04h 0x8000’h MX-0Dh 0x0000’h MX-0Eh 0x0000’h MX-0Fh 0x0808’h MX-19h 0xAFAF’h MX-1Ah 0xAFAF’h MX-1Bh 0x0000’h MX-1Ch 0x2F2F’h MX-1Dh 0x2F2F’h MX-1Eh 0x0000’h MX-27h 0x7060’h MX-28h 0x7070’h MX-29h 0x8080’h MX-2Ah 0x5454’h MX-2Bh 0x5454’h MX-2Ch 0xAA00’h MX-2Dh 0x0000’h MX-2Eh 0xA000’h MX-2Fh 0x0000’h MX-3Bh 0x0000’h MX-3Ch 0x007F’h MX-3Dh 0x0000’h MX-3Eh 0x007F’h MX-45h 0xE000’h MX-46h 0x003E’h MX-47h 0x003E’h MX-48h 0xF800’h MX-49h 0x3800’h MX-4Ah 0x0004’h MX-4Ch 0xFC00’h MX-4Dh 0x0000’h MX-4Eh 0x0000’h MX-4Fh 0x01FF’h MX-50h 0x0000’h MX-51h 0x0000’h MX-52h 0x01FF’h MX-53h 0xF000’h Multi-Channel Audio Hub/CODEC with embedded Voice 48 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Type Power Management PR Register Digital Interface Digital MIC Global Clock SPK Amp HP Amp SPK Amp MICBIAS EQ Name Description Register Address Reset State Management1 I2S & DAC & ADC & Class-D Power Control MX-61h 0x0000’h Management2 Digital Filter Power Control MX-62h 0x0000’h Management- VREF & MBias & LOUTMIX & Mono & HP & 3 LDO2 Power Control MX-63h 0x00C0’h Management4 MICBST & MICBIAS Power Control MX-64h 0x0000’h Management5 OUTMIX & SPKMIX & RECMIX Power Control MX-65h 0x0000’h Management6 SPOVOL & OUTVOL & HPOVOL & INVOL Power Control MX-66h 0x0000’h PR Index PR Register Index MX-6Ah 0x0000’h PR Data PR Register Data Mx-6Ch 0x0000’h I2S1 Port Ctrl I2S-1 Interface Control MX-70h 0x8000’h I2S2 Port Ctrl I2S-2 Interface Control MX-71h 0x8000’h ADC/DAC Clock-1 ADC/DAC Clock Control-1 MX-73h 0x1110’h ADC/DAC Clock-2 ADC/DAC Clock Control-2 MX-74h 0x0C00’h DMIC Digital Microphone Control MX-75h 0x1D00’h Global Clock Global Clock Control MX-80h 0x0000’h PLL-1 PLL Control-1 MX-81h 0x0000’h PLL-2 PLL Control-2 MX-82h 0x0000’h ASRC-1 ASRC Control-1 MX-83h 0x0000’h ASRC-2 ASRC Control-2 MX-84h 0x0000’h ASRC-3 ASRC Control-3 MX-85h 0x0008’h ASRC-6 ASRC Control-4 MX-89h 0x0000’h ASRC-7 ASRC Control-5 MX-8Ah 0x0000’h Class-D Class-D OC Control MX-8Ch 0x0228’h Class-D Class-D Ratio Gain & Mode Control MX-8Dh 0xA800’h HP HP Output De-Pop Control 1 HP Output De-Pop Control 2 MX-8Eh MX-8Fh 0x0004’h 0x1100’h PV Detection SPKVDD Detection Control MX-92h 0x0000’h MICBIAS MICBIAS Control MX-93h 0x3000’h EQ-1 EQ Control-1 MX-B0h 0x2000’h EQ-2 EQ Control-2 MX-B1h 0x0000’h EQ-Parameter EQ Low Pass Filter – a1 PR-A0h 0x1C10’h EQ-Parameter EQ Low Pass Filter – H0 PR-A1h 0x01F4’h EQ-Parameter EQ Band Pass Filter 1 – a1 PR-A2h 0xC5E9’h EQ-Parameter EQ Band Pass Filter 1 – a2 PR-A3h 0x1A98’h EQ-Parameter EQ Band Pass Filter 1 – H0 PR-A4h 0x1D2C’h EQ-Parameter EQ Band Pass Filter 2 – a1 PR-A5h 0xC882’h EQ-Parameter EQ Band Pass Filter 2 – a2 PR-A6h 0x1C10’h EQ-Parameter EQ Band Pass Filter 2 – H0 PR-A7h 0x01F4’h EQ-Parameter EQ Band Pass Filter 3 – a1 PR-A8h 0xE904’h EQ-Parameter EQ Band Pass Filter 3 – a2 PR-A9h 0x1C10’h EQ-Parameter EQ Band Pass Filter 3 – H0 PR-AAh 0x01F4’h EQ-Parameter EQ Band Pass Filter 4 – a1 PR-ABh 0xE904’h EQ-Parameter EQ Band Pass Filter 4 – a2 PR-ACh 0x1C10’h EQ-Parameter EQ Band Pass Filter 4 – H0 PR-ADh 0x01F4’h Multi-Channel Audio Hub/CODEC with embedded Voice 49 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Type Name Description EQ-Parameter EQ High Pass Filter 1 – a1 EQ-Parameter EQ High Pass Filter 1 – H0 EQ-Parameter EQ High Pass Filter 2 – a1 EQ-Parameter EQ High Pass Filter 2 – a2 EQ-Parameter EQ High Pass Filter 2 – H0 DRC/AGC-1 DRC/AGC Control-1 DRC/AGC DRC/AGC-2 DRC/AGC Control-2 DRC/AGC-3 DRC/AGC Control-3 SNC-1 SNC Control-1 SNC SNC-2 SNC Control-2 SNC-3 SNC Control-3 Jack Detection JD-1 JD-2 Jack Detection Control-1 Jack Detection Control-2 IRQ IRQ-1 IRQ-2 IRQ Control-1 IRQ Control-2 Flag Status Status GPIO & Internal Status GPIO GPIO-1 GPIO-2 GPIO Control-1 GPIO Control-2 DSP R/W Voice DSP Access Control - Address Voice DSP DSP R/W Voice DSP Access Control - Data DSP Ctrl Voice DSP Control Control-1 Register Array Control-1 Control-2 Register Array Control-2 Register Array Control-3 Register Array Control-3 Control-4 Register Array Control-4 Control-5 Register Array Control-5 BassBack BassBack Control TruTreble TruTreble Control-1 SounzReal Sound Effect TruTreble TruTreble Control-2 OmniHeadpho ne OmniHeadphone Control OmniSound OmniSound Control Dipole SPK Dipole Speaker Control Control-1 Wind Filter Control – Enable/Disable, Sample Rate Control-2 Wind Detector Enable Control Control-3 Wind Detector Parameter Control Wind Filter Control-4 Wind Filter Control - Fc Control-5 Wind Detector Parameter Control Control-6 Wind Detector Parameter Control Control-7 Wind Detector Parameter Control SVOL & ZCD SVOL & ZCD Soft Volume and ZCD Control General Control 1 General Control General Control 2 General Control 3 ADC/DAC RESET Control Digital Path Control Vendor ID ID Vendor ID Register Address Reset State PR-AEh 0x1C10’h PR-AFh 0x01F4’h PR-B0h 0x2000’h PR-B1h 0x0000’h PR-B2h 0x2000’h MX-B4h 0x2206’h MX-B5h 0x1F00’h MX-B6h 0x0000’h MX-B8h 0x034B’h MX-B9h 0x0066’h MX-BAh 0x000B’h MX-BBh 0x0000’h MX-BCh 0x0000’h MX-BDh 0x0000’h MX-BEh 0x0000’h MX-BFh 0x0000’h MX-C0h 0x0400’h MX-C2h 0x0000’h MX-C4h 0x0000’h MX-C5h 0x0000’h MX-C6h 0x2000’h MX-C8h 0x0000’h MX-C9h 0x0000’h MX-CAh 0x0000’h MX-CBh 0x0000’h MX-CCh 0x0000’h MX-CFh 0x0013’h MX-D0h 0x0680’h MX-D1h 0x1C17’h MX-D2h 0x8C00’h PR-63h PR-75h MX-D3h PR-6Ch PR-6Dh PR-6Eh PR-6Fh PR-70h PR-73h MX-D9h MX-FAh MX-FBh MX-FCh PR-3Dh PR-3Fh 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 0x0001’h 0x2400’h 0x0000’h 0x10EC’h Multi-Channel Audio Hub/CODEC with embedded Voice 50 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.2. MX-00h: S/W Reset & Device ID Default: 0006’h Table 22. MX-00h: S/W Reset Port Name Bits Read/Write Reset State Description Reserved 15:0 R 0’h Reserved Device_id 2:1 R 3’h ALC5642 Reserved 0 R 0’h Reserved Note: Writes to this register will reset all registers to their default values. ALC5642-VF Datasheet 8.3. MX-01h: Speaker Output Control Default: C8C8’h Port Name mu_spo_l Mu_spkvoll_in vol_spol mu_spo_r Mu_spkvolr_in Table 23. MX-01h: Speaker Output Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for Left Speaker Output Port (SPOLP/LN) 0’b: Un-Mute 1’b: Mute 14 R/W 1’h Mute Control for Left Speaker Volume Channel (SPKVOLL) 0’b: Un-Mute 1’b: Mute 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 7 R/W 1’h Mute Control for Right Speaker Output Port (SPORP/RN) 0’b: Un-Mute 1’b: Mute 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 with embedded Voice 51 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Port Name Vol_spor Bits Read/Write Reset State Description 5:0 R/W 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 00 12 16 10 -12 32 20 -36 11 10.5 17 11 -13.5 33 21 -37.5 22 9 18 12 -15 34 22 -39 33 7.5 19 13 -16.5 35 23 -40.5 44 6 20 14 -18 36 24 -42 55 4.5 21 15 -19.5 37 25 -43.5 66 3 22 16 -21 38 26 -45 77 1.5 23 17 -22.5 39 27 -46.5 88 0 24 18 -24 99 -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 Multi-Channel Audio Hub/CODEC with embedded Voice 52 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.4. MX-02h: Headphone Output Control Default: C8C8’h Name mu_hpo_l Table 24. MX-02h: Headphone Output Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for Left Headphone Output Port (HPOL) 0’b: Un-Mute 1’b: Mute Mu_hpovoll_in 14 R/W 1’h Mute Control for Left Headphone Volume Channel (HPOVOLL) 0’b: Un-Mute 1’b: Mute vol_hpol 13:8 R/W 8’h Left Headphone Channel Volume Control (HPOVOLL)  00’h: +12dB … 08’h: 0dB … 27’h: -46.5dB, with 1.5dB/step mu_hpo_r 7 R/W 1’h Mute Control Right Headphone Output Port (HPOR) 0’b: Un-Mute 1’b: Mute Mu_hpovolr_in 6 R/W 1’h Mute Control for Right Headphone Volume Channel (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 00 12 16 10 -12 32 20 -36 11 10.5 17 11 -13.5 33 21 -37.5 22 9 18 12 -15 34 22 -39 33 7.5 19 13 -16.5 35 23 -40.5 Multi-Channel Audio Hub/CODEC with embedded Voice 53 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 44 55 66 77 88 99 10 A 11 B 12 C 13 D 14 E 15 F 6 4.5 3 1.5 0 -1.5 -3 -4.5 -6 -7.5 -9 -10.5 20 14 21 15 22 16 23 17 24 18 25 19 26 1A 27 1B 28 1C 29 1D 30 1E 31 1F -18 -19.5 -21 -22.5 -24 -25.5 -27 -28.5 -30 -31.5 -33 -34.5 36 24 37 25 38 26 39 27 -42 -43.5 -45 -46.5 ALC5642-VF Datasheet 8.5. MX-03h: LINE Output Control Default: C8C8’h Name Mu_lout_l Mu_outvoll_in Vol_outl Mu_lout_r Mu_outvolr_in Table 25. MX-03h: LINE Output Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for Left Line Output Port(LOUTL) 0’b: Un-Mute 1’b: Mute 14 R/W 13:8 R/W 1’h Mute Control for Left Output Volume Channel (OUTVOLL) 0’b: Un-Mute 1’b: Mute 08’h Left Output Volume Control (OUTVOLL)  00’h: +12dB … 08’h: 0dB … 7 R/W 6 R/W 27’h: -46.5dB, with 1.5dB/step 1’h Mute Control for Right Line Output Port (LOUTR) 0’b: Un-Mute 1’b: Mute 1’h Mute Control for Right Output Volume Channel (OUTVOLR) 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 54 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Vol_outr Bits Read/Write Reset State Description 5:0 R/W 08’h Right Output Volume Control  00’h: +12dB … 08’h: 0dB … Volume Table 27’h: -46.5dB, with 1.5dB/step DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 00 12 16 10 -12 32 20 -36 11 10.5 17 11 -13.5 33 21 -37.5 22 9 18 12 -15 34 22 -39 33 7.5 19 13 -16.5 35 23 -40.5 44 55 6 20 14 -18 36 24 -42 4.5 21 15 -19.5 37 25 -43.5 66 3 22 16 -21 38 26 -45 77 1.5 23 17 -22.5 39 27 -46.5 88 0 24 18 -24 99 -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 ALC5642-VF Datasheet 8.6. MX-04h: MONO Output Control Default: 8000’h Name mu_mono reserved Table 26. MX-04h: MONO Output Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for MONO Output Port 0’b: Un-Mute 1’b: Mute 14:0 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 55 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.7. MX-0Dh: IN1/3 Input Control Default: 0000’h Name Sel_bst1 Sel_bst3 En_in1_df En_in3_df reserved Bits 15:12 11:8 7 6 Table 27. MX-0Dh: IN1/3 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 R/W 0’h IN3 Input Mode Control 0’b: Single Ended Mode 1’b: Differential Mode 5:0 R/W 0’h Reserved ALC5642-VF Datasheet Multi-Channel Audio Hub/CODEC with embedded Voice 56 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.8. MX-0Eh: IN2 Input Control Default: 0000’h Name Reserved Sel_bst2 Reserved En_in2_df Reserved Bits 15:12 11:8 7 6 5:0 Table 28. MX-0Eh: IN2 Input Control Read/Write Reset State Description R/W 0’h Reserved R/W 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 R 0’h Reserved R/W 0’h IN2 Input Mode Control 0’b: Single Ended Mode 1’b: Differential Mode R 0’h Reserved ALC5642-VF Datasheet 8.9. MX-0Fh: INL & INR Volume Control Default: 0808’h Name reserved Vol_inl Reserved Bits 15:13 12:8 7:5 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 … 1F’h: -34.5dB, with 1.5dB/step R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 57 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Vol_inr Bits Read/Write Reset State Description 4:0 R/W 8’h INR Channel Volume Control  00’h: +12dB … 08’h: 0dB … Volume Table: DEC HEX Boost Gain DEC HEX Boost Gain 00 12 16 10 -12 1F’h: -34.5dB, with 1.5dB/step 11 10.5 17 11 -13.5 22 33 9 18 12 -15 7.5 19 13 -16.5 44 55 6 20 14 -18 4.5 21 15 -19.5 66 3 22 16 -21 77 1.5 23 17 -22.5 88 0 24 18 -24 99 -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 ALC5642-VF Datasheet 8.10. MX-19h: DACL1/R1 Digital Volume Default: AFAF’h Name vol_dac1_l Table 30. MX-19h: DACL1/R1 Digital Volume Bits Read/Write Reset State Description 15:8 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 with embedded Voice 58 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name vol_dac1_r ALC5642-VF Datasheet Bits Read/Write Reset State Description 7:0 R/W 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 Table 31. MX-1Ah: DACL2/R2 Digital Volume Bits Read/Write Reset State Description 15:8 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 33 -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 77 -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 11 B -61.875 -61.5 63 3F 64 40 -42 116 74 -41.625 117 75 -22.125 169 A9 -21.75 170 AA -2.25 -1.875 222 DE 223 DF 12 C 13 D -61.125 -60.75 65 41 -41.25 118 76 -21.375 171 AB 66 42 -40.875 119 77 -21 172 AC -1.5 -1.125 224 E0 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 with embedded Voice 59 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 15 F -60 68 44 -40.125 121 79 -20.25 174 AE 16 10 -59.625 69 45 -39.75 122 7A -19.875 175 AF 17 11 -59.25 70 46 -39.375 123 7B -19.5 176 B0 18 12 -58.875 71 47 -39 124 7C -19.125 177 B1 19 13 -58.5 72 48 -38.625 125 7D -18.75 178 B2 20 14 -58.125 73 49 -38.25 126 7E -18.375 179 B3 21 15 -57.75 74 4A -37.875 127 7F -18 180 B4 22 16 -57.375 75 4B -37.5 128 80 -17.625 181 B5 23 17 -57 76 4C -37.125 129 81 -17.25 182 B6 24 18 -56.625 77 4D -36.75 130 82 -16.875 183 B7 25 19 -56.25 78 4E -36.375 131 83 -16.5 184 B8 26 1A -55.875 79 4F -36 132 84 -16.125 185 B9 27 1B -55.5 80 50 -35.625 133 85 -15.75 186 BA 28 1C -55.125 81 51 -35.25 134 86 -15.375 187 BB 29 1D -54.75 82 52 -34.875 135 87 -15 188 BC 30 1E -54.375 83 53 -34.5 136 88 -14.625 189 BD 31 1F -54 84 54 -34.125 137 89 -14.25 190 BE 32 20 -53.625 85 55 -33.75 138 8A -13.875 191 BF 33 21 -53.25 86 56 -33.375 139 8B -13.5 192 C0 34 22 -52.875 87 57 -33 140 8C -13.125 193 C1 35 23 -52.5 88 58 -32.625 141 8D -12.75 194 C2 36 24 -52.125 89 59 -32.25 142 8E -12.375 195 C3 37 25 -51.75 90 5A -31.875 143 8F -12 196 C4 38 26 -51.375 91 5B -31.5 144 90 -11.625 197 C5 39 27 -51 92 5C -31.125 145 91 -11.25 198 C6 40 28 -50.625 93 5D -30.75 146 92 -10.875 199 C7 41 29 -50.25 94 5E -30.375 147 93 -10.5 200 C8 42 2A -49.875 95 5F -30 148 94 -10.125 201 C9 43 2B -49.5 96 60 -29.625 149 95 -9.75 202 CA 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 -0.375 0 227 E3 228 E4 229 E5 230 E6 231 E7 232 E8 233 E9 234 EA 235 EB 236 EC 237 ED 238 EE 239 EF 240 F0 241 F1 242 F2 243 F3 244 F4 245 F5 246 F6 247 F7 248 F8 249 F9 250 FA 251 FB 252 FC 253 FD 254 FE 255 FF Multi-Channel Audio Hub/CODEC with embedded Voice 60 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 50 32 -46.875 103 67 -27 156 9C 51 33 -46.5 104 68 -26.625 157 9D 52 34 -46.125 105 69 -26.25 158 9E -7.125 -6.75 -6.375 209 D1 210 D2 211 D3 ALC5642-VF Datasheet 8.12. MX-1Bh: DACL2/R2 Mute/Un-Mute Control Default: 0000’h Name reserved Mu_dac2_l Mu_dac2_r reserved Table 32. MX-1Bh: DACL2/R2 Mute/Un-Mute Control Bits Read/Write Reset State Description 15:14 R 0’h Reserved 13 R/W 0’h Mute Control for Left DAC2 Volume 0’b: Un-Mute 1’b: Mute 12 R/W 0’h Mute Control for Right DAC2 Volume 0’b: Un-Mute 1’b: Mute 11:0 R 0’h Reserved 8.13. MX-1Ch: Stereo ADC Digital Volume Control Default: 2F2F’h Name Mu_adc_vol_l Ad_gain_l Table 33. MX-1Ch: Stereo ADC Digital Volume Control Bits Read/Write Reset State Description 15 R/W 0’h Mute Control for Stereo ADC Left Volume Channel 0’b: Un-Mute 1’b: Mute 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 with embedded Voice 61 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Mu_adc_vol_r 7 R/W Ad_gain_r 6:0 R/W ALC5642-VF Datasheet 0’h Mute Control for Stereo ADC Right Volume Channel 0’b: Un-Mute 1’b: Mute 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 Table 34. MX-1Dh: Mono ADC Digital Volume Control Bits Read/Write Reset State Description 15 R 0’h Reserved Mono_ad_gain_l 14:8 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 7 R 0’h Reserved Mono_ad_gain_r 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 DEC HEX Boost Gain 0 0 -17.625 26 1A -7.875 52 34 1.875 78 4E 11.625 104 68 21.375 11 -17.25 27 1B -7.5 53 35 2.25 79 4F 12 105 69 21.75 2 2 -16.875 28 1C -7.125 54 36 2.625 80 50 12.375 106 6A 22.125 33 -16.5 29 1D -6.75 55 37 3 81 51 12.75 107 6B 22.5 4 4 -16.125 30 1E -6.375 56 38 3.375 82 52 13.125 108 6C 22.875 5 5 -15.75 31 1F -6 57 39 3.75 83 53 13.5 109 6D 23.25 6 6 -15.375 32 20 -5.625 58 3A 4.125 84 54 13.875 110 6E 23.625 Multi-Channel Audio Hub/CODEC with embedded Voice 62 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 77 88 99 10 A 11 B 12 C 13 D 14 E 15 F 16 10 17 11 18 12 19 13 20 14 21 15 22 16 23 17 24 18 25 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 21 34 22 35 23 36 24 37 25 38 26 39 27 40 28 41 29 42 2A 43 2B 44 2C 45 2D 46 2E 47 2F 48 30 49 31 50 32 51 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 3B 60 3C 61 3D 62 3E 63 3F 64 40 65 41 66 42 67 43 68 44 69 45 70 46 71 47 72 48 73 49 74 4A 75 4B 76 4C 77 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 55 86 56 87 57 88 58 89 59 90 5A 91 5B 92 5C 93 5D 94 5E 95 5F 96 60 97 61 98 62 99 63 100 64 101 65 102 66 103 67 ALC5642-VF Datasheet 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 21 111 6F 112 70 113 71 114 72 115 73 116 74 117 75 118 76 119 77 120 78 121 79 122 7A 123 7B 124 7C 125 7D 126 7E 127 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 8.15. MX-1Eh: ADC Digital Boost Gain Control Default: 0000’h Name Ad_boost_gain_l Ad_boost_gain_r reserved Bits 15:14 13:12 11:0 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 R/W 0’h ADC Right Channel Digital Boost Gain 00’b: 0dB 01’b: 12dB 10’b: 24dB 11’b: 36dB R/W 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 63 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.16. MX-27h: Stereo ADC Digital Mixer Control Default: 7060’h Name reserved mu_stereo_adcl1 mu_stereo_adcl2 sel_stereo_adc1 sel_stereo_adc2 reserved mu_stereo_adcr1 mu_stereo_adcr2 reserved Bits 15 14 13 12 11:10 9:7 6 5 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 mu_mono_adcl2 sel_mono_adcl1 Table 37. MX-28h: Mono ADC Digital Mixer Control Bits Read/Write Reset State Description 15 R 0’h reserved 14 R/W 1’h Mute Control for Mono ADC1 Left Channel 0’b: Un-Mute 1’b: Mute 13 R/W 1’h Mute Control for Mono ADC2 Left Channel 0’b: Un-Mute 1’b: Mute 12 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 with embedded Voice 64 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name sel_mono_adcl2 reserved mu_mono_adcr1 mu_mono_adcr2 sel_mono_adcr1 sel_mono_adcr2 reserved ALC5642-VF Datasheet Bits Read/Write 11:10 R/W 9:7 R 6 R/W 5 R/W 4 R/W 3:2 R/W 1:0 R Reset State 0’h 0’h 1’h 1’h 1’h 0’h 0’h Description 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 reserved Mute Control for Mono ADC1 Right Channel 0’b: Un-Mute 1’b: Mute Mute Control for Mono ADC2 Right Channel 0’b: Un-Mute 1’b: Mute Select Control for Mono ADC1 Right Channel Source 0’b: Mono_DAC_Mixer_R 1’b: ADCR 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 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 with embedded Voice 65 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF 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 Table 40. MX-2Bh: Mono DAC Digital Mixer Control Bits Read/Write Reset State Description 15 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 66 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name mu_mono_l_dacl1 gain_mono_l_dacl1 mu_mono_l_dacl2 gain_mono_l_dacl2 mu_mono_l_dacr2 gain_mono_l_dacr2 reserved mu_mono_r_dacr1 gain_mono_r_dacr1 mu_mono_r_dacr2 gain_mono_r_dacr2 mu_mono_r_dacl2 gain_mono_r_dacl2 reserved Bits Read/Write 14 R/W 13 R/W 12 R/W 11 R/W 10 R/W 9 R/W 8:7 R 6 R/W 5 R/W 4 R/W 3 R/W 2 R/W 1 R/W 0 R Reset State 1’h 0’h 1’h 0’h 1’h 0’h 0’h 1’h 0’h 1’h 0’h 1’h 0’h 0’h Description Mute Control for DACL1 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACL1 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB Mute Control for DACL2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACL2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB Mute Control for DACR2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACR2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB Reserved Mute Control for DACR1 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACR1 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB Mute Control for DACR2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACR2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB Mute Control for DACL2 to Mono DAC Mixer 0’b: Un-Mute 1’b: Mute Gain Control for DACL2 to Mono DAC Mixer 0’b: 0dB 1’b: -6dB reserved 8.21. MX-2Ch: DAC Digital Mixer Control Default: AA00’h Name mu_dacl1_to_dacl Table 41. MX-2Ch: DAC Digital Mixer Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for DACL1 to DACMIXL 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 67 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name gain_dacl1_to_dacl mu_dacl2_to_dacl gain_dacl2_to_dacl mu_dacr1_to_dacr gain_dacr1_to_dacr mu_dacr2_to_dacr gain_dacr2_to_dacr reserved Bits Read/Write 14 R/W 13 R/W 12 R/W 11 R/W 10 R/W 9 R/W 8 R/W 7:0 R Reset State 0’h 1’h 0’h 1’h 0’h 1’h 0’h 0’h Description Gain Control for DACL1 to DACMIXL 0’b: 0dB 1’b: -6dB Mute Control for DACL2 to DACMIXL 0’b: Un-Mute 1’b: Mute Gain Control for DACL2 to DACMIXL 0’b: 0dB 1’b: -6dB Mute Control for DACR1 to DACMIXR 0’b: Un-Mute 1’b: Mute Gain Control for DACR1 to DACMIXR 0’b: 0dB 1’b: -6dB Mute Control for DACR2 to DACMIXR 0’b: Un-Mute 1’b: Mute Gain Control for DACR2 to DACMIXR 0’b: 0dB 1’b: -6dB reserved 8.22. MX-2Dh: Voice DSP Path Control 1 Default: 0000’h Name sel_src_to_rxdp sel_src_to_txdp reserved Table 42. MX-2Dh: Voice DSP Path Control 1 Bits Read/Write Reset State Description 15 R/W 0’h Select the Sample Rate Converter(SRC) for RxDP 0’b: Normal 1’b: Divided by 3 14 R/W 0’h Select the Sample Rate Converter(SRC) for Interface2 0’b: Normal 1’b: Multiplied by 3 13:0 R 0’h reserved Multi-Channel Audio Hub/CODEC with embedded Voice 68 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.23. MX-2Eh: Voice DSP Path Control 2 Default: A000’h Name sel_dacl2 sel_dacr2 sel_if2_adc_l sel_if2_adc_r sel_rxdc_data sel_rxdp_data sel_txdc_data sel_txdp_data reserved Bits 15:14 13:12 11 10 9:8 7:6 5:4 3:2 1:0 Table 43. Read/Write R/W R/W R/W R/W R/W R/W R/W R/W R MX-2Eh: Voice DSP Path Control 2 Reset State Description 2’h Select Control for DACL2 00’b: IF2_DAC_L (By pass DSP) 01’b: Reserved 10’b: TxDC 11’b: Bass L/R 2’h Select Control for DACR2 00’b: IF2_DAC_R (By pass DSP) 01’b: Reserved 10’b: TxDC 11’b: reserved 0’h Select Control for I2S2 ADC Left Channel 0’b: TxDP 1’b: Mono ADC Mixer L(By pass DSP) 0’h Select Control for I2S2 ADC Right Channel 0’b: TxDP 1’b: Mono ADC Mixer R(By pass DSP) 0’h Select Control for RxDC Input Data 00’b: Normal 01’b: Left Channel Copy to Right Channel 10’b: Right Channel Copy to Left Channel 11’b: Swap 0’h Select Control for RxDP Input Data 00’b: Normal 01’b: Left Channel Copy to Right Channel 10’b: Right Channel Copy to Left Channel 11’b:Swap 0’h Select Control for TxDC Input Data 00’b: Normal 01’b: Left Channel Copy to Right Channel 10’b: Right Channel Copy to Left Channell 11’b: Swap 0’h Select Control for TxDP Input Data 00’b: Normal 01’b: Left Channel Copy to Right Channel 10’b: Right Channel Copy to Left Channel 11’b: Swap 0’h reserved Multi-Channel Audio Hub/CODEC with embedded Voice 69 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.24. MX-2Fh: Interface DAC/ADC Data Control Default: 0000’h Name sel_if1_dac_data sel_if1_adc_data sel_if2_dac_data sel_if2_adc_data reserved Table 44. 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 9:8 R/W 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 7:0 R 0’h reserved 8.25. MX-3Bh: RECMIXL Control 1 Default: 0000’h Name reserved Gain_inl_recmixl Bits 15:13 12:10 Table 45. MX-3Bh: RECMIXL Control 1 Read/Write Reset State Description R 0’h reserved 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 Multi-Channel Audio Hub/CODEC with embedded Voice 70 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Gain_bst2_recmixl reserved Gain_bst3_recmixl reserved Bits Read/Write 9:7 R/W 6:4 R/W 3:1 R/W 0 R Reset State 0’h 0’h 0’h 0’h Description 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 reserved 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 reserved ALC5642-VF Datasheet 8.26. MX-3Ch: RECMIXL Control 2 Default: 007F’h Name Bits Gain_bst1_recmixl 15:13 Gain_outmixl_recmix 12:10 l reserved 9:6 Mu_inl_rexmixl 5 Mu_bst2_recmixl 4 reserved 3 Table 46. MX-3Ch: RECMIXL Control 2 Read/Write Reset State Description 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 R/W 0’h Gain Control for OUTMIXL to RECMIXL 000’b: 0dB 001’b: -3dB 010’b: -6dB 011’b: -9dB 100’b: -12dB 101’b: -15dB 110’b: -18dB R 0’h reserved R/W 1’h Mute Control for INL to RECMIXL 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST2 to RECMIXL 0’b: Un-Mute 1’b: Mute R/W 1’h reserved Multi-Channel Audio Hub/CODEC with embedded Voice 71 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Mu_bst2_recmixl Bits Read/Write 2 R/W Mu_bst1_recmixl 1 R/W Mu_outmixl_recmixl 0 R/W Reset State 1’h 1’h 1’h Description Mute Control for BST3 to RECMIXL 0’b: Un-Mute 1’b: Mute Mute Control for BST1 to RECMIXL 0’b: Un-Mute 1’b: Mute Mute Control for OUTMIXL to RECMIXL 0’b: Un-Mute 1’b: Mute 8.27. MX-3Dh: RECMIXR Control 1 Default: 0000’h Name reserved Gain_inr_recmixr Gain_bst2_recmixr reserved Gain_bst3_recmixr Reserved Bits 15:13 12:10 9:7 6:4 3:1 0 Table 47. MX-3Dh: RECMIXR Control 1 Read/Write Reset State Description R/W 0’h Reserved 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 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 R/W 0’h Reserved 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 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 72 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.28. MX-3Eh: RECMIXR Control 2 Default: 007F’h Name Bits Gain_bst1_recmixr 15:13 Gain_outmixr_recmix 12:10 r reserved 9:6 Mu_inr_rexmixr 5 Mu_bst2_recmixr 4 Reserved 3 Mu_bst3_recmixr 2 Mu_bst1_recmixr 1 Mu_outmixr_recmixr 0 Table 48. MX-3Eh: RECMIXR Control 2 Read/Write Reset State Description 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 R/W 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 R 0’h reserved R/W 1’h Mute Control for INR to RECMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST2 to RECMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h reserved R/W 1’h Mute Control for BST3 to RECMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to RECMIXR 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for OUTMIXR to RECMIXR 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 73 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.29. MX-45h: HPOMIX Control Default: E000’h Name mu_dac2_hpomix mu_dac1_hpomix mu_hpovol_hpomix Gain_hpomix Reserved Table 49. MX-45h: HPOMIX Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for DAC2 to HPOMIX 0’b: Un-Mute 1’b: Mute 14 R/W 1’h Mute Control for DAC1 to HPOMIX 0’b: Un-Mute 1’b: Mute 13 R/W 1’h Mute Control for HPOVOL to HPOMIX 0’b: Un-Mute 1’b: Mute 12 R/W 0’h Gain Control for HPOMIX 0’b: 0dB 1’b: -6dB 11:0 R 0’h reserved 8.30. MX-46h: SPKMIXL Control Default: 003E’h Name Bits gain_recmixl_spkmix 15:14 l Gain_inl_spkmixl 13:12 Gain_dacl1_spkmixl 11:10 Gain_dacl2_spkmixl 9:8 Table 50. MX-46h: SPKMIXL Control Read/Write Reset State Description R/W 0’h Gain Control for RECMIXL to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for INL to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for DACL1 to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for DACL2 to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Multi-Channel Audio Hub/CODEC with embedded Voice 74 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Gain_outmixl_spkmi 7:6 R/W xl Mu_recmix1_spkmixl 5 R/W Mu_inl_spkmixl 4 R/W Mu_dacl1_spkmixl 3 R/W Mu_dacl2_spkmixl 2 R/W Mu_outmixl_spkmixl 1 R/W Reserved 0 R Reset State 0’h 1’h 1’h 1’h 1’h 1’h 0’h Description Gain Control for OUTMIXL to SPKMIXL 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Mute Control for RECMIXL to SPKMIXL 0’b: Un-Mute 1’b: Mute Mute Control for INL to SPKMIXL 0’b: Un-Mute 1’b: Mute Mute Control for DACL1 to SPKMIXL 0’b: Un-Mute 1’b: Mute Mute Control for DACL2 to SPKMIXL 0’b: Un-Mute 1’b: Mute Mute Control for OUTMIXL to SPKMIXL 0’b: Un-Mute 1’b: Mute Reserved 8.31. MX-47h: SPKMIXR Control Default: 003E’h Name Bits gain_recmixr_spkmix 15:14 r Gain_inr_spkmixr 13:12 Gain_dacr1_spkmixr 11:10 Gain_dacr2_spkmixr 9:8 Table 51. MX-47h: SPKMIXR Control Read/Write Reset State Description R/W 0’h Gain Control for RECMIXR to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for INR to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for DACR1 to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB R/W 0’h Gain Control for DACR2 to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Multi-Channel Audio Hub/CODEC with embedded Voice 75 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Gain_outmixr_spkmi 7:6 R/W xr Mu_recmixr_spkmixr 5 R/W Mu_inr_spkmixr 4 R/W Mu_dacr1_spkmixr 3 R/W Mu_dacr2_spkmixr 2 R/W Mu_outmixr_spkmixr 1 R/W Reserved 0 R Reset State 0’h 1’h 1’h 1’h 1’h 1’h 0’h Description Gain Control for OUTMIXR to SPKMIXR 00’b: 0dB 01’b: -3dB 10’b: -6dB 11’b: -9dB Mute Control for RECMIXR to SPKMIXR 0’b: Un-Mute 1’b: Mute Mute Control for INR to SPKMIXR 0’b: Un-Mute 1’b: Mute Mute Control for DACR1 to SPKMIXR 0’b: Un-Mute 1’b: Mute Mute Control for DACR2 to SPKMIXR 0’b: Un-Mute 1’b: Mute Mute Control for OUTMIXR to SPKMIXR 0’b: Un-Mute 1’b: Mute Reserved 8.32. MX-48h: SPOLMIX Control Default: F800’h Name Bits Mu_dacr1_spolmix 15 Mu_dacl1_spolmix 14 Mu_spkvolr_spolmix 13 Mu_spkvoll_spolmix 12 Mu_bst1_spolmix 11 reserved 10:0 Table 52. 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 Multi-Channel Audio Hub/CODEC with embedded Voice 76 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.33. MX-49h: SPORMIX Control Default: 3800’h Name reserved Mu_dacr1_spormix Bits 15:14 13 Mu_spkvolr_spormix 12 Mu_bst1_spormix 11 reserved 10:0 Table 53. MX-49h: SPORMIX Control Read/Write Reset State Description R 0’h Reserved R/W 1’h Mute Control for DACR1 to SPORMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for SPKVOLR to SPORMIX 0’b: Un-Mute 1’b: Mute R/W 1’h Mute Control for BST1 to SPORMIX 0’b: Un-Mute 1’b: Mute R 0’h Reserved 8.34. MX-4Ah: SPOL/RMIX Gain Control Default: 0004’h Name reserved Spk_gain_clsd Table 54. MX-4Ah: SPOL/RMIX Gain Control Bits Read/Write Reset State Description 15:3 R 0’h Reserved 2:0 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) Multi-Channel Audio Hub/CODEC with embedded Voice 77 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.35. MX-4Ch: MONOMIX Control Default: FC00’h Name Bits Mu_dacr2_monomix 15 Mu_dacl2_monomix 14 Mu_outvolr_monomi 13 x Mu_outvoll_monomi 12 x Mu_bst1_monomix 11 Gain_mono 10 reserved 9:0 Table 55. 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 8.36. MX-4Dh: OUTMIXL Control 1 Default: 0000’h Name reserved Gain_bst3_outmixl Bits 15:13 12:10 Table 56. MX-4Dh: OUTMIXL Control 1 Read/Write Reset State Description R/W 0’h Reserved 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 Multi-Channel Audio Hub/CODEC with embedded Voice 78 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Gain_bst1_outmixl 9:7 R/W Gain_inl_outmixl 6:4 R/W Gain_recmixl_outmix 3:1 R/W l Reserved 0 R Reset State 0’h 0’h 0’h 0’h Description 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 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 Control for RECMIXL 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 reserved 8.37. MX-4Eh: OUTMIXL Control 2 Default: 0000’h Name Gain_dacr2_outmixl Bits 15:13 Table 57. MX-4Eh: OUTMIXL Control 2 Read/Write Reset State Description 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 Multi-Channel Audio Hub/CODEC with embedded Voice 79 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Gain_dacl2_outmixl 12:10 R/W Gain_dacl1_outmixl 9:7 R/W reserved 6:0 R Reset State 0’h 0’h 0’h Description 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 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 Reserved 8.38. MX-4Fh: OUTMIXL Control 3 Default: 01FF’h Table 58. MX-4Fh: OUTMIXL Control 3 Name Bits Read/Write Reset State Description reserved 15:7 R 7’h Reserved Mu_bst3_outmixl 6 R/W 1’h Mute Control for BST3 to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_bst1_outmixl 5 R/W 1’h Mute Control for BST1 to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_inl_outmixl 4 R/W 1’h Mute Control for INL to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_recmixl_outmixl 3 R/W 1’h Mute Control for RECMIXL to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_dacr2_outmixl 2 R/W 1’h Mute Control for DACR2 to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_dacl2_outmixl 1 R/W 1’h Mute Control for DACL2 to OUTMIXL 0’b: Un-Mute 1’b: Mute Mu_dacl1_outmixl 0 R/W 1’h Mute Control for DACL1 to OUTMIXL 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 80 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.39. MX-50h: OUTMIXR Control 1 Default: 0000’h Name Gain_bst2_outmixr Gain_bst3_outmixr Gain_bst1_outmixr Gain_inr_outmixr Bits 15:13 12:10 9:7 6:4 Table 59. MX-50h: OUTMIXR Control 1 Read/Write Reset State Description 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 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 R/W 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 R/W 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 Multi-Channel Audio Hub/CODEC with embedded Voice 81 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Gain_recmixr_outmix 3:1 R/W r reserved 0 R Reset State 0’h 0’h Description 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 Reserved 8.40. MX-51h: OUTMIXR Control 2 Default: 0000’h Name Gain_dacl2_outmixr Gain_dacr2_outmixr Gain_dacr1_outmixr reserved Bits 15:13 12:10 9:7 6:0 Table 60. MX-51h: OUTMIXR Control 2 Read/Write Reset State Description 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 R/W 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 R/W 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 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 82 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.41. MX-52h: OUTMIXR Control 3 Default: 01FF’h Name Bits reserved 15:8 Mu_bst2_outmixr 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 Mu_dacr1_outmixr 0 Table 61. 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 R/W 1’h Mute Control for DACR1 to OUTMIXR 0’b: Un-Mute 1’b: Mute 8.42. MX-53h: LOUTMIX Control Default: F000’h Name Mu_dacl1_lout Mu_dacr1_lout Mu_outvoll_lout Table 62. MX-53h: LOUTMIX Control Bits Read/Write Reset State Description 15 R/W 1’h Mute Control for DACL1 to LOUTMIX 0’b: Un-Mute 1’b: Mute 14 R/W 1’h Mute Control for DACR1 to LOUTMIX 0’b: Un-Mute 1’b: Mute 13 R/W 1’h Mute Control for OUTVOLL to LOUTMIX 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 83 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Mu_outvolr_lout Gain_lout reserved ALC5642-VF Datasheet Bits Read/Write 12 R/W 11 R/W 10:0 R/W Reset State 1’h 0’h 0’h Description Mute Control for OUTVOLR to LOUTMIX 0’b: Un-Mute 1’b: Mute Gain Control for LOUTMIX 0’b: 0dB 1’b: -6dB Reserved 8.43. MX-61h: Power Management Control 1 Default: 0000’h Name En_i2s1 En_i2s2 reserved Pow_dac_l_1 Pow_dac_r_1 reserved Pow_dac_l_2 Pow_dac_r_2 reserved Pow_adc_l Pow_adc_r Pow_clsd Table 63. MX-61h: Power Management Control 1 Bits Read/Write Reset State Description 15 R/W 0’h I2S1 Digital Interface Power Control 0’b: Power Down 1’b: Power On 14 R/W 0’h I2S2 Digital Interface Power Control 0’b: Power Down 1’b: Power On 13 R/W 0’h Reserved 12 R/W 0’h Analog DACL1 Power Control 0’b: Power Down 1’b: Power On 11 R/W 0’h Analog DACR1 Power Control 0’b: Power Down 1’b: Power On 10:8 R 0’h Reserved 7 R/W 0’h Analog DACL2 Power Control 0’b: Power Down 1’b: Power On 6 R/W 0’h Analog DACR2 Power Control 0’b: Power Down 1’b: Power On 5:3 R 0’h Reserved 2 R/W 0’h Analog ADCL Power Control 0’b: Power Down 1’b: Power On 1 R/W 0’h Analog ADCR Power Control 0’b: Power Down 1’b: Power On 0 R/W 0’h Class-D Amp Power Control 0’b: Power Down 1’b: Power On Multi-Channel Audio Hub/CODEC with embedded Voice 84 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.44. MX-62h: Power Management Control 2 Default: 0000’h Name Bits Pow_adc_stereo_filte 15 r Pow_adc_monol_filte 14 r Pow_adc_monor_filte 13 r Pow_i2s_dsp 12 reserved 11:0 Table 64. 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/W 0’h I2S Interface for DSP Power Control 0’b: Power Down 1’b: Power On R 0’h Reserved 8.45. MX-63h: Power Management Control 3 Default: 00C0’h Name Pow_vref1 En_fastb1 Pow_main_bias Pow_lout Pow_bg_bias Pow_mono reserved En_amp_mono Table 65. MX-63h: Power Management Control 3 Bits Read/Write Reset State Description 15 R/W 0’h VREF1 Power Control 0’b: Power Down 1’b: Power On 14 R/W 0’h VREF1 Fast Mode Control 0’b: Fast VREF 1’b: Slow VREF, (For good analog performance) 13 R/W 0’h MBIAS Power Control 0’b: Power Down 1’b: Power On 12 R/W 0’h LOUTMIX Power Control 0’b: Power Down 1’b: Power On 11 R/W 0’h MBIAS Bandgap Power Control 0’b: Power Down 1’b: Power On 10 R/W 0’h MONOMIX Power Control 0’b: Power Down 1’b: Power On 9 R 0’h Reserved 8 R/W 0’h Mono Amp Power Control 0’b: Power Down 1’b: Power On Multi-Channel Audio Hub/CODEC with embedded Voice 85 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name En_l_hp En_r_hp En_amp_hp Pow_vref2 En_fastb2 Pow_ldo2 reserved ALC5642-VF Datasheet Bits Read/Write 7 R/W 6 R/W 5 R/W 4 R/W 3 R/W 2 R/W 1:0 R Reset State 1’h 1’h 0’h 0’h 0’h 0’h 0’h Description Left Headphone Amp Power Control 0’b: Power Down 1’b: Power On Right Headphone Amp Power Control 0’b: Power Down 1’b: Power On Improve HP Amp Driving 0’b: Disable 1’b: Enable VREF2 Power Control 0’b: Power Down 1’b: Power On VREF2 Fast Mode Control 0’b: Fast VREF 1’b: Slow VREF, (For good analog performance) LDO2 Power Control 0’b: Power Down 1’b: Power On Reserved 8.46. MX-64h: Power Management Control 4 Default: 0000’h Name Pow_bst1 Pow_bst3 reserved Pow_bst2 Pow_micbias1 reserved Pow_pll reserved Table 66. MX-64h: Power Management Control 4 Bits Read/Write Reset State Description 15 R/W 0’h MIC BST1 Power Control 0’b: Power Down 1’b: Power On 14 R/W 0’h MIC BST3 Power Control 0’b: Power Down 1’b: Power On 13 R/W 0’h reserved 12 R/W 0’h MIC BST2 Power Control 0’b: Power Down 1’b: Power On 11 R/W 0’h MICBIAS1 Power Control 0’b: Power Down 1’b: Power On 10 R/W 0’h reserved 9 R/W 0’h PLL Power Control 0’b: Power Down 1’b: Power On 8:0 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 86 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.47. MX-65h: Power Management Control 5 Default: 0000’h Name Pow_outmixl Pow_outmixr Pow_spkmixl Pow_spkmixr Pow_recmixl Pow_recmixr reserved Table 67. MX-65h: Power Management Control 5 Bits Read/Write Reset State Description 15 R/W 0’h OUTMIXL Power Control 0’b: Power Down 1’b: Power On 14 R/W 0’h OUTMIXR Power Control 0’b: Power Down 1’b: Power On 13 R/W 0’h SPKMIXL Power Control 0’b: Power Down 1’b: Power On 12 R/W 0’h SPKMIXR Power Control 0’b: Power Down 1’b: Power On 11 R/W 0’h RECMIXL Power Control 0’b: Power Down 1’b: Power On 10 R/W 0’h RECMIXR Power Control 0’b: Power Down 1’b: Power On 9:0 R 0’h Reserved 8.48. MX-66h: Power Management Control 6 Default: 0000’h Name Pow_spkvoll Pow_spkvolr Pow_outvoll Pow_outvolr Pow_hpovoll Table 68. MX-66h: Power Management Control 6 Bits Read/Write Reset State Description 15 R/W 0’h SPKVOLL Power Control 0’b: Power Down 1’b: Power On 14 R/W 0’h SPKVOLR power Control 0’b: Power Down 1’b: Power On 13 R/W 0’h OUTVOLL Power Control 0’b: Power Down 1’b: Power On 12 R/W 0’h OUTVOLR Power Control 0’b: Power Down 1’b: Power On 11 R/W 0’h HPOVOLL Power Control 0’b: Power Down 1’b: Power On Multi-Channel Audio Hub/CODEC with embedded Voice 87 DSP and SounzRealTM Digital Sound Effect ALC5642-VF Datasheet Rev. 0.9 Name Pow_hpovolr Pow_inlvol Pow_inrvol reserved Bits Read/Write 10 R/W 9 R/W 8 R/W 7:0 R Reset State 0’h 0’h 0’h 0’h Description HPOVOLR Power Control 0’b: Power Down 1’b: Power On INLVOL Power Control 0’b: Power Down 1’b: Power On INRVOL Power Control 0’b: Power Down 1’b: Power On Reserved ALC5642-VF Datasheet 8.49. MX-6Ah: Private Register Index Default: 0000’h Name reserved Pr_index Table 69. MX-6Ah: Private Register Index Bits Read/Write Reset State Description 15:8 R 0’h reserved 7:0 R/W 0’h PR Register Index 8.50. MX-6Ch: Private Register Data Default: 0000’h Name Pr_data Table 70. MX-6Ch: Private Register Data Bits Read/Write Reset State Description 15:0 R/W 0’h PR Register Data 8.51. MX-70h: I2S1 Digital Interface Control Default: 8000’h Name Sel_i2s1_ms Table 71. 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 Multi-Channel Audio Hub/CODEC with embedded Voice 88 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Sel_i2s1_in en_i2s1_out_comp en_i2s1_in_comp Inv_i2s1_bclk reserved sel_i2s1_len sel_i2s1_format Bits Read/Write 14:12 R/W 11:10 R/W 9:8 R/W 7 R/W 6:4 R 3:2 R/W 1:0 R/W Reset State 0’h 0’h 0’h 0’h 0’h 0’h 0’h Description I2S Digital Interface Input Port Selection Control 000’b: I2S1 <= BCLK1/LRCK1/DACDAT1/ADCDAT1 I2S2 <= BCLK2/LRCK2/DACDAT2/ADCDAT2 101’b: I2S1 <= BCLK2/LRCK2/DACDAT2/ADCDAT2 I2S2 <= BCLK1/LRCK1/DACDAT1/ADCDAT1 110’b: I2S1 <= BCLK1/LRCK1/DACDAT1/ADCDAT1 I2S2 <= BCLK1/LRCK1/DACDAT1/ADCDAT1 111’b: I2S1 <= BCLK2/LRCK2/DACDAT2/ADCDAT2 I2S2 <= BCLK2/LRCK2/DACDAT2/ADCDAT2 Others: Reserved I2S1 Output Data Compress (For ADCDAT1 Output) 00’b: OFF 01’b: µ law 10’b: A law 11’b: Reserved I2S1 Input Data Compress (For DACDAT1 Input) 00’b: OFF 01’b: µ law 10’b: A law 11’b: Reserved I2S1 BCLK Polarity Control 0’b: Normal 1’b: Invert Reserved I2S1 Data Length Selection 00’b: 16 bits 01’b: 20 bits 10’b: 24 bits 11’b: 8 bits I2S1 PCM Data Format Selection 00’b: I2S format 01’b: Left justified 10’b: PCM Mode A (LRCK One Plus at Master Mode) 11’b: PCM Mode B (LRCK One Plus at Master Mode) 8.52. MX-71h: I2S2 Digital Interface Control Default: 8000’h Name Sel_i2s2_ms Table 72. MX-71h: I2S2 Digital Interface Control Bits Read/Write Reset State Description 15 R/W 0’h I2S2 Digital Interface Mode Control 0’b: Master Mode 1’b: Slave Mode Multi-Channel Audio Hub/CODEC with embedded Voice 89 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name reserved en_i2s2_out_comp en_i2s2_in_comp inv_i2s2_bclk sel_sdi reserved sel_i2s2_len sel_i2s2_format Bits Read/Write 14:12 R 11:10 R/W 9:8 R/W 7 R/W 6 R/W 5:4 R 3:2 R/W 1:0 R/W Reset State 0’h 0’h 0’h 0’h 0’h 0’h 0’h 0’h Description Reserved I2S2 Output Data Compress (For ADCDAT2 Output) 00’b: OFF 01’b: µ law 10’b: A law 11’b: Reserved I2S2 Input Data Compress (For DACDAT2 Input) 00’b: OFF 01’b: µ law 10’b: A law 11’b: Reserved I2S2 BCLK Polarity Control 0’b: Normal 1’b: Invert When MX-70[14:12]=6’h or 7’h, Select ADCDAT1/2 Output Source MX-70[14:12]=0x6’h: 0’b: ADCDAT1 is From IF1_ADC 1’b: ADCDAT1 is From IF2_ADC MX-70[14:12]=0x7’h: 0’b: ADCDAT2 is From IF1_ADC 1’b: ADCDAT2 is From IF2_ADC Reserved I2S2 Data Length Selection 00’b: 16 bits 01’b: 20 bits 10’b: 24 bits 11’b: 8bits I2S2 PCM Data Format Selection 00’b: I2S format 01’b: Left justified 10’b: PCM Mode A (LRCK One Plus at Master Mode) 11’b: PCM Mode B (LRCK One Plus at Master Mode) 8.53. MX-73h: ADC/DAC Clock Control 1 Default: 1114’h Name sel_i2s_bclk_ms1 Table 73. MX-73h: ADC/DAC Clock Control 1 Bits Read/Write Reset State Description 15 R/W 0’h I2S1 Master Mode Clock Relative of BCLK and LRCK 0’b: 16Bits (32FS) 1’b: 32Bits (64FS) Multi-Channel Audio Hub/CODEC with embedded Voice 90 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name sel_i2s_pre_div1 sel_i2s_bclk_ms2 sel_i2s_pre_div2 reserved sel_dac_osr sel_adc_osr Bits Read/Write 14:12 R/W 11 R/W 10:8 R/W 7:4 R/W 3:2 R/W 1:0 R/W Reset State 1’h 0’h 1’h 1’h 1’h 0’h Description I2S Clock Pre-Divider 1 000’b: ÷ 1 001’b: ÷ 2 010’b: ÷ 3 011’b: ÷ 4 100’b: ÷ 6 101’b: ÷ 8 110’b: ÷ 12 111’b: ÷ 16 I2S2 Master Mode Clock Relative of BCLK and LRCK 0’b: 16Bits (32FS) 1’b: 32Bits (64FS) I2S Pre-Divider 2 000’b: ÷ 1 001’b: ÷ 2 010’b: ÷ 3 011’b: ÷ 4 100’b: ÷ 6 101’b: ÷ 8 110’b: ÷ 12 111’b: ÷ 16 Reserved Stereo DAC Over Sample Rate Select 00’b: 128Fs 01’b: 64Fs 10’b: 32Fs 11’b: 16Fs Stereo ADC Over Sample Rate Select 00’b: 128Fs 01’b: 64Fs 10’b: 32Fs 11’b: 16Fs 8.54. MX-74h: ADC/DAC Clock Control 2 Default: 0C00’h Name sel_da_osr_mono_l Bits 15:14 Table 74. Read/Write R/W MX-74h: ADC/DAC Clock Control 2 Reset State Description 0’h Mono DACL Over Sample Rate Select 00’b: 128Fs 01’b: 64Fs 10’b: 32Fs 11’b: 16Fs Multi-Channel Audio Hub/CODEC with embedded Voice 91 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name sel_da_osr_mono_r reserved Bits Read/Write 13:12 R/W 11:0 R/W Reset State 0’h C00’h Description Mono DACR Over Sample Rate Select 00’b: 128Fs 01’b: 64Fs 10’b: 32Fs 11’b: 16Fs Reserved 8.55. MX-75h: Digital Microphone Control Default: 1D00’h Name en_dmic1 en_dmic2 sel_dmic1_l_edge sel_dmic1_r_edge reserved sel_dmic2_l_edge sel_dmic2_r_edge sel_dmic_clk reserved Bits 15 14 13 12 11:10 9 8 7:5 4:0 Table 75. Read/Write R/W R/W R/W R/W R/W R/W R/W R/W R MX-75h: Digital Microphone Control Reset State Description 0’h Enable DMIC1 Interface 0’b: Disable 1’b: Enable (Output DMIC clock) 0’h Enable DMIC2 Interface 0’b: Disable 1’b: Enable (Output DMIC clock) 0’h DMIC1 Left Channel Source Control 0’b: Latch from falling edge 1’b: Latch from rising edge 1’h DMIC1 Right Channel Source Control 0’b: Latch from falling edge 1’b: Latch from rising edge 3’h Reserved 0’h DMIC2 Left Channel Source Control 0’b: Latch from falling edge 1’b: Latch from rising edge 1’h DMIC2 Right Channel Source Control 0’b: Latch from falling edge 1’b: Latch from rising edge 0’h DMIC Clock Rate Control 000’b: 256*fs/2 001’b: 256*fs/3 010’b: 256*fs/4 011’b: 256*fs/6 100’b: 256*fs/8 101’b: 256*fs/12 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 92 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.56. MX-80h: Global Clock Control Default: 0000’h Name sel_sysclk1 sel_pll_sour reserved sel_pll_pre_div reserved Bits 15:14 13:12 11:4 3 2:0 Table 76. MX-80h: Global Clock Control Read/Write Reset State Description R/W 0’h System Clock Source MUX Control 00’b: MCLK 01’b: PLL 10’b: Reserved 11’b: Reserved R/W 0’h PLL Source Selection 00’b: From MCLK 01’b: From BCLK1 10’b: From BCLK2 11’b: Reserved R 0’h Reserved R/W 0’h PLL Pre-Divider 0’b: ÷ 1 1’b: ÷ 2 R 0’h Reserved ALC5642-VF Datasheet 8.57. MX-81h: PLL Control 1 Default: 0000’h Name Pll_n_code Reserved Pll_k_code Table 77. MX-81h: PLL Control 1 Bits Read/Write Reset State Description 15:7 R/W 0’h PLL N[8:0] Code 000000000’b: Div 2 000000001’b: Div 3 … 111111111’b: Div 513 6:5 R 0’h Reserved 4:0 R/W 0’h PLL K[4:0] Code 00000’b: Div 2 00001’b: Div 3 … 11111’b: Div 33 Multi-Channel Audio Hub/CODEC with embedded Voice 93 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.58. MX-82h: PLL Control 2 Default: 0000’h Name Pll_m_code Pll_m_bypass Reserved Bits 15:12 11 10:0 Table 78. MX-82h: PLL Control 2 Read/Write Reset State Description R/W 0’h PLL M[3:0] Code 0000’b: Div 2 0001’b: Div 3 … 1111’b: Div 17 R/W 0’h Bypass PLL M Code 0’b : No bypass 1’b : Bypass R 0’h Reserved ALC5642-VF Datasheet 8.59. MX-83h: ASRC Control 1 Default: 0000’h Name sel_stereo_asrc sel_mono_asrc reserved sel_i2s2_filter Sel_i2s2_asrc reserved sel_dmic1_mode sel_dmic2_mode reserved Table 79. MX-83h: ASRC Control 1 Bits Read/Write Reset State Description 15 R/W 0’h Mode Select Control for Stereo Filter 0’b : Normal Mode 1’b : ASRC1 Mode 14 R/W 0’h Select Control for Mono Filter 0’b : Clk_i2s2_filter 1’b : (Clk_i2s2_filter) / 3 13 R/W 0’h Reserved 12 R/W 0’h Select Control for Clk_i2s2_filter 0’b : Normal Mode 1’b : ASRC2 Mode 11 R/W 0’h I2S-2 ASRC Function Enable Control 0’b: Disable 1’b: Enable (Enable I2S-2 in ASRC mode) 10 R/W 0’h Reserved 9 R/W 0’h Select Control for ASRC Mode in DMIC1 Function 0’b : Normal Mode 1’b : ASRC Mode 8 R/W 0’h Select Control for ASRC Mode in DMIC2 Function 0’b : Normal Mode 1’b : ASRC Mode 7:0 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 94 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.60. MX-84h: ASRC Control 2 Default: 0000’h Name Bits sel_mono_da_l_mode 15 sel_mono_da_r_mode 14 sel_mono_ad_l_mode 13 sel_mono_ad_r_mode 12 sel_adc_mode 11 reserved 10:6 sel_stereo_dac_mode 5 En_i2s1_asrcin_auto_ 4 det En_i2s2_asrcin_auto_ 3 det reserved 2 Sel_asrcin_256fs_sys 1:0 Table 80. MX-84h: ASRC Control 2 Read/Write Reset State Description R/W 0’h Select Control for DA_L Mono Filter 0’b: Normal Mode 1’b: ASRC Mode R/W 0’h Select Control for DA_R Mono Filter 0’b: Normal Mode 1’b: ASRC Mode R/W 0’h Select Control for AD_L Mono Filter 0’b: Normal Mode 1’b: ASRC Mode R/W 0’h Select Control for AD_R Mono Filter 0’b: Normal Mode 1’b: ASRC Mode R/W 0’h Select Control for ADC Stereo Filter 0’b: Normal Mode 1’b: ASRC Mode R/W 0’h Reserved R/W 0’h Select Control for DAC Stereo Filter 0’b : Normal Mode 1’b : ASRC Mode R/W 0’h Automatically Detect I2S1 Input Sample Rate 0’b : Disable 1’b : Enable R/W 0’h Automatically Detect I2S2 Input Sample Rate 0’b : Disable 1’b : Enable R/W 0’h Reserved R/W 0’h Select for Pre-System Clock 00’b: 512*48k 01’b: 1024*48k 10’b: 2048*48k 11’b: Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 95 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.61. MX-85h: ASRC Control 3 Default: 0008’h Name I2s1_asrcin_fsi_rate_ manual I2s2_asrcin_fsi_rate_ manual reserved Bits 15:12 11:8 7:0 Table 81. MX-85h: ASRC Control 3 Read/Write Reset State Description R/W 0’h Set I2S1 Input Sample Rate 0’h: 48K 1’h: 96k 2’h: 192k 3’h: 32K 4’h: 48K 5’h: 96k 6’h: 192k 7’h: 32K 8’h: 48K 9’h: 96k A’h: 192k B’h: reserve C’h: 22.05K D’h: reserve E’h: 11.025K F’h: reserve R/W 0’h Set I2S2 Input Sample Rate 0’h: 48K 1’h: 96k 2’h: 192k 3’h: 32K 4’h: 48K 5’h: 96k 6’h: 192k 7’h: 32K 8’h: 48K 9’h: 96k A’h: 192k B’h: reserve C’h: 22.05K D’h: reserve E’h: 11.025K F’h: reserve R/W 0’h Reserved 8.62. MX-89h: ASRC Control 4 Default: 0000’h Name reserved i2s1_track_prediv reserved i2s2_track_prediv reserved Bits 15 14:12 11 10:8 7:0 Table 82. MX-89h: ASRC Control 4 Read/Write Reset State Description R 0’h Reserved R/W 0’h Set I2S1 Clock Division for Stereo Filter 000’b: div1 001’b: div2 010’b: div3 011’b: div4 100’b: div6 101’b: div8 110’b: div12 111’b: div16 R 0’h Reserved R/W 0’h Set I2S2 Clock Division for Mono Filter 000’b: div1 001’b: div2 010’b: div3 011’b: div4 100’b: div6 101’b: div8 110’b: div12 111’b: div16 R/W 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 96 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.63. MX-8Ah: ASRC Control 5 Default: 0000’h Name asrcin_fsi1_rate asrcin_fsi2_rate reserved Bits 15:12 11:8 7:0 Table 83. MX-8Ah: ASRC Control 5 Read/Write Reset State Description R 0’h I2S1 Sample Rate Detection 0000'b: 48k, 44.1k, 32k 0001'b: 96k, 88.2k 0010'b: 192k, 176.4k 0100'b: 24k, 22.05k, 16k 0110'b: 12k, 11.025k, 8k R 0’h I2S2 Sample Rate Detection 0000'b: 48k, 44.1k, 32k 0001'b: 96k, 88.2k 0010'b: 192k, 176.4k 0100'b: 24k, 22.05k, 16k 0110'b: 12k, 11.025k, 8k R 0’h Reserved ALC5642-VF Datasheet 8.64. MX-8Ch: Class-D Amp OC Control Default: 0228’h Name reserved Pow_ocp_clsd Autopd_clsd reserved Bits 15:10 9 8 7:0 Table 84. MX-8Ch: Class-D Amp OC Control Read/Write Reset State Description R 0’h Reserved R/W 1’h Class-D Amp Over-Current Sensor Power Control 0’b: Power Down 1’b: Power On R/W 0’h Class-D Amp Auto Power Down Control When OC 0’b: Disable 1’b: Enable R/W 28’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 97 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.65. MX-8Dh: Class-D Amp Output Control Default: A800’h Name fbgain_clsd reserved Bits 15:12 11:0 Table 85. Read/Write R/W R/W MX-8Dh: Class-D Amp Output Control Reset State Description A’h Class-D Amp AC+DC Ratio Gain Control 1010’b: 3.30 × 1001’b: 3.00 × 1000’b: 2.77× 0111’b: 2.66× 0110’b: 2.55× 0101’b: 2.44× 0100’b: 2.33× 0011’b: 2.22× 0010’b: 2.11× 0001’b: 2.00× 0000’b: 1.94× 800’h Reserved 8.66. MX-8Eh: HP Amp Control 1 Default: 0004’h Name Smttrig_hp reserved En_smt_l_hp En_smt_r_hp Pdn_hp Softgen_rstn Softgen_rstp En_out_hp Bits 15 14:10 9 8 7 6 5 4 Table 86. MX-8Eh: HP Amp Control 1 Read/Write Reset State Description R/W 0’h Enable Softgen Trigger for Soft Mute Depop 0’b: Disable 1’b: Enable R/W 0’h Reserved R/W 0’h Enable HP_L Mute/Un-Mute Depop 0’b: Disbale 1’b: Enable R/W 0’h Enable HP_R Mute/Un-Mute Depop 0’b: Disbale 1’b: Enable R/W 0’h Capless Depop Power Down Control 0’b: Disbale 1’b: Enable R/W 0’h Reset Softgen to Initialize SOFTP=1 0’b: Disbale 1’b: Reset R/W 0’h Reset Softgen to Initialize SOFTP=0 0’b: Disbale 1’b: Reset R/W 0’h Enable Headphone Output 0’b: Disable 1’b: Enable Multi-Channel Audio Hub/CODEC with embedded Voice 98 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Pow_pump_hp En_softgen_hp reserved Pow_capless Bits Read/Write 3 R/W 2 R/W 1 R/W 0 R/W Reset State 0’h 1’h 0’h 0’h Description Charge Pump Power Control 0’b: Power Down 1’b: Power On Power On Soft Generator 0’b: Power down 1’b: Power on Reserved HP Amp All Power On Control 0’b: Power Down 1’b: Power On ALC5642-VF Datasheet 8.67. MX-8Fh: HP Amp Control 2 Default: 1100’h Name reserved Depop_mode_hp reserved En_depop_mode1 reserved Bits 15:14 13 12:7 6 5:0 Table 87. MX-8Fh: HP Amp Control 2 Read/Write Reset State Description R 0’h Reserved R/W 0’h Select HP Depop Mode 0’b: Depop mode 1 1’b: Depop mode 2 R/W 22’h Reserved R/W 0’h HP Depop Mode 1 Control 0’b: Disbale 1’b: Enable R/W 0’h Reserved 8.68. MX-92h: SPKVDD Detection Control Default: 0000’h Name Bits en_spk_auto_ratio 15 en_spk_auto_gain 14 reserved 13:0  AC Ratio Gain would be: ACVDD SPKVDD Table 88. Read/Write R/W R/W R MX-92h: SPKVDD Detection Control Reset State Description 0’h Enable SPKVDD Detection 0’b: Disable 1’b: Enable 0’h Enable Speaker Amp Auto Ratio Gain Control  (Digital will mapping ratio gain table by SPKVDD detection) 0’b: Disable 1’b: Enable 0’h Reserved Ratio Gain Table (ACVDD with SPKVDD) Voltage Detected Code AC+DC Ratio Gain FBGAIN[3:0] Multi-Channel Audio Hub/CODEC with embedded Voice 99 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ACVDD 1.8V SPKVDD <3.0V 3.0V ~ 3.3V 3.3V ~ 3.5V 3.5V ~ 3.6V 3.6V ~ 3.8V 3.8V ~ 4.0V 4.0V ~ 4.2V 4.2V ~ 4.4V 4.4V ~ 4.6V 4.6V ~ 4.8V 4.8V ~ 5V >5V Ratio Gain Table (ACVDD with SPKVDD) Voltage Detected Code AC+DC Ratio Gain 0000 1.94 0001 1.94 0010 2 0011 2.11 0100 2.22 0101 2.33 0110 2.44 0111 2.55 1000 2.66 1001 2.77 1010 3.00 1011 3.30 ALC5642-VF Datasheet FBGAIN[3:0] 0000 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 8.69. MX-93h: MICBIAS Control Default: 3000’h Name Sel_micbias1 reserved Pow_mic1_ovcd Mic1_ovcd_th_sel reserved Pow_internal_clk reserved Bits 15 14:12 11 10:9 8:5 4 3:0 Table 89. MX-93h: MICBIAS Control Read/Write Reset State Description R/W 0’h MICBIAS1 Output Voltage Control 0’b: 0.9 * MICVDD 1’b: 0.75 * MICVDD R/W 3’h Reserved R/W 0’h MICBIAS1 Short Current Detector Control 0’b: Disable 1’b: Enable R/W 0’h MICBIAS1 Short Current Detector Threshold 00’b: 600uA 01’b: 1500uA 1x’b: 2000uA Note: tolerance is 200uA R/W 0’h reserved R/W 0’h Internal Clock Power Control 0’b: Power down 1’b: Power on R/W 0’h reserved Multi-Channel Audio Hub/CODEC with embedded Voice 100 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.70. MX-B0h: EQ Control 1 Default: 2000’h Name eq_sour eq_para_update reserved sta_hpf2 sta_hpf1 sta_bpf4 sta_bpf3 sta_bpf2 sta_bpf1 sta_lpf Table 90. MX-B0h: EQ Control 1 Bits Read/Write Reset State Description 15 R/W 0’h EQ Path Control 0’b: DAC path 1’b: ADC path 14 R/W 0’h EQ Parameter Update Control 0’b: No action 1’b: Update parameter 13:7 R/W 40’h Reserved 6 R 0’h EQ High Pass Filter (HPF2) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 5 R 0’h EQ High Pass Filter (HPF1) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 4 R 0’h EQ Band-4 (BP4) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 3 R 0’h EQ Band-3 (BP3) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 2 R 0’h EQ Band-2 (BP2) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 1 R 0’h EQ Band-1 (BP1) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. 0 R 0’h EQ Low Pass Filter (LPF) Status. 0’b: Normal 1’b: Overflow. This bit is set if overflow had ever occurred. Write 1 to clear it. Multi-Channel Audio Hub/CODEC with embedded Voice 101 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.71. MX-B1h: EQ Control 2 Default: 0000’h Name reserved reg_typ_hpf_en reg_typ_lpf_en en_hpf2 en_hpf1 en_bpf4 en_bpf3 en_bpf2 en_bpf1 en_lpf Table 91. MX-B1h: EQ Control 2 Bits Read/Write Reset State Description 15:9 R 0’h Reserved 8 R/W 0’h EQ High Pass Filter1 Mode Control 0’b: High frequency shelving filter 1’b: 1st order Butterworth HPF (-20dB per decade) 7 R/W 0’h EQ Low Pass Filter Mode Control 6 R/W 0’b: Low frequency shelving filter 1’b: 1st order Butterworth LPF (-20dB per decade) 0’h EQ High Pass 2nd Butterworth Filter (HPF) Control. 0’b: Disabled (bypass) and reset 1’b: Enabled 5 R/W 0’h EQ High Pass Filter (HPF) Control. 0’b: Disabled (bypass) and reset 1’b: Enabled 4 R/W 0’h EQ Band-4 (BP4) shelving Filter Control. 0’b: Disabled and reset 1’b: Enabled. 3 R/W 0’h EQ Band-3 (BP3) shelving Filter Control. 0’b: Disabled and reset 1’b: Enabled. 2 R/W 0’h EQ Band-2 (BP2) shelving Filter Control. 0’b: Disabled and reset 1’b: Enabled. 1 R/W 0’h EQ Band-1 (BP1) shelving Filter Control. 0’b: Disabled and reset 1’b: Enabled. 0 R/W 0’h EQ Low Pass Filter (LPF) Filter Control. 0’b: Disabled and reset 1’b: Enabled. 8.72. MX-B4h: DRC/AGC Control 1 Default: 2206’h Name sel_drc_agc Table 92. MX-B4h: DRC/AGC Control 1 Bits Read/Write Reset State Description 15:14 R/W 0’h DRC/AGC Enable 00’b: Disable DRC/AGC 01’b: Enable DRC to DAC Path 10’b: Disable DRC/AGC 11’b: Enable AGC to ADC Path Multi-Channel Audio Hub/CODEC with embedded Voice 102 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Reset State Description update_drc_agc_para 13 R 1’h Update DRC/AGC Parameter m Write 1’b to update all DRC/AGC parameter sel_drc_agc_atk 12:8 R/W 2’h Select DRC/AGC attack rate (0.375dB/TU) 00’h: 83 uSec 01’h: 0.167 mSec … 10’h: 5.46 Sec Others: Reserved Drc_agc_rate_sel 7:5 R/W 0’h DRC/AGC Rate Control for Sample Rate Change 001’b: 48kHz 010’b: 96kHz 011’b: 192kHz 101’b: 44.1kHz 110’b: 88.2kHz 111’b: 176.4kHz Others: Reserved sel_rc_rate 4:0 R/W 6’h Select DRC/AGC recovery rate (0.375dB/TU) 00’h: 83 uSec 01’h: 0.167 mSec … 10’h: 5.46 Sec Others: Reserved  attack time=(4*2^n)/Sample_Rate, n=MX-B4[12:8], default=0.33mS  recovery time=(4*2^n)/Sample_Rate, n= MX-B4 [4:0], default=5.3mS  When change I2S’s sample rate, the DRC/AGC rate control is need to be changed same with I2S’s sample rate. When change the DRC/AGC rate, the parameter of DRC/AGC isn’t need be modified. When I2S’s sample rate is below 48kHz, that need to set the DRC/AGC rate to 48kHz and re-calculate the DRC/AGC’s parameter by I2S’s sample rate. 8.73. MX-B5h: DRC/AGC Control 2 Default: 1F00’h Name reserved Table 93. MX-B5h: DRC/AGC Control 2 Bits Read/Write Reset State Description 15:14 R 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 103 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Reset State Description sel_drc_agc_post_bst 13:8 R/W 1f’h DRC/AGC Digital Post-Boost Gain (0.375dB/step) 00’h= -11.625dB ……………….. 3F’h= 12dB Others: Reserved En_drc_agc_compres 7 R/W 0’h DRC Compression Function Control s 0’b: Disable 1’b: Enable Sel_ratio 6:5 R/W 0’h DRC Compression Ratio Selection 00’b: 1:1 01’b: 1:2 10’b: 1:4 11’b: 1:8 sel_drc_agc_pre_bst 4:0 R/W 0’h DRC/AGC Digital Pre-Boost GAin (1.5dB/step) 00’h= 0dB 01’h= 1.5dB 02’h= 3dB 03’h= 4.5dB ……………….. 13’h= 28.5dBFS Others: Reserved Gain table: DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain 0 0 -11.625 16 10 -5.625 32 20 0.375 48 30 6.375 64 40 11 -11.25 17 11 -5.25 33 21 0.75 49 31 6.75 65 41 2 2 -10.875 18 12 -4.875 34 22 1.125 50 32 7.125 66 42 33 -10.5 19 13 -4.5 35 23 1.5 51 33 7.5 67 43 4 4 -10.125 20 14 -4.125 36 24 1.875 52 34 7.875 68 44 55 -9.75 21 15 -3.75 37 25 2.25 53 35 8.25 69 45 6 6 -9.375 22 16 -3.375 38 26 2.625 54 36 8.625 70 46 77 -9 23 17 -3 39 27 3 55 37 9 71 47 8 8 -8.625 24 18 -2.625 40 28 3.375 56 38 9.375 72 48 99 -8.25 25 19 -2.25 41 29 3.75 57 39 9.75 73 49 10 A -7.875 26 1A -1.875 42 2A 4.125 58 3A 10.125 74 4A 11 B -7.5 27 1B -1.5 43 2B 4.5 59 3B 10.5 75 4B 12 C -7.125 28 1C -1.125 44 2C 4.875 60 3C 10.875 76 4C Multi-Channel Audio Hub/CODEC with embedded Voice 104 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 13 D -6.75 29 1D -0.75 45 2D 14 E -6.375 30 1E -0.375 46 2E 15 F -6 31 1F 0 47 2F  DEC HEX Boost Gain DEC HEX Boost Gain 00 0 16 10 24 11 1.5 17 11 25.5 22 3 18 12 27 33 4.5 19 13 28.5 44 6 20 14 55 7.5 21 15 66 9 22 16 77 10.5 23 17 88 12 24 18 99 13.5 25 19 10 A 15 26 1A 11 B 16.5 27 1B 12 C 18 28 1C 13 D 19.5 29 1D 14 E 21 30 1E 15 F 22.5 31 1F 5.25 5.625 6 61 3D 62 3E 63 3F 11.25 11.625 12 8.74. MX-B6h: DRC/AGC Control 3 Default: 0000’h Name Noise_gate_boost Table 94. MX-B6h: DRC/AGC Control 3 Bits Read/Write Reset State Description 15:12 R/W 0’h Select Compensation Gain When Signal is Below Noise Gate 0’h: 0dB 1’h: 3dB 2’h: 6dB … E’h: 42dB F’h: 45dB Multi-Channel Audio Hub/CODEC with embedded Voice 105 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name sel_drc_agc_thmax Bits Read/Write Reset State Description 11:7 R/W 0’h DRC/AGC Limiter Level (1.5dB/step) 00’h= 0dBFS 01’h= -1.5dBFS 02’h= -3dBFS 03’h= -4.5dBFS … 1F’h= -46.5dBFS en_drc_agc_noise_ga 6 R/W 0’h Enable Noise Gate function te 0’b: Diaable 1’b: Enable En_drc_agc_noise_ga 5 R/W 0’h Enable Noise Gate Hold Data Function te_hold 0’b: Disable 1’b: Enable sel_drc_agc_noise_th 4:0 R/W 0’h Noise Gate Threshold (-1.5dB/step) 00’h: -36dBFS 01’h: -375dBFS ……………….. 1F’h: -82.5 dBFS 8.75. MX-B8h: SNC Control 1 Default: 034B’h Name En_snc_reverse En_snc reserved Fg_snc_noise_hi Table 95. MX-B8h: SNC Control 1 Bits Read/Write Reset State Description 15 R/W 0’h SNC Inverse, 180 degree turning 0’b: Normal 1’b: Reverse 14 R/W 0’h Enable SNC Function 0’b: Disable (Output zero) and Mute to DAC Mixer Path 1’b: Enable 13:12 R/W 0’h Reserved 11 R 0’h Smart Switch Detected Noise Energy Level 0’b: Low noise level detected, SNC off 1’b: High noise level detected, SNC on Multi-Channel Audio Hub/CODEC with embedded Voice 106 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name reserved Sel_snc_zerox reserved En_snc_smart Sel_snc_corner_l  SNC LPF Corner: 2.4 2.2 2 1.8 Coner frequency (kHz) 1.6 1.4 1.2 1 0.8 0.6 0.4 0 5 2200 2000 1800 1600 Group delay (sample) 1400 1200 1000 800 600 400 0 5 Bits Read/Write Reset State Description 10 R/W 0’h Reserved 9:8 R/W 3’h Zero Cross Detection for Smart Switch On/Off 00’b: Disable ZCD 01’b: Enable ZCD and with 0.167ms time out 10’b: Enable ZCD and with 1.33ms time out 11’b: Enable ZCD and without time out 7 R/W 0’h Reserved 6 R/W 0’h Enable SNC Smart Switch 0’b: Normal 1’b: Auto Switch (On for hi-noise and Off for lo-noise) 5:0 R/W b’h SNC LPF Corner Tune for Left Channel  4.5 4 3.5 3 2.5 2 10 15 20 25 30 35 40 45 50 55 60 sel_corner sel_corner 420 400 380 360 340 320 300 280 260 240 220 10 15 20 25 30 35 40 45 50 55 60 sel_corner sel_corner Multi-Channel Audio Hub/CODEC with embedded Voice 107 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.76. MX-B9h: SNC Control 2 Default: 0066’h Name snc_fine_gain_r snc_fine_gain_l snc_coarse_gain_r snc_coarse_gain_l Table 96. MX-B9h: SNC Control 2 Bits Read/Write Reset State Description 15:12 R/W 0’h Fine gain for R-ch 0’h: 0dB 1’h: -0.375dB 2’h: -0.750dB 3’h: -1.125B 4’h: -1.5dB 5’h: -1.875dB 6’h: -2.25dB 7’h: -2.625dB 8’h: -3.0dB 9’h: -3.375dB a’h: -3.750dB b’h: -4.125dB C’h: -4.5dB d’h: -4.875dB e’h: -5.250dB f’h: -5.625dB 11:8 R/W 0’h Fine gain for L-ch 0’h: 0dB 1’h: -0.375dB 2’h: -0.750dB 3’h: -1.125B 4’h: -1.5dB 5’h: -1.875dB 6’h: -2.25dB 7’h: -2.625dB 8’h: -3.0dB 9’h: -3.375dB a’h: -3.750dB b’h: -4.125dB C’h: -4.5dB d’h: -4.875dB e’h: -5.250dB f’h: -5.625dB 7:4 R/W 6’h Coarse gain for R-ch 0’h: -42dB 1’h: -36dB 2’h: -30dB 3’h: -24dB 4’h: -18dB 5’h: -12dB 6’h: -6dB 7’h: 0dB 8’h: 6dB 9’h: 12dB a’h: 18dB b’h: 24dB C’h: 30dB d’h: 36dB e’h: 42dB f’h: 42dB 3:0 R/W 6’h Coarse gain for L-ch 0’h: -42dB 1’h: -36dB 2’h: -30dB 3’h: -24dB 4’h: -18dB 5’h: -12dB 6’h: -6dB 7’h: 0dB 8’h: 6dB 9’h: 12dB a’h: 18dB b’h: 24dB C’h: 30dB d’h: 36dB e’h: 42dB f’h: 42dB 8.77. MX-BAh: SNC Control 3 Default: 000B’h Name reserved En_snc_corner_diff Sel_snc_corner_r Table 97. MX-BAh: SNC Control 3 Bits Read/Write Reset State Description 15:7 R/W 6 R/W 0’h Reserved 0’h SNC LPF Corner Tune For Channel Select 0’b: Select L-CH for both channel 1’b: Individual control 5:0 R/W B’h SNC LPF Corner Tune for Right Channel Multi-Channel Audio Hub/CODEC with embedded Voice 108 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.78. MX-BBh: Jack Detection Control 1 Default: 0000’h Name sel_jd_source reserved en_jd_hpo polarity_jd_tri_hpo en_jd_spo_l polarity_jd_tri_spo_l en_jd_spo_r polarity_jd_tri_spo_r en_jd_mono polarity_jd_tri_mono en_jd_lout polarity_jd_tri_lout reserved Bits 15:13 12 11 10 9 8 7 6 5 4 3 2 1:0 Table 98. Read/Write R/W R R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W MX-BBh: Jack Detection Control 1 Reset State Description 0’h Jack Detect Selection 000’b: OFF 001’b: GPIO1 010’b: JD1 and enable IN1N pin share 011’b: JD2 and enable IN2N pin share 100’b: GPIO2 Others: Reserved 0’h Reserved 0’h Enable Jack Detect Trigger HPOUT 0’b: Disable 1’b: Enable 0’h Select Jack Detect Polarity Trigger HPOUT 0’b: Low trigger 1’b: High trigger 0’h Enable Jack Detect Trigger SPK_OUT_LP/LN 0’b: Disable 1’b: Enable 0’h Select Jack Detect Polarity Trigger SPO_LP/LN 0’b: Low trigger 1’b: High trigger 0’h Enable Jack Detect Trigger SPO_RP/RN 0’b: Disable 1’b: Enable 0’h Select Jack Detect Polarity Trigger SPO_RP/RN 0’b: Low trigger 1’b: High trigger 0’h Enable Jack Detect Trigger MONOOUT 0’b: Disable 1’b: Enable 0’h Select Jack Detect Polarity Trigger MONOOUT 0’b: Low trigger 1’b: High trigger 0’h Enable Jack Detect Trigger LOUT 0’b: Disable 1’b: Enable 0’h Select Jack Detect Polarity Trigger LOUT 0’b: Low trigger 1’b: High trigger 0’h reserved Multi-Channel Audio Hub/CODEC with embedded Voice 109 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.79. MX-BCh: Jack Detection Control 2 Default: 0000’h Table 99. MX-BCh: Jack Detection Control 2 Name Bits Read/Write Reset State Description reserved 15:6 R 0’h Reserved en_snc_det 5:4 R/W 0’h Select Detection Source for SNC On/Off Mode 00’b: Disable 01’b: From MICBIAS1 Over-Current (sta_micbias1_ovcd) 10’b: Reserved 11’b: From JD (sta_jd_internal) polarity_snc_det 3 R/W 0’h Select SNC Detection Polarity Trigger for SNC On/Off Mode 0’b: Low trigger 1’b: High trigger En_sncmon_det 2:1 R/W 0’h Enable Detection Source for SNC Monitor Mode 00’b: Disable 01’b: From MICBIAS1 Over-Current (sta_micbias1_ovcd) 10’b: Reserved 11’b: From JD (sta_jd_internal) polarity_sncmon_det 0 R/W 0’h Select SNCMON Detection Polarity Trigger for SNC Monitor Mode 0: Low trigger 1: High trigger 8.80. MX-BDh: IRQ Control 1 Default: 0000’h Name en_irq_jd en_irq_ovtd en_jd_sticky en_ovt_sticky inv_jd Table 100. MX-BDh: IRQ Control 1 Bits Read/Write Reset State Description 15 R/W 0’h IRQ Output Source Configure of Jack Detection Status 0’b: Disable 1’b: Enable 14 R/W 0’h IRQ Output Source Configure of Over Temperature Status 0’b: Disable 1’b: Enable 13 R/W 0’h Sticky Control for Jack Detect 0’b: Disable 1’b: Enable 12 R/W 0’h Sticky Control for Over Temperature 0’b: Disable 1’b: Enable 11 R/W 0’h Jack Detection Status Polarity 0’b: Normal 1’b: Output Invert Multi-Channel Audio Hub/CODEC with embedded Voice 110 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name inv_ovtd reserved Bits Read/Write Reset State Description 10 R/W 0’h Over Temperature Status Polarity 0’b: Normal 1’b: Output Invert 9:0 R 0’h Reserved ALC5642-VF Datasheet 8.81. MX-BEh: IRQ Control 2 Default: 0000’h Name en_irq_micbias1_ovc d reserved en_micbias1_ovcd_st icky reserved inv_micbias1_ovcd reserved Ovc_micbias1 Reserved Bits 15 14:12 11 10:8 7 6:4 3 2:0 Table 101. MX-BEh: IRQ Control 2 Read/Write Reset State Description R/W 0’h IRQ Output Source Configure of MICBIAS1 Over Current Status 0’b: Disable 1’b: Enable R/W 0’h Reserved R/W 0’h Sticky Control for MICBIAS1 Over Current 0’b: Disable 1’b: Enable R/W 0’h Reserved R/W 0’h MICBIAS1 over current status polarity 0’b: Normal 1’b: Output Invert R 0’h Reserved R 0’h MICBIAS1 Over Current Status Read: return status of each status pin Write: Write ‘0’ to clear stick bit R 0’h Reserved 8.82. MX-BFh: GPIO and Internal Status Default: 0000’h Name reserved sta_gpio1 sta_gpio2 reserved sta_jd_internal Table 102. MX-BFh: GPIO and Internal Status Bits Read/Write Reset State Description 15:9 R 0’h Reserved 8 R 0’h GPIO1 Pin Status Read: return status of each GPIO pin 7 R 0’h GPIO2 Pin Status Read: return status of each GPIO pin 6:5 R 0’h reserved 4 R 0’h JD Status Read: Return status of Jack Detect Select output Write: Write ‘0’ to clear stick bit Multi-Channel Audio Hub/CODEC with embedded Voice 111 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name ovt_status reserved sta_ovcd Bits Read/Write Reset State Description 3 R 0’h Over Temperature Status Read: return status of each status pin Write: Write ‘0’ to clear stick bit 2:1 R 0’h Reserved 0 R 0’h Speaker amplifier over current status Read: return status of each status pin ALC5642-VF Datasheet 8.83. MX-C0h: GPIO Control 1 Default: 0400’h Name sel_gpio1_type sel_gpio2_type reserved Table 103. MX-C0h: GPIO Control 1 Bits Read/Write Reset State Description 15 R/W 0’h GPIO1 Pin Function Select 0’b: GPIO1 1’b: IRQ output 14 R/W 0’h GPIO2 Pin Function Select 0’b: GPIO2 1’b: DMIC1_SCL 13:0 R/W 400’h Reserved 8.84. MX-C2h: GPIO Control 2 Default: 0000’h Name reserved sel_gpio2 sel_gpio2_logic inv_gpio2 sel_gpio1 sel_gpio1_logic Table 104. MX-C2h: GPIO Control 2 Bits Read/Write Reset State Description 15:6 R/W 0’h Reserved 5 R/W 0’h GPIO2 Pin Configuration 0’b: Input 1’b: Output 4 R/W 0’h GPIO2 Output Pin Control 0’b: Drive Low 1’b: Drive High 3 R/W 0’h GPIO2 Pin Polarity 0’b: Normal 1’b: Output Invert 2 R/W 0’h GPIO1 Pin Configuration 0’b: Input 1’b: Output 1 R/W 0’h GPIO1 Output Pin Control 0’b: Drive Low 1’b: Drive High Multi-Channel Audio Hub/CODEC with embedded Voice 112 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name inv_gpio1 Bits Read/Write Reset State Description 0 R/W 0’h GPIO1 Pin Polarity 0’b: Normal 1’b: Output Invert ALC5642-VF Datasheet 8.85. MX-C4h: Voice DSP Control 1 Default: 0000’h Name Aec_addr Table 105. MX-C4h: Voice DSP Control 1 Bits Read/Write Reset State Description 15:0 R/W 0’h Voice DSP Register Address 8.86. MX-C5h: Voice DSP Control 2 Default: 0000’h Name Aec_data Table 106. MX-C5h: Voice DSP Control 2 Bits Read/Write Reset State Description 15:0 R/W 0’h Voice DSP Register Data 8.87. MX-C6h: Voice DSP Control 3 Default: 2000’h Name Aec_busy reserved fm34_clk_sel f_pdb f_prst Bits 15 14 13:12 11 10 Table 107. MX-C6h: Voice DSP Control 3 Read/Write Reset State Description R 0’h Voice DSP I2C Busy Flag 0’b: Normal 1’b: Busy R/W 0’h reserved R/W 2’h Voice DSP Clock Source Select 00’b: 12.288MHz (Internal I2C SCL = 384KHz) 01’b: 6.144MHz (Internal I2C SCL = 192KHz) 10’b: 3.072MHz (Internal I2C SCL = 96KHz) 11’b: 2.048MHz (Internal I2C SCL = 64KHz) R/W 0’h Power Down Control for Voice DSP 0’b: Power Down 1’b: Power On R/W 0’h Reset Control for Voice DSP 0’b: Reset 1’b: Normal Multi-Channel Audio Hub/CODEC with embedded Voice 113 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name aec_read aec_write reserved Bits Read/Write Reset State Description 9 R/W 0’h Voice DSP Read Enable 0’b: Disable 1’b: Enable 8 R/W 0’h Voice DSP Write Enable 0’b: Disable 1’b: Enable 7:0 R/W 0’h Reserved ALC5642-VF Datasheet 8.88. MX-C8h: Programmable Register Array Control 1 Default: 0000’h Name sequencer sta_seq1_ready sta_seq2_ready reg_level sequence_write reg_index Table 108. MX-C8h: Programmable Register Array Control 1 Bits Read/Write Reset State Description 15:12 R/W 0’h Register Sequencer 0 ~ 16 11 R 0’h The Processing Status of Sequence-1 0’b: Sequence-1 is running 1’b: Sequence-1 is finished 10 R 0’h The Processing Status of Sequence-2 0’b: Sequence-2 is running 1’b: Sequence-2 is finished 9 R/W 0’h Register Level Selection 0’b: MX register 1’b: PR register 8 R/W 0’h Write Sequences to Programmable Table Write “1” to execute, then clear to “0” 7:0 R/W 00’h Register Index 00’h ~ FF’h 8.89. MX-C9h: Programmable Register Array Control 2 Default: 0000’h Name Reg_data Table 109. MX-C9h: Programmable Register Array Control 2 Bits Read/Write Reset State Description 15:0 R/W 0’h Register Data 0000’h ~ FFFF’h Multi-Channel Audio Hub/CODEC with embedded Voice 114 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.90. MX-CAh: Programmable Register Array Control 3 Default: 0000’h Name sequence_delay pro_reg_en sequence_run_1 sequence_run_2 reserved Table 110. MX-CAh: Programmable Register Array Control 3 Bits Read/Write Reset State Description 15:8 R/W 00’h Delay Time Between the Sequencer 00’h: No delay time, delay function off 01’h ~ FF’h (100us ~ 100ms) 7 R/W 0’h Control The Programmable Register 0’b: Disable 1’b: Enable 6 R 0’h Run Sequence-1 from Programmable Table Write “1” to execute, then clear to “0” 0’b: Normal 1’b: Write 5 R 0’h Run Sequence-2 from Programmable Table Write “1” to execute, then clear to “0” 0’b: Normal 1’b: Write 4:0 R 0’h Reserved 8.91. MX-CBh: Programmable Register Array Control 4 Default: 0000’h Name reserved sequence_1_start reserved sequence_1_end Table 111. MX-CBh: Programmable Register Array Control 4 Bits Read/Write Reset State Description 15:12 R 0’h Reserved 11:8 R/W 00’h Start for Sequence-1 00’h ~ 15’h 7:4 R 0’h Reserved 3:0 R/W 00’h End for Sequence-1 00’h ~ 15’h 8.92. MX-CCh: Programmable Register Array Control 5 Default: 0000’h Name reserved sequence_2_start Table 112. MX-CCh: Programmable Register Array Control 5 Bits Read/Write Reset State Description 15:12 R 0’h Reserved 11:8 R/W 00’h Start for Sequence-2 00’h ~ 15’h Multi-Channel Audio Hub/CODEC with embedded Voice 115 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name reserved sequence_2_end Bits Read/Write Reset State Description 7:4 R 0’h Reserved 3:0 R/W 00’h End for Sequence-2 00’h ~ 15’h ALC5642-VF Datasheet 8.93. MX-CFh: SounzReal BassBack Control Default: 0013’h Name En_bb Sel_bb_coef Reserved Bb_boost_gain Table 113. MX-CFh: SounzReal BassBack Control Bits Read/Write Reset State Description 15 R/W 0’h Enable BassBack Function 0’b: Disable 1’b: Enable 14:12 R/W 0’h Select Control for BassBack Coefficient Type 000’b: Type A 001’b: Type B 010’b: Type C 011’b: Type D 1xx’b: Reserved 11:6 R 0’h Reserved 5:0 R/W 13’h Select Control BassBack Boost Gain 000001’b: 1.5dB 000010’b: 3dB ……… 010011’b: 24dB ……… 011111’b: 42dB, with 1.5dB/Step 8.94. MX-D0h: SounzReal TruTreble Control 1 Default: 0680’h Name reserved En_mp Table 114. MX-D0h: SounzReal TruTreble Control 1 Bits Read/Write Reset State Description 15:14 R/W 0’h Reserved 13 R/W 0’h Enable TruTreble Function 0’b: Disable 1’b: Enable Multi-Channel Audio Hub/CODEC with embedded Voice 116 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name Mp_eg reserved  Eg 1 2 3 4 5 6 7 8 9 10 Bits Read/Write Reset State Description 12:8 R/W 6’h TruTreble Enhanced Gain Control  00000’b: -11.625dB 00001’b: -10.5dB ………. 00110’b: -3dB ........... 10100’b: 7.5dB 7:0 R/W 80’h Reserved Enhanced Gain Eg Enhanced Gain -11.625dB 11 2.25 dB -10.5 dB 12 3 dB -9 dB 13 3.75 dB -6.75 dB 14 4.5 dB -4.5 dB 15 4.875 dB -3 dB 16 5.625 dB -1.875 dB 17 6 dB -0.375 dB 18 6.375 dB 0.375 dB 19 7.125 dB 1.5 dB 20 7.5 dB ALC5642-VF Datasheet 8.95. MX-D1h: SounzReal TruTreble Control 2 Default: 1C17’h Name reserved mp_hp_wt mp_og reserved Table 115. MX-D1h: SounzReal TruTreble Control 2 Bits Read/Write Reset State Description 15:14 R 13 R/W 0’h Reserved 0’h Select The Harmonic Weighting 12:8 R/W 1C’h 0’b: a = 1/4(default) 1’b: a = 1/2 Select The Origin Signal Gain 00000’b: -5.8125dB 00001’b: -5.625dB … 10111’b: -0.5625 dB 7:6 R ... 11111’b: 12dB, with 0.1875dB/Step 0’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 117 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name mp_hg ALC5642-VF Datasheet Bits Read/Write Reset State Description 5:0 R/W 17’h Select High Frequency Harmonic Gain (0.375 /step) 000000’b: -11.625dB 000001’b: -11.25dB … 010111’b: -3dB ... 111111’b: 12dB, with 0.375dB/Step 8.96. MX-D2h: SounzReal OmniHeadphone Control Default: 8C00’h Name reserved en_hp3d en_bt hp3d_lf_mixer_mode sel_hp3d_mode reserved Table 116. MX-D2h: SounzReal OmniHeadphone Control Bits Read/Write Reset State Description 15 R/W 14 R/W 1’h Reserved 0’h Enable OmniHeadphone 0’b: Disable 1’b: Enable 13 R/W 12:11 R/W 0’h Enable OmniHeadphone True Bass 0’b: Disable 1’b: Enable 1’h OmniHeadphone LF Mixer Mode Selection 00'b: Mode-1 01'b: Mode-2 10'b: Mode-3 10 R/W 10'b: Reserved 1’h Select Control for OmniHeadphone Mode 0’b: Surround mode 9:0 R/W 1’b: Front mode 0’h Reserved 8.97. MX-D3h: Wind Filter Control – Enable/Disable Default: AA20’h Name adj_hpf_2nd_en Table 117. MX-D3h: Wind Filter Control – Enable/Disable Bits Read/Write Reset State Description 15 R/W 1’h Enable Adjustable 2nd Wind Filter 0'b : Disable (bypass mode) 1'b : Enable Multi-Channel Audio Hub/CODEC with embedded Voice 118 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name adj_hpf_coef_l_sel narrow_hpf_en adj_hpf_coef_r_sel reserved Bits 14:12 11 10:8 7:0 Read/Write R/W R/W R/W R/W Reset State Description 2’h Left Channel Sample Rate Selection 000'b: 12k or 16k 001'b: 24k or 32k 010'b: 48k or 44.1k 011'b: 96k or 88.2k 100'b: 192k or 176.4k 1’h Enable 1st Narrow Band Wind Filter 0'b : Disable (bypass mode) 1'b :Enable 2’h Right Channel Sample Rate Selection 000'b: 12k or 16k 001'b: 24k or 32k 010'b: 48k or 44.1k 011'b: 96k or 88.2k 100'b: 192k or 176.4k 20’h Reserved ALC5642-VF Datasheet 8.98. MX-D9h: Soft Volume & ZCD Control Default: 0809’h Name en_softvol en_spo_svol en_o_svol en_hpo_svol en_zcd_digital pow_zcd En_zcd_recmixl En_zcd_recmixr Table 118. MX-D9h: Soft Volume & ZCD Control Bits Read/Write Reset State Description 15 R/W 0’h Digital Soft Volume Delay Control 0’b: Disable 1’b: Enable 14 R/W 0’h SPOVOLL/R Soft Volume Delay Control 0’b: Disable 1’b: Enable 13 R/W 0’h OUTVOLL/R Soft Volume Delay Control 0’b: Disable 1’b: Enable 12 R/W 0’h HPOVOLL/R Soft Volume Delay Control 0’b: Disable 1’b: Enable 11 R/W 1’h Digital Volume Zero Crossing Detection Control 0’b: Disable 1’b: Enable 10 R/W 0’h Power On Zero Crossing 0’b: Power Down 1’b: Power On 9 R/W 0’h RECMIXL Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable 8 R/W 0’h RECMIXR Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable Multi-Channel Audio Hub/CODEC with embedded Voice 119 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name En_zcd_spkmixl En_zcd_spkmixr En_zcd_outmixl En_zcd_outmixr sel_svol ALC5642-VF Datasheet Bits Read/Write Reset State Description 7 R/W 0’h SPKMIXL Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable 6 R/W 0’h SPKMIXR Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable 5 R/W 0’h OUTMIXL Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable 4 R/W 0’h OUTMIXR Mute/Un-Mute ZCD Control 0’b: Disable 1’b: Enable 3:0 R/W 9’h Soft Volume Change Delay Time 0000: 1 SVSYNC 0001: 2 SVSYNC 0010: 4 SVSYNC 0011: 8 SVSYNC 0100: 16 SVSYNC 0101: 32 SVSYNC 0110: 64 SVSYNC 0111: 128 SVSYNC 1000: 256 SVSYNC 1001: 512 SVSYNC 1010: 1024 SVSYNC Others: Reserved Note: SVSYNC=1/Fs, Step:-1.5dBFS 8.99. MX-FAh: General Control 1 Default: 3400’h Table 119. MX-FAh: General Control 1 Name Bits Read/Write Reset State Description Reserved 15 R/W 0’h Reserved En_lout_df 14 R/W 0’h Enable Differential Output for LOUT 0’b: Disable 1’b: Enable LOUTL => LOUTL LOUTR => (inv)LOUTR Mu_mono_adc_vol_l 13 R/W 1’h Digital Mute Control for Mono Left ADC Filter to I2S 0’b: Un-Mute 1’b: Mute Mu_mono_adc_vol_r 12 R/W 1’h Digital Mute Control for Mono Right ADC Filter to I2S 0’b: Un-Mute 1’b: Mute Multi-Channel Audio Hub/CODEC with embedded Voice 120 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Name Bits Read/Write Reset State Description Mclk_detection 11 R/W 0’h System Clock Detection Enable Control 0’b: Disable 1’b: Enable (When detect no clock input, will auto switch to internal clock) Sel_irq_debounce 10 R/W 1’h Select IRQ Output Debounce Clock 0’b: From internal clock 1’b: From MCLK En_in1_se 9 R/W 0’h IN1 Single-End Input Control 0’b: Disable 1’b: Enable En_in2_se 8 R/W 0’h IN2 Single-End Input Control 0’b: Disable 1’b: Enable Reserved 7 R/W 0’h Reserved Sel_clk_ad_src 6 R/W 0’h Clock Select for Stereo ADC 0’b: Normal mode 1’b: Asynchronous mode Sel_clk_ad_src_mono 5 R/W 0’h Clock Select for Left Mono ADC _l 0’b: Normal mode 1’b: Asynchronous mode Sel_clk_ad_src_mono 4 R/W 0’h Clock Select for Right Mono ADC _r 0’b: Normal mode 1’b: Asynchronous mode reserved 3:1 R/W 0’h Reserved Digital_gate_ctrl 0’h R/W 0’h I2S Clock Gating Control 0’b: Gating input clock 0’b: Enable input clock 8.100. MX-FBh: General Control 2 Default: 0000’h Name Reserved En_irq_jd2 Sta_jd2_internal Inv_jd2 En_jd2_sticky Bits 15:13 12 11 10 9 Table 120. MX-FBh: General Control 2 Read/Write Reset State Description R/W 0’h Reserved R/W 0’h IRQ Output Source Configuration for JD2 0’b: Disable 1’b: Enable R 0’h JD2 Status Read: Return status of JD2 Write: Write ‘0’ to clean sticky bit R/W 0’h JD2 Status Polarity 0’b: Normal 1’b: Output Invert R/W 0’h Sticky Control for JD2 0’b: Disable 1’b: Enable Multi-Channel Audio Hub/CODEC with embedded Voice 121 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name En_jd2 sel_rxdc Reserved Sel_rxdp Reserved ALC5642-VF Datasheet Bits Read/Write Reset State Description 8 R/W 0’h Enable JD2 Function for Extra JD Status 0’b: Disable 1’b: Enable 7 R/W 0’h Select DSP RxDC Source 0:Mono_ADC_Mixer_L / R 1:Stereo_ADC_Mixer_L / R 6 R/W 0’h Reserved 5:4 R/W 0’h For DSP Interface I2S Format Control 00’b: Disable 01’b: 19.2MHz/50FS/48kHz 10’b: 19.2MHz/50FS/16kHz 11’b: 19.2MHz/50FS/8kHz 3 R/W 0’h Voice DSP RXDP Source Selection 0’b: From IF2_ADC 1’b: From Stereo_ADC 2 R/W 0’h I2S1 Format Control (19.2MHz/50FS/48kHz) 0’b: Disable 1’b: Enable 1 R/W 0’h I2S2 Format Control (19.2MHz/50FS/48kHz) 0’b: Disable 1’b: Enable 0 R/W 0’h Reserved 8.101. MX-FCh: General Control 3 Default: 0001’h Name Reserved sel_stereo_adc_filter Reserved Table 121. MX-FCh: General Control 3 Bits Read/Write Reset State Description 15:3 R 2 R/W 0’h Reserved 0’h Select the Stereo ADC Clock Source 0’b: CLK_Stereo_Filter 1’b: CLK_Mono_Filter 1:0 R/W 1’h Reserved 8.102. PR-3Dh: ADC/DAC RESET Control Default: 2400’h Name Reserved Table 122. PR-3Dh: ADC/DAC RESET Control Bits Read/Write Reset State Description 15:13 R/W 1’h Reserved Multi-Channel Audio Hub/CODEC with embedded Voice 122 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name En_ckgen_adc Reserved En_ckgen_dac Reserved Bits 12 11:10 9 8:0 Read/Write R/W R/W R/W R/W Reset State Description 0’h Enable ADC Clock Generator 0’b: Disable 1’b: Enable 1’h Reserved 0’h Enable DAC Clock Generator 0’b: Disable 1’b: Enable 0’h Reserved ALC5642-VF Datasheet 8.103. PR-3Fh: Digital Path Control Default: 0000’h Name Reserved Sel_txdc_txdp_to_da cr2 Reserved rx_lr_mixer sel_rxdp_2 sel_rxdp_1 sel_i2s_in_112 Reserved Bits 15 14 13:12 11 10 9 8 7:0 Table 123. PR-3Fh: Digital Path Control Read/Write Reset State Description R 0’h Reserved R/W 0’h Select DACR2 Source 0’b: From TXDC_R 1’b: From TXDP_R R 0’h Reserved R/W 0’h DSP RxDP L / R channel data control. 0’b: L / L ( Original ) 1’b: (L+R)/2 / (L+R)/2 R/W 0’h Select DSP RxDP Source 0:IF2_DAC_L/R and Stereo_ADC_L/R 1:DACL/R and IF1_DAC_L/R R/W 0’h Select DSP RxDP Source 0:DACL/R 1:IF1_DAC_L/R R/W 0’h Select I2S Input Configuration 0:Normal 1:112 I2S1 => BCLK1/LRCK1/DACDAT1/ADCDAT1 I2S2 => BCLK1/LRCK1/DACDAT1/ADCDAT1 I2S3 => BCLK2/LRCK2/DACDAT2/ADCDAT2 R 0’h Reserved 8.104. PR-63h: SounzReal OmniSound Control Default: 3737’h Multi-Channel Audio Hub/CODEC with embedded Voice 123 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name spk3d_en spk3d_mix_mode spk3d_center_gain reserved spk3d_surr_gain ALC5642-VF Datasheet Table 124. PR-63h: SounzReal OmniSound Control Bits Read/Write Reset State Description 15 R/W 14:13 R/W 12:8 R/W 0’h OmniSound Function Enable Control 0’b: Disable 1’b: Enable 1’h OmniSound L/R Channel Mixing Mode 00’b: L+R, 01’b: L+0.5R, 10’b: L+0.25R, 11’b: L+0.125R 17’h OmniSound Center Part Gain Control 00’h: -23.25dB … 7:5 R/W 4:0 R/W 17’h: -6dB … 1f’h: 0dB, with 0.75dB/Step 1’h Reserved 17’h OmniSound Surround Part Gain Control 00’h: -17.25dB … 17’h: 0dB … 1f’h: 6dB, with 0.75dB/Step 8.105. PR-6Ch: Wind Detector Control 1 Default: 1AC5’h Name en_wnr reserved Table 125. PR-6Ch: Wind Detector Control 1 Bits Read/Write Reset State Description 15 R/W 14:0 R/W 0’h 1AC5’h Enable Wind Noise Detection 0’b: Disable 1’b: Enable Reserved 8.106. PR-6Dh: Wind Detector Control 2 Default: 00C0’h Name sel_wnr_fc_nowind Bits 15:10 Table 126. PR-6Dh: Wind Detector Control 2 Read/Write Reset State Description R/W 0’h Pre-Determined Fc When No Wind in Wind Noise Detector 0:30Hz, 1:60Hz, …, 2170Hz Multi-Channel Audio Hub/CODEC with embedded Voice 124 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 Name sel_wnr_fc_breeze reserved ALC5642-VF Datasheet Bits Read/Write Reset State Description 9:4 R/W C’h Pre-Determined Fc When Weak Wind in Wind Noise Detector 0:30Hz, 1:60Hz, …, 2170Hz 3:0 R/W 0’h Reserved 8.107. PR-6Eh: Wind Detector Control 3 Default: 3019’h Name reserved sel_hpf_fc sel_wnr_fc_storm Bits 15:12 11:6 5:0 Table 127. PR-6Eh: Wind Detector Control 3 Read/Write Reset State Description R/W 3’h Reserved R/W 0’h Wind Filter Fc Selection 0:30Hz, 1:40Hz, …, 63:1030Hz R/W 19’h Pre-Determined Fc When Strong Wind in Wind Noise Detector 0:30Hz, 1:60Hz, …, 2170Hz 8.108. PR-6Fh: Wind Detector Control 4 Default: 4096’h Name reserved sel_wnr_ff_th_lo Bits 15:10 9:0 Table 128. PR-6Fh: Wind Detector Control 4 Read/Write Reset State Description R/W 10’h Reserved R/W 96’h Threshold Setting Between No Wind and Weak Wind 8.109. PR-70h: Wind Detector Control 5 Default: C0BE’h Name reserved sel_wnr_ff_th_hi Bits 15:10 9:0 Table 129. PR-70h: Wind Detector Control 5 Read/Write Reset State Description R/W 18’h Reserved R/W BE’h Threshold Setting Between Weak Wind and Strong Wind Multi-Channel Audio Hub/CODEC with embedded Voice 125 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 8.110. PR-73h: Wind Detector Control 6 Default: 0000’h Name reserved fg_wnr_wind fg_wnr_strong reserved Bits 15:14 13 12 11:0 Table 130. PR-73h: Wind Detector Control 6 Read/Write Reset State Description R 0’h Reserved R 0’h A Flag Indicate Wind Status 0’b: No Wind 1’b: Weak Wind R 0’h A Flag Indicate Wind Status 0’b: Weak Wind 1’b: Strong Wind R 0’h Reserved ALC5642-VF Datasheet 8.111. PR-75h: SounzReal Dipole Speaker Control Default: 5000’h Name attenuate_ctrl reserved dp_spk_en reserved Table 131. PR-75h: SounzReal Dipole Speaker Control Bits Read/Write Reset State Description 15:14 R/W 1’h Dipole Speaker Attenuate Control 00’b: 1.5dB 01’b: 3dB 10’b: 4.5dB 11’b: 6dB 13:11 R/W 2’h Reserved 10 R/W 0’h Enable Dipole Speaker 0’b: Disable 1’b: Enable 9:0 R 0’h Reserved 8.112. PR-A0h: EQ Low Pass Filter Coefficient (LPF:a1) Default: 1C10’h Name lpf_a1 Table 132. PR-A0h: EQ Low Pass Filter Coefficient (LPF:a1) Bits Read/Write Reset State Description 15:0 R/W 1C10’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) Multi-Channel Audio Hub/CODEC with embedded Voice 126 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.113. PR-A1h: EQ Low Pass Filter Gain (LPF:H0) Default: 01F4’h Name lpf_h0 Table 133. PR-A1h: EQ Low Pass Filter Gain (LPF:H0) Bits Read/Write Reset State Description 15:0 R/W 01F4’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.114. PR-A2h: EQ Band 1 Coefficient (BPF1:a1) Default: C5E9’h Name Bpf1_a1 Table 134. PR-A2h: EQ Band 1 Coefficient (BPF1:a1) Bits Read/Write Reset State Description 15:0 R/W C5E9’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) 8.115. PR-A3h: EQ Band 1 Coefficient (BPF1:a2) Default: 1A98’h Name Bpf1_a2 Table 135. PR-A3h: EQ Band 1 Coefficient (BPF1:a2) Bits Read/Write Reset State Description 15:0 R/W 1A98’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a2 should be in -2 ~ 1.99) 8.116. PR-A4h: EQ Band 1 Gain (BPF1:H0) Default: 1D2C’h Name Bpf1_h0 Table 136. PR-A4h: EQ Band 1 Gain (BPF1:H0) Bits Read/Write Reset State Description 15:0 R/W 1D2C’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) Multi-Channel Audio Hub/CODEC with embedded Voice 127 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.117. PR-A5h: EQ Band 2 Coefficient (BPF2:a1) Default: C882’h Name Bpf2_a1 Table 137. PR-A5h: EQ Band 2 Coefficient (BPF2:a1) Bits Read/Write Reset State Description 15:0 R/W C882’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) 8.118. PR-A6h: EQ Band 2 Coefficient (BPF2:a2) Default: 1C10’h Name Bpf2_a2 Table 138. PR-A6h: EQ Band 2 Coefficient (BPF2:a2) Bits Read/Write Reset State Description 15:0 R/W 1C10’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a2 should be in -2 ~ 1.99) 8.119. PR-A7h: EQ Band 2 Gain (BPF2:H0) Default: 01F4’h Name Bpf2_h0 Table 139. PR-A7h: EQ Band 2 Gain (BPF2:H0) Bits Read/Write Reset State Description 15:0 R/W 01F4’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.120. PR-A8h: EQ Band 3 Coefficient (BPF3:a1) Default: E904’h Name Bpf3_a1 Table 140. PR-A8h: EQ Band 3 Coefficient (BPF3:a1) Bits Read/Write Reset State Description 15:0 R/W E904’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) Multi-Channel Audio Hub/CODEC with embedded Voice 128 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.121. PR-A9h: EQ Band 3 Coefficient (BPF3:a2) Default: 1C10’h Name Bpf3_a2 Table 141. PR-A9h: EQ Band 3 Coefficient (BPF3:a2) Bits Read/Write Reset State Description 15:0 R/W 1C10’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a2 should be in -2 ~ 1.99) 8.122. PR-AAh: EQ Band 3 Gain (BPF3:H0) Default: 01F4’h Name Bpf3_h0 Table 142. PR-AAh: EQ Band 3 Gain (BPF3:H0) Bits Read/Write Reset State Description 15:0 R/W 01F4’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.123. PR-ABh: EQ Band 4 Coefficient (BPF4:a1) Default: E904’h Name Bpf4_a1 Table 143. PR-ABh: EQ Band 4 Coefficient (BPF4:a1) Bits Read/Write Reset State Description 15:0 R/W E904’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) 8.124. PR-ACh: EQ Band 4 Coefficient (BPF4:a2) Default: 1C10’h Name Bpf4_a2 Table 144. PR-ACh: EQ Band 4 Coefficient (BPF4:a2) Bits Read/Write Reset State Description 15:0 R/W 1C10’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a2 should be in -2 ~ 1.99) Multi-Channel Audio Hub/CODEC with embedded Voice 129 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.125. PR-ADh: EQ Band 4 Gain (BPF4:H0) Default: 01F4’h Name Bpf4_h0 Table 145. PR-ADh: EQ Band 4 Gain (BPF4:H0) Bits Read/Write Reset State Description 15:0 R/W 01F4’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.126. PR-AEh: EQ High Pass Filter 1 Coefficient (HPF1:a1) Default: 1C10’h Name Hpf1_a1 Table 146. PR-AEh: EQ High Pass Filter 1 Coefficient (HPF1:a1) Bits Read/Write Reset State Description 15:0 R/W 1C10’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) 8.127. PR-AFh: EQ High Pass Filter 1 Gain (HPF1:H0) Default: 01F4’h Name Hpf1_h0 Table 147. PR-AFh: EQ High Pass Filter 1 Gain (HPF1:H0) Bits Read/Write Reset State Description 15:0 R/W 01F4’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.128. PR-B0h: EQ High Pass Filter 2 Coefficient (HPF2:a1) Default: 2000’h Name Hpf2_a1 Table 148. PR-B0h: EQ High Pass Filter 2 Coefficient (HPF2:a1) Bits Read/Write Reset State Description 15:0 R/W 2000’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a1 should be in -2 ~ 1.99) Multi-Channel Audio Hub/CODEC with embedded Voice 130 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet 8.129. PR-B1h: EQ High Pass Filter 2 Coefficient (HPF2:a2) Default: 0000’h Name Hpf2_a2 Table 149. PR-B1h: EQ High Pass Filter 2 Coefficient (HPF2:a2) Bits Read/Write Reset State Description 15:0 R/W 0000’h 2’s complement in 3.13 format. (The range is from –4~3.99, the a2 should be in -2 ~ 1.99) 8.130. PR-B2h: EQ High Pass Filter 2 Gain (HPF2:H0) Default: 2000’h Name Hpf2_h0 Table 150. PR-B2h: EQ High Pass Filter 2 Gain (HPF2:H0) Bits Read/Write Reset State Description 15:0 R/W 2000’h 2’s complement in 3.13 format. (The range is from –4~3.99, the H0 should be in -4 ~ 3.99) 8.131. MX-FEh: Vendor ID Default: 10EC’h Name Vendor_id Table 151. MX-FEh: Vendor ID Bits Read/Write Reset State Description 15:0 R 10EC’h Vendor ID Multi-Channel Audio Hub/CODEC with embedded Voice 131 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 9. Electrical Characteristics ALC5642-VF Datasheet 9.1. DC Characteristics 9.1.1. Absolute Maximum Ratings Table 152. Absolute Maximum Ratings Parameter Symbol Min Typ Max Power Supplies Digital IO Buffer DBVDD -0.3 - 3.63 Digital Core DCVDD -0.3 - 1.4 Analog AVDD -0.3 - 1.98 Analog DACREF -0.3 - 1.98 Headphone CPVDD -0.3 - 1.98 Micbias Speaker MICVDD -0.3 - 3.63 SPKVDD -0.3 - 71 Operating Ambient Temperature Ta -25 - +85 Storage Temperature Ts -55 - +125 Note 1: SPKVDD=5V with 3.5% duty cycle Power bouncing up to SPKVDD=7V is acceptable. Units V V V V V V V oC oC 9.1.2. Recommended Operating Conditions Table 153. Recommended Operating Conditions Parameter Symbol Min Typ Max Units Digital IO Buffer DBVDD 1.71 1.8 3.6 V Digital Core DCVDD 1.15 1.2 1.3 V Analog AVDD 1.71 1.8 1.9 V Analog DACREF 1.71 1.8 1.9 V Headphone CPVDD 1.71 1.8 1.9 V Micbias Speaker MICVDD 3.0 3.3 3.6 V SPKVDD1 3.0 3.6/5.0 5.5 V Note 1: A 10µF Capacitor must be connected from SPKVDD to SPKGND, and should be placed as close as possible to the SPKVDD pin. 9.1.3. Static Characteristics Table 154. Parameter Symbol Input Voltage Range VIN Low Level Input Voltage VIL High Level Input Voltage VIH High Level Output Voltage VOH Low Level Output Voltage VOL Output Buffer High Drive Current - Output Buffer Low Drive Current - Input Buffer Pull-Up Resistor - Input Buffer Pull-Down Resistor - Note: DBVDD=1.8V, DCVDD=1.2V, Tambient=40C. Static Characteristics Min Typ -0.30 - - - 0.65DBVDD - 0.9DBVDD - - - 0.6 1.8 0.7 2.1 55 110 63 130 Multi-Channel Audio Hub/CODEC with embedded Voice 132 DSP and SounzRealTM Digital Sound Effect Max DBVDD+0.30 0.35DBVDD 0.1DBVDD 4.3 4.8 270 300 Units V V V V V mA mA K K Rev. 0.9 9.2. Analog Performance Characteristics Table 155. Analog Performance Characteristics Parameter Min Typ Full Scale Input Voltage Line Inputs (Single-ended) - 0.6 MIC Inputs (Single-ended ) - 0.6 MIC Inputs (Differential) - 1.2 Full Scale Output Voltage Line Outputs (Single-ended) - 1.0 Line Outputs (Differential) - 1.0 Headphone Amplifiers Outputs (For 10KOhm Load) - 1.0 Headphone Amplifiers Outputs (For 16Ohm Load) - 0.7 Headphone Amplifiers Outputs (For 32Ohm Load) - 0.9 Speaker Amplifiers Outputs - 2.9 (SPKVDD=5.0V with 4 Load, 1% THD+N) S/N Ratio Stereo DAC Direct to HP_L/R with 16/32/10KOhm - 100 Stereo DAC Direct to SPK_OUT with 8Ohm/5V (Differential) - 95 Line_In to Stereo ADC with 0dB (Single-end) 94 MIC_In to Stereo ADC with 0dB (Differential or Single-end) 94 MIC_In to Stereo ADC with 20dB and MICBIAS (Differential or 89 Single-end) MIC_In to Stereo ADC with 40dB and MICBIAS (Differential or 78 Single-end) MIC_In to Stereo ADC with 50dB and MICBIAS (Differential or 68 Single-end) Total Harmonic Distortion + Noise DAC Direct to HP_L/R with 16Ohm Po = 20mW/CH (16Ohm) -81 Po = 20mW/CH (32Ohm) -81 DAC Direct to HP_L/R with 10KOhm -3dBFS -86 DAC Direct to MONO_P/N with 16Ohm Po = 50mW/CH -70 Po = 60mW/CH -65 DAC Direct to SPK_OUT (Differential) Po=1.2W (5V/8Ohm) <1 Po=2.1W (5V/4Ohm) <1 Po=920mW (4.2V/8Ohm) <1 Po=650mW (3.6V/8Ohm) <1 Multi-Channel Audio Hub/CODEC with embedded Voice 133 DSP and SounzRealTM Digital Sound Effect ALC5642-VF Datasheet Max Units - Vrms - Vrms - Vrms - Vrms - Vrms - Vrms - Vrms - Vrms - Vrms 102 dBA dBA 95 dBA 95 dBA dBA dBA dBA -83 dB -83 dB dB dB dB % % % % Rev. 0.9 ALC5642-VF Datasheet Parameter Min Typ Max Units Line_In to Stereo ADC with 0dB (Single-end) -83 dB MIC_In to Stereo ADC with 0dB (Differential or Single-end) -83 dB MIC_In to Stereo ADC with 20dB and MICBIAS (Differential or -81 dB Single-end) MIC_In to Stereo ADC with 40dB and MICBIAS (Differential or -74 dB Single-end) MIC_In to Stereo ADC with 50dB and MICBIAS (Differential or -65 dB Single-end) PSRR (Vripple=100mV, <=1KHz) DAC to Headphone Amplifier 60 dB DAC to BTL Speaker Amplifier 65 dB MIC/LINE_IN to ADC 60 dB BTL Speaker Amplifier Efficiency (fIN=1kHz, 4 Load, SPKVDD=5.0V, Output Power=2.8W, with LC filter, L=33uH and C=1uF) Class-D (Stereo Mode) - 88 - % Power Consumption (Slave I2S Mode, 24-bit, SR: 44.1KHz) P_power down (No Clock Input) <150 uW P_playback (Stereo DAC to HP_OUT with 16 Ohm Load, With <= 5 mW Clock, play silence) P_playback (Stereo DAC to HP_OUT with 16 Ohm Load, With <= 13 mW Clock, Po=1mW/CH) P_playback (Stereo DAC to SPK_OUT with 8 Ohm Load, With < 19 mW Clock, play silence) P_record (LINE_IN to Stereo ADC, With Clock) <8 mW Power Down Current IDDA (Analog Block) IDDD (Digital Block) - - 10 µA - - 30 µA MICBIAS1 Output Voltage Setting 1 Setting 2 - 0.9*MICVDD - V - 0.75*MICVDD - V MICBIAS1 Drive Current MICBIAS = 0.9*LDO2_O - 4 - mA Note: Standard test conditions: Tambient=25C DBVDD=1.8V DCVDD=1.2V AVDD=1.8V MICVDD=3.3V CPVDD=1.8V SPKVDD=5.0V or 4.2V or 3.6V. 1kHz input sine wave; PCM Sampling frequency=48kHz; Test bench Characterization BW: 10Hz~22kHz, 0dB attenuation dBA: with A-Weighting Multi-Channel Audio Hub/CODEC with embedded Voice 134 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 9.3. Signal Timing 9.3.1. I2C Control Interface tw(9) tw (10) tsp th(5) th(6) tsu(7) tsu(8) Figure 29. I2C Control Interface ALC5642-VF Datasheet SCLK SDA Table 156. I2C Timing Parameter Symbol Min Clock Pulse Duration tw(9) 1.3 Clock Pulse Duration tw(10) 600 Clock Frequency F 0 Start Hold Time Data Setup Time Data Hold Time Rising Time Falling Time th(5) 600 tsu(7) 100 th(6) - tr - tf - Stop Setup Time tsu(8) 600 Pulse Width of Spikes Suppressed Input Filter tsp 0 Typ Max Units - - µs - - ns - 400K Hz - - ns - - ns - 900 ns - 300 ns - 300 ns - - ns - 50 ns Multi-Channel Audio Hub/CODEC with embedded Voice 135 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 9.3.2. I2S/PCM Interface Master Mode ALC5642-VF Datasheet Figure 30. Timing of I2S/PCM Master Mode Parameter LRCK Output to BCLK Delay Data Output to BCLK Delay Data Input Setup Time Data Input Hold Time Table 157. Timing of I2S/PCM Master Mode Symbol Min Typ tLRD - - tADD - - tDAS 10 - tDAH 10 - Max Units 30 ns 30 ns - ns - ns Multi-Channel Audio Hub/CODEC with embedded Voice 136 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 9.3.3. I2S/PCM Interface Slave Mode ALC5642-VF Datasheet Figure 31. I2S/PCM Slave Mode Timing Parameter BCLK High Pulse Width BCLK Low Pulse Width LRCK Input Setup Time Data Output to BCLK Delay Data Input Setup Time Data Input Hold Time Table 158. I2S/PCM Slave Mode Timing Symbol Min Typ tBCH 20 - tBCL 20 - tLRS 30 - tADD - - tDAS 10 - tDAH 10 - Max Units - ns - ns - ns 30 ns - ns - ns Multi-Channel Audio Hub/CODEC with embedded Voice 137 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 10. Application Circuits ALC5642-VF Datasheet Multi-Channel Audio Hub/CODEC with embedded Voice 138 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet DACREF AVDD MICVDD SPKVDD SPKVDD DCVDD DBVDD CPVDD 23 DCVDD 43 46 2 42 AVDD 3 10 15 U1 DBVDD CPVDD MICVDD SPKVDDR SPKVDDL DACREF MICBIAS1 R14 0/5% C7 4.7uF/6.3V IN1P IN1N IN2P IN2N 4 MICBIAS1 5 6 IN1P/DMIC1_DAT 7 8 IN1N/DMIC2_DAT/JD1 IN2P IN2N/JD2 C18 C25 12 11 VREF2 VREF1 4.7uF/6.3V 2.2uF/6.3V MCLK 37 BCLK 36 LRCK 35 DACDAT 33 ADCDAT 34 MCLK BCLK1 LRCK1 DACDAT1 ADCDAT1 VBCLK VLRCK VDACDAT VADCDAT 30 29 31 32 BCLK2 LRCK2 DACDAT2 ADCDAT2 ALC5642 CPP2 CPN2 19 18 20 CPP1 CPN1 21 CPVPP 24 27 CPVEE C41 2.2uF/6.3V C42 2.2uF/6.3V CPVPP C10 2.2uF/6.3V CPVEE C12 2.2uF/6.3V HPO_L HPO_R HPOFB 28 26 25 HPOL HPOR Close to HP Jack's GND SPO_LP SPO_LN SPO_RP 1 48 45 47 SPO_RN SPO_LP SPO_LN SPO_RP SPO_RN MONOP/IN3P 13 14 MONON/IN3N LOUTR LOUTL 17 16 41 GPIO2/DMIC_SCL GPIO1/IRQ LDO1_EN 40 44 MONOP MONON LOUTR LOUTL DMIC_SCL GPIO1/IRQ LDO1_EN DBVDD LDO1 Control 1: Enable 0: Disable GPIO R26 10k/5% SCL SDA 38 39 R27 10k/5% SCLK SDAT I2C Interface SCL_Host SDA_Host CPGND AGND DGND SPKGND 49 49 22 R106 0/5%/1206 Size CPGND DGND SPKGND AGND 9 Power AVDD 1.71V ~ 1.9V R107 0/5% DACREF Reserved for PSRR C19 C20 C48 C49 0.1uF/6.3V 10uF/6.3V 0.1uF/6.3V 10uF/6.3V CPVDD 1.71V ~ 1.9V C21 0.1uF/6.3V C22 10uF/6.3V SPKVDD 3.3V ~ 5.0V C27 0.1uF/16V C28 10uF/16V DBVDD 1.71V ~ 3.3V If Use LDO1, Then Remove This ResistoDrCVDD 1.0V ~ 1.2V R28 0/5% If Use LDO2, Then Remove This Resistor MICVDD 3.0V ~ 3.6V R29 0/5% C29 0.1uF/6.3V C30 2.2uF/6.3V C31 0.1uF/6.3V C32 2.2uF/6.3V C43 0.1uF/6.3V C44 2.2uF/6.3V By-Pass Capcity Near The Power Pins I2S1 Interface C45 22pF/6.3V/NC MCLK R9 0/5% C33 22pF/6.3V/NC BCLK R7 0/5% C34 22pF/6.3V/NC LRCK R10 0/5% C50 22pF/6.3V/NC DACDAT R11 0/5% C51 22pF/6.3V/NC ADCDAT R13 0/5% MCLK BCLK1 LRCK1 DACDAT1 ADCDAT1 I2S2 Interface C39 22pF/6.3V/NC VBCLK R8 0/5% C40 22pF/6.3V/NC VLRCK R17 0/5% C52 22pF/6.3V/NC VDACDAT R18 0/5% C54 22pF/6.3V/NC VADCDAT R15 0/5% BCLK2 LRCK2 DACDAT2 ADCDAT2 Multi-Channel Audio Hub/CODEC with embedded Voice 139 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 ALC5642-VF Datasheet Line Out LOUTR R101 22/5% C24 LOUTL R100 22/5% C26 1uF/6.3V J38 1 1uF/6.3V 2 CON2 Heaphone Out HPOR HPOL R20 33/5% R21 33/5% C165 C158 0.1uF/6.3V 0.1uF/6.3V R99 R98 22/5% 22/5% 1 PH2 2 3 4 5 HP Out Receiver Amp Out Ear Speaker R30 MONOP 0/5% R31 MONON 0/5% 1 2 Speaker - Stereo Mode Loud SPKL SPO_LN SPO_LP R108 0/5%/1206 Size 1 R109 0/5%/1206 Size 2 C35 C36 680pF/16V 680pF/16V Loud SPKR SPO_RN SPO_RP R110 0/5%/1206 Size 1 R111 0/5%/1206 Size 2 C37 C38 680pF/16V 680pF/16V Note: FB5~FB8 C35~C38 are reserved for EMI depression DMIC1 Input DBVDD=1.8V IN1P DMIC_SCL MIC7 P D C G CON2 DMIC2 Input DBVDD=1.8V IN1P DMIC_SCL MIC8 P D C G CON2 Digital Microphone Input - Option 1 (IN1P) DMIC1 Input DBVDD=1.8V IN1N DMIC_SCL MIC10 P D C G CON2 DMIC2 Input DBVDD=1.8V IN1N DMIC_SCL MIC9 P D C G CON2 Digital Microphone Input - Option 2 (IN1N) MICBIAS1 R3 2.2k/5% C4 1uF/6.3V IN1P C68 IN1N 100pF/6.3V C81uF/6.3V R6 MIC1 In 2.2k/5% MIC1 P1 N2 MICBIAS1 R4 2.2k/5% 1uF/6.3V IN2P C5 C67 IN2N 100pF/6.3V C6 1uF/6.3V R5 MIC2 In 2.2k/5% MIC2 P1 N2 Analog Microphone Input - Option 1 (Differential Mode) MICBIAS1 R22 2.2k/5% 1uF/6.3V MONOP C9 C69 MONON 100pF/6.3V C14 1uF/6.3V R19 MIC3 In 2.2k/5% MIC5 P1 N2 MICBIAS1 R16 2.2k/5% 1uF/6.3V IN1PC23 MIC1 In MIC4 P1 N2 MICBIAS1 R12 2.2k/5% 1uF/6.3V IN2PC11 MIC2 In Analog Microphone Input - Option 2 (Single-End Mode) MIC3 P1 N2 MICBIAS1 R23 2.2k/5% 1uF/6.3V MONOPC16 MIC3 In MIC6 P1 N2 Line Input C13 1uF/6.3V IN2N C15 1uF/6.3V IN2P Analog Audio Input_R Analog Audio Input_L Figure 32. Application Circuit Multi-Channel Audio Hub/CODEC with embedded Voice 140 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 11. Package Information 11.1. Mechanical Dimensions Plastic Quad Flat No-Lead Package 48 Leads 6x6mm2 Outline ALC5642-VF Datasheet Symbol Dimension in mm Min Nom Max A 0.75 0.85 1.00 A1 0.00 0.02 0.05 A3 0.20 REF b 0.15 0.20 0.25 D/E 6.00BSC D2/E2 4.15 4.4 4.65 e 0.40BSC L 0.30 0.40 0.50 : : : Notes 1. CONTROLLING DIMENSION MILLIMETER(mm). 2. REFERENCE DOCUMENTL JEDEC MO-220. Min 0.030 0.000 0.006 0.163 0.012 Figure 33. Package Dimension Multi-Channel Audio Hub/CODEC with embedded Voice 141 DSP and SounzRealTM Digital Sound Effect Dimension in inch Nom 0.034 0.001 0.008 REF 0.008 0.236BSC 0.173 0.016BSC 0.016 Max 0.039 0.002 0.010 0.183 0.020 Rev. 0.9 11.2. Package Thermal Information Table 159. Parameter Symbol QFN48 (6x6) Thermal Impedance (Junction to Case) jc QFN48 (6x6) Thermal Impedance (Junction to Ambient) ja *Follow JEDEC PCB: 1. PCB Dimension (L x W): 114.3mm x 101.6mm 2. PCB Thickness: 1.6mm 3. Number of Cu Layer-PCB: 4-layers (2S2P) 4. PCB Via Number: 10 5. Air flow: 0 (m/s) Thermal Information Min Typ - 8.4 - 28 ALC5642-VF Datasheet Max Units - oC/W - oC/W Multi-Channel Audio Hub/CODEC with embedded Voice 142 DSP and SounzRealTM Digital Sound Effect Rev. 0.9 12. Ordering Information Part Number ALC5642-VF-CG ALC5642-VF-CGT ALC5642R-VF-CG ALC5642R-VF-CGT Table 160. Ordering Information Package 48-Pin QFN (6mm x 6mm) in ‘Green’ Package (Tray) 48-Pin QFN (6mm x 6mm) in ‘Green’ Package (Tape & Reel) 48-Pin QFN (6mm x 6mm) in ‘Green’ Package (Tray) 48-Pin QFN (6mm x 6mm) in ‘Green’ Package (Tape & Reel) * “R” is special for certain assign project purpose, not for general purpose. ALC5642-VF Datasheet Status Sample Sample Sample Sample Realtek Semiconductor Corp. Headquarters No. 2, Innovation Road II Hsinchu Science Park, Hsinchu 300, Taiwan Tel.: +886-3-578-0211. Fax: +886-3-577-6047 www.realtek.com Multi-Channel Audio Hub/CODEC with embedded Voice 143 DSP and SounzRealTM Digital Sound Effect Rev. 0.9

Top_arrow
回到顶部
EEWORLD下载中心所有资源均来自网友分享,如有侵权,请发送举报邮件到客服邮箱bbs_service@eeworld.com.cn 或通过站内短信息或QQ:273568022联系管理员 高进,我们会尽快处理。