Lines Matching refs:ssm2602
310 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_hw_params() local
311 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); in ssm2602_hw_params()
317 regmap_write(ssm2602->regmap, SSM2602_SRATE, srate); in ssm2602_hw_params()
336 regmap_update_bits(ssm2602->regmap, SSM2602_IFACE, in ssm2602_hw_params()
345 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_startup() local
347 if (ssm2602->sysclk_constraints) { in ssm2602_startup()
350 ssm2602->sysclk_constraints); in ssm2602_startup()
358 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(dai->component); in ssm2602_mute() local
361 regmap_update_bits(ssm2602->regmap, SSM2602_APDIGI, in ssm2602_mute()
365 regmap_update_bits(ssm2602->regmap, SSM2602_APDIGI, in ssm2602_mute()
374 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_set_dai_sysclk() local
385 ssm2602->sysclk_constraints = &ssm2602_constraints_12288000; in ssm2602_set_dai_sysclk()
391 ssm2602->sysclk_constraints = &ssm2602_constraints_11289600; in ssm2602_set_dai_sysclk()
395 ssm2602->sysclk_constraints = NULL; in ssm2602_set_dai_sysclk()
401 ssm2602->sysclk = freq; in ssm2602_set_dai_sysclk()
417 ssm2602->clk_out_pwr |= mask; in ssm2602_set_dai_sysclk()
419 ssm2602->clk_out_pwr &= ~mask; in ssm2602_set_dai_sysclk()
421 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_dai_sysclk()
422 PWR_CLK_OUT_PDN | PWR_OSC_PDN, ssm2602->clk_out_pwr); in ssm2602_set_dai_sysclk()
431 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(codec_dai->component); in ssm2602_set_dai_fmt() local
483 regmap_write(ssm2602->regmap, SSM2602_IFACE, iface); in ssm2602_set_dai_fmt()
490 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_set_bias_level() local
495 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
497 ssm2602->clk_out_pwr); in ssm2602_set_bias_level()
503 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
509 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
556 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_resume() local
558 regcache_sync(ssm2602->regmap); in ssm2602_resume()
566 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_component_probe() local
569 regmap_update_bits(ssm2602->regmap, SSM2602_LOUT1V, in ssm2602_component_probe()
571 regmap_update_bits(ssm2602->regmap, SSM2602_ROUT1V, in ssm2602_component_probe()
604 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm260x_component_probe() local
607 ret = regmap_write(ssm2602->regmap, SSM2602_RESET, 0); in ssm260x_component_probe()
613 regmap_register_patch(ssm2602->regmap, ssm2602_patch, in ssm260x_component_probe()
617 regmap_update_bits(ssm2602->regmap, SSM2602_LINVOL, in ssm260x_component_probe()
619 regmap_update_bits(ssm2602->regmap, SSM2602_RINVOL, in ssm260x_component_probe()
622 regmap_write(ssm2602->regmap, SSM2602_APANA, APANA_SELECT_DAC | in ssm260x_component_probe()
625 switch (ssm2602->type) { in ssm260x_component_probe()
674 struct ssm2602_priv *ssm2602; in ssm2602_probe() local
679 ssm2602 = devm_kzalloc(dev, sizeof(*ssm2602), GFP_KERNEL); in ssm2602_probe()
680 if (ssm2602 == NULL) in ssm2602_probe()
683 dev_set_drvdata(dev, ssm2602); in ssm2602_probe()
684 ssm2602->type = type; in ssm2602_probe()
685 ssm2602->regmap = regmap; in ssm2602_probe()