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) {
1095 {"alc5632", 0x5c},
1101 * alc5632 2 wire address is determined by A1 pin
1108 struct alc5632_priv *alc5632;
1113 alc5632 = devm_kzalloc(&client->dev,
1115 if (alc5632 == NULL)
1118 i2c_set_clientdata(client, alc5632);
1120 alc5632->regmap = devm_regmap_init_i2c(client, &alc5632_regmap);
1121 if (IS_ERR(alc5632->regmap)) {
1122 ret = PTR_ERR(alc5632->regmap);
1127 ret1 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID1, &vid1);
1128 ret2 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID2, &vid2);
1145 ret = alc5632_reset(alc5632->regmap);
1151 alc5632->id = vid2;
1152 switch (alc5632->id) {
1154 alc5632_dai.name = "alc5632-hifi";
1173 { .compatible = "realtek,alc5632", },
1182 .name = "alc5632",