Lines Matching refs:ak4641
72 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_set_deemph() local
77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph()
78 abs(deemph_settings[i] - ak4641->playback_fs) < in ak4641_set_deemph()
79 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph()
82 if (!ak4641->deemph && deemph_settings[i] == 0) in ak4641_set_deemph()
95 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_put_deemph() local
101 ak4641->deemph = deemph; in ak4641_put_deemph()
110 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_get_deemph() local
112 ucontrol->value.integer.value[0] = ak4641->deemph; in ak4641_get_deemph()
308 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_set_dai_sysclk() local
310 ak4641->sysclk = freq; in ak4641_set_dai_sysclk()
319 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_i2s_hw_params() local
324 fs = ak4641->sysclk / rate; in ak4641_i2s_hw_params()
348 ak4641->playback_fs = rate; in ak4641_i2s_hw_params()
418 struct ak4641_priv *ak4641 = snd_soc_component_get_drvdata(component); in ak4641_set_bias_level() local
440 ret = regcache_sync(ak4641->regmap); in ak4641_set_bias_level()
456 regcache_mark_dirty(ak4641->regmap); in ak4641_set_bias_level()
554 struct ak4641_priv *ak4641; in ak4641_i2c_probe() local
557 ak4641 = devm_kzalloc(&i2c->dev, sizeof(struct ak4641_priv), in ak4641_i2c_probe()
559 if (!ak4641) in ak4641_i2c_probe()
562 ak4641->regmap = devm_regmap_init_i2c(i2c, &ak4641_regmap); in ak4641_i2c_probe()
563 if (IS_ERR(ak4641->regmap)) in ak4641_i2c_probe()
564 return PTR_ERR(ak4641->regmap); in ak4641_i2c_probe()
584 i2c_set_clientdata(i2c, ak4641); in ak4641_i2c_probe()