Lines Matching refs:nau8822
616 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_set_dai_sysclk() local
618 nau8822->div_id = clk_id; in nau8822_set_dai_sysclk()
619 nau8822->sysclk = freq; in nau8822_set_dai_sysclk()
669 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_config_clkdiv() local
670 struct nau8822_pll *pll = &nau8822->pll; in nau8822_config_clkdiv()
673 switch (nau8822->div_id) { in nau8822_config_clkdiv()
682 sclk = (nau8822->sysclk * 10) / nau8822_mclk_scaler[i]; in nau8822_config_clkdiv()
725 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_set_pll() local
726 struct nau8822_pll *pll_param = &nau8822->pll; in nau8822_set_pll()
847 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_hw_params() local
915 if (nau8822->div_id == NAU8822_CLK_MCLK) in nau8822_hw_params()
1017 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_suspend() local
1021 regcache_mark_dirty(nau8822->regmap); in nau8822_suspend()
1028 struct nau8822 *nau8822 = snd_soc_component_get_drvdata(component); in nau8822_resume() local
1030 regcache_sync(nau8822->regmap); in nau8822_resume()
1106 struct nau8822 *nau8822 = dev_get_platdata(dev); in nau8822_i2c_probe() local
1109 if (!nau8822) { in nau8822_i2c_probe()
1110 nau8822 = devm_kzalloc(dev, sizeof(*nau8822), GFP_KERNEL); in nau8822_i2c_probe()
1111 if (nau8822 == NULL) in nau8822_i2c_probe()
1114 i2c_set_clientdata(i2c, nau8822); in nau8822_i2c_probe()
1116 nau8822->regmap = devm_regmap_init_i2c(i2c, &nau8822_regmap_config); in nau8822_i2c_probe()
1117 if (IS_ERR(nau8822->regmap)) { in nau8822_i2c_probe()
1118 ret = PTR_ERR(nau8822->regmap); in nau8822_i2c_probe()
1122 nau8822->dev = dev; in nau8822_i2c_probe()
1125 ret = regmap_write(nau8822->regmap, NAU8822_REG_RESET, 0x00); in nau8822_i2c_probe()