cs35l36 461 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 464 sound/soc/codecs/cs35l36.c ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; cs35l36 474 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 479 sound/soc/codecs/cs35l36.c cs35l36->ldm_mode_sel = val; cs35l36 481 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, cs35l36 508 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 514 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PWR_CTRL1, cs35l36 520 sound/soc/codecs/cs35l36.c regmap_read(cs35l36->regmap, CS35L36_INT4_RAW_STATUS, ®); cs35l36 523 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "PLL Unlocked\n"); cs35l36 525 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_RX1_SEL, cs35l36 528 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_AMP_OUT_MUTE, cs35l36 533 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_RX1_SEL, cs35l36 536 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_AMP_OUT_MUTE, cs35l36 541 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PWR_CTRL1, cs35l36 560 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 565 sound/soc/codecs/cs35l36.c if (!cs35l36->pdata.extern_boost) cs35l36 566 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PWR_CTRL2, cs35l36 572 sound/soc/codecs/cs35l36.c if (!cs35l36->pdata.extern_boost) cs35l36 573 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PWR_CTRL2, cs35l36 757 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 772 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_TX_PIN_CTRL, cs35l36 775 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_RATE_CTRL, cs35l36 790 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_TX_PIN_CTRL, cs35l36 793 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_RATE_CTRL, cs35l36 829 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_RATE_CTRL, cs35l36 832 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_TX_PIN_CTRL, cs35l36 835 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_FORMAT, cs35l36 867 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 874 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, cs35l36 896 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_FRAME_CTRL, cs35l36 900 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_FRAME_CTRL, cs35l36 912 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 924 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 926 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 929 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_TST_FS_MON0, cs35l36 933 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 935 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 941 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36, int freq) cs35l36 1006 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 1012 sound/soc/codecs/cs35l36.c prev_clksrc = cs35l36->clksrc; cs35l36 1016 sound/soc/codecs/cs35l36.c cs35l36->clksrc = CS35L36_PLLSRC_SCLK; cs35l36 1019 sound/soc/codecs/cs35l36.c cs35l36->clksrc = CS35L36_PLLSRC_LRCLK; cs35l36 1022 sound/soc/codecs/cs35l36.c cs35l36->clksrc = CS35L36_PLLSRC_PDMCLK; cs35l36 1025 sound/soc/codecs/cs35l36.c cs35l36->clksrc = CS35L36_PLLSRC_SELF; cs35l36 1028 sound/soc/codecs/cs35l36.c cs35l36->clksrc = CS35L36_PLLSRC_MCLK; cs35l36 1034 sound/soc/codecs/cs35l36.c clk_cfg = cs35l36_get_clk_config(cs35l36, freq); cs35l36 1040 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1043 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1046 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1049 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1051 sound/soc/codecs/cs35l36.c cs35l36->clksrc); cs35l36 1052 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1055 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_CLK_CTRL, cs35l36 1059 sound/soc/codecs/cs35l36.c if (cs35l36->rev_id == CS35L36_REV_A0) { cs35l36 1060 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1062 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1065 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_DCO_CTRL, 0x00036DA8); cs35l36 1066 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_MISC_CTRL, 0x0100EE0E); cs35l36 1068 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_LOOP_PARAMS, cs35l36 1072 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PLL_LOOP_PARAMS, cs35l36 1076 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1078 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1082 sound/soc/codecs/cs35l36.c if (cs35l36->clksrc == CS35L36_PLLSRC_PDMCLK) { cs35l36 1083 sound/soc/codecs/cs35l36.c pdm_switch = cs35l36->ldm_mode_sel && cs35l36 1087 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, cs35l36 1091 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_DAC_MSM_CFG, cs35l36 1096 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, cs35l36 1100 sound/soc/codecs/cs35l36.c pdm_switch = cs35l36->ldm_mode_sel && cs35l36 1104 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, cs35l36 1108 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_DAC_MSM_CFG, cs35l36 1113 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, cs35l36 1121 sound/soc/codecs/cs35l36.c static int cs35l36_boost_inductor(struct cs35l36_private *cs35l36, int inductor) cs35l36 1123 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_COEFF, cs35l36 1125 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_COEFF, cs35l36 1128 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_SW_FREQ, cs35l36 1133 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_SLOPE_LBST, cs35l36 1136 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_SLOPE_LBST, cs35l36 1140 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_SLOPE_LBST, cs35l36 1143 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_SLOPE_LBST, cs35l36 1147 sound/soc/codecs/cs35l36.c dev_err(cs35l36->dev, "%s Invalid Inductor Value %d uH\n", cs35l36 1157 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = cs35l36 1161 sound/soc/codecs/cs35l36.c if ((cs35l36->rev_id == CS35L36_REV_A0) && cs35l36->pdata.dcm_mode) { cs35l36 1162 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_DCM_CTRL, cs35l36 1166 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1168 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1171 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BST_TST_MANUAL, cs35l36 1174 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BST_TST_MANUAL, cs35l36 1178 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1180 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1184 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.amp_pcm_inv) cs35l36 1185 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_AMP_DIG_VOL_CTRL, cs35l36 1189 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.multi_amp_mode) cs35l36 1190 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_ASP_TX_PIN_CTRL, cs35l36 1194 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.imon_pol_inv) cs35l36 1195 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VI_SPKMON_FILT, cs35l36 1198 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.vmon_pol_inv) cs35l36 1199 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VI_SPKMON_FILT, cs35l36 1202 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_vctl) cs35l36 1203 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_VCTRL1, cs35l36 1205 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_vctl); cs35l36 1207 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_vctl_sel) cs35l36 1208 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_VCTRL2, cs35l36 1210 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_vctl_sel); cs35l36 1212 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_ipk) cs35l36 1213 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_PEAK_CUR, cs35l36 1215 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_ipk); cs35l36 1217 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.boost_ind) { cs35l36 1218 sound/soc/codecs/cs35l36.c ret = cs35l36_boost_inductor(cs35l36, cs35l36->pdata.boost_ind); cs35l36 1220 sound/soc/codecs/cs35l36.c dev_err(cs35l36->dev, cs35l36 1226 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.temp_warn_thld) cs35l36 1227 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_DTEMP_WARN_THLD, cs35l36 1229 sound/soc/codecs/cs35l36.c cs35l36->pdata.temp_warn_thld); cs35l36 1231 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.irq_drv_sel) cs35l36 1232 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PAD_INTERFACE, cs35l36 1234 sound/soc/codecs/cs35l36.c cs35l36->pdata.irq_drv_sel << cs35l36 1237 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.irq_gpio_sel) cs35l36 1238 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PAD_INTERFACE, cs35l36 1240 sound/soc/codecs/cs35l36.c cs35l36->pdata.irq_gpio_sel << cs35l36 1251 sound/soc/codecs/cs35l36.c if (cs35l36->chip_version == CS35L36_10V_L36) { cs35l36 1252 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, cs35l36 1257 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1259 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1262 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BST_ANA2_TEST, cs35l36 1266 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_VCTRL2, cs35l36 1269 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_BSTCVRT_VCTRL1, cs35l36 1272 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1274 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1283 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_CTRL_OVRRIDE, cs35l36 1320 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = data; cs35l36 1326 sound/soc/codecs/cs35l36.c regmap_bulk_read(cs35l36->regmap, CS35L36_INT1_STATUS, status, cs35l36 1329 sound/soc/codecs/cs35l36.c regmap_bulk_read(cs35l36->regmap, CS35L36_INT1_MASK, masks, cs35l36 1344 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "Amp short error\n"); cs35l36 1345 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1347 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1350 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1352 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT3_STATUS, cs35l36 1359 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "Over temperature warning\n"); cs35l36 1360 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1362 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1365 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1367 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT1_STATUS, cs35l36 1373 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "Over temperature error\n"); cs35l36 1374 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1376 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1378 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1380 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT1_STATUS, cs35l36 1386 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "VBST Over Voltage error\n"); cs35l36 1387 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1389 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1391 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1393 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT1_STATUS, cs35l36 1399 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "DCM VBST Under Voltage Error\n"); cs35l36 1400 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1402 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1405 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1407 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT1_STATUS, cs35l36 1414 sound/soc/codecs/cs35l36.c dev_crit(cs35l36->dev, "LBST SHORT error!\n"); cs35l36 1415 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1417 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1420 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PROTECT_REL_ERR, cs35l36 1422 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_INT1_STATUS, cs35l36 1541 sound/soc/codecs/cs35l36.c static int cs35l36_pac(struct cs35l36_private *cs35l36) cs35l36 1546 sound/soc/codecs/cs35l36.c if (cs35l36->rev_id != CS35L36_REV_B0) cs35l36 1552 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1554 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1559 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_PAC_CTL1, cs35l36 1561 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_PAC_CTL3, cs35l36 1563 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_PAC_PMEM_WORD0, cs35l36 1566 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_PAC_CTL3, cs35l36 1568 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_PAC_CTL1, cs35l36 1573 sound/soc/codecs/cs35l36.c ret = regmap_read(cs35l36->regmap, CS35L36_INT4_STATUS, &val); cs35l36 1575 sound/soc/codecs/cs35l36.c dev_err(cs35l36->dev, "Failed to read int4_status %d\n", ret); cs35l36 1584 sound/soc/codecs/cs35l36.c ret = regmap_read(cs35l36->regmap, CS35L36_INT4_STATUS, cs35l36 1587 sound/soc/codecs/cs35l36.c dev_err(cs35l36->dev, "Failed to read int4_status %d\n", cs35l36 1596 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_INT4_STATUS, cs35l36 1598 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PAC_CTL1, cs35l36 1601 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1603 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_TESTKEY_CTRL, cs35l36 1609 sound/soc/codecs/cs35l36.c static void cs35l36_apply_vpbr_config(struct cs35l36_private *cs35l36) cs35l36 1611 sound/soc/codecs/cs35l36.c struct cs35l36_platform_data *pdata = &cs35l36->pdata; cs35l36 1614 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PWR_CTRL3, cs35l36 1618 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1622 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1626 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1630 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1634 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1638 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1642 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_VPBR_CFG, cs35l36 1706 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36; cs35l36 1713 sound/soc/codecs/cs35l36.c cs35l36 = devm_kzalloc(dev, sizeof(struct cs35l36_private), GFP_KERNEL); cs35l36 1714 sound/soc/codecs/cs35l36.c if (!cs35l36) cs35l36 1717 sound/soc/codecs/cs35l36.c cs35l36->dev = dev; cs35l36 1719 sound/soc/codecs/cs35l36.c i2c_set_clientdata(i2c_client, cs35l36); cs35l36 1720 sound/soc/codecs/cs35l36.c cs35l36->regmap = devm_regmap_init_i2c(i2c_client, &cs35l36_regmap); cs35l36 1721 sound/soc/codecs/cs35l36.c if (IS_ERR(cs35l36->regmap)) { cs35l36 1722 sound/soc/codecs/cs35l36.c ret = PTR_ERR(cs35l36->regmap); cs35l36 1727 sound/soc/codecs/cs35l36.c cs35l36->num_supplies = ARRAY_SIZE(cs35l36_supplies); cs35l36 1729 sound/soc/codecs/cs35l36.c cs35l36->supplies[i].supply = cs35l36_supplies[i]; cs35l36 1731 sound/soc/codecs/cs35l36.c ret = devm_regulator_bulk_get(dev, cs35l36->num_supplies, cs35l36 1732 sound/soc/codecs/cs35l36.c cs35l36->supplies); cs35l36 1739 sound/soc/codecs/cs35l36.c cs35l36->pdata = *pdata; cs35l36 1753 sound/soc/codecs/cs35l36.c cs35l36->pdata = *pdata; cs35l36 1756 sound/soc/codecs/cs35l36.c ret = regulator_bulk_enable(cs35l36->num_supplies, cs35l36->supplies); cs35l36 1763 sound/soc/codecs/cs35l36.c cs35l36->reset_gpio = devm_gpiod_get_optional(dev, "reset", cs35l36 1765 sound/soc/codecs/cs35l36.c if (IS_ERR(cs35l36->reset_gpio)) { cs35l36 1766 sound/soc/codecs/cs35l36.c ret = PTR_ERR(cs35l36->reset_gpio); cs35l36 1767 sound/soc/codecs/cs35l36.c cs35l36->reset_gpio = NULL; cs35l36 1776 sound/soc/codecs/cs35l36.c if (cs35l36->reset_gpio) cs35l36 1777 sound/soc/codecs/cs35l36.c gpiod_set_value_cansleep(cs35l36->reset_gpio, 1); cs35l36 1782 sound/soc/codecs/cs35l36.c ret = regmap_read(cs35l36->regmap, CS35L36_SW_RESET, ®_id); cs35l36 1795 sound/soc/codecs/cs35l36.c ret = regmap_read(cs35l36->regmap, CS35L36_REV_ID, ®_revid); cs35l36 1801 sound/soc/codecs/cs35l36.c cs35l36->rev_id = reg_revid >> 8; cs35l36 1803 sound/soc/codecs/cs35l36.c ret = regmap_read(cs35l36->regmap, CS35L36_OTP_MEM30, &l37_id_reg); cs35l36 1811 sound/soc/codecs/cs35l36.c cs35l36->chip_version = CS35L36_12V_L37; cs35l36 1813 sound/soc/codecs/cs35l36.c cs35l36->chip_version = CS35L36_10V_L36; cs35l36 1815 sound/soc/codecs/cs35l36.c switch (cs35l36->rev_id) { cs35l36 1817 sound/soc/codecs/cs35l36.c ret = regmap_register_patch(cs35l36->regmap, cs35l36 1827 sound/soc/codecs/cs35l36.c ret = cs35l36_pac(cs35l36); cs35l36 1833 sound/soc/codecs/cs35l36.c ret = regmap_register_patch(cs35l36->regmap, cs35l36 1845 sound/soc/codecs/cs35l36.c cs35l36_apply_vpbr_config(cs35l36); cs35l36 1866 sound/soc/codecs/cs35l36.c dev_err(cs35l36->dev, "Invalid IRQ polarity: %d\n", irq_pol); cs35l36 1871 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PAD_INTERFACE, cs35l36 1877 sound/soc/codecs/cs35l36.c cs35l36); cs35l36 1883 sound/soc/codecs/cs35l36.c regmap_update_bits(cs35l36->regmap, CS35L36_PAD_INTERFACE, cs35l36 1887 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_INT1_MASK, cs35l36 1889 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_INT3_MASK, cs35l36 1893 sound/soc/codecs/cs35l36.c cs35l36->chip_version, reg_revid >> 8); cs35l36 1907 sound/soc/codecs/cs35l36.c gpiod_set_value_cansleep(cs35l36->reset_gpio, 0); cs35l36 1910 sound/soc/codecs/cs35l36.c regulator_bulk_disable(cs35l36->num_supplies, cs35l36->supplies); cs35l36 1916 sound/soc/codecs/cs35l36.c struct cs35l36_private *cs35l36 = i2c_get_clientdata(client); cs35l36 1919 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_INT1_MASK, cs35l36 1921 sound/soc/codecs/cs35l36.c regmap_write(cs35l36->regmap, CS35L36_INT3_MASK, cs35l36 1924 sound/soc/codecs/cs35l36.c if (cs35l36->reset_gpio) cs35l36 1925 sound/soc/codecs/cs35l36.c gpiod_set_value_cansleep(cs35l36->reset_gpio, 0); cs35l36 1927 sound/soc/codecs/cs35l36.c regulator_bulk_disable(cs35l36->num_supplies, cs35l36->supplies);