Lines Matching refs:priv
342 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_hw_params() local
343 int i = get_coeff(priv->mclk, params_rate(hw_params)); in ml26124_hw_params()
345 priv->substream = substream; in ml26124_hw_params()
346 priv->rate = params_rate(hw_params); in ml26124_hw_params()
348 if (priv->clk_in) { in ml26124_hw_params()
349 switch (priv->mclk / params_rate(hw_params)) { in ml26124_hw_params()
425 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_mute() local
427 switch (priv->substream->stream) { in ml26124_mute()
488 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_dai_sysclk() local
492 priv->clk_in = ML26124_USE_PLLOUT; in ml26124_set_dai_sysclk()
495 priv->clk_in = ML26124_USE_MCLKI; in ml26124_set_dai_sysclk()
501 priv->mclk = freq; in ml26124_set_dai_sysclk()
509 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_bias_level() local
528 regcache_sync(priv->regmap); in ml26124_set_bias_level()
588 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_probe() local
589 codec->control_data = priv->regmap; in ml26124_probe()
632 struct ml26124_priv *priv; in ml26124_i2c_probe() local
635 priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL); in ml26124_i2c_probe()
636 if (!priv) in ml26124_i2c_probe()
639 i2c_set_clientdata(i2c, priv); in ml26124_i2c_probe()
641 priv->regmap = devm_regmap_init_i2c(i2c, &ml26124_i2c_regmap); in ml26124_i2c_probe()
642 if (IS_ERR(priv->regmap)) { in ml26124_i2c_probe()
643 ret = PTR_ERR(priv->regmap); in ml26124_i2c_probe()