Lines Matching refs:alc5632
3 * alc5632.c -- ALC5632 ALSA SoC Audio Codec
30 #include "alc5632.h"
622 /* Note : pll code from original alc5632 driver. Not sure of how good it is */
777 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component);
781 if (coeff_div[i].fs * rate == alc5632->sysclk)
794 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component);
806 alc5632->sysclk = freq;
1016 .name = "alc5632-hifi",
1041 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component);
1043 regcache_sync(alc5632->regmap);
1053 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component);
1055 switch (alc5632->id) {
1096 * alc5632 2 wire address is determined by A1 pin
1104 struct alc5632_priv *alc5632;
1108 alc5632 = devm_kzalloc(&client->dev,
1110 if (alc5632 == NULL)
1113 i2c_set_clientdata(client, alc5632);
1115 alc5632->regmap = devm_regmap_init_i2c(client, &alc5632_regmap);
1116 if (IS_ERR(alc5632->regmap)) {
1117 ret = PTR_ERR(alc5632->regmap);
1122 ret1 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID1, &vid1);
1123 ret2 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID2, &vid2);
1138 ret = alc5632_reset(alc5632->regmap);
1144 alc5632->id = vid2;
1145 switch (alc5632->id) {
1147 alc5632_dai.name = "alc5632-hifi";
1165 {"alc5632", 0x5c},
1171 { .compatible = "realtek,alc5632", },
1179 .name = "alc5632",