nau8810 168 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 176 sound/soc/codecs/nau8810.c regmap_read(nau8810->regmap, reg + i, ®_val); nau8810 199 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 217 sound/soc/codecs/nau8810.c ret = regmap_write(nau8810->regmap, reg + i, value); nau8810 397 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 400 sound/soc/codecs/nau8810.c regmap_read(nau8810->regmap, NAU8810_REG_CLOCK, &value); nau8810 483 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 485 sound/soc/codecs/nau8810.c nau8810->clk_id = clk_id; nau8810 486 sound/soc/codecs/nau8810.c nau8810->sysclk = freq; nau8810 487 sound/soc/codecs/nau8810.c dev_dbg(nau8810->dev, "master sysclk %dHz, source %s\n", nau8810 537 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 538 sound/soc/codecs/nau8810.c struct regmap *map = nau8810->regmap; nau8810 539 sound/soc/codecs/nau8810.c struct nau8810_pll *pll_param = &nau8810->pll; nau8810 545 sound/soc/codecs/nau8810.c dev_err(nau8810->dev, "Unsupported input clock %d\n", freq_in); nau8810 548 sound/soc/codecs/nau8810.c dev_info(nau8810->dev, "pll_int=%x pll_frac=%x mclk_scaler=%x pre_factor=%x\n", nau8810 576 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 621 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_IFACE, nau8810 624 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_CLOCK, nau8810 630 sound/soc/codecs/nau8810.c static int nau8810_mclk_clkdiv(struct nau8810 *nau8810, int rate) nau8810 634 sound/soc/codecs/nau8810.c if (!nau8810->sysclk) { nau8810 635 sound/soc/codecs/nau8810.c dev_err(nau8810->dev, "Make mclk div configuration fail because of invalid system clock\n"); nau8810 644 sound/soc/codecs/nau8810.c sclk = (nau8810->sysclk * 10) / nau8810 650 sound/soc/codecs/nau8810.c dev_dbg(nau8810->dev, nau8810 654 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_CLOCK, nau8810 656 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_CLOCK, nau8810 666 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 671 sound/soc/codecs/nau8810.c regmap_read(nau8810->regmap, NAU8810_REG_CLOCK, &ctrl_val); nau8810 683 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_CLOCK, nau8810 722 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_IFACE, nau8810 724 sound/soc/codecs/nau8810.c regmap_update_bits(nau8810->regmap, NAU8810_REG_SMPLR, nau8810 730 sound/soc/codecs/nau8810.c if (nau8810->clk_id == NAU8810_SCLK_MCLK) { nau8810 731 sound/soc/codecs/nau8810.c ret = nau8810_mclk_clkdiv(nau8810, params_rate(params)); nau8810 733 sound/soc/codecs/nau8810.c dev_err(nau8810->dev, "MCLK div configuration fail\n"); nau8810 742 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = snd_soc_component_get_drvdata(component); nau8810 743 sound/soc/codecs/nau8810.c struct regmap *map = nau8810->regmap; nau8810 843 sound/soc/codecs/nau8810.c struct nau8810 *nau8810 = dev_get_platdata(dev); nau8810 845 sound/soc/codecs/nau8810.c if (!nau8810) { nau8810 846 sound/soc/codecs/nau8810.c nau8810 = devm_kzalloc(dev, sizeof(*nau8810), GFP_KERNEL); nau8810 847 sound/soc/codecs/nau8810.c if (!nau8810) nau8810 850 sound/soc/codecs/nau8810.c i2c_set_clientdata(i2c, nau8810); nau8810 852 sound/soc/codecs/nau8810.c nau8810->regmap = devm_regmap_init_i2c(i2c, &nau8810_regmap_config); nau8810 853 sound/soc/codecs/nau8810.c if (IS_ERR(nau8810->regmap)) nau8810 854 sound/soc/codecs/nau8810.c return PTR_ERR(nau8810->regmap); nau8810 855 sound/soc/codecs/nau8810.c nau8810->dev = dev; nau8810 857 sound/soc/codecs/nau8810.c regmap_write(nau8810->regmap, NAU8810_REG_RESET, 0x00);