Lines Matching refs:max98925

101 	struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component);  in max98925_dac_event()  local
105 regmap_update_bits(max98925->regmap, in max98925_dac_event()
113 regmap_update_bits(max98925->regmap, in max98925_dac_event()
275 static void max98925_set_sense_data(struct max98925_priv *max98925) in max98925_set_sense_data() argument
278 regmap_update_bits(max98925->regmap, in max98925_set_sense_data()
281 regmap_update_bits(max98925->regmap, in max98925_set_sense_data()
284 max98925->v_slot << M98925_DAI_VMON_SLOT_SHIFT); in max98925_set_sense_data()
286 regmap_update_bits(max98925->regmap, in max98925_set_sense_data()
289 regmap_update_bits(max98925->regmap, in max98925_set_sense_data()
292 max98925->i_slot << M98925_DAI_IMON_SLOT_SHIFT); in max98925_set_sense_data()
299 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_dai_set_fmt() local
306 regmap_update_bits(max98925->regmap, in max98925_dai_set_fmt()
309 max98925_set_sense_data(max98925); in max98925_dai_set_fmt()
316 regmap_update_bits(max98925->regmap, in max98925_dai_set_fmt()
344 regmap_update_bits(max98925->regmap, MAX98925_FORMAT, in max98925_dai_set_fmt()
349 static int max98925_set_clock(struct max98925_priv *max98925, in max98925_set_clock() argument
353 struct snd_soc_component *component = max98925->component; in max98925_set_clock()
356 int blr_clk_ratio = params_channels(params) * max98925->ch_size; in max98925_set_clock()
360 regmap_update_bits(max98925->regmap, in max98925_set_clock()
365 regmap_update_bits(max98925->regmap, in max98925_set_clock()
370 regmap_update_bits(max98925->regmap, in max98925_set_clock()
378 switch (max98925->sysclk) { in max98925_set_clock()
396 dev_info(max98925->component->dev, "unsupported sysclk %d\n", in max98925_set_clock()
397 max98925->sysclk); in max98925_set_clock()
405 regmap_update_bits(max98925->regmap, in max98925_set_clock()
409 regmap_write(max98925->regmap, in max98925_set_clock()
411 regmap_write(max98925->regmap, in max98925_set_clock()
414 regmap_write(max98925->regmap, in max98925_set_clock()
416 regmap_write(max98925->regmap, in max98925_set_clock()
419 regmap_update_bits(max98925->regmap, MAX98925_DAI_CLK_MODE1, in max98925_set_clock()
429 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_dai_hw_params() local
433 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
436 max98925->ch_size = 16; in max98925_dai_hw_params()
439 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
442 max98925->ch_size = 24; in max98925_dai_hw_params()
445 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
448 max98925->ch_size = 32; in max98925_dai_hw_params()
457 return max98925_set_clock(max98925, params); in max98925_dai_hw_params()
464 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_dai_set_sysclk() local
469 regmap_update_bits(max98925->regmap, in max98925_dai_set_sysclk()
475 regmap_update_bits(max98925->regmap, in max98925_dai_set_sysclk()
483 max98925->sysclk = freq; in max98925_dai_set_sysclk()
519 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_probe() local
521 max98925->component = component; in max98925_probe()
522 regmap_write(max98925->regmap, MAX98925_GLOBAL_ENABLE, 0x00); in max98925_probe()
524 regmap_write(max98925->regmap, in max98925_probe()
526 regmap_write(max98925->regmap, MAX98925_TDM_SLOT_SELECT, 0xC8); in max98925_probe()
527 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG1, 0xFF); in max98925_probe()
528 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG2, 0xFF); in max98925_probe()
529 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG3, 0xFF); in max98925_probe()
530 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG4, 0xF0); in max98925_probe()
531 regmap_write(max98925->regmap, MAX98925_FILTERS, 0xD8); in max98925_probe()
532 regmap_write(max98925->regmap, MAX98925_ALC_CONFIGURATION, 0xF8); in max98925_probe()
533 regmap_write(max98925->regmap, MAX98925_CONFIGURATION, 0xF0); in max98925_probe()
535 regmap_write(max98925->regmap, MAX98925_BOOST_LIMITER, 0xF8); in max98925_probe()
569 struct max98925_priv *max98925; in max98925_i2c_probe() local
571 max98925 = devm_kzalloc(&i2c->dev, in max98925_i2c_probe()
572 sizeof(*max98925), GFP_KERNEL); in max98925_i2c_probe()
573 if (!max98925) in max98925_i2c_probe()
576 i2c_set_clientdata(i2c, max98925); in max98925_i2c_probe()
577 max98925->regmap = devm_regmap_init_i2c(i2c, &max98925_regmap); in max98925_i2c_probe()
578 if (IS_ERR(max98925->regmap)) { in max98925_i2c_probe()
579 ret = PTR_ERR(max98925->regmap); in max98925_i2c_probe()
590 max98925->v_slot = value; in max98925_i2c_probe()
597 max98925->i_slot = value; in max98925_i2c_probe()
600 ret = regmap_read(max98925->regmap, MAX98925_REV_VERSION, &reg); in max98925_i2c_probe()