max98927          142 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          155 sound/soc/codecs/max98927.c 		max98927->master = true;
max98927          163 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          179 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          204 sound/soc/codecs/max98927.c 	max98927->iface = fmt & SND_SOC_DAIFMT_FORMAT_MASK;
max98927          208 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          213 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          218 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          222 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          227 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          231 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          235 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          264 sound/soc/codecs/max98927.c static int max98927_set_clock(struct max98927_priv *max98927,
max98927          267 sound/soc/codecs/max98927.c 	struct snd_soc_component *component = max98927->component;
max98927          269 sound/soc/codecs/max98927.c 	int blr_clk_ratio = params_channels(params) * max98927->ch_size;
max98927          272 sound/soc/codecs/max98927.c 	if (max98927->master) {
max98927          276 sound/soc/codecs/max98927.c 			if (rate_table[i] >= max98927->sysclk)
max98927          283 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          289 sound/soc/codecs/max98927.c 	if (!max98927->tdm_mode) {
max98927          298 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          311 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          332 sound/soc/codecs/max98927.c 	max98927->ch_size = snd_pcm_format_width(params_format(params));
max98927          334 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          376 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          380 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          386 sound/soc/codecs/max98927.c 	if (max98927->interleave_mode &&
max98927          388 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          393 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          397 sound/soc/codecs/max98927.c 	return max98927_set_clock(max98927, params);
max98927          407 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          411 sound/soc/codecs/max98927.c 	max98927->tdm_mode = true;
max98927          421 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          443 sound/soc/codecs/max98927.c 	regmap_update_bits(max98927->regmap,
max98927          448 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          451 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          456 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          459 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          464 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          467 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          483 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          485 sound/soc/codecs/max98927.c 	max98927->sysclk = freq;
max98927          500 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          504 sound/soc/codecs/max98927.c 		max98927->tdm_mode = false;
max98927          507 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          510 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          515 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          518 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          678 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = snd_soc_component_get_drvdata(component);
max98927          680 sound/soc/codecs/max98927.c 	max98927->component = component;
max98927          683 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          687 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          690 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          693 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          696 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          700 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          703 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          707 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          711 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          715 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          718 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          722 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          725 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          728 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          732 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          736 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          739 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          742 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          747 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          749 sound/soc/codecs/max98927.c 		(max98927->i_l_slot<<MAX98927_PCM_TX_CH_SRC_A_I_SHIFT|
max98927          750 sound/soc/codecs/max98927.c 		max98927->v_l_slot)&0xFF);
max98927          752 sound/soc/codecs/max98927.c 	if (max98927->v_l_slot < 8) {
max98927          753 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          755 sound/soc/codecs/max98927.c 			1 << max98927->v_l_slot, 0);
max98927          756 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          758 sound/soc/codecs/max98927.c 			1 << max98927->v_l_slot,
max98927          759 sound/soc/codecs/max98927.c 			1 << max98927->v_l_slot);
max98927          761 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          763 sound/soc/codecs/max98927.c 			1 << (max98927->v_l_slot - 8), 0);
max98927          764 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          766 sound/soc/codecs/max98927.c 			1 << (max98927->v_l_slot - 8),
max98927          767 sound/soc/codecs/max98927.c 			1 << (max98927->v_l_slot - 8));
max98927          770 sound/soc/codecs/max98927.c 	if (max98927->i_l_slot < 8) {
max98927          771 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          773 sound/soc/codecs/max98927.c 			1 << max98927->i_l_slot, 0);
max98927          774 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          776 sound/soc/codecs/max98927.c 			1 << max98927->i_l_slot,
max98927          777 sound/soc/codecs/max98927.c 			1 << max98927->i_l_slot);
max98927          779 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          781 sound/soc/codecs/max98927.c 			1 << (max98927->i_l_slot - 8), 0);
max98927          782 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          784 sound/soc/codecs/max98927.c 			1 << (max98927->i_l_slot - 8),
max98927          785 sound/soc/codecs/max98927.c 			1 << (max98927->i_l_slot - 8));
max98927          789 sound/soc/codecs/max98927.c 	if (max98927->interleave_mode)
max98927          790 sound/soc/codecs/max98927.c 		regmap_update_bits(max98927->regmap,
max98927          800 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = dev_get_drvdata(dev);
max98927          802 sound/soc/codecs/max98927.c 	regcache_cache_only(max98927->regmap, true);
max98927          803 sound/soc/codecs/max98927.c 	regcache_mark_dirty(max98927->regmap);
max98927          808 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = dev_get_drvdata(dev);
max98927          810 sound/soc/codecs/max98927.c 	regmap_write(max98927->regmap,
max98927          812 sound/soc/codecs/max98927.c 	regcache_cache_only(max98927->regmap, false);
max98927          813 sound/soc/codecs/max98927.c 	regcache_sync(max98927->regmap);
max98927          848 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927)
max98927          854 sound/soc/codecs/max98927.c 		max98927->v_l_slot = value & 0xF;
max98927          856 sound/soc/codecs/max98927.c 		max98927->v_l_slot = 0;
max98927          859 sound/soc/codecs/max98927.c 		max98927->i_l_slot = value & 0xF;
max98927          861 sound/soc/codecs/max98927.c 		max98927->i_l_slot = 1;
max98927          870 sound/soc/codecs/max98927.c 	struct max98927_priv *max98927 = NULL;
max98927          872 sound/soc/codecs/max98927.c 	max98927 = devm_kzalloc(&i2c->dev,
max98927          873 sound/soc/codecs/max98927.c 		sizeof(*max98927), GFP_KERNEL);
max98927          875 sound/soc/codecs/max98927.c 	if (!max98927) {
max98927          879 sound/soc/codecs/max98927.c 	i2c_set_clientdata(i2c, max98927);
max98927          885 sound/soc/codecs/max98927.c 			max98927->interleave_mode = true;
max98927          887 sound/soc/codecs/max98927.c 			max98927->interleave_mode = false;
max98927          889 sound/soc/codecs/max98927.c 		max98927->interleave_mode = false;
max98927          892 sound/soc/codecs/max98927.c 	max98927->regmap
max98927          894 sound/soc/codecs/max98927.c 	if (IS_ERR(max98927->regmap)) {
max98927          895 sound/soc/codecs/max98927.c 		ret = PTR_ERR(max98927->regmap);
max98927          902 sound/soc/codecs/max98927.c 	ret = regmap_read(max98927->regmap,
max98927          912 sound/soc/codecs/max98927.c 	max98927_slot_config(i2c, max98927);