Home
last modified time | relevance | path

Searched refs:pll_id (Results 1 – 25 of 57) 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.h324 int aio_chip_set_pll(struct uniphier_aio_chip *chip, int pll_id,
/sound/soc/codecs/
Dadav80x.c621 static int adav80x_set_pll(struct snd_soc_component *component, int pll_id, in adav80x_set_pll() argument
656 pll_ctrl2 |= ADAV80X_PLL_CTRL2_DOUB(pll_id); in adav80x_set_pll()
663 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_32(pll_id); in adav80x_set_pll()
666 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_44(pll_id); in adav80x_set_pll()
669 pll_ctrl2 |= ADAV80X_PLL_CTRL2_FS_48(pll_id); in adav80x_set_pll()
678 ADAV80X_PLL_CTRL2_PLL_MASK(pll_id), pll_ctrl2); in adav80x_set_pll()
682 pll_src = ADAV80X_PLL_CLK_SRC_PLL_MCLKI(pll_id); in adav80x_set_pll()
684 pll_src = ADAV80X_PLL_CLK_SRC_PLL_XIN(pll_id); in adav80x_set_pll()
687 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.c646 static int nau8540_set_pll(struct snd_soc_component *component, int pll_id, int source, in nau8540_set_pll() argument
653 switch (pll_id) { in nau8540_set_pll()
675 dev_err(nau8540->dev, "Invalid clock id (%d)\n", pll_id); in nau8540_set_pll()
679 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()
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()
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.c815 static int wm8900_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8900_set_dai_pll() argument
818 return wm8900_set_fll(codec_dai->component, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
Dwm8960.c1227 static int wm8960_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8960_set_dai_pll() argument
1235 if (pll_id == WM8960_SYSCLK_AUTO) in wm8960_set_dai_pll()
Dwm8510.c313 static int wm8510_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8510_set_dai_pll() argument
Dwm8804.c401 static int wm8804_set_pll(struct snd_soc_dai *dai, int pll_id, in wm8804_set_pll() argument
Dwm8940.c573 static int wm8940_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8940_set_dai_pll() argument
Dwm8974.c320 static int wm8974_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8974_set_dai_pll() argument
Drt1308.c618 int pll_id, int source, unsigned int freq_in, in rt1308_set_component_pll() argument
Dnau8810.c533 static int nau8810_set_pll(struct snd_soc_dai *codec_dai, int pll_id, in nau8810_set_pll() argument
Dwm8990.c930 static int wm8990_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in wm8990_set_dai_pll() argument
Dda7210.c983 static int da7210_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, in da7210_set_dai_pll() argument
/sound/soc/
Dsoc-dai.c62 int snd_soc_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source, in snd_soc_dai_set_pll() argument
66 return dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll()
69 return snd_soc_component_set_pll(dai->component, pll_id, source, in snd_soc_dai_set_pll()
Dsoc-component.c43 int snd_soc_component_set_pll(struct snd_soc_component *component, int pll_id, in snd_soc_component_set_pll() argument
48 return component->driver->set_pll(component, pll_id, source, in snd_soc_component_set_pll()
/sound/soc/fsl/
Dfsl-asoc-card.c47 u32 pll_id; member
274 ret = snd_soc_dai_set_pll(codec_dai, codec_priv->pll_id, in fsl_asoc_card_set_bias_level()
302 ret = snd_soc_dai_set_pll(codec_dai, codec_priv->pll_id, 0, 0, 0); in fsl_asoc_card_set_bias_level()
564 priv->codec_priv.pll_id = WM8962_FLL; in fsl_asoc_card_probe()
570 priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
/sound/soc/pxa/
Dmmp-sspa.c136 static int mmp_sspa_set_dai_pll(struct snd_soc_dai *cpu_dai, int pll_id, in mmp_sspa_set_dai_pll() argument
143 switch (pll_id) { in mmp_sspa_set_dai_pll()

123