Home
last modified time | relevance | path

Searched refs:pll_id (Results 1 – 25 of 68) sorted by relevance

123

/sound/soc/uniphier/
Daio-cpu.c23 static bool is_valid_pll(struct uniphier_aio_chip *chip, int pll_id) in is_valid_pll() argument
27 if (pll_id < 0 || chip->num_plls <= pll_id) { in is_valid_pll()
28 dev_err(dev, "PLL(%d) is not supported\n", pll_id); in is_valid_pll()
32 return chip->plls[pll_id].enable; in is_valid_pll()
128 static int find_divider(struct uniphier_aio *aio, int pll_id, unsigned int freq) in find_divider() argument
135 if (!is_valid_pll(aio->chip, pll_id)) in find_divider()
138 pll = &aio->chip->plls[pll_id]; in find_divider()
152 int pll_id, div_id; in uniphier_aio_set_sysclk() local
158 pll_id = AUD_PLL_A1; in uniphier_aio_set_sysclk()
161 pll_id = AUD_PLL_F1; in uniphier_aio_set_sysclk()
[all …]
Daio-core.c105 int aio_chip_set_pll(struct uniphier_aio_chip *chip, int pll_id, in aio_chip_set_pll() argument
117 switch (pll_id) { in aio_chip_set_pll()
131 dev_err(dev, "PLL(%d) not supported\n", pll_id); in aio_chip_set_pll()
146 chip->plls[pll_id].freq = freq; in aio_chip_set_pll()
Daio.h322 int aio_chip_set_pll(struct uniphier_aio_chip *chip, int pll_id,
/sound/soc/codecs/
Dadav80x.c622 static int adav80x_set_pll(struct snd_soc_component *component, int pll_id, in adav80x_set_pll() argument
657 pll_ctrl2 |= ADAV80X_PLL_CTRL2_DOUB(pll_id); in adav80x_set_pll()
664 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_32(pll_id); in adav80x_set_pll()
667 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_44(pll_id); in adav80x_set_pll()
670 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_48(pll_id); in adav80x_set_pll()
679 ADAV80X_PLL_CTRL2_PLL_MASK(pll_id), pll_ctrl2); in adav80x_set_pll()
683 pll_src = ADAV80X_PLL_CLK_SRC_PLL_MCLKI(pll_id); in adav80x_set_pll()
685 pll_src = ADAV80X_PLL_CLK_SRC_PLL_XIN(pll_id); in adav80x_set_pll()
688 ADAV80X_PLL_CLK_SRC_PLL_MASK(pll_id), pll_src); in adav80x_set_pll()
Dadau1373.c553 unsigned int pll_id = w->name[3] - '1'; in adau1373_pll_event() local
561 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_pll_event()
1252 static int adau1373_set_pll(struct snd_soc_component *component, int pll_id, in adau1373_set_pll() argument
1260 switch (pll_id) { in adau1373_set_pll()
1305 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_set_pll()
1308 regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id), in adau1373_set_pll()
1313 regmap_write(adau1373->regmap, ADAU1373_DPLL_CTRL(pll_id), in adau1373_set_pll()
1315 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL1(pll_id), pll_regs[0]); in adau1373_set_pll()
1316 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL2(pll_id), pll_regs[1]); in adau1373_set_pll()
1317 regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL3(pll_id), pll_regs[2]); in adau1373_set_pll()
[all …]
Dnau8540.c664 static int nau8540_set_pll(struct snd_soc_component *component, int pll_id, int source, in nau8540_set_pll() argument
671 switch (pll_id) { in nau8540_set_pll()
693 dev_err(nau8540->dev, "Invalid clock id (%d)\n", pll_id); in nau8540_set_pll()
697 freq_out, pll_id); in nau8540_set_pll()
Dalc5632.c677 static int alc5632_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in alc5632_set_dai_pll() argument
685 if (pll_id < ALC5632_PLL_FR_MCLK || pll_id > ALC5632_PLL_FR_VBCLK) in alc5632_set_dai_pll()
704 switch (pll_id) { in alc5632_set_dai_pll()
Drt5682s.c2330 int pll_id, int source, unsigned int freq_in, in rt5682s_set_component_pll() argument
2336 if (source == rt5682s->pll_src[pll_id] && freq_in == rt5682s->pll_in[pll_id] && in rt5682s_set_component_pll()
2337 freq_out == rt5682s->pll_out[pll_id]) in rt5682s_set_component_pll()
2342 rt5682s->pll_in[pll_id] = 0; in rt5682s_set_component_pll()
2343 rt5682s->pll_out[pll_id] = 0; in rt5682s_set_component_pll()
2366 if ((pll_id == RT5682S_PLL1 && rt5682s->pll_comb == USE_PLLA) || in rt5682s_set_component_pll()
2367 (pll_id == RT5682S_PLL2 && (rt5682s->pll_comb == USE_PLLB || in rt5682s_set_component_pll()
2371 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll()
2375 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll()
2419 rt5682s->pll_in[pll_id] = freq_in; in rt5682s_set_component_pll()
[all …]
Dalc5623.c520 static int alc5623_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in alc5623_set_dai_pll() argument
528 if (pll_id < ALC5623_PLL_FR_MCLK || pll_id > ALC5623_PLL_FR_BCK) in alc5623_set_dai_pll()
544 switch (pll_id) { in alc5623_set_dai_pll()
Drt5682.c2348 int pll_id, int source, unsigned int freq_in, in rt5682_set_component_pll() argument
2356 if (source == rt5682->pll_src[pll_id] && in rt5682_set_component_pll()
2357 freq_in == rt5682->pll_in[pll_id] && in rt5682_set_component_pll()
2358 freq_out == rt5682->pll_out[pll_id]) in rt5682_set_component_pll()
2364 rt5682->pll_in[pll_id] = 0; in rt5682_set_component_pll()
2365 rt5682->pll_out[pll_id] = 0; in rt5682_set_component_pll()
2371 if (pll_id == RT5682_PLL2) { in rt5682_set_component_pll()
2470 rt5682->pll_in[pll_id] = freq_in; in rt5682_set_component_pll()
2471 rt5682->pll_out[pll_id] = freq_out; in rt5682_set_component_pll()
2472 rt5682->pll_src[pll_id] = source; in rt5682_set_component_pll()
Dwm8753.c738 static int wm8753_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8753_set_dai_pll() argument
745 if (pll_id < WM8753_PLL1 || pll_id > WM8753_PLL2) in wm8753_set_dai_pll()
748 if (pll_id == WM8753_PLL1) { in wm8753_set_dai_pll()
Dwm9713.c815 int pll_id, unsigned int freq_in, unsigned int freq_out) in wm9713_set_pll() argument
875 static int wm9713_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm9713_set_dai_pll() argument
879 return wm9713_set_pll(component, pll_id, freq_in, freq_out); in wm9713_set_dai_pll()
Dwm8580.c460 static int wm8580_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8580_set_dai_pll() argument
477 switch (pll_id) { in wm8580_set_dai_pll()
Dwm8900.c809 static int wm8900_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8900_set_dai_pll() argument
812 return wm8900_set_fll(codec_dai->component, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
Drk817_codec.c55 int pll_id, int source, unsigned int freq_in, in rk817_set_component_pll() argument
Dda7213.c1407 int pll_id, int source, in _da7213_set_component_pll() argument
1518 int pll_id, int source, in da7213_set_component_pll() argument
1524 return _da7213_set_component_pll(component, pll_id, source, fref, fout); in da7213_set_component_pll()
Drt1019.c325 static int rt1019_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source, in rt1019_set_dai_pll() argument
Dwm8510.c313 static int wm8510_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8510_set_dai_pll() argument
/sound/soc/qcom/
Dsc7180.c132 int pll_id, pll_source, pll_in, pll_out, clk_id, ret; in sc7180_snd_startup() local
136 pll_id = 0; in sc7180_snd_startup()
142 pll_id = RT5682S_PLL2; in sc7180_snd_startup()
163 ret = snd_soc_dai_set_pll(codec_dai, pll_id, pll_source, in sc7180_snd_startup()
/sound/soc/fsl/
Dfsl-asoc-card.c52 u32 pll_id; member
199 if (codec_priv->pll_id && codec_priv->fll_id) { in fsl_asoc_card_hw_params()
206 codec_priv->pll_id, in fsl_asoc_card_hw_params()
241 if (!priv->streams && codec_priv->pll_id && codec_priv->fll_id) { in fsl_asoc_card_hw_free()
253 codec_priv->pll_id, 0, 0, 0); in fsl_asoc_card_hw_free()
643 priv->codec_priv.pll_id = WM8962_FLL; in fsl_asoc_card_probe()
648 priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
682 priv->codec_priv.pll_id = WM8994_FLL1; in fsl_asoc_card_probe()
/sound/soc/intel/boards/
Dglk_rt5682_max98357a.c158 int pll_id, pll_source, clk_id, ret; in geminilake_rt5682_codec_init() local
161 pll_id = RT5682S_PLL2; in geminilake_rt5682_codec_init()
165 pll_id = RT5682_PLL1; in geminilake_rt5682_codec_init()
170 ret = snd_soc_dai_set_pll(codec_dai, pll_id, pll_source, in geminilake_rt5682_codec_init()
Dsof_rt5682.c359 int pll_id, pll_source, pll_in, pll_out, clk_id, ret; in sof_rt5682_hw_params() local
400 pll_id = RT5682S_PLL2; in sof_rt5682_hw_params()
403 pll_id = RT5682_PLL1; in sof_rt5682_hw_params()
414 ret = snd_soc_dai_set_pll(codec_dai, pll_id, pll_source, pll_in, in sof_rt5682_hw_params()
/sound/soc/
Dsoc-dai.c101 int snd_soc_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source, in snd_soc_dai_set_pll() argument
108 ret = dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll()
111 ret = snd_soc_component_set_pll(dai->component, pll_id, source, in snd_soc_dai_set_pll()
/sound/soc/pxa/
Dmmp-sspa.c133 static int mmp_sspa_set_dai_pll(struct snd_soc_dai *cpu_dai, int pll_id, in mmp_sspa_set_dai_pll() argument
144 switch (pll_id) { in mmp_sspa_set_dai_pll()
/sound/soc/generic/
Dtest-component.c49 static int test_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source, in test_dai_set_pll() argument
302 static int test_component_set_pll(struct snd_soc_component *component, int pll_id, in test_component_set_pll() argument

123