Lines Matching refs:cs4341

49 	struct cs4341_priv *cs4341 = snd_soc_component_get_drvdata(component);  in cs4341_set_fmt()  local
69 cs4341->fmt = format & SND_SOC_DAIFMT_FORMAT_MASK; in cs4341_set_fmt()
83 struct cs4341_priv *cs4341 = snd_soc_component_get_drvdata(component); in cs4341_hw_params() local
99 switch (cs4341->fmt) { in cs4341_hw_params()
111 cs4341->fmt); in cs4341_hw_params()
216 struct cs4341_priv *cs4341 = dev_get_drvdata(dev); in cs4341_probe() local
220 regmap_write(cs4341->regmap, cs4341_reg_defaults[i].reg, in cs4341_probe()
230 struct cs4341_priv *cs4341; in cs4341_i2c_probe() local
232 cs4341 = devm_kzalloc(&i2c->dev, sizeof(*cs4341), GFP_KERNEL); in cs4341_i2c_probe()
233 if (!cs4341) in cs4341_i2c_probe()
236 i2c_set_clientdata(i2c, cs4341); in cs4341_i2c_probe()
238 cs4341->regcfg.reg_bits = 8; in cs4341_i2c_probe()
239 cs4341->regcfg.val_bits = 8; in cs4341_i2c_probe()
240 cs4341->regcfg.max_register = CS4341_REG_VOLB; in cs4341_i2c_probe()
241 cs4341->regcfg.cache_type = REGCACHE_FLAT; in cs4341_i2c_probe()
242 cs4341->regcfg.reg_defaults = cs4341_reg_defaults; in cs4341_i2c_probe()
243 cs4341->regcfg.num_reg_defaults = ARRAY_SIZE(cs4341_reg_defaults); in cs4341_i2c_probe()
244 cs4341->regmap = devm_regmap_init_i2c(i2c, &cs4341->regcfg); in cs4341_i2c_probe()
245 if (IS_ERR(cs4341->regmap)) in cs4341_i2c_probe()
246 return PTR_ERR(cs4341->regmap); in cs4341_i2c_probe()
275 struct cs4341_priv *cs4341; in cs4341_spi_probe() local
278 cs4341 = devm_kzalloc(&spi->dev, sizeof(*cs4341), GFP_KERNEL); in cs4341_spi_probe()
279 if (!cs4341) in cs4341_spi_probe()
290 spi_set_drvdata(spi, cs4341); in cs4341_spi_probe()
292 cs4341->regcfg.reg_bits = 16; in cs4341_spi_probe()
293 cs4341->regcfg.val_bits = 8; in cs4341_spi_probe()
294 cs4341->regcfg.write_flag_mask = 0x20; in cs4341_spi_probe()
295 cs4341->regcfg.max_register = CS4341_REG_VOLB; in cs4341_spi_probe()
296 cs4341->regcfg.cache_type = REGCACHE_FLAT; in cs4341_spi_probe()
297 cs4341->regcfg.readable_reg = cs4341_reg_readable; in cs4341_spi_probe()
298 cs4341->regcfg.reg_defaults = cs4341_reg_defaults; in cs4341_spi_probe()
299 cs4341->regcfg.num_reg_defaults = ARRAY_SIZE(cs4341_reg_defaults); in cs4341_spi_probe()
300 cs4341->regmap = devm_regmap_init_spi(spi, &cs4341->regcfg); in cs4341_spi_probe()
301 if (IS_ERR(cs4341->regmap)) in cs4341_spi_probe()
302 return PTR_ERR(cs4341->regmap); in cs4341_spi_probe()