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

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


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3  * wm8960.h  --  WM8960 Soc Audio driver            2  * wm8960.h  --  WM8960 Soc Audio driver
                                                   >>   3  *
                                                   >>   4  * This program is free software; you can redistribute it and/or modify
                                                   >>   5  * it under the terms of the GNU General Public License version 2 as
                                                   >>   6  * published by the Free Software Foundation.
  4  */                                                 7  */
  5                                                     8 
  6 #ifndef _WM8960_H                                   9 #ifndef _WM8960_H
  7 #define _WM8960_H                                  10 #define _WM8960_H
  8                                                    11 
  9 /* WM8960 register space */                        12 /* WM8960 register space */
 10                                                    13 
 11                                                    14 
 12 #define WM8960_CACHEREGNUM      56                 15 #define WM8960_CACHEREGNUM      56
 13                                                    16 
 14 #define WM8960_LINVOL           0x0                17 #define WM8960_LINVOL           0x0
 15 #define WM8960_RINVOL           0x1                18 #define WM8960_RINVOL           0x1
 16 #define WM8960_LOUT1            0x2                19 #define WM8960_LOUT1            0x2
 17 #define WM8960_ROUT1            0x3                20 #define WM8960_ROUT1            0x3
 18 #define WM8960_CLOCK1           0x4                21 #define WM8960_CLOCK1           0x4
 19 #define WM8960_DACCTL1          0x5                22 #define WM8960_DACCTL1          0x5
 20 #define WM8960_DACCTL2          0x6                23 #define WM8960_DACCTL2          0x6
 21 #define WM8960_IFACE1           0x7                24 #define WM8960_IFACE1           0x7
 22 #define WM8960_CLOCK2           0x8                25 #define WM8960_CLOCK2           0x8
 23 #define WM8960_IFACE2           0x9                26 #define WM8960_IFACE2           0x9
 24 #define WM8960_LDAC             0xa                27 #define WM8960_LDAC             0xa
 25 #define WM8960_RDAC             0xb                28 #define WM8960_RDAC             0xb
 26                                                    29 
 27 #define WM8960_RESET            0xf                30 #define WM8960_RESET            0xf
 28 #define WM8960_3D               0x10               31 #define WM8960_3D               0x10
 29 #define WM8960_ALC1             0x11               32 #define WM8960_ALC1             0x11
 30 #define WM8960_ALC2             0x12               33 #define WM8960_ALC2             0x12
 31 #define WM8960_ALC3             0x13               34 #define WM8960_ALC3             0x13
 32 #define WM8960_NOISEG           0x14               35 #define WM8960_NOISEG           0x14
 33 #define WM8960_LADC             0x15               36 #define WM8960_LADC             0x15
 34 #define WM8960_RADC             0x16               37 #define WM8960_RADC             0x16
 35 #define WM8960_ADDCTL1          0x17               38 #define WM8960_ADDCTL1          0x17
 36 #define WM8960_ADDCTL2          0x18               39 #define WM8960_ADDCTL2          0x18
 37 #define WM8960_POWER1           0x19               40 #define WM8960_POWER1           0x19
 38 #define WM8960_POWER2           0x1a               41 #define WM8960_POWER2           0x1a
 39 #define WM8960_ADDCTL3          0x1b               42 #define WM8960_ADDCTL3          0x1b
 40 #define WM8960_APOP1            0x1c               43 #define WM8960_APOP1            0x1c
 41 #define WM8960_APOP2            0x1d               44 #define WM8960_APOP2            0x1d
 42                                                    45 
 43 #define WM8960_LINPATH          0x20               46 #define WM8960_LINPATH          0x20
 44 #define WM8960_RINPATH          0x21               47 #define WM8960_RINPATH          0x21
 45 #define WM8960_LOUTMIX          0x22               48 #define WM8960_LOUTMIX          0x22
 46                                                    49 
 47 #define WM8960_ROUTMIX          0x25               50 #define WM8960_ROUTMIX          0x25
 48 #define WM8960_MONOMIX1         0x26               51 #define WM8960_MONOMIX1         0x26
 49 #define WM8960_MONOMIX2         0x27               52 #define WM8960_MONOMIX2         0x27
 50 #define WM8960_LOUT2            0x28               53 #define WM8960_LOUT2            0x28
 51 #define WM8960_ROUT2            0x29               54 #define WM8960_ROUT2            0x29
 52 #define WM8960_MONO             0x2a               55 #define WM8960_MONO             0x2a
 53 #define WM8960_INBMIX1          0x2b               56 #define WM8960_INBMIX1          0x2b
 54 #define WM8960_INBMIX2          0x2c               57 #define WM8960_INBMIX2          0x2c
 55 #define WM8960_BYPASS1          0x2d               58 #define WM8960_BYPASS1          0x2d
 56 #define WM8960_BYPASS2          0x2e               59 #define WM8960_BYPASS2          0x2e
 57 #define WM8960_POWER3           0x2f               60 #define WM8960_POWER3           0x2f
 58 #define WM8960_ADDCTL4          0x30               61 #define WM8960_ADDCTL4          0x30
 59 #define WM8960_CLASSD1          0x31               62 #define WM8960_CLASSD1          0x31
 60                                                    63 
 61 #define WM8960_CLASSD3          0x33               64 #define WM8960_CLASSD3          0x33
 62 #define WM8960_PLL1             0x34               65 #define WM8960_PLL1             0x34
 63 #define WM8960_PLL2             0x35               66 #define WM8960_PLL2             0x35
 64 #define WM8960_PLL3             0x36               67 #define WM8960_PLL3             0x36
 65 #define WM8960_PLL4             0x37               68 #define WM8960_PLL4             0x37
 66                                                    69 
 67                                                    70 
 68 /*                                                 71 /*
 69  * WM8960 Clock dividers                           72  * WM8960 Clock dividers
 70  */                                                73  */
 71 #define WM8960_SYSCLKDIV                0          74 #define WM8960_SYSCLKDIV                0
 72 #define WM8960_DACDIV                   1          75 #define WM8960_DACDIV                   1
 73 #define WM8960_OPCLKDIV                 2          76 #define WM8960_OPCLKDIV                 2
 74 #define WM8960_DCLKDIV                  3          77 #define WM8960_DCLKDIV                  3
 75 #define WM8960_TOCLKSEL                 4          78 #define WM8960_TOCLKSEL                 4
 76                                                    79 
 77 #define WM8960_SYSCLK_DIV_1             (0 <<      80 #define WM8960_SYSCLK_DIV_1             (0 << 1)
 78 #define WM8960_SYSCLK_DIV_2             (2 <<      81 #define WM8960_SYSCLK_DIV_2             (2 << 1)
 79                                                    82 
 80 #define WM8960_SYSCLK_AUTO              (0 <<  !!  83 #define WM8960_SYSCLK_MCLK              (0 << 0)
 81 #define WM8960_SYSCLK_PLL               (1 <<      84 #define WM8960_SYSCLK_PLL               (1 << 0)
 82 #define WM8960_SYSCLK_MCLK              (2 <<  !!  85 #define WM8960_SYSCLK_AUTO              (2 << 0)
 83                                                    86 
 84 #define WM8960_DAC_DIV_1                (0 <<      87 #define WM8960_DAC_DIV_1                (0 << 3)
 85 #define WM8960_DAC_DIV_1_5              (1 <<      88 #define WM8960_DAC_DIV_1_5              (1 << 3)
 86 #define WM8960_DAC_DIV_2                (2 <<      89 #define WM8960_DAC_DIV_2                (2 << 3)
 87 #define WM8960_DAC_DIV_3                (3 <<      90 #define WM8960_DAC_DIV_3                (3 << 3)
 88 #define WM8960_DAC_DIV_4                (4 <<      91 #define WM8960_DAC_DIV_4                (4 << 3)
 89 #define WM8960_DAC_DIV_5_5              (5 <<      92 #define WM8960_DAC_DIV_5_5              (5 << 3)
 90 #define WM8960_DAC_DIV_6                (6 <<      93 #define WM8960_DAC_DIV_6                (6 << 3)
 91                                                    94 
 92 #define WM8960_DCLK_DIV_1_5             (0 <<      95 #define WM8960_DCLK_DIV_1_5             (0 << 6)
 93 #define WM8960_DCLK_DIV_2               (1 <<      96 #define WM8960_DCLK_DIV_2               (1 << 6)
 94 #define WM8960_DCLK_DIV_3               (2 <<      97 #define WM8960_DCLK_DIV_3               (2 << 6)
 95 #define WM8960_DCLK_DIV_4               (3 <<      98 #define WM8960_DCLK_DIV_4               (3 << 6)
 96 #define WM8960_DCLK_DIV_6               (4 <<      99 #define WM8960_DCLK_DIV_6               (4 << 6)
 97 #define WM8960_DCLK_DIV_8               (5 <<     100 #define WM8960_DCLK_DIV_8               (5 << 6)
 98 #define WM8960_DCLK_DIV_12              (6 <<     101 #define WM8960_DCLK_DIV_12              (6 << 6)
 99 #define WM8960_DCLK_DIV_16              (7 <<     102 #define WM8960_DCLK_DIV_16              (7 << 6)
100                                                   103 
101 #define WM8960_TOCLK_F19                (0 <<     104 #define WM8960_TOCLK_F19                (0 << 1)
102 #define WM8960_TOCLK_F21                (1 <<     105 #define WM8960_TOCLK_F21                (1 << 1)
103                                                   106 
104 #define WM8960_OPCLK_DIV_1              (0 <<     107 #define WM8960_OPCLK_DIV_1              (0 << 0)
105 #define WM8960_OPCLK_DIV_2              (1 <<     108 #define WM8960_OPCLK_DIV_2              (1 << 0)
106 #define WM8960_OPCLK_DIV_3              (2 <<     109 #define WM8960_OPCLK_DIV_3              (2 << 0)
107 #define WM8960_OPCLK_DIV_4              (3 <<     110 #define WM8960_OPCLK_DIV_4              (3 << 0)
108 #define WM8960_OPCLK_DIV_5_5            (4 <<     111 #define WM8960_OPCLK_DIV_5_5            (4 << 0)
109 #define WM8960_OPCLK_DIV_6              (5 <<     112 #define WM8960_OPCLK_DIV_6              (5 << 0)
110                                                   113 
111 #endif                                            114 #endif
112                                                   115 

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