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

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

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * max98371.h -- MAX98371 ALSA SoC Audio driver
  4  *
  5  * Copyright 2011-2012 Maxim Integrated Products
  6  */
  7 
  8 #ifndef _MAX98371_H
  9 #define _MAX98371_H
 10 
 11 #define MAX98371_IRQ_CLEAR1                     0x01
 12 #define MAX98371_IRQ_CLEAR2                     0x02
 13 #define MAX98371_IRQ_CLEAR3                     0x03
 14 #define MAX98371_DAI_CLK                        0x10
 15 #define MAX98371_DAI_BSEL_MASK                  0xF
 16 #define MAX98371_DAI_BSEL_32                    2
 17 #define MAX98371_DAI_BSEL_48                    3
 18 #define MAX98371_DAI_BSEL_64                    4
 19 #define MAX98371_SPK_SR                         0x11
 20 #define MAX98371_SPK_SR_MASK                    0xF
 21 #define MAX98371_SPK_SR_32                      6
 22 #define MAX98371_SPK_SR_44                      7
 23 #define MAX98371_SPK_SR_48                      8
 24 #define MAX98371_SPK_SR_88                      10
 25 #define MAX98371_SPK_SR_96                      11
 26 #define MAX98371_DAI_CHANNEL                    0x15
 27 #define MAX98371_CHANNEL_MASK                   0x3
 28 #define MAX98371_MONOMIX_SRC                    0x18
 29 #define MAX98371_MONOMIX_CFG                    0x19
 30 #define MAX98371_HPF                            0x1C
 31 #define MAX98371_MONOMIX_SRC_MASK               0xFF
 32 #define MONOMIX_RX_0_1                          ((0x1)<<(4))
 33 #define M98371_DAI_CHANNEL_I2S                  0x3
 34 #define MAX98371_DIGITAL_GAIN                   0x2D
 35 #define MAX98371_DIGITAL_GAIN_WIDTH             0x7
 36 #define MAX98371_GAIN                           0x2E
 37 #define MAX98371_GAIN_SHIFT                     0x4
 38 #define MAX98371_GAIN_WIDTH                     0x4
 39 #define MAX98371_DHT_MAX_WIDTH                  4
 40 #define MAX98371_FMT                            0x14
 41 #define MAX98371_CHANSZ_WIDTH                   6
 42 #define MAX98371_FMT_MASK                       ((0x3)<<(MAX98371_CHANSZ_WIDTH))
 43 #define MAX98371_FMT_MODE_MASK                  ((0x7)<<(3))
 44 #define MAX98371_DAI_LEFT                       ((0x1)<<(3))
 45 #define MAX98371_DAI_RIGHT                      ((0x2)<<(3))
 46 #define MAX98371_DAI_CHANSZ_16                  ((1)<<(MAX98371_CHANSZ_WIDTH))
 47 #define MAX98371_DAI_CHANSZ_24                  ((2)<<(MAX98371_CHANSZ_WIDTH))
 48 #define MAX98371_DAI_CHANSZ_32                  ((3)<<(MAX98371_CHANSZ_WIDTH))
 49 #define MAX98371_DHT  0x32
 50 #define MAX98371_DHT_STEP                       0x3
 51 #define MAX98371_DHT_GAIN                       0x31
 52 #define MAX98371_DHT_GAIN_WIDTH                 0x4
 53 #define MAX98371_DHT_ROT_WIDTH                  0x4
 54 #define MAX98371_SPK_ENABLE                     0x4A
 55 #define MAX98371_GLOBAL_ENABLE                  0x50
 56 #define MAX98371_SOFT_RESET                     0x51
 57 #define MAX98371_VERSION                        0xFF
 58 
 59 
 60 struct max98371_priv {
 61         struct regmap *regmap;
 62 };
 63 #endif
 64 

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