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

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/ad193x.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/ad193x.h (Version linux-6.12-rc7) and /sound/soc/codecs/ad193x.h (Version linux-6.2.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * AD193X Audio Codec driver                        3  * AD193X Audio Codec driver
  4  *                                                  4  *
  5  * Copyright 2010 Analog Devices Inc.               5  * Copyright 2010 Analog Devices Inc.
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef __AD193X_H__                                8 #ifndef __AD193X_H__
  9 #define __AD193X_H__                                9 #define __AD193X_H__
 10                                                    10 
 11 #include <linux/regmap.h>                          11 #include <linux/regmap.h>
 12                                                    12 
 13 struct device;                                     13 struct device;
 14                                                    14 
 15 enum ad193x_type {                                 15 enum ad193x_type {
 16         AD193X,                                    16         AD193X,
 17         AD1933,                                    17         AD1933,
 18         AD1934,                                    18         AD1934,
 19 };                                                 19 };
 20                                                    20 
 21 extern const struct regmap_config ad193x_regma     21 extern const struct regmap_config ad193x_regmap_config;
 22 int ad193x_probe(struct device *dev, struct re     22 int ad193x_probe(struct device *dev, struct regmap *regmap,
 23                  enum ad193x_type type);           23                  enum ad193x_type type);
 24                                                    24 
 25 #define AD193X_PLL_CLK_CTRL0    0x00               25 #define AD193X_PLL_CLK_CTRL0    0x00
 26 #define AD193X_PLL_POWERDOWN           0x01        26 #define AD193X_PLL_POWERDOWN           0x01
 27 #define AD193X_PLL_INPUT_MASK   0x6                27 #define AD193X_PLL_INPUT_MASK   0x6
 28 #define AD193X_PLL_INPUT_256    (0 << 1)           28 #define AD193X_PLL_INPUT_256    (0 << 1)
 29 #define AD193X_PLL_INPUT_384    (1 << 1)           29 #define AD193X_PLL_INPUT_384    (1 << 1)
 30 #define AD193X_PLL_INPUT_512    (2 << 1)           30 #define AD193X_PLL_INPUT_512    (2 << 1)
 31 #define AD193X_PLL_INPUT_768    (3 << 1)           31 #define AD193X_PLL_INPUT_768    (3 << 1)
 32 #define AD193X_PLL_CLK_CTRL1    0x01               32 #define AD193X_PLL_CLK_CTRL1    0x01
 33 #define AD193X_PLL_SRC_MASK     0x03               33 #define AD193X_PLL_SRC_MASK     0x03
 34 #define AD193X_PLL_DAC_SRC_PLL  0                  34 #define AD193X_PLL_DAC_SRC_PLL  0
 35 #define AD193X_PLL_DAC_SRC_MCLK 1                  35 #define AD193X_PLL_DAC_SRC_MCLK 1
 36 #define AD193X_PLL_CLK_SRC_PLL  (0 << 1)           36 #define AD193X_PLL_CLK_SRC_PLL  (0 << 1)
 37 #define AD193X_PLL_CLK_SRC_MCLK (1 << 1)           37 #define AD193X_PLL_CLK_SRC_MCLK (1 << 1)
 38 #define AD193X_DAC_CTRL0        0x02               38 #define AD193X_DAC_CTRL0        0x02
 39 #define AD193X_DAC_POWERDOWN           0x01        39 #define AD193X_DAC_POWERDOWN           0x01
 40 #define AD193X_DAC_SR_MASK           0x06          40 #define AD193X_DAC_SR_MASK           0x06
 41 #define AD193X_DAC_SR_48        (0 << 1)           41 #define AD193X_DAC_SR_48        (0 << 1)
 42 #define AD193X_DAC_SR_96        (1 << 1)           42 #define AD193X_DAC_SR_96        (1 << 1)
 43 #define AD193X_DAC_SR_192       (2 << 1)           43 #define AD193X_DAC_SR_192       (2 << 1)
 44 #define AD193X_DAC_SERFMT_MASK          0xC0       44 #define AD193X_DAC_SERFMT_MASK          0xC0
 45 #define AD193X_DAC_SERFMT_STEREO        (0 <<      45 #define AD193X_DAC_SERFMT_STEREO        (0 << 6)
 46 #define AD193X_DAC_SERFMT_TDM           (1 <<      46 #define AD193X_DAC_SERFMT_TDM           (1 << 6)
 47 #define AD193X_DAC_CTRL1        0x03               47 #define AD193X_DAC_CTRL1        0x03
 48 #define AD193X_DAC_CHAN_SHFT    1                  48 #define AD193X_DAC_CHAN_SHFT    1
 49 #define AD193X_DAC_CHAN_MASK    (3 << AD193X_D     49 #define AD193X_DAC_CHAN_MASK    (3 << AD193X_DAC_CHAN_SHFT)
 50 #define AD193X_DAC_LCR_MASTER   (1 << 4)           50 #define AD193X_DAC_LCR_MASTER   (1 << 4)
 51 #define AD193X_DAC_BCLK_MASTER  (1 << 5)           51 #define AD193X_DAC_BCLK_MASTER  (1 << 5)
 52 #define AD193X_DAC_LEFT_HIGH    (1 << 3)           52 #define AD193X_DAC_LEFT_HIGH    (1 << 3)
 53 #define AD193X_DAC_BCLK_INV     (1 << 7)           53 #define AD193X_DAC_BCLK_INV     (1 << 7)
 54 #define AD193X_DAC_FMT_MASK     (AD193X_DAC_LC     54 #define AD193X_DAC_FMT_MASK     (AD193X_DAC_LCR_MASTER | \
 55         AD193X_DAC_BCLK_MASTER | AD193X_DAC_LE     55         AD193X_DAC_BCLK_MASTER | AD193X_DAC_LEFT_HIGH | AD193X_DAC_BCLK_INV)
 56 #define AD193X_DAC_CTRL2        0x04               56 #define AD193X_DAC_CTRL2        0x04
 57 #define AD193X_DAC_WORD_LEN_SHFT        3          57 #define AD193X_DAC_WORD_LEN_SHFT        3
 58 #define AD193X_DAC_WORD_LEN_MASK        0x18       58 #define AD193X_DAC_WORD_LEN_MASK        0x18
 59 #define AD193X_DAC_MASTER_MUTE  1                  59 #define AD193X_DAC_MASTER_MUTE  1
 60 #define AD193X_DAC_CHNL_MUTE    0x05               60 #define AD193X_DAC_CHNL_MUTE    0x05
 61 #define AD193X_DACL1_MUTE       0                  61 #define AD193X_DACL1_MUTE       0
 62 #define AD193X_DACR1_MUTE       1                  62 #define AD193X_DACR1_MUTE       1
 63 #define AD193X_DACL2_MUTE       2                  63 #define AD193X_DACL2_MUTE       2
 64 #define AD193X_DACR2_MUTE       3                  64 #define AD193X_DACR2_MUTE       3
 65 #define AD193X_DACL3_MUTE       4                  65 #define AD193X_DACL3_MUTE       4
 66 #define AD193X_DACR3_MUTE       5                  66 #define AD193X_DACR3_MUTE       5
 67 #define AD193X_DACL4_MUTE       6                  67 #define AD193X_DACL4_MUTE       6
 68 #define AD193X_DACR4_MUTE       7                  68 #define AD193X_DACR4_MUTE       7
 69 #define AD193X_DAC_L1_VOL       0x06               69 #define AD193X_DAC_L1_VOL       0x06
 70 #define AD193X_DAC_R1_VOL       0x07               70 #define AD193X_DAC_R1_VOL       0x07
 71 #define AD193X_DAC_L2_VOL       0x08               71 #define AD193X_DAC_L2_VOL       0x08
 72 #define AD193X_DAC_R2_VOL       0x09               72 #define AD193X_DAC_R2_VOL       0x09
 73 #define AD193X_DAC_L3_VOL       0x0a               73 #define AD193X_DAC_L3_VOL       0x0a
 74 #define AD193X_DAC_R3_VOL       0x0b               74 #define AD193X_DAC_R3_VOL       0x0b
 75 #define AD193X_DAC_L4_VOL       0x0c               75 #define AD193X_DAC_L4_VOL       0x0c
 76 #define AD193X_DAC_R4_VOL       0x0d               76 #define AD193X_DAC_R4_VOL       0x0d
 77 #define AD193X_ADC_CTRL0        0x0e               77 #define AD193X_ADC_CTRL0        0x0e
 78 #define AD193X_ADC_POWERDOWN           0x01        78 #define AD193X_ADC_POWERDOWN           0x01
 79 #define AD193X_ADC_HIGHPASS_FILTER      1          79 #define AD193X_ADC_HIGHPASS_FILTER      1
 80 #define AD193X_ADCL1_MUTE               2          80 #define AD193X_ADCL1_MUTE               2
 81 #define AD193X_ADCR1_MUTE               3          81 #define AD193X_ADCR1_MUTE               3
 82 #define AD193X_ADCL2_MUTE               4          82 #define AD193X_ADCL2_MUTE               4
 83 #define AD193X_ADCR2_MUTE               5          83 #define AD193X_ADCR2_MUTE               5
 84 #define AD193X_ADC_CTRL1        0x0f               84 #define AD193X_ADC_CTRL1        0x0f
 85 #define AD193X_ADC_SERFMT_MASK          0x60       85 #define AD193X_ADC_SERFMT_MASK          0x60
 86 #define AD193X_ADC_SERFMT_STEREO        (0 <<      86 #define AD193X_ADC_SERFMT_STEREO        (0 << 5)
 87 #define AD193X_ADC_SERFMT_TDM           (1 <<      87 #define AD193X_ADC_SERFMT_TDM           (1 << 5)
 88 #define AD193X_ADC_SERFMT_AUX           (2 <<      88 #define AD193X_ADC_SERFMT_AUX           (2 << 5)
 89 #define AD193X_ADC_WORD_LEN_MASK        0x3        89 #define AD193X_ADC_WORD_LEN_MASK        0x3
 90 #define AD193X_ADC_CTRL2        0x10               90 #define AD193X_ADC_CTRL2        0x10
 91 #define AD193X_ADC_CHAN_SHFT    4                  91 #define AD193X_ADC_CHAN_SHFT    4
 92 #define AD193X_ADC_CHAN_MASK    (3 << AD193X_A     92 #define AD193X_ADC_CHAN_MASK    (3 << AD193X_ADC_CHAN_SHFT)
 93 #define AD193X_ADC_LCR_MASTER   (1 << 3)           93 #define AD193X_ADC_LCR_MASTER   (1 << 3)
 94 #define AD193X_ADC_BCLK_MASTER  (1 << 6)           94 #define AD193X_ADC_BCLK_MASTER  (1 << 6)
 95 #define AD193X_ADC_LEFT_HIGH    (1 << 2)           95 #define AD193X_ADC_LEFT_HIGH    (1 << 2)
 96 #define AD193X_ADC_BCLK_INV     (1 << 1)           96 #define AD193X_ADC_BCLK_INV     (1 << 1)
 97 #define AD193X_ADC_FMT_MASK     (AD193X_ADC_LC     97 #define AD193X_ADC_FMT_MASK     (AD193X_ADC_LCR_MASTER | \
 98         AD193X_ADC_BCLK_MASTER | AD193X_ADC_LE     98         AD193X_ADC_BCLK_MASTER | AD193X_ADC_LEFT_HIGH | AD193X_ADC_BCLK_INV)
 99                                                    99 
100 #define AD193X_2_CHANNELS   0                     100 #define AD193X_2_CHANNELS   0
101 #define AD193X_4_CHANNELS   1                     101 #define AD193X_4_CHANNELS   1
102 #define AD193X_8_CHANNELS   2                     102 #define AD193X_8_CHANNELS   2
103 #define AD193X_16_CHANNELS  3                     103 #define AD193X_16_CHANNELS  3
104                                                   104 
105 #define AD193X_NUM_REGS          17               105 #define AD193X_NUM_REGS          17
106                                                   106 
107 #define AD193X_SYSCLK_PLL       0                 107 #define AD193X_SYSCLK_PLL       0
108 #define AD193X_SYSCLK_MCLK      1                 108 #define AD193X_SYSCLK_MCLK      1
109                                                   109 
110 #endif                                            110 #endif
111                                                   111 

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