Lines Matching refs:max98504

108 	struct max98504_priv *max98504 = snd_soc_component_get_drvdata(c);  in max98504_pcm_rx_ev()  local
112 regmap_write(max98504->regmap, MAX98504_PCM_RX_ENABLE, in max98504_pcm_rx_ev()
113 max98504->pcm_rx_channels); in max98504_pcm_rx_ev()
116 regmap_write(max98504->regmap, MAX98504_PCM_RX_ENABLE, 0); in max98504_pcm_rx_ev()
125 struct max98504_priv *max98504 = snd_soc_component_get_drvdata(c); in max98504_component_probe() local
126 struct regmap *map = max98504->regmap; in max98504_component_probe()
129 ret = regulator_bulk_enable(MAX98504_NUM_SUPPLIES, max98504->supplies); in max98504_component_probe()
136 if (!max98504->brownout_enable) in max98504_component_probe()
142 (max98504->brownout_threshold & 0x1f) << 3 | in max98504_component_probe()
143 (max98504->brownout_attenuation & 0x3)); in max98504_component_probe()
146 max98504->brownout_attack_hold & 0xff); in max98504_component_probe()
149 max98504->brownout_timed_hold & 0xff); in max98504_component_probe()
152 max98504->brownout_release_rate & 0xff); in max98504_component_probe()
159 struct max98504_priv *max98504 = snd_soc_component_get_drvdata(c); in max98504_component_remove() local
161 regulator_bulk_disable(MAX98504_NUM_SUPPLIES, max98504->supplies); in max98504_component_remove()
203 struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai); in max98504_set_tdm_slot() local
204 struct regmap *map = max98504->regmap; in max98504_set_tdm_slot()
210 max98504->pcm_rx_channels = rx_mask; in max98504_set_tdm_slot()
226 struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai); in max98504_set_channel_map() local
227 struct regmap *map = max98504->regmap; in max98504_set_channel_map()
312 struct max98504_priv *max98504; in max98504_i2c_probe() local
315 max98504 = devm_kzalloc(dev, sizeof(*max98504), GFP_KERNEL); in max98504_i2c_probe()
316 if (!max98504) in max98504_i2c_probe()
321 &max98504->brownout_threshold)) in max98504_i2c_probe()
322 max98504->brownout_enable = true; in max98504_i2c_probe()
325 &max98504->brownout_attenuation); in max98504_i2c_probe()
327 &max98504->brownout_attack_hold); in max98504_i2c_probe()
329 &max98504->brownout_timed_hold); in max98504_i2c_probe()
331 &max98504->brownout_release_rate); in max98504_i2c_probe()
334 max98504->regmap = devm_regmap_init_i2c(client, &max98504_regmap); in max98504_i2c_probe()
335 if (IS_ERR(max98504->regmap)) { in max98504_i2c_probe()
336 ret = PTR_ERR(max98504->regmap); in max98504_i2c_probe()
342 max98504->supplies[i].supply = max98504_supply_names[i]; in max98504_i2c_probe()
345 max98504->supplies); in max98504_i2c_probe()
349 i2c_set_clientdata(client, max98504); in max98504_i2c_probe()