Lines Matching full:ak4619
3 * ak4619.c -- Asahi Kasei ALSA SoC Audio driver
234 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_set_deemph() local
237 if (!ak4619->deemph_en) in ak4619_set_deemph()
240 switch (ak4619->playback_rate) { in ak4619_set_deemph()
261 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_put_deemph() local
273 if (ak4619->deemph_en != deemph_en) in ak4619_put_deemph()
276 ak4619->deemph_en = deemph_en; in ak4619_put_deemph()
286 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_get_deemph() local
288 ucontrol->value.integer.value[0] = ak4619->deemph_en; in ak4619_get_deemph()
537 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_dai_hw_params() local
568 fs = ak4619->sysclk / rate; in ak4619_dai_hw_params()
620 ak4619->playback_rate = rate; in ak4619_dai_hw_params()
688 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_dai_set_sysclk() local
690 ak4619->sysclk = freq; in ak4619_dai_set_sysclk()
705 static void ak4619_hw_constraints(struct ak4619_priv *ak4619, in ak4619_hw_constraints() argument
708 struct snd_pcm_hw_constraint_list *constraint = &ak4619->constraint; in ak4619_hw_constraints()
736 fs = ak4619->sysclk / ak4619_sr[i]; in ak4619_hw_constraints()
773 struct ak4619_priv *ak4619 = snd_soc_component_get_drvdata(component); in ak4619_dai_startup() local
775 ak4619_hw_constraints(ak4619, substream->runtime); in ak4619_dai_startup()
828 { .compatible = "asahi-kasei,ak4619", .data = &ak4619_regmap_cfg },
834 { "ak4619", (kernel_ulong_t)&ak4619_regmap_cfg },
851 .name = "ak4619-hifi",
873 struct ak4619_priv *ak4619; in ak4619_i2c_probe() local
876 ak4619 = devm_kzalloc(dev, sizeof(*ak4619), GFP_KERNEL); in ak4619_i2c_probe()
877 if (!ak4619) in ak4619_i2c_probe()
880 i2c_set_clientdata(i2c, ak4619); in ak4619_i2c_probe()
882 ak4619->regmap = devm_regmap_init_i2c(i2c, &ak4619_regmap_cfg); in ak4619_i2c_probe()
883 if (IS_ERR(ak4619->regmap)) { in ak4619_i2c_probe()
884 ret = PTR_ERR(ak4619->regmap); in ak4619_i2c_probe()
892 dev_err(dev, "Failed to register ak4619 component: %d\n", in ak4619_i2c_probe()
902 .name = "ak4619-codec",
910 MODULE_DESCRIPTION("SoC AK4619 driver");