Lines Matching full:alc5632
3 * alc5632.c -- ALC5632 ALSA SoC Audio Codec
30 #include "alc5632.h"
33 * ALC5632 register cache
137 * ALC5632 Controls
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); in get_coeff() local
781 if (coeff_div[i].fs * rate == alc5632->sysclk) in get_coeff()
794 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_set_dai_sysclk() local
806 alc5632->sysclk = freq; in alc5632_set_dai_sysclk()
1016 .name = "alc5632-hifi",
1041 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_resume() local
1043 regcache_sync(alc5632->regmap); in alc5632_resume()
1053 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_probe() local
1055 switch (alc5632->id) { in alc5632_probe()
1095 {"alc5632", 0x5c},
1101 * alc5632 2 wire address is determined by A1 pin
1108 struct alc5632_priv *alc5632; in alc5632_i2c_probe() local
1113 alc5632 = devm_kzalloc(&client->dev, in alc5632_i2c_probe()
1115 if (alc5632 == NULL) in alc5632_i2c_probe()
1118 i2c_set_clientdata(client, alc5632); in alc5632_i2c_probe()
1120 alc5632->regmap = devm_regmap_init_i2c(client, &alc5632_regmap); in alc5632_i2c_probe()
1121 if (IS_ERR(alc5632->regmap)) { in alc5632_i2c_probe()
1122 ret = PTR_ERR(alc5632->regmap); in alc5632_i2c_probe()
1127 ret1 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID1, &vid1); in alc5632_i2c_probe()
1128 ret2 = regmap_read(alc5632->regmap, ALC5632_VENDOR_ID2, &vid2); in alc5632_i2c_probe()
1141 "Device is not a ALC5632: VID1=0x%x, VID2=0x%x\n", vid1, vid2); in alc5632_i2c_probe()
1145 ret = alc5632_reset(alc5632->regmap); in alc5632_i2c_probe()
1151 alc5632->id = vid2; in alc5632_i2c_probe()
1152 switch (alc5632->id) { in alc5632_i2c_probe()
1154 alc5632_dai.name = "alc5632-hifi"; in alc5632_i2c_probe()
1173 { .compatible = "realtek,alc5632", },
1182 .name = "alc5632",
1191 MODULE_DESCRIPTION("ASoC ALC5632 driver");