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

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


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * PCM3060 codec driver                           
  4  *                                                
  5  * Copyright (C) 2018 Kirill Marinushkin <k.ma    
  6  */                                               
  7                                                   
  8 #ifndef _SND_SOC_PCM3060_H                        
  9 #define _SND_SOC_PCM3060_H                        
 10                                                   
 11 #include <linux/device.h>                         
 12 #include <linux/regmap.h>                         
 13                                                   
 14 extern const struct regmap_config pcm3060_regm    
 15                                                   
 16 #define PCM3060_DAI_ID_DAC      0                 
 17 #define PCM3060_DAI_ID_ADC      1                 
 18 #define PCM3060_DAI_IDS_NUM     2                 
 19                                                   
 20 /* ADC and DAC can be clocked from separate or    
 21 #define PCM3060_CLK_DEF 0 /* default: CLK1->AD    
 22 #define PCM3060_CLK1            1                 
 23 #define PCM3060_CLK2            2                 
 24                                                   
 25 struct pcm3060_priv_dai {                         
 26         bool is_provider;                         
 27         unsigned int sclk_freq;                   
 28 };                                                
 29                                                   
 30 struct pcm3060_priv {                             
 31         struct regmap *regmap;                    
 32         struct pcm3060_priv_dai dai[PCM3060_DA    
 33         u8 out_se: 1;                             
 34 };                                                
 35                                                   
 36 int pcm3060_probe(struct device *dev);            
 37 int pcm3060_remove(struct device *dev);           
 38                                                   
 39 /* registers */                                   
 40                                                   
 41 #define PCM3060_REG64                   0x40      
 42 #define PCM3060_REG_MRST                0x80      
 43 #define PCM3060_REG_SRST                0x40      
 44 #define PCM3060_REG_ADPSV               0x20      
 45 #define PCM3060_REG_SHIFT_ADPSV 0x05              
 46 #define PCM3060_REG_DAPSV               0x10      
 47 #define PCM3060_REG_SHIFT_DAPSV 0x04              
 48 #define PCM3060_REG_SE                  0x01      
 49                                                   
 50 #define PCM3060_REG65                   0x41      
 51 #define PCM3060_REG66                   0x42      
 52 #define PCM3060_REG_AT2_MIN             0x36      
 53 #define PCM3060_REG_AT2_MAX             0xFF      
 54                                                   
 55 #define PCM3060_REG67                   0x43      
 56 #define PCM3060_REG72                   0x48      
 57 #define PCM3060_REG_CSEL                0x80      
 58 #define PCM3060_REG_MASK_MS             0x70      
 59 #define PCM3060_REG_MS_S                0x00      
 60 #define PCM3060_REG_MS_M768             (0x01     
 61 #define PCM3060_REG_MS_M512             (0x02     
 62 #define PCM3060_REG_MS_M384             (0x03     
 63 #define PCM3060_REG_MS_M256             (0x04     
 64 #define PCM3060_REG_MS_M192             (0x05     
 65 #define PCM3060_REG_MS_M128             (0x06     
 66 #define PCM3060_REG_MASK_FMT            0x03      
 67 #define PCM3060_REG_FMT_I2S             0x00      
 68 #define PCM3060_REG_FMT_LJ              0x01      
 69 #define PCM3060_REG_FMT_RJ              0x02      
 70                                                   
 71 #define PCM3060_REG68                   0x44      
 72 #define PCM3060_REG_OVER                0x40      
 73 #define PCM3060_REG_DREV2               0x04      
 74 #define PCM3060_REG_SHIFT_MUT21 0x00              
 75 #define PCM3060_REG_SHIFT_MUT22 0x01              
 76                                                   
 77 #define PCM3060_REG69                   0x45      
 78 #define PCM3060_REG_FLT         0x80              
 79 #define PCM3060_REG_MASK_DMF            0x60      
 80 #define PCM3060_REG_DMC         0x10              
 81 #define PCM3060_REG_ZREV                0x02      
 82 #define PCM3060_REG_AZRO                0x01      
 83                                                   
 84 #define PCM3060_REG70                   0x46      
 85 #define PCM3060_REG71                   0x47      
 86 #define PCM3060_REG_AT1_MIN             0x0E      
 87 #define PCM3060_REG_AT1_MAX             0xFF      
 88                                                   
 89 #define PCM3060_REG73                   0x49      
 90 #define PCM3060_REG_ZCDD                0x10      
 91 #define PCM3060_REG_BYP         0x08              
 92 #define PCM3060_REG_DREV1               0x04      
 93 #define PCM3060_REG_SHIFT_MUT11 0x00              
 94 #define PCM3060_REG_SHIFT_MUT12 0x01              
 95                                                   
 96 #endif /* _SND_SOC_PCM3060_H */                   
 97                                                   

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