cs35l34           604 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = snd_soc_component_get_drvdata(component);
cs35l34           610 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq;
cs35l34           614 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq;
cs35l34           618 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq;
cs35l34           622 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq / 2;
cs35l34           626 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq / 2;
cs35l34           630 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = freq / 2;
cs35l34           634 sound/soc/codecs/cs35l34.c 		cs35l34->mclk_int = 0;
cs35l34           637 sound/soc/codecs/cs35l34.c 	regmap_update_bits(cs35l34->regmap, CS35L34_MCLK_CTL,
cs35l34           672 sound/soc/codecs/cs35l34.c static int cs35l34_boost_inductor(struct cs35l34_private *cs35l34,
cs35l34           675 sound/soc/codecs/cs35l34.c 	struct snd_soc_component *component = cs35l34->component;
cs35l34           679 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_1, 0x24);
cs35l34           680 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_2, 0x24);
cs35l34           681 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SLOPE_COMP,
cs35l34           683 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SW_FREQ, 0);
cs35l34           686 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_1, 0x20);
cs35l34           687 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_2, 0x20);
cs35l34           688 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SLOPE_COMP,
cs35l34           690 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SW_FREQ, 1);
cs35l34           693 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_1, 0x20);
cs35l34           694 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_2, 0x20);
cs35l34           695 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SLOPE_COMP,
cs35l34           697 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SW_FREQ, 2);
cs35l34           700 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_1, 0x19);
cs35l34           701 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_COEF_2, 0x25);
cs35l34           702 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SLOPE_COMP,
cs35l34           704 sound/soc/codecs/cs35l34.c 		regmap_write(cs35l34->regmap, CS35L34_BST_CONV_SW_FREQ, 3);
cs35l34           717 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = snd_soc_component_get_drvdata(component);
cs35l34           722 sound/soc/codecs/cs35l34.c 	regmap_update_bits(cs35l34->regmap, CS35L34_PROTECT_CTL,
cs35l34           728 sound/soc/codecs/cs35l34.c 	regmap_write(cs35l34->regmap, CS35L34_PWRCTL2, 0xFD);
cs35l34           729 sound/soc/codecs/cs35l34.c 	regmap_write(cs35l34->regmap, CS35L34_PWRCTL3, 0x1F);
cs35l34           732 sound/soc/codecs/cs35l34.c 	regmap_update_bits(cs35l34->regmap, CS35L34_PROTECT_CTL,
cs35l34           736 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.boost_peak)
cs35l34           737 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_BST_PEAK_I,
cs35l34           739 sound/soc/codecs/cs35l34.c 				cs35l34->pdata.boost_peak);
cs35l34           741 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.gain_zc_disable)
cs35l34           742 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PROTECT_CTL,
cs35l34           745 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PROTECT_CTL,
cs35l34           748 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.aif_half_drv)
cs35l34           749 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_ADSP_CLK_CTL,
cs35l34           752 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.digsft_disable)
cs35l34           753 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_AMP_DIG_VOL_CTL,
cs35l34           756 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.amp_inv)
cs35l34           757 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_AMP_DIG_VOL_CTL,
cs35l34           760 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.boost_ind)
cs35l34           761 sound/soc/codecs/cs35l34.c 		ret = cs35l34_boost_inductor(cs35l34, cs35l34->pdata.boost_ind);
cs35l34           763 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.i2s_sdinloc)
cs35l34           764 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_ADSP_I2S_CTL,
cs35l34           766 sound/soc/codecs/cs35l34.c 			cs35l34->pdata.i2s_sdinloc << CS35L34_I2S_LOC_SHIFT);
cs35l34           768 sound/soc/codecs/cs35l34.c 	if (cs35l34->pdata.tdm_rising_edge)
cs35l34           769 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_ADSP_TDM_CTL,
cs35l34           863 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = data;
cs35l34           864 sound/soc/codecs/cs35l34.c 	struct snd_soc_component *component = cs35l34->component;
cs35l34           870 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_STATUS_4, &sticky4);
cs35l34           871 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_STATUS_3, &sticky3);
cs35l34           872 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_STATUS_2, &sticky2);
cs35l34           873 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_STATUS_1, &sticky1);
cs35l34           875 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_MASK_4, &mask4);
cs35l34           876 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_MASK_3, &mask3);
cs35l34           877 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_MASK_2, &mask2);
cs35l34           878 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_MASK_1, &mask1);
cs35l34           884 sound/soc/codecs/cs35l34.c 	regmap_read(cs35l34->regmap, CS35L34_INT_STATUS_1, &current1);
cs35l34           892 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           895 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           899 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           916 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           919 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           923 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           936 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           939 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           943 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           956 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           959 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           963 sound/soc/codecs/cs35l34.c 			regmap_update_bits(cs35l34->regmap,
cs35l34           971 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PWRCTL2,
cs35l34           973 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PWRCTL1,
cs35l34           979 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PWRCTL2,
cs35l34           981 sound/soc/codecs/cs35l34.c 		regmap_update_bits(cs35l34->regmap, CS35L34_PWRCTL1,
cs35l34           996 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34;
cs35l34          1004 sound/soc/codecs/cs35l34.c 	cs35l34 = devm_kzalloc(&i2c_client->dev, sizeof(*cs35l34), GFP_KERNEL);
cs35l34          1005 sound/soc/codecs/cs35l34.c 	if (!cs35l34)
cs35l34          1008 sound/soc/codecs/cs35l34.c 	i2c_set_clientdata(i2c_client, cs35l34);
cs35l34          1009 sound/soc/codecs/cs35l34.c 	cs35l34->regmap = devm_regmap_init_i2c(i2c_client, &cs35l34_regmap);
cs35l34          1010 sound/soc/codecs/cs35l34.c 	if (IS_ERR(cs35l34->regmap)) {
cs35l34          1011 sound/soc/codecs/cs35l34.c 		ret = PTR_ERR(cs35l34->regmap);
cs35l34          1016 sound/soc/codecs/cs35l34.c 	cs35l34->num_core_supplies = ARRAY_SIZE(cs35l34_core_supplies);
cs35l34          1018 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies[i].supply = cs35l34_core_supplies[i];
cs35l34          1021 sound/soc/codecs/cs35l34.c 		cs35l34->num_core_supplies,
cs35l34          1022 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies);
cs35l34          1029 sound/soc/codecs/cs35l34.c 	ret = regulator_bulk_enable(cs35l34->num_core_supplies,
cs35l34          1030 sound/soc/codecs/cs35l34.c 					cs35l34->core_supplies);
cs35l34          1038 sound/soc/codecs/cs35l34.c 		cs35l34->pdata = *pdata;
cs35l34          1051 sound/soc/codecs/cs35l34.c 		cs35l34->pdata = *pdata;
cs35l34          1056 sound/soc/codecs/cs35l34.c 			"cs35l34", cs35l34);
cs35l34          1060 sound/soc/codecs/cs35l34.c 	cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev,
cs35l34          1062 sound/soc/codecs/cs35l34.c 	if (IS_ERR(cs35l34->reset_gpio))
cs35l34          1063 sound/soc/codecs/cs35l34.c 		return PTR_ERR(cs35l34->reset_gpio);
cs35l34          1065 sound/soc/codecs/cs35l34.c 	gpiod_set_value_cansleep(cs35l34->reset_gpio, 1);
cs35l34          1069 sound/soc/codecs/cs35l34.c 	ret = regmap_read(cs35l34->regmap, CS35L34_DEVID_AB, &reg);
cs35l34          1072 sound/soc/codecs/cs35l34.c 	ret = regmap_read(cs35l34->regmap, CS35L34_DEVID_CD, &reg);
cs35l34          1074 sound/soc/codecs/cs35l34.c 	ret = regmap_read(cs35l34->regmap, CS35L34_DEVID_E, &reg);
cs35l34          1085 sound/soc/codecs/cs35l34.c 	ret = regmap_read(cs35l34->regmap, CS35L34_REV_ID, &reg);
cs35l34          1096 sound/soc/codecs/cs35l34.c 	regmap_update_bits(cs35l34->regmap, CS35L34_INT_MASK_1,
cs35l34          1100 sound/soc/codecs/cs35l34.c 	regmap_update_bits(cs35l34->regmap, CS35L34_INT_MASK_3,
cs35l34          1119 sound/soc/codecs/cs35l34.c 	regulator_bulk_disable(cs35l34->num_core_supplies,
cs35l34          1120 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies);
cs35l34          1127 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = i2c_get_clientdata(client);
cs35l34          1129 sound/soc/codecs/cs35l34.c 	gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);
cs35l34          1132 sound/soc/codecs/cs35l34.c 	regulator_bulk_disable(cs35l34->num_core_supplies,
cs35l34          1133 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies);
cs35l34          1140 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = dev_get_drvdata(dev);
cs35l34          1143 sound/soc/codecs/cs35l34.c 	ret = regulator_bulk_enable(cs35l34->num_core_supplies,
cs35l34          1144 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies);
cs35l34          1152 sound/soc/codecs/cs35l34.c 	regcache_cache_only(cs35l34->regmap, false);
cs35l34          1154 sound/soc/codecs/cs35l34.c 	gpiod_set_value_cansleep(cs35l34->reset_gpio, 1);
cs35l34          1157 sound/soc/codecs/cs35l34.c 	ret = regcache_sync(cs35l34->regmap);
cs35l34          1164 sound/soc/codecs/cs35l34.c 	regcache_cache_only(cs35l34->regmap, true);
cs35l34          1165 sound/soc/codecs/cs35l34.c 	regulator_bulk_disable(cs35l34->num_core_supplies,
cs35l34          1166 sound/soc/codecs/cs35l34.c 		cs35l34->core_supplies);
cs35l34          1173 sound/soc/codecs/cs35l34.c 	struct cs35l34_private *cs35l34 = dev_get_drvdata(dev);
cs35l34          1175 sound/soc/codecs/cs35l34.c 	regcache_cache_only(cs35l34->regmap, true);
cs35l34          1176 sound/soc/codecs/cs35l34.c 	regcache_mark_dirty(cs35l34->regmap);
cs35l34          1178 sound/soc/codecs/cs35l34.c 	gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);
cs35l34          1180 sound/soc/codecs/cs35l34.c 	regulator_bulk_disable(cs35l34->num_core_supplies,
cs35l34          1181 sound/soc/codecs/cs35l34.c 			cs35l34->core_supplies);