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()
228 struct max98504_priv *max98504 = snd_soc_dai_get_drvdata(dai); in max98504_set_channel_map() local
229 struct regmap *map = max98504->regmap; in max98504_set_channel_map()
314 struct max98504_priv *max98504; in max98504_i2c_probe() local
317 max98504 = devm_kzalloc(dev, sizeof(*max98504), GFP_KERNEL); in max98504_i2c_probe()
318 if (!max98504) in max98504_i2c_probe()
323 &max98504->brownout_threshold)) in max98504_i2c_probe()
324 max98504->brownout_enable = true; in max98504_i2c_probe()
327 &max98504->brownout_attenuation); in max98504_i2c_probe()
329 &max98504->brownout_attack_hold); in max98504_i2c_probe()
331 &max98504->brownout_timed_hold); in max98504_i2c_probe()
333 &max98504->brownout_release_rate); in max98504_i2c_probe()
336 max98504->regmap = devm_regmap_init_i2c(client, &max98504_regmap); in max98504_i2c_probe()
337 if (IS_ERR(max98504->regmap)) { in max98504_i2c_probe()
338 ret = PTR_ERR(max98504->regmap); in max98504_i2c_probe()
344 max98504->supplies[i].supply = max98504_supply_names[i]; in max98504_i2c_probe()
347 max98504->supplies); in max98504_i2c_probe()
351 i2c_set_clientdata(client, max98504); in max98504_i2c_probe()