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

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/wm8978.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 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * wm8978.h             --  codec driver for WM8978
  4  *
  5  * Copyright 2009 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  6  */
  7 
  8 #ifndef __WM8978_H__
  9 #define __WM8978_H__
 10 
 11 /*
 12  * Register values.
 13  */
 14 #define WM8978_RESET                            0x00
 15 #define WM8978_POWER_MANAGEMENT_1               0x01
 16 #define WM8978_POWER_MANAGEMENT_2               0x02
 17 #define WM8978_POWER_MANAGEMENT_3               0x03
 18 #define WM8978_AUDIO_INTERFACE                  0x04
 19 #define WM8978_COMPANDING_CONTROL               0x05
 20 #define WM8978_CLOCKING                         0x06
 21 #define WM8978_ADDITIONAL_CONTROL               0x07
 22 #define WM8978_GPIO_CONTROL                     0x08
 23 #define WM8978_JACK_DETECT_CONTROL_1            0x09
 24 #define WM8978_DAC_CONTROL                      0x0A
 25 #define WM8978_LEFT_DAC_DIGITAL_VOLUME          0x0B
 26 #define WM8978_RIGHT_DAC_DIGITAL_VOLUME         0x0C
 27 #define WM8978_JACK_DETECT_CONTROL_2            0x0D
 28 #define WM8978_ADC_CONTROL                      0x0E
 29 #define WM8978_LEFT_ADC_DIGITAL_VOLUME          0x0F
 30 #define WM8978_RIGHT_ADC_DIGITAL_VOLUME         0x10
 31 #define WM8978_EQ1                              0x12
 32 #define WM8978_EQ2                              0x13
 33 #define WM8978_EQ3                              0x14
 34 #define WM8978_EQ4                              0x15
 35 #define WM8978_EQ5                              0x16
 36 #define WM8978_DAC_LIMITER_1                    0x18
 37 #define WM8978_DAC_LIMITER_2                    0x19
 38 #define WM8978_NOTCH_FILTER_1                   0x1b
 39 #define WM8978_NOTCH_FILTER_2                   0x1c
 40 #define WM8978_NOTCH_FILTER_3                   0x1d
 41 #define WM8978_NOTCH_FILTER_4                   0x1e
 42 #define WM8978_ALC_CONTROL_1                    0x20
 43 #define WM8978_ALC_CONTROL_2                    0x21
 44 #define WM8978_ALC_CONTROL_3                    0x22
 45 #define WM8978_NOISE_GATE                       0x23
 46 #define WM8978_PLL_N                            0x24
 47 #define WM8978_PLL_K1                           0x25
 48 #define WM8978_PLL_K2                           0x26
 49 #define WM8978_PLL_K3                           0x27
 50 #define WM8978_3D_CONTROL                       0x29
 51 #define WM8978_BEEP_CONTROL                     0x2b
 52 #define WM8978_INPUT_CONTROL                    0x2c
 53 #define WM8978_LEFT_INP_PGA_CONTROL             0x2d
 54 #define WM8978_RIGHT_INP_PGA_CONTROL            0x2e
 55 #define WM8978_LEFT_ADC_BOOST_CONTROL           0x2f
 56 #define WM8978_RIGHT_ADC_BOOST_CONTROL          0x30
 57 #define WM8978_OUTPUT_CONTROL                   0x31
 58 #define WM8978_LEFT_MIXER_CONTROL               0x32
 59 #define WM8978_RIGHT_MIXER_CONTROL              0x33
 60 #define WM8978_LOUT1_HP_CONTROL                 0x34
 61 #define WM8978_ROUT1_HP_CONTROL                 0x35
 62 #define WM8978_LOUT2_SPK_CONTROL                0x36
 63 #define WM8978_ROUT2_SPK_CONTROL                0x37
 64 #define WM8978_OUT3_MIXER_CONTROL               0x38
 65 #define WM8978_OUT4_MIXER_CONTROL               0x39
 66 
 67 #define WM8978_MAX_REGISTER                     0x39
 68 
 69 #define WM8978_CACHEREGNUM                      58
 70 
 71 /* Clock divider Id's */
 72 enum wm8978_clk_id {
 73         WM8978_OPCLKRATE,
 74         WM8978_BCLKDIV,
 75 };
 76 
 77 enum wm8978_sysclk_src {
 78         WM8978_MCLK = 0,
 79         WM8978_PLL,
 80 };
 81 
 82 #endif  /* __WM8978_H__ */
 83 

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