Lines Matching defs:alc5623
3 * alc5623.c -- alc562[123] ALSA Soc Audio driver
28 #include <sound/alc5623.h>
30 #include "alc5623.h"
473 /* Note : pll code from original alc5623 driver. Not sure of how good it is */
604 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
608 if (coeff_div[i].fs * rate == alc5623->sysclk)
621 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
632 alc5623->sysclk = freq;
700 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
734 __func__, alc5623->sysclk, rate, coeff);
769 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
786 if (alc5623->id == 0x22)
840 .name = "alc5623-hifi",
863 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
865 regcache_cache_only(alc5623->regmap, true);
872 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
876 regcache_cache_only(alc5623->regmap, false);
877 ret = regcache_sync(alc5623->regmap);
881 regcache_cache_only(alc5623->regmap, true);
890 struct alc5623_priv *alc5623 = snd_soc_component_get_drvdata(component);
895 if (alc5623->add_ctrl) {
897 alc5623->add_ctrl);
900 if (alc5623->jack_det_ctrl) {
902 alc5623->jack_det_ctrl);
905 switch (alc5623->id) {
931 switch (alc5623->id) {
981 struct alc5623_priv *alc5623;
987 alc5623 = devm_kzalloc(&client->dev, sizeof(struct alc5623_priv),
989 if (alc5623 == NULL)
992 alc5623->regmap = devm_regmap_init_i2c(client, &alc5623_regmap);
993 if (IS_ERR(alc5623->regmap)) {
994 ret = PTR_ERR(alc5623->regmap);
999 ret = regmap_read(alc5623->regmap, ALC5623_VENDOR_ID1, &vid1);
1005 ret = regmap_read(alc5623->regmap, ALC5623_VENDOR_ID2, &vid2);
1024 alc5623->add_ctrl = pdata->add_ctrl;
1025 alc5623->jack_det_ctrl = pdata->jack_det_ctrl;
1031 alc5623->add_ctrl = val32;
1034 alc5623->jack_det_ctrl = val32;
1038 alc5623->id = vid2;
1039 switch (alc5623->id) {
1047 alc5623_dai.name = "alc5623-hifi";
1053 i2c_set_clientdata(client, alc5623);
1066 {"alc5623", 0x23},
1072 { .compatible = "realtek,alc5623", },