/sound/soc/omap/ |
D | omap-dmic.c | 290 static int omap_dmic_select_fclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_fclk() argument 309 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk() 320 switch (clk_id) { in omap_dmic_select_fclk() 331 dev_err(dmic->dev, "fclk clk_id (%d) not supported\n", clk_id); in omap_dmic_select_fclk() 357 dmic->sysclk = clk_id; in omap_dmic_select_fclk() 366 static int omap_dmic_select_outclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_outclk() argument 371 if (clk_id != OMAP_DMIC_ABE_DMIC_CLK) { in omap_dmic_select_outclk() 373 clk_id); in omap_dmic_select_outclk() 393 static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in omap_dmic_set_dai_sysclk() argument 399 return omap_dmic_select_fclk(dmic, clk_id, freq); in omap_dmic_set_dai_sysclk() [all …]
|
D | omap-abe-twl6040.c | 52 int clk_id, freq; in omap_abe_hw_params() local 55 clk_id = twl6040_get_clk_id(rtd->codec); 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()
|
/sound/soc/codecs/ |
D | adav80x.c | 538 int clk_id, int source, in adav80x_set_sysclk() argument 545 switch (clk_id) { in adav80x_set_sysclk() 558 if (adav80x->clk_src != clk_id) { in adav80x_set_sysclk() 561 adav80x->clk_src = clk_id; in adav80x_set_sysclk() 562 if (clk_id == ADAV80X_CLK_XTAL) in adav80x_set_sysclk() 563 clk_id = ADAV80X_CLK_XIN; in adav80x_set_sysclk() 565 iclk_ctrl1 = ADAV80X_ICLK_CTRL1_DAC_SRC(clk_id) | in adav80x_set_sysclk() 566 ADAV80X_ICLK_CTRL1_ADC_SRC(clk_id) | in adav80x_set_sysclk() 567 ADAV80X_ICLK_CTRL1_ICLK2_SRC(clk_id); in adav80x_set_sysclk() 568 iclk_ctrl2 = ADAV80X_ICLK_CTRL2_ICLK1_SRC(clk_id); in adav80x_set_sysclk() [all …]
|
D | mc13783.c | 255 int clk_id, unsigned int freq, int dir, in mc13783_set_sysclk() argument 273 if (clk_id == MC13783_CLK_CLIB) in mc13783_set_sysclk() 284 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_dac() argument 286 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_dac() 290 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_codec() argument 292 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_codec() 296 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_sync() argument 300 ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_sync() 304 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_sync()
|
D | tas2552.c | 398 static int tas2552_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in tas2552_set_dai_sysclk() argument 405 switch (clk_id) { in tas2552_set_dai_sysclk() 412 clk_id = TAS2552_PLL_CLKIN_BCLK; in tas2552_set_dai_sysclk() 419 val = (clk_id << 3) & mask; /* bit 4:5 in the register */ in tas2552_set_dai_sysclk() 421 tas2552->pll_clk_id = clk_id; in tas2552_set_dai_sysclk() 429 val = (clk_id >> 1) & mask; /* bit 0:1 in the register */ in tas2552_set_dai_sysclk() 431 tas2552->pdm_clk_id = clk_id; in tas2552_set_dai_sysclk() 435 dev_err(codec->dev, "Invalid clk id: %d\n", clk_id); in tas2552_set_dai_sysclk()
|
D | wm8960.c | 135 int clk_id; member 609 if (wm8960->clk_id != WM8960_SYSCLK_MCLK && !wm8960->freq_in) { in wm8960_configure_clocking() 623 if (wm8960->clk_id == WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking() 634 if (wm8960->clk_id != WM8960_SYSCLK_PLL) { in wm8960_configure_clocking() 655 } else if (wm8960->clk_id != WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking() 824 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_out3() 945 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_capless() 1177 static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in wm8960_set_dai_sysclk() argument 1183 switch (clk_id) { in wm8960_set_dai_sysclk() 1199 wm8960->clk_id = clk_id; in wm8960_set_dai_sysclk()
|
D | rt286.c | 49 int clk_id; member 341 if (rt286->clk_id == RT286_SCLK_S_MCLK) in is_mclk_mode() 822 int clk_id, unsigned int freq, int dir) in rt286_set_dai_sysclk() argument 829 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk() 845 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk() 853 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk() 880 rt286->clk_id = clk_id; in rt286_set_dai_sysclk()
|
D | rt298.c | 47 int clk_id; member 338 if (rt298->clk_id == RT298_SCLK_S_MCLK) in is_mclk_mode() 842 int clk_id, unsigned int freq, int dir) in rt298_set_dai_sysclk() argument 849 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk() 865 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk() 873 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk() 900 rt298->clk_id = clk_id; in rt298_set_dai_sysclk()
|
D | arizona.c | 1089 int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id, in arizona_set_sysclk() argument 1100 switch (clk_id) { in arizona_set_sysclk() 1114 return arizona_set_opclk(codec, clk_id, freq); in arizona_set_sysclk() 1644 static const char *arizona_dai_clk_str(int clk_id) in arizona_dai_clk_str() argument 1646 switch (clk_id) { in arizona_dai_clk_str() 1657 int clk_id, unsigned int freq, int dir) in arizona_dai_set_sysclk() argument 1665 switch (clk_id) { in arizona_dai_set_sysclk() 1673 if (clk_id == dai_priv->clk) in arizona_dai_set_sysclk() 1683 arizona_dai_clk_str(clk_id)); in arizona_dai_set_sysclk() 1693 routes[0].source = arizona_dai_clk_str(clk_id); in arizona_dai_set_sysclk() [all …]
|
D | adau17x1.c | 468 int clk_id, unsigned int freq, int dir) in adau17x1_set_dai_sysclk() argument 473 switch (clk_id) { in adau17x1_set_dai_sysclk() 483 if (adau->clk_src != clk_id) { in adau17x1_set_dai_sysclk() 484 if (clk_id == ADAU17X1_CLK_SRC_PLL) { in adau17x1_set_dai_sysclk() 493 adau->clk_src = clk_id; in adau17x1_set_dai_sysclk()
|
D | ssm2602.c | 345 int clk_id, unsigned int freq, int dir) in ssm2602_set_dai_sysclk() argument 351 if (clk_id != SSM2602_SYSCLK) in ssm2602_set_dai_sysclk() 373 switch (clk_id) { in ssm2602_set_dai_sysclk()
|
D | cs4265.c | 322 static int cs4265_set_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cs4265_set_sysclk() argument 329 if (clk_id != 0) { in cs4265_set_sysclk() 330 dev_err(codec->dev, "Invalid clk_id %d\n", clk_id); in cs4265_set_sysclk()
|
D | nau8825.c | 974 static int nau8825_configure_sysclk(struct nau8825 *nau8825, int clk_id, in nau8825_configure_sysclk() argument 980 switch (clk_id) { in nau8825_configure_sysclk() 1023 dev_err(nau8825->dev, "Invalid clock id (%d)\n", clk_id); in nau8825_configure_sysclk() 1028 clk_id); in nau8825_configure_sysclk() 1032 static int nau8825_set_sysclk(struct snd_soc_codec *codec, int clk_id, in nau8825_set_sysclk() argument 1037 return nau8825_configure_sysclk(nau8825, clk_id, freq); in nau8825_set_sysclk()
|
D | wm8978.c | 610 static int wm8978_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in wm8978_set_dai_sysclk() argument 617 dev_dbg(codec->dev, "%s: ID %d, freq %u\n", __func__, clk_id, freq); in wm8978_set_dai_sysclk() 629 wm8978->sysclk = clk_id; in wm8978_set_dai_sysclk() 632 if (wm8978->sysclk == WM8978_PLL && (!freq || clk_id == WM8978_MCLK)) { in wm8978_set_dai_sysclk()
|
D | wm8804.c | 452 int clk_id, unsigned int freq, int dir) in wm8804_set_sysclk() argument 458 switch (clk_id) { in wm8804_set_sysclk() 479 dev_err(dai->dev, "Unknown clock source: %d\n", clk_id); in wm8804_set_sysclk()
|
D | tlv320aic26.c | 155 int clk_id, unsigned int freq, int dir) in aic26_set_sysclk() argument 162 codec_dai, clk_id, freq, dir); in aic26_set_sysclk()
|
D | cq93vc.c | 63 int clk_id, unsigned int freq, int dir) in cq93vc_set_dai_sysclk() argument
|
D | rt5651.c | 1473 int clk_id, unsigned int freq, int dir) in rt5651_set_dai_sysclk() argument 1479 if (freq == rt5651->sysclk && clk_id == rt5651->sysclk_src) in rt5651_set_dai_sysclk() 1482 switch (clk_id) { in rt5651_set_dai_sysclk() 1493 dev_err(codec->dev, "Invalid clock id (%d)\n", clk_id); in rt5651_set_dai_sysclk() 1499 rt5651->sysclk_src = clk_id; in rt5651_set_dai_sysclk() 1501 dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id); in rt5651_set_dai_sysclk()
|
D | twl6040.c | 933 int clk_id, unsigned int freq, int dir) in twl6040_set_dai_sysclk() argument 938 switch (clk_id) { in twl6040_set_dai_sysclk() 941 priv->pll = clk_id; in twl6040_set_dai_sysclk() 945 dev_err(codec->dev, "unknown clk_id %d\n", clk_id); in twl6040_set_dai_sysclk()
|
/sound/soc/samsung/ |
D | i2s.c | 475 int clk_id, unsigned int rfs, int dir) in i2s_set_sysclk() argument 489 switch (clk_id) { in i2s_set_sysclk() 522 || (clk_id == SAMSUNG_I2S_RCLKSRC_0)) in i2s_set_sysclk() 523 clk_id = 0; in i2s_set_sysclk() 525 clk_id = 1; in i2s_set_sysclk() 529 if ((clk_id && !(mod & rsrc_mask)) || in i2s_set_sysclk() 530 (!clk_id && (mod & rsrc_mask))) { in i2s_set_sysclk() 540 if (clk_id) in i2s_set_sysclk() 558 } else if ((!clk_id && (mod & rsrc_mask)) in i2s_set_sysclk() 559 || (clk_id && !(mod & rsrc_mask))) { in i2s_set_sysclk() [all …]
|
/sound/soc/fsl/ |
D | fsl_sai.c | 130 int clk_id, unsigned int freq, int fsl_dir) in fsl_sai_set_dai_sysclk_tr() argument 136 switch (clk_id) { in fsl_sai_set_dai_sysclk_tr() 160 int clk_id, unsigned int freq, int dir) in fsl_sai_set_dai_sysclk() argument 167 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq, in fsl_sai_set_dai_sysclk() 174 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq, in fsl_sai_set_dai_sysclk()
|
/sound/soc/pxa/ |
D | pxa2xx-i2s.c | 154 int clk_id, unsigned int freq, int dir) in pxa2xx_i2s_set_dai_sysclk() argument 156 if (clk_id != PXA2XX_I2S_SYSCLK) in pxa2xx_i2s_set_dai_sysclk()
|
/sound/soc/ux500/ |
D | ux500_msp_dai.c | 623 int clk_id, unsigned int freq, int dir) in ux500_msp_dai_set_dai_sysclk() argument 628 __func__, dai->id, clk_id, freq); in ux500_msp_dai_set_dai_sysclk() 630 switch (clk_id) { in ux500_msp_dai_set_dai_sysclk() 637 __func__, dai->id, clk_id); in ux500_msp_dai_set_dai_sysclk()
|
/sound/soc/dwc/ |
D | designware_i2s.c | 584 const char *clk_id; in dw_i2s_probe() local 609 clk_id = NULL; in dw_i2s_probe() 612 clk_id = "i2sclk"; in dw_i2s_probe() 626 dev->clk = devm_clk_get(&pdev->dev, clk_id); in dw_i2s_probe()
|
/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 307 static int ep93xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai, int clk_id, in ep93xx_i2s_set_sysclk() argument 312 if (dir == SND_SOC_CLOCK_IN || clk_id != 0) in ep93xx_i2s_set_sysclk()
|