Lines Matching refs:cs4265
326 struct cs4265_private *cs4265 = snd_soc_codec_get_drvdata(codec); in cs4265_set_sysclk() local
335 cs4265->sysclk = freq; in cs4265_set_sysclk()
339 cs4265->sysclk = 0; in cs4265_set_sysclk()
347 struct cs4265_private *cs4265 = snd_soc_codec_get_drvdata(codec); in cs4265_set_fmt() local
380 cs4265->format = iface; in cs4265_set_fmt()
411 struct cs4265_private *cs4265 = snd_soc_codec_get_drvdata(codec); in cs4265_pcm_hw_params() local
415 ((cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) in cs4265_pcm_hw_params()
419 index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params)); in cs4265_pcm_hw_params()
432 switch (cs4265->format & SND_SOC_DAIFMT_FORMAT_MASK) { in cs4265_pcm_hw_params()
574 struct cs4265_private *cs4265; in cs4265_i2c_probe() local
579 cs4265 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4265_private), in cs4265_i2c_probe()
581 if (cs4265 == NULL) in cs4265_i2c_probe()
584 cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap); in cs4265_i2c_probe()
585 if (IS_ERR(cs4265->regmap)) { in cs4265_i2c_probe()
586 ret = PTR_ERR(cs4265->regmap); in cs4265_i2c_probe()
591 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs4265_i2c_probe()
593 if (IS_ERR(cs4265->reset_gpio)) in cs4265_i2c_probe()
594 return PTR_ERR(cs4265->reset_gpio); in cs4265_i2c_probe()
596 if (cs4265->reset_gpio) { in cs4265_i2c_probe()
598 gpiod_set_value_cansleep(cs4265->reset_gpio, 1); in cs4265_i2c_probe()
601 i2c_set_clientdata(i2c_client, cs4265); in cs4265_i2c_probe()
603 ret = regmap_read(cs4265->regmap, CS4265_CHIP_ID, ®); in cs4265_i2c_probe()
616 regmap_write(cs4265->regmap, CS4265_PWRCTL, 0x0F); in cs4265_i2c_probe()