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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/es8316.h (Version linux-6.11.5) and /sound/soc/codecs/es8316.h (Version linux-5.0.21)


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3  * Copyright Everest Semiconductor Co.,Ltd          2  * Copyright Everest Semiconductor Co.,Ltd
  4  *                                                  3  *
  5  * Author: David Yang <yangxiaohua@everest-sem      4  * Author: David Yang <yangxiaohua@everest-semi.com>
                                                   >>   5  *
                                                   >>   6  * This program is free software; you can redistribute it and/or modify
                                                   >>   7  * it under the terms of the GNU General Public License version 2 as
                                                   >>   8  * published by the Free Software Foundation.
                                                   >>   9  *
  6  */                                                10  */
  7                                                    11 
  8 #ifndef _ES8316_H                                  12 #ifndef _ES8316_H
  9 #define _ES8316_H                                  13 #define _ES8316_H
 10                                                    14 
 11 /*                                                 15 /*
 12  * ES8316 register space                           16  * ES8316 register space
 13  */                                                17  */
 14                                                    18 
 15 /* Reset Control */                                19 /* Reset Control */
 16 #define ES8316_RESET            0x00               20 #define ES8316_RESET            0x00
 17                                                    21 
 18 /* Clock Management */                             22 /* Clock Management */
 19 #define ES8316_CLKMGR_CLKSW     0x01               23 #define ES8316_CLKMGR_CLKSW     0x01
 20 #define ES8316_CLKMGR_CLKSEL    0x02               24 #define ES8316_CLKMGR_CLKSEL    0x02
 21 #define ES8316_CLKMGR_ADCOSR    0x03               25 #define ES8316_CLKMGR_ADCOSR    0x03
 22 #define ES8316_CLKMGR_ADCDIV1   0x04               26 #define ES8316_CLKMGR_ADCDIV1   0x04
 23 #define ES8316_CLKMGR_ADCDIV2   0x05               27 #define ES8316_CLKMGR_ADCDIV2   0x05
 24 #define ES8316_CLKMGR_DACDIV1   0x06               28 #define ES8316_CLKMGR_DACDIV1   0x06
 25 #define ES8316_CLKMGR_DACDIV2   0x07               29 #define ES8316_CLKMGR_DACDIV2   0x07
 26 #define ES8316_CLKMGR_CPDIV     0x08               30 #define ES8316_CLKMGR_CPDIV     0x08
 27                                                    31 
 28 /* Serial Data Port Control */                     32 /* Serial Data Port Control */
 29 #define ES8316_SERDATA1         0x09               33 #define ES8316_SERDATA1         0x09
 30 #define ES8316_SERDATA_ADC      0x0a               34 #define ES8316_SERDATA_ADC      0x0a
 31 #define ES8316_SERDATA_DAC      0x0b               35 #define ES8316_SERDATA_DAC      0x0b
 32                                                    36 
 33 /* System Control */                               37 /* System Control */
 34 #define ES8316_SYS_VMIDSEL      0x0c               38 #define ES8316_SYS_VMIDSEL      0x0c
 35 #define ES8316_SYS_PDN          0x0d               39 #define ES8316_SYS_PDN          0x0d
 36 #define ES8316_SYS_LP1          0x0e               40 #define ES8316_SYS_LP1          0x0e
 37 #define ES8316_SYS_LP2          0x0f               41 #define ES8316_SYS_LP2          0x0f
 38 #define ES8316_SYS_VMIDLOW      0x10               42 #define ES8316_SYS_VMIDLOW      0x10
 39 #define ES8316_SYS_VSEL         0x11               43 #define ES8316_SYS_VSEL         0x11
 40 #define ES8316_SYS_REF          0x12               44 #define ES8316_SYS_REF          0x12
 41                                                    45 
 42 /* Headphone Mixer */                              46 /* Headphone Mixer */
 43 #define ES8316_HPMIX_SEL        0x13               47 #define ES8316_HPMIX_SEL        0x13
 44 #define ES8316_HPMIX_SWITCH     0x14               48 #define ES8316_HPMIX_SWITCH     0x14
 45 #define ES8316_HPMIX_PDN        0x15               49 #define ES8316_HPMIX_PDN        0x15
 46 #define ES8316_HPMIX_VOL        0x16               50 #define ES8316_HPMIX_VOL        0x16
 47                                                    51 
 48 /* Charge Pump Headphone driver */                 52 /* Charge Pump Headphone driver */
 49 #define ES8316_CPHP_OUTEN       0x17               53 #define ES8316_CPHP_OUTEN       0x17
 50 #define ES8316_CPHP_ICAL_VOL    0x18               54 #define ES8316_CPHP_ICAL_VOL    0x18
 51 #define ES8316_CPHP_PDN1        0x19               55 #define ES8316_CPHP_PDN1        0x19
 52 #define ES8316_CPHP_PDN2        0x1a               56 #define ES8316_CPHP_PDN2        0x1a
 53 #define ES8316_CPHP_LDOCTL      0x1b               57 #define ES8316_CPHP_LDOCTL      0x1b
 54                                                    58 
 55 /* Calibration */                                  59 /* Calibration */
 56 #define ES8316_CAL_TYPE         0x1c               60 #define ES8316_CAL_TYPE         0x1c
 57 #define ES8316_CAL_SET          0x1d               61 #define ES8316_CAL_SET          0x1d
 58 #define ES8316_CAL_HPLIV        0x1e               62 #define ES8316_CAL_HPLIV        0x1e
 59 #define ES8316_CAL_HPRIV        0x1f               63 #define ES8316_CAL_HPRIV        0x1f
 60 #define ES8316_CAL_HPLMV        0x20               64 #define ES8316_CAL_HPLMV        0x20
 61 #define ES8316_CAL_HPRMV        0x21               65 #define ES8316_CAL_HPRMV        0x21
 62                                                    66 
 63 /* ADC Control */                                  67 /* ADC Control */
 64 #define ES8316_ADC_PDN_LINSEL   0x22               68 #define ES8316_ADC_PDN_LINSEL   0x22
 65 #define ES8316_ADC_PGAGAIN      0x23               69 #define ES8316_ADC_PGAGAIN      0x23
 66 #define ES8316_ADC_D2SEPGA      0x24               70 #define ES8316_ADC_D2SEPGA      0x24
 67 #define ES8316_ADC_DMIC         0x25               71 #define ES8316_ADC_DMIC         0x25
 68 #define ES8316_ADC_MUTE         0x26               72 #define ES8316_ADC_MUTE         0x26
 69 #define ES8316_ADC_VOLUME       0x27               73 #define ES8316_ADC_VOLUME       0x27
 70 #define ES8316_ADC_ALC1         0x29               74 #define ES8316_ADC_ALC1         0x29
 71 #define ES8316_ADC_ALC2         0x2a               75 #define ES8316_ADC_ALC2         0x2a
 72 #define ES8316_ADC_ALC3         0x2b               76 #define ES8316_ADC_ALC3         0x2b
 73 #define ES8316_ADC_ALC4         0x2c               77 #define ES8316_ADC_ALC4         0x2c
 74 #define ES8316_ADC_ALC5         0x2d               78 #define ES8316_ADC_ALC5         0x2d
 75 #define ES8316_ADC_ALC_NG       0x2e               79 #define ES8316_ADC_ALC_NG       0x2e
 76                                                    80 
 77 /* DAC Control */                                  81 /* DAC Control */
 78 #define ES8316_DAC_PDN          0x2f               82 #define ES8316_DAC_PDN          0x2f
 79 #define ES8316_DAC_SET1         0x30               83 #define ES8316_DAC_SET1         0x30
 80 #define ES8316_DAC_SET2         0x31               84 #define ES8316_DAC_SET2         0x31
 81 #define ES8316_DAC_SET3         0x32               85 #define ES8316_DAC_SET3         0x32
 82 #define ES8316_DAC_VOLL         0x33               86 #define ES8316_DAC_VOLL         0x33
 83 #define ES8316_DAC_VOLR         0x34               87 #define ES8316_DAC_VOLR         0x34
 84                                                    88 
 85 /* GPIO */                                         89 /* GPIO */
 86 #define ES8316_GPIO_SEL         0x4d               90 #define ES8316_GPIO_SEL         0x4d
 87 #define ES8316_GPIO_DEBOUNCE    0x4e               91 #define ES8316_GPIO_DEBOUNCE    0x4e
 88 #define ES8316_GPIO_FLAG        0x4f               92 #define ES8316_GPIO_FLAG        0x4f
 89                                                    93 
 90 /* Test mode */                                    94 /* Test mode */
 91 #define ES8316_TESTMODE         0x50               95 #define ES8316_TESTMODE         0x50
 92 #define ES8316_TEST1            0x51               96 #define ES8316_TEST1            0x51
 93 #define ES8316_TEST2            0x52               97 #define ES8316_TEST2            0x52
 94 #define ES8316_TEST3            0x53               98 #define ES8316_TEST3            0x53
 95                                                    99 
 96 /*                                                100 /*
 97  * Field definitions                              101  * Field definitions
 98  */                                               102  */
 99                                                   103 
100 /* ES8316_RESET */                                104 /* ES8316_RESET */
101 #define ES8316_RESET_CSM_ON             0x80      105 #define ES8316_RESET_CSM_ON             0x80
102                                                   106 
103 /* ES8316_CLKMGR_CLKSW */                         107 /* ES8316_CLKMGR_CLKSW */
104 #define ES8316_CLKMGR_CLKSW_MCLK_ON     0x40      108 #define ES8316_CLKMGR_CLKSW_MCLK_ON     0x40
105 #define ES8316_CLKMGR_CLKSW_BCLK_ON     0x20      109 #define ES8316_CLKMGR_CLKSW_BCLK_ON     0x20
106                                                   110 
107 /* ES8316_SERDATA1 */                             111 /* ES8316_SERDATA1 */
108 #define ES8316_SERDATA1_MASTER          0x80      112 #define ES8316_SERDATA1_MASTER          0x80
109 #define ES8316_SERDATA1_BCLK_INV        0x20      113 #define ES8316_SERDATA1_BCLK_INV        0x20
110                                                   114 
111 /* ES8316_SERDATA_ADC and _DAC */                 115 /* ES8316_SERDATA_ADC and _DAC */
112 #define ES8316_SERDATA2_FMT_MASK        0x3       116 #define ES8316_SERDATA2_FMT_MASK        0x3
113 #define ES8316_SERDATA2_FMT_I2S         0x00      117 #define ES8316_SERDATA2_FMT_I2S         0x00
114 #define ES8316_SERDATA2_FMT_LEFTJ       0x01      118 #define ES8316_SERDATA2_FMT_LEFTJ       0x01
115 #define ES8316_SERDATA2_FMT_RIGHTJ      0x02      119 #define ES8316_SERDATA2_FMT_RIGHTJ      0x02
116 #define ES8316_SERDATA2_FMT_PCM         0x03      120 #define ES8316_SERDATA2_FMT_PCM         0x03
117 #define ES8316_SERDATA2_ADCLRP          0x20      121 #define ES8316_SERDATA2_ADCLRP          0x20
118 #define ES8316_SERDATA2_LEN_MASK        0x1c      122 #define ES8316_SERDATA2_LEN_MASK        0x1c
119 #define ES8316_SERDATA2_LEN_24          0x00      123 #define ES8316_SERDATA2_LEN_24          0x00
120 #define ES8316_SERDATA2_LEN_20          0x04      124 #define ES8316_SERDATA2_LEN_20          0x04
121 #define ES8316_SERDATA2_LEN_18          0x08      125 #define ES8316_SERDATA2_LEN_18          0x08
122 #define ES8316_SERDATA2_LEN_16          0x0c      126 #define ES8316_SERDATA2_LEN_16          0x0c
123 #define ES8316_SERDATA2_LEN_32          0x10      127 #define ES8316_SERDATA2_LEN_32          0x10
124                                                << 
125 /* ES8316_GPIO_DEBOUNCE */                     << 
126 #define ES8316_GPIO_ENABLE_INTERRUPT           << 
127                                                << 
128 /* ES8316_GPIO_FLAG */                         << 
129 #define ES8316_GPIO_FLAG_GM_NOT_SHORTED        << 
130 #define ES8316_GPIO_FLAG_HP_NOT_INSERTED       << 
131                                                << 
132 /* ES8316_CLKMGR_CLKSW */                      << 
133 #define ES8316_CLKMGR_CLKSW_MCLK_DIV    0x80   << 
134                                                   128 
135 #endif                                            129 #endif
136                                                   130 

~ [ 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