Lines Matching refs:ak4104
58 struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec); in ak4104_set_dai_fmt() local
81 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_set_dai_fmt()
95 struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec); in ak4104_hw_params() local
100 regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(0), val); in ak4104_hw_params()
137 ret = regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(3), val); in ak4104_hw_params()
142 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_TX, in ak4104_hw_params()
154 struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec); in ak4104_hw_free() local
157 return regmap_update_bits(ak4104->regmap, AK4104_REG_TX, in ak4104_hw_free()
183 struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec); in ak4104_probe() local
186 codec->control_data = ak4104->regmap; in ak4104_probe()
189 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_probe()
196 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_TX, in ak4104_probe()
206 struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec); in ak4104_remove() local
208 regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_remove()
233 struct ak4104_private *ak4104; in ak4104_spi_probe() local
243 ak4104 = devm_kzalloc(&spi->dev, sizeof(struct ak4104_private), in ak4104_spi_probe()
245 if (ak4104 == NULL) in ak4104_spi_probe()
248 ak4104->regmap = devm_regmap_init_spi(spi, &ak4104_regmap); in ak4104_spi_probe()
249 if (IS_ERR(ak4104->regmap)) { in ak4104_spi_probe()
250 ret = PTR_ERR(ak4104->regmap); in ak4104_spi_probe()
271 ret = regmap_read(ak4104->regmap, AK4104_REG_RESERVED, &val); in ak4104_spi_probe()
277 spi_set_drvdata(spi, ak4104); in ak4104_spi_probe()