Home
last modified time | relevance | path

Searched refs:clk_id (Results 1 – 25 of 202) sorted by relevance

123456789

/sound/soc/ti/
Domap-dmic.c279 static int omap_dmic_select_fclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_fclk() argument
298 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk()
309 switch (clk_id) { in omap_dmic_select_fclk()
320 dev_err(dmic->dev, "fclk clk_id (%d) not supported\n", clk_id); in omap_dmic_select_fclk()
353 dmic->sysclk = clk_id; in omap_dmic_select_fclk()
363 static int omap_dmic_select_outclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_outclk() argument
368 if (clk_id != OMAP_DMIC_ABE_DMIC_CLK) { in omap_dmic_select_outclk()
370 clk_id); in omap_dmic_select_outclk()
390 static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in omap_dmic_set_dai_sysclk() argument
396 return omap_dmic_select_fclk(dmic, clk_id, freq); in omap_dmic_set_dai_sysclk()
[all …]
Domap-abe-twl6040.c52 int clk_id, freq; in omap_abe_hw_params() local
55 clk_id = twl6040_get_clk_id(codec_dai->component); in omap_abe_hw_params()
56 if (clk_id == TWL6040_SYSCLK_SEL_HPPLL) in omap_abe_hw_params()
58 else if (clk_id == TWL6040_SYSCLK_SEL_LPPLL) in omap_abe_hw_params()
64 ret = snd_soc_dai_set_sysclk(codec_dai, clk_id, freq, in omap_abe_hw_params()
Dj721e-evm.c176 int i, clk_id; in j721e_configure_refclk() local
179 clk_id = J721E_CLK_PARENT_48000; in j721e_configure_refclk()
181 clk_id = J721E_CLK_PARENT_44100; in j721e_configure_refclk()
188 if (priv->pll_rates[clk_id] / scki <= J721E_MAX_CLK_HSDIV) { in j721e_configure_refclk()
205 clk_id == J721E_CLK_PARENT_48000 ? "PLL4" : "PLL15", in j721e_configure_refclk()
208 if (domain->parent_clk_id != clk_id) { in j721e_configure_refclk()
210 domain->codec.parent[clk_id]); in j721e_configure_refclk()
215 domain->mcasp.parent[clk_id]); in j721e_configure_refclk()
219 domain->parent_clk_id = clk_id; in j721e_configure_refclk()
/sound/soc/codecs/
Dadav80x.c537 int clk_id, int source, in adav80x_set_sysclk() argument
544 switch (clk_id) { in adav80x_set_sysclk()
557 if (adav80x->clk_src != clk_id) { in adav80x_set_sysclk()
560 adav80x->clk_src = clk_id; in adav80x_set_sysclk()
561 if (clk_id == ADAV80X_CLK_XTAL) in adav80x_set_sysclk()
562 clk_id = ADAV80X_CLK_XIN; in adav80x_set_sysclk()
564 iclk_ctrl1 = ADAV80X_ICLK_CTRL1_DAC_SRC(clk_id) | in adav80x_set_sysclk()
565 ADAV80X_ICLK_CTRL1_ADC_SRC(clk_id) | in adav80x_set_sysclk()
566 ADAV80X_ICLK_CTRL1_ICLK2_SRC(clk_id); in adav80x_set_sysclk()
567 iclk_ctrl2 = ADAV80X_ICLK_CTRL2_ICLK1_SRC(clk_id); in adav80x_set_sysclk()
[all …]
Dmc13783.c242 int clk_id, unsigned int freq, int dir, in mc13783_set_sysclk() argument
260 if (clk_id == MC13783_CLK_CLIB) in mc13783_set_sysclk()
271 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_dac() argument
273 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_dac()
277 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_codec() argument
279 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_codec()
283 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_sync() argument
287 ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_sync()
291 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_sync()
Dtas2552.c393 static int tas2552_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in tas2552_set_dai_sysclk() argument
400 switch (clk_id) { in tas2552_set_dai_sysclk()
407 clk_id = TAS2552_PLL_CLKIN_BCLK; in tas2552_set_dai_sysclk()
414 val = (clk_id << 3) & mask; /* bit 4:5 in the register */ in tas2552_set_dai_sysclk()
416 tas2552->pll_clk_id = clk_id; in tas2552_set_dai_sysclk()
424 val = (clk_id >> 1) & mask; /* bit 0:1 in the register */ in tas2552_set_dai_sysclk()
426 tas2552->pdm_clk_id = clk_id; in tas2552_set_dai_sysclk()
430 dev_err(component->dev, "Invalid clk id: %d\n", clk_id); in tas2552_set_dai_sysclk()
Drt1016.c420 int clk_id, int source, unsigned int freq, int dir) in rt1016_set_component_sysclk() argument
425 if (freq == rt1016->sysclk && clk_id == rt1016->sysclk_src) in rt1016_set_component_sysclk()
428 switch (clk_id) { in rt1016_set_component_sysclk()
438 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1016_set_component_sysclk()
443 rt1016->sysclk_src = clk_id; in rt1016_set_component_sysclk()
446 freq, clk_id); in rt1016_set_component_sysclk()
Dwm8960.c132 int clk_id; member
758 if (wm8960->clk_id != WM8960_SYSCLK_MCLK && !wm8960->freq_in) { in wm8960_configure_clocking()
770 if (wm8960->clk_id == WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking()
781 if (wm8960->clk_id != WM8960_SYSCLK_PLL) { in wm8960_configure_clocking()
785 } else if (wm8960->clk_id != WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking()
932 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_out3()
1053 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_capless()
1285 static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in wm8960_set_dai_sysclk() argument
1291 switch (clk_id) { in wm8960_set_dai_sysclk()
1307 wm8960->clk_id = clk_id; in wm8960_set_dai_sysclk()
Dcpcap.c950 int clk_id, int freq) in cpcap_set_sysclk() argument
977 if (clk_id < 0 || clk_id > 1) { in cpcap_set_sysclk()
978 dev_err(cpcap->component->dev, "invalid clk id %d", clk_id); in cpcap_set_sysclk()
982 clk_id ? BIT(clkidshift) : 0); in cpcap_set_sysclk()
1028 cpcap->codec_clk_id = clk_id; in cpcap_set_sysclk()
1126 static int cpcap_hifi_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cpcap_hifi_set_dai_sysclk() argument
1133 dev_dbg(dev, "HiFi setup sysclk: clk_id=%u, freq=%u", clk_id, freq); in cpcap_hifi_set_dai_sysclk()
1134 return cpcap_set_sysclk(cpcap, CPCAP_DAI_HIFI, clk_id, freq); in cpcap_hifi_set_dai_sysclk()
1284 static int cpcap_voice_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cpcap_voice_set_dai_sysclk() argument
1291 clk_id, freq); in cpcap_voice_set_dai_sysclk()
[all …]
Drt1308.c578 int clk_id, int source, unsigned int freq, int dir) in rt1308_set_component_sysclk() argument
583 if (freq == rt1308->sysclk && clk_id == rt1308->sysclk_src) in rt1308_set_component_sysclk()
586 switch (clk_id) { in rt1308_set_component_sysclk()
603 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1308_set_component_sysclk()
609 rt1308->sysclk_src = clk_id; in rt1308_set_component_sysclk()
612 freq, clk_id); in rt1308_set_component_sysclk()
Drt298.c45 int clk_id; member
364 if (rt298->clk_id == RT298_SCLK_S_MCLK) in is_mclk_mode()
870 int clk_id, unsigned int freq, int dir) in rt298_set_dai_sysclk() argument
877 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
891 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
899 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
926 rt298->clk_id = clk_id; in rt298_set_dai_sysclk()
Drt286.c46 int clk_id; member
341 if (rt286->clk_id == RT286_SCLK_S_MCLK) in is_mclk_mode()
804 int clk_id, unsigned int freq, int dir) in rt286_set_dai_sysclk() argument
811 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
827 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
835 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
862 rt286->clk_id = clk_id; in rt286_set_dai_sysclk()
Dpcm3060.c16 static int pcm3060_set_sysclk(struct snd_soc_dai *dai, int clk_id, in pcm3060_set_sysclk() argument
29 switch (clk_id) { in pcm3060_set_sysclk()
43 dev_err(comp->dev, "unsupported sysclock id: %d\n", clk_id); in pcm3060_set_sysclk()
Drt274.c43 int clk_id; member
804 int clk_id, unsigned int freq, int dir) in rt274_set_dai_sysclk() argument
812 switch (clk_id) { in rt274_set_dai_sysclk()
838 if (clk_id == RT274_SCLK_S_MCLK) { in rt274_set_dai_sysclk()
846 if (clk_id == RT274_SCLK_S_MCLK) { in rt274_set_dai_sysclk()
869 rt274->clk_id = clk_id; in rt274_set_dai_sysclk()
Drt1015.c835 int clk_id, int source, unsigned int freq, int dir) in rt1015_set_component_sysclk() argument
840 if (freq == rt1015->sysclk && clk_id == rt1015->sysclk_src) in rt1015_set_component_sysclk()
843 switch (clk_id) { in rt1015_set_component_sysclk()
853 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1015_set_component_sysclk()
858 rt1015->sysclk_src = clk_id; in rt1015_set_component_sysclk()
861 freq, clk_id); in rt1015_set_component_sysclk()
Drt1305.c756 int clk_id, int source, unsigned int freq, int dir) in rt1305_set_component_sysclk() argument
761 if (freq == rt1305->sysclk && clk_id == rt1305->sysclk_src) in rt1305_set_component_sysclk()
764 switch (clk_id) { in rt1305_set_component_sysclk()
778 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1305_set_component_sysclk()
784 rt1305->sysclk_src = clk_id; in rt1305_set_component_sysclk()
787 freq, clk_id); in rt1305_set_component_sysclk()
Drt5660.c971 int clk_id, unsigned int freq, int dir) in rt5660_set_dai_sysclk() argument
977 if (freq == rt5660->sysclk && clk_id == rt5660->sysclk_src) in rt5660_set_dai_sysclk()
980 switch (clk_id) { in rt5660_set_dai_sysclk()
994 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt5660_set_dai_sysclk()
1002 rt5660->sysclk_src = clk_id; in rt5660_set_dai_sysclk()
1004 dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id); in rt5660_set_dai_sysclk()
Dnau8810.c513 int clk_id, unsigned int freq, int dir) in nau8810_set_sysclk() argument
518 nau8810->clk_id = clk_id; in nau8810_set_sysclk()
521 freq, clk_id == NAU8810_SCLK_PLL ? "PLL" : "MCLK"); in nau8810_set_sysclk()
763 if (nau8810->clk_id == NAU8810_SCLK_MCLK) { in nau8810_pcm_hw_params()
Des7134.c78 static int es7134_set_sysclk(struct snd_soc_dai *dai, int clk_id, in es7134_set_sysclk() argument
83 if (dir == SND_SOC_CLOCK_IN && clk_id == 0) { in es7134_set_sysclk()
Dcs4265.c318 static int cs4265_set_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cs4265_set_sysclk() argument
325 if (clk_id != 0) { in cs4265_set_sysclk()
326 dev_err(component->dev, "Invalid clk_id %d\n", clk_id); in cs4265_set_sysclk()
/sound/soc/intel/boards/
Dsof_sdw_rt1308.c99 int clk_id, clk_freq, pll_out; in rt1308_i2s_hw_params() local
102 clk_id = RT1308_PLL_S_MCLK; in rt1308_i2s_hw_params()
108 err = snd_soc_dai_set_pll(codec_dai, 0, clk_id, clk_freq, pll_out); in rt1308_i2s_hw_params()
/sound/soc/qcom/qdsp6/
Dq6afe.h233 int q6afe_port_set_sysclk(struct q6afe_port *port, int clk_id,
236 int q6afe_set_lpass_clock(struct device *dev, int clk_id, int clk_src,
Dq6afe-clocks.c15 .clk_id = id, \
27 .clk_id = id, \
38 int clk_id; member
/sound/soc/samsung/
Di2s.c497 static int i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int rfs, in i2s_set_sysclk() argument
516 switch (clk_id) { in i2s_set_sysclk()
550 || (clk_id == SAMSUNG_I2S_RCLKSRC_0)) in i2s_set_sysclk()
551 clk_id = 0; in i2s_set_sysclk()
553 clk_id = 1; in i2s_set_sysclk()
557 if ((clk_id && !(mod & rsrc_mask)) || in i2s_set_sysclk()
558 (!clk_id && (mod & rsrc_mask))) { in i2s_set_sysclk()
568 if (clk_id) in i2s_set_sysclk()
589 } else if ((!clk_id && (mod & rsrc_mask)) in i2s_set_sysclk()
590 || (clk_id && !(mod & rsrc_mask))) { in i2s_set_sysclk()
[all …]
/sound/soc/intel/skylake/
Dskl.c600 { .clk_id = SKL_XTAL, .name = "xtal" },
601 { .clk_id = SKL_CARDINAL, .name = "cardinal", .rate = 24576000 },
602 { .clk_id = SKL_PLL, .name = "pll", .rate = 96000000 },
605 struct skl_clk_parent_src *skl_get_parent_clk(u8 clk_id) in skl_get_parent_clk() argument
610 if (skl_clk_src[i].clk_id == clk_id) in skl_get_parent_clk()

123456789