Lines Matching refs:cs4265

322 	struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component);  in cs4265_set_sysclk()  local
331 cs4265->sysclk = freq; in cs4265_set_sysclk()
335 cs4265->sysclk = 0; in cs4265_set_sysclk()
343 struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component); in cs4265_set_fmt() local
376 cs4265->format = iface; in cs4265_set_fmt()
407 struct cs4265_private *cs4265 = snd_soc_component_get_drvdata(component); in cs4265_pcm_hw_params() local
411 ((cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) in cs4265_pcm_hw_params()
415 index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params)); in cs4265_pcm_hw_params()
428 switch (cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) { in cs4265_pcm_hw_params()
572 struct cs4265_private *cs4265; in cs4265_i2c_probe() local
577 cs4265 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4265_private), in cs4265_i2c_probe()
579 if (cs4265 == NULL) in cs4265_i2c_probe()
582 cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap); in cs4265_i2c_probe()
583 if (IS_ERR(cs4265->regmap)) { in cs4265_i2c_probe()
584 ret = PTR_ERR(cs4265->regmap); in cs4265_i2c_probe()
589 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs4265_i2c_probe()
591 if (IS_ERR(cs4265->reset_gpio)) in cs4265_i2c_probe()
592 return PTR_ERR(cs4265->reset_gpio); in cs4265_i2c_probe()
594 if (cs4265->reset_gpio) { in cs4265_i2c_probe()
596 gpiod_set_value_cansleep(cs4265->reset_gpio, 1); in cs4265_i2c_probe()
599 i2c_set_clientdata(i2c_client, cs4265); in cs4265_i2c_probe()
601 ret = regmap_read(cs4265->regmap, CS4265_CHIP_ID, &reg); in cs4265_i2c_probe()
619 regmap_write(cs4265->regmap, CS4265_PWRCTL, 0x0F); in cs4265_i2c_probe()
628 struct cs4265_private *cs4265 = i2c_get_clientdata(i2c); in cs4265_i2c_remove() local
630 if (cs4265->reset_gpio) in cs4265_i2c_remove()
631 gpiod_set_value_cansleep(cs4265->reset_gpio, 0); in cs4265_i2c_remove()