/linux-master/sound/soc/codecs/ |
H A D | wm8753.c | 130 static bool wm8753_volatile(struct device *dev, unsigned int reg) argument 132 return reg == WM8753_RESET; 741 u16 reg, enable; local 751 reg = snd_soc_component_read(component, WM8753_CLOCK) & 0xffef; 755 reg = snd_soc_component_read(component, WM8753_CLOCK) & 0xfff7; 761 snd_soc_component_write(component, WM8753_CLOCK, reg); 785 snd_soc_component_write(component, WM8753_CLOCK, reg | enable); 1026 u16 reg; local 1030 reg = snd_soc_component_read(component, WM8753_CLOCK) & 0x003f; 1031 snd_soc_component_write(component, WM8753_CLOCK, reg | di [all...] |
H A D | wm8737.c | 64 static bool wm8737_volatile(struct device *dev, unsigned int reg) argument 66 switch (reg) {
|
H A D | wm8728.c | 164 u16 reg; local 172 reg = snd_soc_component_read(component, WM8728_DACCTL); 173 snd_soc_component_write(component, WM8728_DACCTL, reg & ~0x4); 181 reg = snd_soc_component_read(component, WM8728_DACCTL); 182 snd_soc_component_write(component, WM8728_DACCTL, reg | 0x4);
|
H A D | wm8711.c | 48 static bool wm8711_volatile(struct device *dev, unsigned int reg) argument 50 switch (reg) { 301 u16 reg = snd_soc_component_read(component, WM8711_PWR) & 0xff7f; local 305 snd_soc_component_write(component, WM8711_PWR, reg); 313 snd_soc_component_write(component, WM8711_PWR, reg | 0x0040);
|
H A D | wm8510.c | 93 static bool wm8510_volatile(struct device *dev, unsigned int reg) argument 95 switch (reg) { 317 u16 reg; local 321 reg = snd_soc_component_read(component, WM8510_CLOCK); 322 snd_soc_component_write(component, WM8510_CLOCK, reg & 0x0ff); 325 reg = snd_soc_component_read(component, WM8510_POWER1); 326 snd_soc_component_write(component, WM8510_POWER1, reg & 0x1df); 336 reg = snd_soc_component_read(component, WM8510_POWER1); 337 snd_soc_component_write(component, WM8510_POWER1, reg | 0x020); 340 reg 353 u16 reg; local [all...] |
H A D | wm8523.c | 56 static bool wm8523_volatile_register(struct device *dev, unsigned int reg) argument 58 switch (reg) {
|
H A D | wm5100.c | 388 #define WM5100_MUX_ENUM_DECL(name, reg) \ 389 SOC_VALUE_ENUM_SINGLE_DECL(name, reg, 0, 0xff, \ 781 switch (w->reg) { 1514 int fval, audio_rate, ret, reg; local 1518 reg = WM5100_CLOCKING_3; 1522 reg = WM5100_CLOCKING_7; 1634 snd_soc_component_update_bits(component, reg, WM5100_SYSCLK_FREQ_MASK | 2267 unsigned int reg; local 2270 ret = regmap_read(wm5100->regmap, WM5100_GPIO_CTRL_1 + offset, ®); 2274 return (reg 2401 unsigned int reg; local [all...] |
H A D | wm2200.c | 503 static bool wm2200_volatile_register(struct device *dev, unsigned int reg) argument 508 if ((reg >= wm2200_ranges[i].window_start && 509 reg <= wm2200_ranges[i].window_start + 511 (reg >= wm2200_ranges[i].range_min && 512 reg <= wm2200_ranges[i].range_max)) 515 switch (reg) { 529 static bool wm2200_readable_register(struct device *dev, unsigned int reg) argument 534 if ((reg >= wm2200_ranges[i].window_start && 535 reg <= wm2200_ranges[i].window_start + 537 (reg > 2185 unsigned int reg; local [all...] |
H A D | wm2000.c | 81 static int wm2000_write(struct i2c_client *i2c, unsigned int reg, argument 85 return regmap_write(wm2000->regmap, reg, value); 100 unsigned int reg, u8 mask) 106 regmap_read(wm2000->regmap, reg, &val); 110 regmap_read(wm2000->regmap, reg, &val); 736 static bool wm2000_readable_reg(struct device *dev, unsigned int reg) argument 738 switch (reg) { 815 unsigned int reg; local 851 ret = regmap_read(wm2000->regmap, WM2000_REG_ID1, ®); 856 id = reg << 99 wm2000_poll_bit(struct i2c_client *i2c, unsigned int reg, u8 mask) argument [all...] |
H A D | wcd934x.c | 2287 unsigned short reg = 0; local 2308 reg = WCD934X_SLIM_PGD_PORT_INT_EN0 + 2311 reg = WCD934X_SLIM_PGD_PORT_INT_TX_EN0 + 2313 regmap_read(wcd->if_regmap, reg, &int_val); 2329 reg = WCD934X_SLIM_PGD_PORT_INT_EN0 + 2332 reg = WCD934X_SLIM_PGD_PORT_INT_TX_EN0 + 2335 wcd->if_regmap, reg, &int_val); 2339 reg, int_val); 3117 int reg, b2_reg; local 3120 reg 3150 int reg = WCD934X_CDC_SIDETONE_IIR0_IIR_COEF_B2_CTL + 16 * iir_idx; local 3171 int reg = WCD934X_CDC_SIDETONE_IIR0_IIR_COEF_B1_CTL + 16 * iir_idx; local 3416 int reg, val; local 4146 unsigned short reg = 0; local 4390 int reg = w->reg; local [all...] |
H A D | tscs454.c | 158 static bool tscs454_volatile(struct device *dev, unsigned int reg) argument 160 switch (reg) { 183 static bool tscs454_writable(struct device *dev, unsigned int reg) argument 185 switch (reg) { 203 static bool tscs454_readable(struct device *dev, unsigned int reg) argument 205 switch (reg) { 223 static bool tscs454_precious(struct device *dev, unsigned int reg) argument 225 switch (reg) { 762 unsigned int reg; local 769 reg 2735 unsigned int reg; local 2768 unsigned int reg; local 2832 unsigned int reg; local 2968 unsigned int reg; local 3036 unsigned int reg; local 3119 unsigned int reg; local [all...] |
H A D | uda1380.c | 62 unsigned int reg) 67 if (reg == UDA1380_RESET) 69 if (reg >= UDA1380_CACHEREGNUM) 71 return cache[reg]; 78 u16 reg, unsigned int value) 83 if (reg >= UDA1380_CACHEREGNUM) 85 if ((reg >= 0x10) && (cache[reg] != value)) 86 set_bit(reg - 0x10, &uda1380_cache_dirty); 87 cache[reg] 61 uda1380_read_reg_cache(struct snd_soc_component *component, unsigned int reg) argument 77 uda1380_write_reg_cache(struct snd_soc_component *component, u16 reg, unsigned int value) argument 93 uda1380_write(struct snd_soc_component *component, unsigned int reg, unsigned int value) argument 136 int reg; local 180 int bit, reg; local 592 int reg; local [all...] |
H A D | tscs42xx.c | 54 static bool tscs42xx_volatile(struct device *dev, unsigned int reg) argument 56 switch (reg) { 72 static bool tscs42xx_precious(struct device *dev, unsigned int reg) argument 74 switch (reg) { 1278 unsigned int reg; local 1280 ret = regmap_read(tscs42xx->regmap, R_DEVIDH, ®); 1284 val = reg << 8; 1285 ret = regmap_read(tscs42xx->regmap, R_DEVIDL, ®); 1289 val |= reg;
|
H A D | ts3a227e.c | 122 static bool ts3a227e_readable_reg(struct device *dev, unsigned int reg) argument 124 switch (reg) { 132 static bool ts3a227e_writeable_reg(struct device *dev, unsigned int reg) argument 134 switch (reg) { 143 static bool ts3a227e_volatile_reg(struct device *dev, unsigned int reg) argument 145 switch (reg) {
|
H A D | tda7419.c | 92 static bool tda7419_readable_reg(struct device *dev, unsigned int reg) argument 130 unsigned int reg, rreg, mask, thresh; member in struct:tda7419_vol_control 136 if (tvc->reg == tvc->rreg) 183 unsigned int reg = tvc->reg; local 191 val = snd_soc_component_read(component, reg); 226 unsigned int reg = tvc->reg; local 236 ret = snd_soc_component_update_bits(component, reg, 253 {.reg [all...] |
H A D | tfa9879.c | 182 static bool tfa9879_volatile_reg(struct device *dev, unsigned int reg) argument 184 return reg == TFA9879_MISC_STATUS; 292 tfa9879_regs[i].reg, tfa9879_regs[i].def);
|
H A D | tas6424.c | 406 unsigned int reg; local 409 ret = regmap_read(tas6424->regmap, TAS6424_CHANNEL_FAULT, ®); 415 if (!reg) { 416 tas6424->last_cfault = reg; 426 if ((reg & TAS6424_FAULT_OC_CH1) && !(tas6424->last_cfault & TAS6424_FAULT_OC_CH1)) 429 if ((reg & TAS6424_FAULT_OC_CH2) && !(tas6424->last_cfault & TAS6424_FAULT_OC_CH2)) 432 if ((reg & TAS6424_FAULT_OC_CH3) && !(tas6424->last_cfault & TAS6424_FAULT_OC_CH3)) 435 if ((reg & TAS6424_FAULT_OC_CH4) && !(tas6424->last_cfault & TAS6424_FAULT_OC_CH4)) 438 if ((reg & TAS6424_FAULT_DC_CH1) && !(tas6424->last_cfault & TAS6424_FAULT_DC_CH1)) 441 if ((reg 612 tas6424_is_writable_reg(struct device *dev, unsigned int reg) argument 641 tas6424_is_volatile_reg(struct device *dev, unsigned int reg) argument [all...] |
H A D | tas2781-fmwlib.c | 1191 unsigned char reg, unsigned char len) 1196 if (reg <= TAS2781_YRAM5_END_REG && 1197 reg >= TAS2781_YRAM5_START_REG) { 1198 if (reg + len > TAS2781_YRAM5_END_REG) 1199 cd->len = TAS2781_YRAM5_END_REG - reg + 1; 1202 cd->offset = reg; 1204 } else if (reg < TAS2781_YRAM5_START_REG) { 1205 if (reg + len > TAS2781_YRAM5_START_REG) { 1207 cd->len = len - TAS2781_YRAM5_START_REG + reg; 1216 unsigned char page, unsigned char reg, unsigne 1190 check_inpage_yram_rg(struct tas_crc *cd, unsigned char reg, unsigned char len) argument 1215 check_inpage_yram_bk1(struct tas_crc *cd, unsigned char page, unsigned char reg, unsigned char len) argument 1240 check_inpage_yram(struct tas_crc *cd, unsigned char book, unsigned char page, unsigned char reg, unsigned char len) argument 1256 check_inblock_yram_bk(struct tas_crc *cd, unsigned char page, unsigned char reg, unsigned char len) argument 1286 check_inblock_yram(struct tas_crc *cd, unsigned char book, unsigned char page, unsigned char reg, unsigned char len) argument 1297 check_yram(struct tas_crc *cd, unsigned char book, unsigned char page, unsigned char reg, unsigned char len) argument 1311 tasdev_multibytes_chksum(struct tasdevice_priv *tasdevice, unsigned short chn, unsigned char book, unsigned char page, unsigned char reg, unsigned int len) argument 1375 do_singlereg_checksum(struct tasdevice_priv *tasdevice, unsigned short chl, unsigned char book, unsigned char page, unsigned char reg, unsigned char val) argument 1427 tasdev_bytes_chksum(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn, unsigned char book, unsigned char page, unsigned char reg, unsigned int len, unsigned char val, unsigned char *crc_chksum) argument 1459 tasdev_multibytes_wr(struct tasdevice_priv *tas_priv, struct tasdev_blk *block, int chn, unsigned char book, unsigned char page, unsigned char reg, unsigned char *data, unsigned int len, unsigned int *nr_cmds, unsigned char *crc_chksum) argument [all...] |
H A D | tas5086.c | 123 static int tas5086_register_size(struct device *dev, unsigned int reg) argument 125 switch (reg) { 133 dev_err(dev, "Unsupported register address: %d\n", reg); 137 static bool tas5086_accessible_reg(struct device *dev, unsigned int reg) argument 139 switch (reg) { 149 static bool tas5086_volatile_reg(struct device *dev, unsigned int reg) argument 151 switch (reg) { 160 static bool tas5086_writeable_reg(struct device *dev, unsigned int reg) argument 162 return tas5086_accessible_reg(dev, reg) && (reg ! 165 tas5086_reg_write(void *context, unsigned int reg, unsigned int value) argument 193 tas5086_reg_read(void *context, unsigned int reg, unsigned int *value) argument [all...] |
H A D | tas2770.c | 560 static bool tas2770_volatile(struct device *dev, unsigned int reg) argument 562 switch (reg) { 580 static bool tas2770_writeable(struct device *dev, unsigned int reg) argument 582 switch (reg) {
|
H A D | tas2764.c | 645 static bool tas2764_volatile_register(struct device *dev, unsigned int reg) argument 647 switch (reg) {
|
H A D | tas2552.c | 398 u8 reg, mask, val; local 415 reg = TAS2552_CFG_1; 425 reg = TAS2552_PDM_CFG; 434 snd_soc_component_update_bits(component, reg, mask, val);
|
H A D | sta529.c | 98 { 0, 0x35 }, /* R0 - FFX Configuration reg 0 */ 99 { 1, 0xc8 }, /* R1 - FFX Configuration reg 1 */ 116 static bool sta529_readable(struct device *dev, unsigned int reg) argument 118 switch (reg) {
|
H A D | ssm4567.c | 120 static bool ssm4567_readable_reg(struct device *dev, unsigned int reg) argument 122 switch (reg) { 131 static bool ssm4567_writeable_reg(struct device *dev, unsigned int reg) argument 133 switch (reg) { 146 static bool ssm4567_volatile_reg(struct device *dev, unsigned int reg) argument 148 switch (reg) {
|
H A D | sma1303.c | 158 static bool sma1303_readable_register(struct device *dev, unsigned int reg) argument 162 if (reg > SMA1303_FF_DEVICE_INDEX) 165 switch (reg) { 190 static bool sma1303_writeable_register(struct device *dev, unsigned int reg) argument 194 if (reg > SMA1303_FF_DEVICE_INDEX) 197 switch (reg) { 218 static bool sma1303_volatile_register(struct device *dev, unsigned int reg) argument 222 switch (reg) { 239 unsigned int reg, unsigned int val) 245 ret = regmap_write(sma1303->regmap, reg, va 238 sma1303_regmap_write(struct sma1303_priv *sma1303, unsigned int reg, unsigned int val) argument 255 sma1303_regmap_update_bits(struct sma1303_priv *sma1303, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 273 sma1303_regmap_read(struct sma1303_priv *sma1303, unsigned int reg, unsigned int *val) argument [all...] |