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
305 regmap_update_bits(max98925->regmap, in max98925_dai_set_fmt()
308 max98925_set_sense_data(max98925); in max98925_dai_set_fmt()
315 regmap_update_bits(max98925->regmap, in max98925_dai_set_fmt()
341 regmap_update_bits(max98925->regmap, MAX98925_FORMAT, in max98925_dai_set_fmt()
346 static int max98925_set_clock(struct max98925_priv *max98925, in max98925_set_clock() argument
350 struct snd_soc_component *component = max98925->component; in max98925_set_clock()
353 int blr_clk_ratio = params_channels(params) * max98925->ch_size; in max98925_set_clock()
357 regmap_update_bits(max98925->regmap, in max98925_set_clock()
362 regmap_update_bits(max98925->regmap, in max98925_set_clock()
367 regmap_update_bits(max98925->regmap, in max98925_set_clock()
375 switch (max98925->sysclk) { in max98925_set_clock()
393 dev_info(max98925->component->dev, "unsupported sysclk %d\n", in max98925_set_clock()
394 max98925->sysclk); in max98925_set_clock()
402 regmap_update_bits(max98925->regmap, in max98925_set_clock()
406 regmap_write(max98925->regmap, in max98925_set_clock()
408 regmap_write(max98925->regmap, in max98925_set_clock()
411 regmap_write(max98925->regmap, in max98925_set_clock()
413 regmap_write(max98925->regmap, in max98925_set_clock()
416 regmap_update_bits(max98925->regmap, MAX98925_DAI_CLK_MODE1, in max98925_set_clock()
426 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_dai_hw_params() local
430 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
433 max98925->ch_size = 16; in max98925_dai_hw_params()
436 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
439 max98925->ch_size = 24; in max98925_dai_hw_params()
442 regmap_update_bits(max98925->regmap, in max98925_dai_hw_params()
445 max98925->ch_size = 32; in max98925_dai_hw_params()
454 return max98925_set_clock(max98925, params); in max98925_dai_hw_params()
461 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_dai_set_sysclk() local
466 regmap_update_bits(max98925->regmap, in max98925_dai_set_sysclk()
472 regmap_update_bits(max98925->regmap, in max98925_dai_set_sysclk()
480 max98925->sysclk = freq; in max98925_dai_set_sysclk()
516 struct max98925_priv *max98925 = snd_soc_component_get_drvdata(component); in max98925_probe() local
518 max98925->component = component; in max98925_probe()
519 regmap_write(max98925->regmap, MAX98925_GLOBAL_ENABLE, 0x00); in max98925_probe()
521 regmap_write(max98925->regmap, in max98925_probe()
523 regmap_write(max98925->regmap, MAX98925_TDM_SLOT_SELECT, 0xC8); in max98925_probe()
524 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG1, 0xFF); in max98925_probe()
525 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG2, 0xFF); in max98925_probe()
526 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG3, 0xFF); in max98925_probe()
527 regmap_write(max98925->regmap, MAX98925_DOUT_HIZ_CFG4, 0xF0); in max98925_probe()
528 regmap_write(max98925->regmap, MAX98925_FILTERS, 0xD8); in max98925_probe()
529 regmap_write(max98925->regmap, MAX98925_ALC_CONFIGURATION, 0xF8); in max98925_probe()
530 regmap_write(max98925->regmap, MAX98925_CONFIGURATION, 0xF0); in max98925_probe()
532 regmap_write(max98925->regmap, MAX98925_BOOST_LIMITER, 0xF8); in max98925_probe()
564 struct max98925_priv *max98925; in max98925_i2c_probe() local
566 max98925 = devm_kzalloc(&i2c->dev, in max98925_i2c_probe()
567 sizeof(*max98925), GFP_KERNEL); in max98925_i2c_probe()
568 if (!max98925) in max98925_i2c_probe()
571 i2c_set_clientdata(i2c, max98925); in max98925_i2c_probe()
572 max98925->regmap = devm_regmap_init_i2c(i2c, &max98925_regmap); in max98925_i2c_probe()
573 if (IS_ERR(max98925->regmap)) { in max98925_i2c_probe()
574 ret = PTR_ERR(max98925->regmap); in max98925_i2c_probe()
585 max98925->v_slot = value; in max98925_i2c_probe()
592 max98925->i_slot = value; in max98925_i2c_probe()
595 ret = regmap_read(max98925->regmap, MAX98925_REV_VERSION, ®); in max98925_i2c_probe()