~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/alc5632.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/alc5632.h (Version linux-6.12-rc7) and /sound/soc/codecs/alc5632.h (Version linux-4.11.12)


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3 * alc5632.h  --  ALC5632 ALSA SoC Audio Codec       2 * alc5632.h  --  ALC5632 ALSA SoC Audio Codec
  4 *                                                   3 *
  5 * Copyright (C) 2011 The AC100 Kernel Team <ac      4 * Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.lauchpad.net>
  6 *                                                   5 *
  7 * Authors:  Leon Romanovsky <leon@leon.nu>          6 * Authors:  Leon Romanovsky <leon@leon.nu>
  8 *           Andrey Danin <danindrey@mail.ru>        7 *           Andrey Danin <danindrey@mail.ru>
  9 *           Ilya Petrov <ilya.muromec@gmail.co      8 *           Ilya Petrov <ilya.muromec@gmail.com>
 10 *           Marc Dietrich <marvin24@gmx.de>         9 *           Marc Dietrich <marvin24@gmx.de>
 11 *                                                  10 *
 12 * Based on alc5623.h by Arnaud Patard              11 * Based on alc5623.h by Arnaud Patard
                                                   >>  12 *
                                                   >>  13 * This program is free software; you can redistribute it and/or modify
                                                   >>  14 * it under the terms of the GNU General Public License version 2 as
                                                   >>  15 * published by the Free Software Foundation.
 13 */                                                 16 */
 14                                                    17 
 15 #ifndef _ALC5632_H                                 18 #ifndef _ALC5632_H
 16 #define _ALC5632_H                                 19 #define _ALC5632_H
 17                                                    20 
 18 #define ALC5632_RESET                              21 #define ALC5632_RESET                           0x00
 19 /* speaker output vol              2    2          22 /* speaker output vol              2    2           */
 20 /* line output vol                      4    2     23 /* line output vol                      4    2      */
 21 /* HP output vol                   4    0    4     24 /* HP output vol                   4    0    4      */
 22 #define ALC5632_SPK_OUT_VOL                        25 #define ALC5632_SPK_OUT_VOL                     0x02 /* spe out vol */
 23 #define ALC5632_SPK_OUT_VOL_STEP                   26 #define ALC5632_SPK_OUT_VOL_STEP                1.5
 24 #define ALC5632_HP_OUT_VOL                         27 #define ALC5632_HP_OUT_VOL                      0x04 /* hp out vol */
 25 #define ALC5632_AUX_OUT_VOL                        28 #define ALC5632_AUX_OUT_VOL                     0x06 /* aux out vol */
 26 #define ALC5632_PHONE_IN_VOL                       29 #define ALC5632_PHONE_IN_VOL                    0x08 /* phone in vol */
 27 #define ALC5632_LINE_IN_VOL                        30 #define ALC5632_LINE_IN_VOL                     0x0A /* line in vol */
 28 #define ALC5632_STEREO_DAC_IN_VOL                  31 #define ALC5632_STEREO_DAC_IN_VOL               0x0C /* stereo dac in vol */
 29 #define ALC5632_MIC_VOL                            32 #define ALC5632_MIC_VOL                         0x0E /* mic in vol */
 30 /* stero dac/mic routing */                        33 /* stero dac/mic routing */
 31 #define ALC5632_MIC_ROUTING_CTRL                   34 #define ALC5632_MIC_ROUTING_CTRL                0x10
 32 #define ALC5632_MIC_ROUTE_MONOMIX                  35 #define ALC5632_MIC_ROUTE_MONOMIX               (1 << 0)
 33 #define ALC5632_MIC_ROUTE_SPK                      36 #define ALC5632_MIC_ROUTE_SPK                   (1 << 1)
 34 #define ALC5632_MIC_ROUTE_HP                       37 #define ALC5632_MIC_ROUTE_HP                    (1 << 2)
 35                                                    38 
 36 #define ALC5632_ADC_REC_GAIN                       39 #define ALC5632_ADC_REC_GAIN                    0x12 /* rec gain */
 37 #define ALC5632_ADC_REC_GAIN_RANGE                 40 #define ALC5632_ADC_REC_GAIN_RANGE              0x1F1F
 38 #define ALC5632_ADC_REC_GAIN_BASE                  41 #define ALC5632_ADC_REC_GAIN_BASE               (-16.5)
 39 #define ALC5632_ADC_REC_GAIN_STEP                  42 #define ALC5632_ADC_REC_GAIN_STEP               1.5
 40                                                    43 
 41 #define ALC5632_ADC_REC_MIXER                      44 #define ALC5632_ADC_REC_MIXER                   0x14 /* mixer control */
 42 #define ALC5632_ADC_REC_MIC1                       45 #define ALC5632_ADC_REC_MIC1                    (1 << 6)
 43 #define ALC5632_ADC_REC_MIC2                       46 #define ALC5632_ADC_REC_MIC2                    (1 << 5)
 44 #define ALC5632_ADC_REC_LINE_IN                    47 #define ALC5632_ADC_REC_LINE_IN                 (1 << 4)
 45 #define ALC5632_ADC_REC_AUX                        48 #define ALC5632_ADC_REC_AUX                     (1 << 3)
 46 #define ALC5632_ADC_REC_HP                         49 #define ALC5632_ADC_REC_HP                      (1 << 2)
 47 #define ALC5632_ADC_REC_SPK                        50 #define ALC5632_ADC_REC_SPK                     (1 << 1)
 48 #define ALC5632_ADC_REC_MONOMIX                    51 #define ALC5632_ADC_REC_MONOMIX                 (1 << 0)
 49                                                    52 
 50 #define ALC5632_VOICE_DAC_VOL                      53 #define ALC5632_VOICE_DAC_VOL                   0x18 /* voice dac vol */
 51 #define ALC5632_I2S_OUT_CTL                        54 #define ALC5632_I2S_OUT_CTL                             0x1A /* undocumented reg. found in path scheme */
 52 /* ALC5632_OUTPUT_MIXER_CTRL :                     55 /* ALC5632_OUTPUT_MIXER_CTRL :                  */
 53 /* same remark as for reg 2 line vs speaker        56 /* same remark as for reg 2 line vs speaker     */
 54 #define ALC5632_OUTPUT_MIXER_CTRL                  57 #define ALC5632_OUTPUT_MIXER_CTRL               0x1C /* out mix ctrl */
 55 #define ALC5632_OUTPUT_MIXER_RP                    58 #define ALC5632_OUTPUT_MIXER_RP                 (1 << 14)
 56 #define ALC5632_OUTPUT_MIXER_WEEK                  59 #define ALC5632_OUTPUT_MIXER_WEEK               (1 << 12)
 57 #define ALC5632_OUTPUT_MIXER_HP                    60 #define ALC5632_OUTPUT_MIXER_HP                 (1 << 10)
 58 #define ALC5632_OUTPUT_MIXER_AUX_SPK               61 #define ALC5632_OUTPUT_MIXER_AUX_SPK            (2 <<  6)
 59 #define ALC5632_OUTPUT_MIXER_AUX_HP_LR             62 #define ALC5632_OUTPUT_MIXER_AUX_HP_LR          (1 << 6)
 60 #define ALC5632_OUTPUT_MIXER_HP_R                  63 #define ALC5632_OUTPUT_MIXER_HP_R               (1 << 8)
 61 #define ALC5632_OUTPUT_MIXER_HP_L                  64 #define ALC5632_OUTPUT_MIXER_HP_L               (1 << 9)
 62                                                    65 
 63 #define ALC5632_MIC_CTRL                           66 #define ALC5632_MIC_CTRL                        0x22 /* mic phone ctrl */
 64 #define ALC5632_MIC_BOOST_BYPASS                   67 #define ALC5632_MIC_BOOST_BYPASS                0
 65 #define ALC5632_MIC_BOOST_20DB                     68 #define ALC5632_MIC_BOOST_20DB                  1
 66 #define ALC5632_MIC_BOOST_30DB                     69 #define ALC5632_MIC_BOOST_30DB                  2
 67 #define ALC5632_MIC_BOOST_40DB                     70 #define ALC5632_MIC_BOOST_40DB                  3
 68                                                    71 
 69 #define ALC5632_DIGI_BOOST_CTRL                    72 #define ALC5632_DIGI_BOOST_CTRL                 0x24 /* digi mic / bost ctl */
 70 #define ALC5632_MIC_BOOST_RANGE                    73 #define ALC5632_MIC_BOOST_RANGE                 7
 71 #define ALC5632_MIC_BOOST_STEP                     74 #define ALC5632_MIC_BOOST_STEP                  6
 72 #define ALC5632_PWR_DOWN_CTRL_STATUS               75 #define ALC5632_PWR_DOWN_CTRL_STATUS            0x26
 73 #define ALC5632_PWR_DOWN_CTRL_STATUS_MASK          76 #define ALC5632_PWR_DOWN_CTRL_STATUS_MASK       0xEF00
 74 #define ALC5632_PWR_VREF_PR3                       77 #define ALC5632_PWR_VREF_PR3                    (1 << 11)
 75 #define ALC5632_PWR_VREF_PR2                       78 #define ALC5632_PWR_VREF_PR2                    (1 << 10)
 76 #define ALC5632_PWR_VREF_STATUS                    79 #define ALC5632_PWR_VREF_STATUS                 (1 << 3)
 77 #define ALC5632_PWR_AMIX_STATUS                    80 #define ALC5632_PWR_AMIX_STATUS                 (1 << 2)
 78 #define ALC5632_PWR_DAC_STATUS                     81 #define ALC5632_PWR_DAC_STATUS                  (1 << 1)
 79 #define ALC5632_PWR_ADC_STATUS                     82 #define ALC5632_PWR_ADC_STATUS                  (1 << 0)
 80 /* stereo/voice DAC / stereo adc func ctrl */      83 /* stereo/voice DAC / stereo adc func ctrl */
 81 #define ALC5632_DAC_FUNC_SELECT                    84 #define ALC5632_DAC_FUNC_SELECT                 0x2E
 82                                                    85 
 83 /* Main serial data port ctrl (i2s) */             86 /* Main serial data port ctrl (i2s) */
 84 #define ALC5632_DAI_CONTROL                        87 #define ALC5632_DAI_CONTROL                     0x34
 85                                                    88 
 86 #define ALC5632_DAI_SDP_MASTER_MODE                89 #define ALC5632_DAI_SDP_MASTER_MODE             (0 << 15)
 87 #define ALC5632_DAI_SDP_SLAVE_MODE                 90 #define ALC5632_DAI_SDP_SLAVE_MODE              (1 << 15)
 88 #define ALC5632_DAI_SADLRCK_MODE                   91 #define ALC5632_DAI_SADLRCK_MODE                (1 << 14)
 89 /* 0:voice, 1:main */                              92 /* 0:voice, 1:main */
 90 #define ALC5632_DAI_MAIN_I2S_SYSCLK_SEL            93 #define ALC5632_DAI_MAIN_I2S_SYSCLK_SEL         (1 <<  8)
 91 #define ALC5632_DAI_MAIN_I2S_BCLK_POL_CTRL         94 #define ALC5632_DAI_MAIN_I2S_BCLK_POL_CTRL      (1 <<  7)
 92 /* 0:normal, 1:invert */                           95 /* 0:normal, 1:invert */
 93 #define ALC5632_DAI_MAIN_I2S_LRCK_INV              96 #define ALC5632_DAI_MAIN_I2S_LRCK_INV           (1 <<  6)
 94 #define ALC5632_DAI_I2S_DL_MASK                    97 #define ALC5632_DAI_I2S_DL_MASK                 (3 <<  2)
 95 #define ALC5632_DAI_I2S_DL_8                       98 #define ALC5632_DAI_I2S_DL_8                    (3 <<  2)
 96 #define ALC5632_DAI_I2S_DL_24                      99 #define ALC5632_DAI_I2S_DL_24                   (2 <<  2)
 97 #define ALC5632_DAI_I2S_DL_20                     100 #define ALC5632_DAI_I2S_DL_20                   (1 <<  2)
 98 #define ALC5632_DAI_I2S_DL_16                     101 #define ALC5632_DAI_I2S_DL_16                   (0 <<  2)
 99 #define ALC5632_DAI_I2S_DF_MASK                   102 #define ALC5632_DAI_I2S_DF_MASK                 (3 <<  0)
100 #define ALC5632_DAI_I2S_DF_PCM_B                  103 #define ALC5632_DAI_I2S_DF_PCM_B                (3 <<  0)
101 #define ALC5632_DAI_I2S_DF_PCM_A                  104 #define ALC5632_DAI_I2S_DF_PCM_A                (2 <<  0)
102 #define ALC5632_DAI_I2S_DF_LEFT                   105 #define ALC5632_DAI_I2S_DF_LEFT                 (1 <<  0)
103 #define ALC5632_DAI_I2S_DF_I2S                    106 #define ALC5632_DAI_I2S_DF_I2S                  (0 <<  0)
104 /* extend serial data port control (VoDAC_i2c/    107 /* extend serial data port control (VoDAC_i2c/pcm) */
105 #define ALC5632_DAI_CONTROL2                      108 #define ALC5632_DAI_CONTROL2                    0x36
106 /* 0:gpio func, 1:voice pcm */                    109 /* 0:gpio func, 1:voice pcm */
107 #define ALC5632_DAI_VOICE_PCM_ENABLE              110 #define ALC5632_DAI_VOICE_PCM_ENABLE            (1 << 15)
108 /* 0:master, 1:slave */                           111 /* 0:master, 1:slave */
109 #define ALC5632_DAI_VOICE_MODE_SEL                112 #define ALC5632_DAI_VOICE_MODE_SEL              (1 << 14)
110 /* 0:disable, 1:enable */                         113 /* 0:disable, 1:enable */
111 #define ALC5632_DAI_HPF_CLK_CTRL                  114 #define ALC5632_DAI_HPF_CLK_CTRL                (1 << 13)
112 /* 0:main, 1:voice */                             115 /* 0:main, 1:voice */
113 #define ALC5632_DAI_VOICE_I2S_SYSCLK_SEL          116 #define ALC5632_DAI_VOICE_I2S_SYSCLK_SEL        (1 <<  8)
114 /* 0:normal, 1:invert */                          117 /* 0:normal, 1:invert */
115 #define ALC5632_DAI_VOICE_VBCLK_SYSCLK_SEL        118 #define ALC5632_DAI_VOICE_VBCLK_SYSCLK_SEL      (1 <<  7)
116 /* 0:normal, 1:invert */                          119 /* 0:normal, 1:invert */
117 #define ALC5632_DAI_VOICE_I2S_LR_INV              120 #define ALC5632_DAI_VOICE_I2S_LR_INV            (1 <<  6)
118 #define ALC5632_DAI_VOICE_DL_MASK                 121 #define ALC5632_DAI_VOICE_DL_MASK               (3 <<  2)
119 #define ALC5632_DAI_VOICE_DL_16                   122 #define ALC5632_DAI_VOICE_DL_16                 (0 <<  2)
120 #define ALC5632_DAI_VOICE_DL_20                   123 #define ALC5632_DAI_VOICE_DL_20                 (1 <<  2)
121 #define ALC5632_DAI_VOICE_DL_24                   124 #define ALC5632_DAI_VOICE_DL_24                 (2 <<  2)
122 #define ALC5632_DAI_VOICE_DL_8                    125 #define ALC5632_DAI_VOICE_DL_8                  (3 <<  2)
123 #define ALC5632_DAI_VOICE_DF_MASK                 126 #define ALC5632_DAI_VOICE_DF_MASK               (3 <<  0)
124 #define ALC5632_DAI_VOICE_DF_I2S                  127 #define ALC5632_DAI_VOICE_DF_I2S                (0 <<  0)
125 #define ALC5632_DAI_VOICE_DF_LEFT                 128 #define ALC5632_DAI_VOICE_DF_LEFT               (1 <<  0)
126 #define ALC5632_DAI_VOICE_DF_PCM_A                129 #define ALC5632_DAI_VOICE_DF_PCM_A              (2 <<  0)
127 #define ALC5632_DAI_VOICE_DF_PCM_B                130 #define ALC5632_DAI_VOICE_DF_PCM_B              (3 <<  0)
128                                                   131 
129 #define ALC5632_PWR_MANAG_ADD1                    132 #define ALC5632_PWR_MANAG_ADD1                  0x3A
130 #define ALC5632_PWR_MANAG_ADD1_MASK               133 #define ALC5632_PWR_MANAG_ADD1_MASK             0xEFFF
131 #define ALC5632_PWR_ADD1_DAC_L_EN                 134 #define ALC5632_PWR_ADD1_DAC_L_EN               (1 << 15)
132 #define ALC5632_PWR_ADD1_DAC_R_EN                 135 #define ALC5632_PWR_ADD1_DAC_R_EN               (1 << 14)
133 #define ALC5632_PWR_ADD1_ZERO_CROSS               136 #define ALC5632_PWR_ADD1_ZERO_CROSS             (1 << 13)
134 #define ALC5632_PWR_ADD1_MAIN_I2S_EN              137 #define ALC5632_PWR_ADD1_MAIN_I2S_EN            (1 << 11)
135 #define ALC5632_PWR_ADD1_SPK_AMP_EN               138 #define ALC5632_PWR_ADD1_SPK_AMP_EN             (1 << 10)
136 #define ALC5632_PWR_ADD1_HP_OUT_AMP               139 #define ALC5632_PWR_ADD1_HP_OUT_AMP             (1 <<  9)
137 #define ALC5632_PWR_ADD1_HP_OUT_ENH_AMP           140 #define ALC5632_PWR_ADD1_HP_OUT_ENH_AMP         (1 <<  8)
138 #define ALC5632_PWR_ADD1_VOICE_DAC_MIX            141 #define ALC5632_PWR_ADD1_VOICE_DAC_MIX          (1 <<  7)
139 #define ALC5632_PWR_ADD1_SOFTGEN_EN               142 #define ALC5632_PWR_ADD1_SOFTGEN_EN             (1 <<  6)
140 #define ALC5632_PWR_ADD1_MIC1_SHORT_CURR          143 #define ALC5632_PWR_ADD1_MIC1_SHORT_CURR        (1 <<  5)
141 #define ALC5632_PWR_ADD1_MIC2_SHORT_CURR          144 #define ALC5632_PWR_ADD1_MIC2_SHORT_CURR        (1 <<  4)
142 #define ALC5632_PWR_ADD1_MIC1_EN                  145 #define ALC5632_PWR_ADD1_MIC1_EN                (1 <<  3)
143 #define ALC5632_PWR_ADD1_MIC2_EN                  146 #define ALC5632_PWR_ADD1_MIC2_EN                (1 <<  2)
144 #define ALC5632_PWR_ADD1_MAIN_BIAS                147 #define ALC5632_PWR_ADD1_MAIN_BIAS              (1 <<  1)
145 #define ALC5632_PWR_ADD1_DAC_REF                  148 #define ALC5632_PWR_ADD1_DAC_REF                (1 <<  0)
146                                                   149 
147 #define ALC5632_PWR_MANAG_ADD2                    150 #define ALC5632_PWR_MANAG_ADD2                  0x3C
148 #define ALC5632_PWR_MANAG_ADD2_MASK               151 #define ALC5632_PWR_MANAG_ADD2_MASK             0x7FFF
149 #define ALC5632_PWR_ADD2_PLL1                     152 #define ALC5632_PWR_ADD2_PLL1                   (1 << 15)
150 #define ALC5632_PWR_ADD2_PLL2                     153 #define ALC5632_PWR_ADD2_PLL2                   (1 << 14)
151 #define ALC5632_PWR_ADD2_VREF                     154 #define ALC5632_PWR_ADD2_VREF                   (1 << 13)
152 #define ALC5632_PWR_ADD2_OVT_DET                  155 #define ALC5632_PWR_ADD2_OVT_DET                (1 << 12)
153 #define ALC5632_PWR_ADD2_VOICE_DAC                156 #define ALC5632_PWR_ADD2_VOICE_DAC              (1 << 10)
154 #define ALC5632_PWR_ADD2_L_DAC_CLK                157 #define ALC5632_PWR_ADD2_L_DAC_CLK              (1 <<  9)
155 #define ALC5632_PWR_ADD2_R_DAC_CLK                158 #define ALC5632_PWR_ADD2_R_DAC_CLK              (1 <<  8)
156 #define ALC5632_PWR_ADD2_L_ADC_CLK_GAIN           159 #define ALC5632_PWR_ADD2_L_ADC_CLK_GAIN         (1 <<  7)
157 #define ALC5632_PWR_ADD2_R_ADC_CLK_GAIN           160 #define ALC5632_PWR_ADD2_R_ADC_CLK_GAIN         (1 <<  6)
158 #define ALC5632_PWR_ADD2_L_HP_MIXER               161 #define ALC5632_PWR_ADD2_L_HP_MIXER             (1 <<  5)
159 #define ALC5632_PWR_ADD2_R_HP_MIXER               162 #define ALC5632_PWR_ADD2_R_HP_MIXER             (1 <<  4)
160 #define ALC5632_PWR_ADD2_SPK_MIXER                163 #define ALC5632_PWR_ADD2_SPK_MIXER              (1 <<  3)
161 #define ALC5632_PWR_ADD2_MONO_MIXER               164 #define ALC5632_PWR_ADD2_MONO_MIXER             (1 <<  2)
162 #define ALC5632_PWR_ADD2_L_ADC_REC_MIXER          165 #define ALC5632_PWR_ADD2_L_ADC_REC_MIXER        (1 <<  1)
163 #define ALC5632_PWR_ADD2_R_ADC_REC_MIXER          166 #define ALC5632_PWR_ADD2_R_ADC_REC_MIXER        (1 <<  0)
164                                                   167 
165 #define ALC5632_PWR_MANAG_ADD3                    168 #define ALC5632_PWR_MANAG_ADD3                  0x3E
166 #define ALC5632_PWR_MANAG_ADD3_MASK               169 #define ALC5632_PWR_MANAG_ADD3_MASK             0x7CFF
167 #define ALC5632_PWR_ADD3_AUXOUT_VOL               170 #define ALC5632_PWR_ADD3_AUXOUT_VOL             (1 << 14)
168 #define ALC5632_PWR_ADD3_SPK_L_OUT                171 #define ALC5632_PWR_ADD3_SPK_L_OUT              (1 << 13)
169 #define ALC5632_PWR_ADD3_SPK_R_OUT                172 #define ALC5632_PWR_ADD3_SPK_R_OUT              (1 << 12)
170 #define ALC5632_PWR_ADD3_HP_L_OUT_VOL             173 #define ALC5632_PWR_ADD3_HP_L_OUT_VOL           (1 << 11)
171 #define ALC5632_PWR_ADD3_HP_R_OUT_VOL             174 #define ALC5632_PWR_ADD3_HP_R_OUT_VOL           (1 << 10)
172 #define ALC5632_PWR_ADD3_LINEIN_L_VOL             175 #define ALC5632_PWR_ADD3_LINEIN_L_VOL           (1 <<  7)
173 #define ALC5632_PWR_ADD3_LINEIN_R_VOL             176 #define ALC5632_PWR_ADD3_LINEIN_R_VOL           (1 <<  6)
174 #define ALC5632_PWR_ADD3_AUXIN_VOL                177 #define ALC5632_PWR_ADD3_AUXIN_VOL              (1 <<  5)
175 #define ALC5632_PWR_ADD3_AUXIN_MIX                178 #define ALC5632_PWR_ADD3_AUXIN_MIX              (1 <<  4)
176 #define ALC5632_PWR_ADD3_MIC1_VOL                 179 #define ALC5632_PWR_ADD3_MIC1_VOL               (1 <<  3)
177 #define ALC5632_PWR_ADD3_MIC2_VOL                 180 #define ALC5632_PWR_ADD3_MIC2_VOL               (1 <<  2)
178 #define ALC5632_PWR_ADD3_MIC1_BOOST_AD            181 #define ALC5632_PWR_ADD3_MIC1_BOOST_AD          (1 <<  1)
179 #define ALC5632_PWR_ADD3_MIC2_BOOST_AD            182 #define ALC5632_PWR_ADD3_MIC2_BOOST_AD          (1 <<  0)
180                                                   183 
181 #define ALC5632_GPCR1                             184 #define ALC5632_GPCR1                           0x40
182 #define ALC5632_GPCR1_CLK_SYS_SRC_SEL_PLL1        185 #define ALC5632_GPCR1_CLK_SYS_SRC_SEL_PLL1      (1 << 15)
183 #define ALC5632_GPCR1_CLK_SYS_SRC_SEL_MCLK        186 #define ALC5632_GPCR1_CLK_SYS_SRC_SEL_MCLK      (0 << 15)
184 #define ALC5632_GPCR1_DAC_HI_FLT_EN               187 #define ALC5632_GPCR1_DAC_HI_FLT_EN             (1 << 10)
185 #define ALC5632_GPCR1_SPK_AMP_CTRL                188 #define ALC5632_GPCR1_SPK_AMP_CTRL              (7 <<  1)
186 #define ALC5632_GPCR1_VDD_100                     189 #define ALC5632_GPCR1_VDD_100                   (5 <<  1)
187 #define ALC5632_GPCR1_VDD_125                     190 #define ALC5632_GPCR1_VDD_125                   (4 <<  1)
188 #define ALC5632_GPCR1_VDD_150                     191 #define ALC5632_GPCR1_VDD_150                   (3 <<  1)
189 #define ALC5632_GPCR1_VDD_175                     192 #define ALC5632_GPCR1_VDD_175                   (2 <<  1)
190 #define ALC5632_GPCR1_VDD_200                     193 #define ALC5632_GPCR1_VDD_200                   (1 <<  1)
191 #define ALC5632_GPCR1_VDD_225                     194 #define ALC5632_GPCR1_VDD_225                   (0 <<  1)
192                                                   195 
193 #define ALC5632_GPCR2                             196 #define ALC5632_GPCR2                           0x42
194 #define ALC5632_GPCR2_PLL1_SOUR_SEL               197 #define ALC5632_GPCR2_PLL1_SOUR_SEL             (3 << 12)
195 #define ALC5632_PLL_FR_MCLK                       198 #define ALC5632_PLL_FR_MCLK                     (0 << 12)
196 #define ALC5632_PLL_FR_BCLK                       199 #define ALC5632_PLL_FR_BCLK                     (2 << 12)
197 #define ALC5632_PLL_FR_VBCLK                      200 #define ALC5632_PLL_FR_VBCLK                    (3 << 12)
198 #define ALC5632_GPCR2_CLK_PLL_PRE_DIV1            201 #define ALC5632_GPCR2_CLK_PLL_PRE_DIV1          (0 <<  0)
199                                                   202 
200 #define ALC5632_PLL1_CTRL                         203 #define ALC5632_PLL1_CTRL                       0x44
201 #define ALC5632_PLL1_CTRL_N_VAL(n)                204 #define ALC5632_PLL1_CTRL_N_VAL(n)              (((n) & 0x0f) << 8)
202 #define ALC5632_PLL1_M_BYPASS                     205 #define ALC5632_PLL1_M_BYPASS                   (1 <<  7)
203 #define ALC5632_PLL1_CTRL_K_VAL(k)                206 #define ALC5632_PLL1_CTRL_K_VAL(k)              (((k) & 0x07) << 4)
204 #define ALC5632_PLL1_CTRL_M_VAL(m)                207 #define ALC5632_PLL1_CTRL_M_VAL(m)              (((m) & 0x0f) << 0)
205                                                   208 
206 #define ALC5632_PLL2_CTRL                         209 #define ALC5632_PLL2_CTRL                       0x46
207 #define ALC5632_PLL2_EN                           210 #define ALC5632_PLL2_EN                         (1 << 15)
208 #define ALC5632_PLL2_RATIO                        211 #define ALC5632_PLL2_RATIO                      (0 << 15)
209                                                   212 
210 #define ALC5632_GPIO_PIN_CONFIG                   213 #define ALC5632_GPIO_PIN_CONFIG                 0x4C
211 #define ALC5632_GPIO_PIN_POLARITY                 214 #define ALC5632_GPIO_PIN_POLARITY               0x4E
212 #define ALC5632_GPIO_PIN_STICKY                   215 #define ALC5632_GPIO_PIN_STICKY                 0x50
213 #define ALC5632_GPIO_PIN_WAKEUP                   216 #define ALC5632_GPIO_PIN_WAKEUP                 0x52
214 #define ALC5632_GPIO_PIN_STATUS                   217 #define ALC5632_GPIO_PIN_STATUS                 0x54
215 #define ALC5632_GPIO_PIN_SHARING                  218 #define ALC5632_GPIO_PIN_SHARING                0x56
216 #define ALC5632_OVER_CURR_STATUS                  219 #define ALC5632_OVER_CURR_STATUS                0x58
217 #define ALC5632_SOFTVOL_CTRL                      220 #define ALC5632_SOFTVOL_CTRL                    0x5A
218 #define ALC5632_GPIO_OUPUT_PIN_CTRL               221 #define ALC5632_GPIO_OUPUT_PIN_CTRL             0x5C
219                                                   222 
220 #define ALC5632_MISC_CTRL                         223 #define ALC5632_MISC_CTRL                       0x5E
221 #define ALC5632_MISC_DISABLE_FAST_VREG            224 #define ALC5632_MISC_DISABLE_FAST_VREG          (1 << 15)
222 #define ALC5632_MISC_AVC_TRGT_SEL                 225 #define ALC5632_MISC_AVC_TRGT_SEL               (3 << 12)
223 #define ALC5632_MISC_AVC_TRGT_RIGHT               226 #define ALC5632_MISC_AVC_TRGT_RIGHT             (1 << 12)
224 #define ALC5632_MISC_AVC_TRGT_LEFT                227 #define ALC5632_MISC_AVC_TRGT_LEFT              (2 << 12)
225 #define ALC5632_MISC_AVC_TRGT_BOTH                228 #define ALC5632_MISC_AVC_TRGT_BOTH              (3 << 12)
226 #define ALC5632_MISC_HP_DEPOP_MODE1_EN            229 #define ALC5632_MISC_HP_DEPOP_MODE1_EN          (1 <<  9)
227 #define ALC5632_MISC_HP_DEPOP_MODE2_EN            230 #define ALC5632_MISC_HP_DEPOP_MODE2_EN          (1 <<  8)
228 #define ALC5632_MISC_HP_DEPOP_MUTE_L              231 #define ALC5632_MISC_HP_DEPOP_MUTE_L            (1 <<  7)
229 #define ALC5632_MISC_HP_DEPOP_MUTE_R              232 #define ALC5632_MISC_HP_DEPOP_MUTE_R            (1 <<  6)
230 #define ALC5632_MISC_HP_DEPOP_MUTE                233 #define ALC5632_MISC_HP_DEPOP_MUTE              (1 <<  5)
231 #define ALC5632_MISC_GPIO_WAKEUP_CTRL             234 #define ALC5632_MISC_GPIO_WAKEUP_CTRL           (1 <<  1)
232 #define ALC5632_MISC_IRQOUT_INV_CTRL              235 #define ALC5632_MISC_IRQOUT_INV_CTRL            (1 <<  0)
233                                                   236 
234 #define ALC5632_DAC_CLK_CTRL1                     237 #define ALC5632_DAC_CLK_CTRL1                   0x60
235 #define ALC5632_DAC_CLK_CTRL2                     238 #define ALC5632_DAC_CLK_CTRL2                   0x62
236 #define ALC5632_DAC_CLK_CTRL2_DIV1_2              239 #define ALC5632_DAC_CLK_CTRL2_DIV1_2            (1 << 0)
237 #define ALC5632_VOICE_DAC_PCM_CLK_CTRL1           240 #define ALC5632_VOICE_DAC_PCM_CLK_CTRL1         0x64
238 #define ALC5632_PSEUDO_SPATIAL_CTRL               241 #define ALC5632_PSEUDO_SPATIAL_CTRL             0x68
239 #define ALC5632_HID_CTRL_INDEX                    242 #define ALC5632_HID_CTRL_INDEX                  0x6A
240 #define ALC5632_HID_CTRL_DATA                     243 #define ALC5632_HID_CTRL_DATA                   0x6C
241 #define ALC5632_EQ_CTRL                           244 #define ALC5632_EQ_CTRL                         0x6E
242                                                   245 
243 /* undocumented */                                246 /* undocumented */
244 #define ALC5632_VENDOR_ID1                        247 #define ALC5632_VENDOR_ID1                      0x7C
245 #define ALC5632_VENDOR_ID2                        248 #define ALC5632_VENDOR_ID2                      0x7E
246                                                   249 
247 #define ALC5632_MAX_REGISTER        0x7E          250 #define ALC5632_MAX_REGISTER        0x7E
248                                                   251 
249 #endif                                            252 #endif
250                                                   253 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php