Lines Matching full:ak4104
3 * AK4104 ALSA SoC (ASoC) driver
19 /* AK4104 registers addresses */
32 /* Bit masks for AK4104 registers */
65 struct ak4104_private *ak4104 = snd_soc_component_get_drvdata(component); in ak4104_set_dai_fmt() local
88 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_set_dai_fmt()
102 struct ak4104_private *ak4104 = snd_soc_component_get_drvdata(component); in ak4104_hw_params() local
107 regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(0), val); in ak4104_hw_params()
144 ret = regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(3), val); in ak4104_hw_params()
157 .name = "ak4104-hifi",
175 struct ak4104_private *ak4104 = snd_soc_component_get_drvdata(component); in ak4104_probe() local
178 ret = regulator_enable(ak4104->regulator); in ak4104_probe()
185 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_probe()
192 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_TX, in ak4104_probe()
200 regulator_disable(ak4104->regulator); in ak4104_probe()
206 struct ak4104_private *ak4104 = snd_soc_component_get_drvdata(component); in ak4104_remove() local
208 regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_remove()
210 regulator_disable(ak4104->regulator); in ak4104_remove()
266 struct ak4104_private *ak4104; in ak4104_spi_probe() local
277 ak4104 = devm_kzalloc(&spi->dev, sizeof(struct ak4104_private), in ak4104_spi_probe()
279 if (ak4104 == NULL) in ak4104_spi_probe()
282 ak4104->regulator = devm_regulator_get(&spi->dev, "vdd"); in ak4104_spi_probe()
283 if (IS_ERR(ak4104->regulator)) { in ak4104_spi_probe()
284 ret = PTR_ERR(ak4104->regulator); in ak4104_spi_probe()
289 ak4104->regmap = devm_regmap_init_spi(spi, &ak4104_regmap); in ak4104_spi_probe()
290 if (IS_ERR(ak4104->regmap)) { in ak4104_spi_probe()
291 ret = PTR_ERR(ak4104->regmap); in ak4104_spi_probe()
303 ret = regmap_read(ak4104->regmap, AK4104_REG_RESERVED, &val); in ak4104_spi_probe()
309 spi_set_drvdata(spi, ak4104); in ak4104_spi_probe()
317 { .compatible = "asahi-kasei,ak4104", },
323 { "ak4104", 0 },
330 .name = "ak4104",
340 MODULE_DESCRIPTION("Asahi Kasei AK4104 ALSA SoC driver");