Lines Matching refs:adau1373

33 struct adau1373 {  struct
551 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_pll_event() local
560 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_pll_event()
823 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_check_aif_clk() local
829 if (!adau1373->dais[dai].clock_provider) in adau1373_check_aif_clk()
832 if (adau1373->dais[dai].clk_src == ADAU1373_CLK_SRC_PLL1) in adau1373_check_aif_clk()
844 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_check_src() local
849 return adau1373->dais[dai].enable_src; in adau1373_check_src()
1033 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_hw_params() local
1034 struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id]; in adau1373_hw_params()
1072 regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id), in adau1373_hw_params()
1093 return regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id), in adau1373_hw_params()
1100 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_set_dai_fmt() local
1101 struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id]; in adau1373_set_dai_fmt()
1150 regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id), in adau1373_set_dai_fmt()
1159 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(dai->component); in adau1373_set_dai_sysclk() local
1160 struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id]; in adau1373_set_dai_sysclk()
1173 regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id), in adau1373_set_dai_sysclk()
1254 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_set_pll() local
1304 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_set_pll()
1307 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_set_pll()
1312 regmap_write(adau1373->regmap, ADAU1373_DPLL_CTRL(pll_id), in adau1373_set_pll()
1314 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL1(pll_id), pll_regs[0]); in adau1373_set_pll()
1315 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL2(pll_id), pll_regs[1]); in adau1373_set_pll()
1316 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL3(pll_id), pll_regs[2]); in adau1373_set_pll()
1317 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL4(pll_id), pll_regs[3]); in adau1373_set_pll()
1318 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL5(pll_id), pll_regs[4]); in adau1373_set_pll()
1321 regmap_update_bits(adau1373->regmap, ADAU1373_CLK_SRC_DIV(pll_id), 0x3f, 0x09); in adau1373_set_pll()
1326 static void adau1373_load_drc_settings(struct adau1373 *adau1373, in adau1373_load_drc_settings() argument
1332 regmap_write(adau1373->regmap, ADAU1373_DRC(nr) + i, drc[i]); in adau1373_load_drc_settings()
1351 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_probe() local
1366 adau1373_load_drc_settings(adau1373, i, in adau1373_probe()
1378 regmap_write(adau1373->regmap, ADAU1373_INPUT_MODE, val); in adau1373_probe()
1385 regmap_write(adau1373->regmap, ADAU1373_OUTPUT_CTRL, val); in adau1373_probe()
1389 regmap_write(adau1373->regmap, ADAU1373_EP_CTRL, in adau1373_probe()
1399 regmap_write(adau1373->regmap, ADAU1373_ADC_CTRL, in adau1373_probe()
1408 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_set_bias_level() local
1416 regmap_update_bits(adau1373->regmap, ADAU1373_PWDN_CTRL3, in adau1373_set_bias_level()
1420 regmap_update_bits(adau1373->regmap, ADAU1373_PWDN_CTRL3, in adau1373_set_bias_level()
1429 struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component); in adau1373_resume() local
1431 regcache_sync(adau1373->regmap); in adau1373_resume()
1476 struct adau1373 *adau1373; in adau1373_i2c_probe() local
1479 adau1373 = devm_kzalloc(&client->dev, sizeof(*adau1373), GFP_KERNEL); in adau1373_i2c_probe()
1480 if (!adau1373) in adau1373_i2c_probe()
1483 adau1373->regmap = devm_regmap_init_i2c(client, in adau1373_i2c_probe()
1485 if (IS_ERR(adau1373->regmap)) in adau1373_i2c_probe()
1486 return PTR_ERR(adau1373->regmap); in adau1373_i2c_probe()
1488 regmap_write(adau1373->regmap, ADAU1373_SOFT_RESET, 0x00); in adau1373_i2c_probe()
1490 dev_set_drvdata(&client->dev, adau1373); in adau1373_i2c_probe()