Lines Matching refs:ssm2602

295 	struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component);  in ssm2602_hw_params()  local
296 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); in ssm2602_hw_params()
302 regmap_write(ssm2602->regmap, SSM2602_SRATE, srate); in ssm2602_hw_params()
321 regmap_update_bits(ssm2602->regmap, SSM2602_IFACE, in ssm2602_hw_params()
330 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_startup() local
332 if (ssm2602->sysclk_constraints) { in ssm2602_startup()
335 ssm2602->sysclk_constraints); in ssm2602_startup()
343 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(dai->component); in ssm2602_mute() local
346 regmap_update_bits(ssm2602->regmap, SSM2602_APDIGI, in ssm2602_mute()
350 regmap_update_bits(ssm2602->regmap, SSM2602_APDIGI, in ssm2602_mute()
359 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_set_dai_sysclk() local
368 ssm2602->sysclk_constraints = &ssm2602_constraints_12288000; in ssm2602_set_dai_sysclk()
372 ssm2602->sysclk_constraints = &ssm2602_constraints_11289600; in ssm2602_set_dai_sysclk()
375 ssm2602->sysclk_constraints = NULL; in ssm2602_set_dai_sysclk()
380 ssm2602->sysclk = freq; in ssm2602_set_dai_sysclk()
396 ssm2602->clk_out_pwr |= mask; in ssm2602_set_dai_sysclk()
398 ssm2602->clk_out_pwr &= ~mask; in ssm2602_set_dai_sysclk()
400 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_dai_sysclk()
401 PWR_CLK_OUT_PDN | PWR_OSC_PDN, ssm2602->clk_out_pwr); in ssm2602_set_dai_sysclk()
410 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(codec_dai->component); in ssm2602_set_dai_fmt() local
462 regmap_write(ssm2602->regmap, SSM2602_IFACE, iface); in ssm2602_set_dai_fmt()
469 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_set_bias_level() local
474 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
476 ssm2602->clk_out_pwr); in ssm2602_set_bias_level()
482 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
488 regmap_update_bits(ssm2602->regmap, SSM2602_PWR, in ssm2602_set_bias_level()
534 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_resume() local
536 regcache_sync(ssm2602->regmap); in ssm2602_resume()
544 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm2602_component_probe() local
547 regmap_update_bits(ssm2602->regmap, SSM2602_LOUT1V, in ssm2602_component_probe()
549 regmap_update_bits(ssm2602->regmap, SSM2602_ROUT1V, in ssm2602_component_probe()
582 struct ssm2602_priv *ssm2602 = snd_soc_component_get_drvdata(component); in ssm260x_component_probe() local
585 ret = regmap_write(ssm2602->regmap, SSM2602_RESET, 0); in ssm260x_component_probe()
592 regmap_update_bits(ssm2602->regmap, SSM2602_LINVOL, in ssm260x_component_probe()
594 regmap_update_bits(ssm2602->regmap, SSM2602_RINVOL, in ssm260x_component_probe()
597 regmap_write(ssm2602->regmap, SSM2602_APANA, APANA_SELECT_DAC | in ssm260x_component_probe()
600 switch (ssm2602->type) { in ssm260x_component_probe()
650 struct ssm2602_priv *ssm2602; in ssm2602_probe() local
655 ssm2602 = devm_kzalloc(dev, sizeof(*ssm2602), GFP_KERNEL); in ssm2602_probe()
656 if (ssm2602 == NULL) in ssm2602_probe()
659 dev_set_drvdata(dev, ssm2602); in ssm2602_probe()
660 ssm2602->type = type; in ssm2602_probe()
661 ssm2602->regmap = regmap; in ssm2602_probe()