Searched refs:clk_div (Results 1 – 12 of 12) sorted by relevance
/sound/soc/ti/ |
D | davinci-i2s.c | 161 int clk_div; member 372 dev->clk_div = div; in davinci_i2s_dai_set_clkdiv() 383 unsigned int rcr, xcr, srgr, clk_div, freq, framesize; in davinci_i2s_hw_params() local 410 clk_div = 256; in davinci_i2s_hw_params() 412 framesize = (freq / (--clk_div)) / in davinci_i2s_hw_params() 416 (clk_div)); in davinci_i2s_hw_params() 417 clk_div--; in davinci_i2s_hw_params() 421 clk_div = freq / (mcbsp_word_length * 16) / in davinci_i2s_hw_params() 426 clk_div &= 0xFF; in davinci_i2s_hw_params() 427 srgr |= clk_div; in davinci_i2s_hw_params() [all …]
|
D | omap-dmic.c | 41 int clk_div; member 194 dmic->clk_div = omap_dmic_select_divider(dmic, params_rate(params)); in omap_dmic_dai_hw_params() 195 if (dmic->clk_div < 0) { in omap_dmic_dai_hw_params() 249 ctrl |= OMAP_DMIC_CLK_DIV(dmic->clk_div); in omap_dmic_dai_prepare()
|
D | omap-mcbsp-priv.h | 276 int clk_div; member
|
D | omap-mcbsp.c | 1044 div = mcbsp->clk_div ? mcbsp->clk_div : 1; in omap_mcbsp_dai_hw_params() 1200 mcbsp->clk_div = div; in omap_mcbsp_dai_set_clkdiv()
|
/sound/soc/sti/ |
D | uniperif_player.c | 316 int clk_div; in uni_player_prepare_iec958() local 318 clk_div = player->mclk / runtime->rate; in uni_player_prepare_iec958() 321 if ((clk_div % 128) || (clk_div <= 0)) { in uni_player_prepare_iec958() 323 __func__, clk_div); in uni_player_prepare_iec958() 398 SET_UNIPERIF_CTRL_DIVIDER(player, clk_div / 128); in uni_player_prepare_iec958() 419 int output_frame_size, slot_width, clk_div; in uni_player_prepare_pcm() local 430 clk_div = player->mclk / runtime->rate; in uni_player_prepare_pcm() 435 if ((slot_width == 32) && (clk_div % 128)) { in uni_player_prepare_pcm() 440 if ((slot_width == 16) && (clk_div % 64)) { in uni_player_prepare_pcm() 487 SET_UNIPERIF_CTRL_DIVIDER(player, clk_div / (2 * output_frame_size)); in uni_player_prepare_pcm()
|
/sound/soc/fsl/ |
D | fsl_micfil.c | 154 int clk_div; in get_clk_div() local 160 clk_div = mclk_rate / (get_pdm_clk(micfil, rate) * 2); in get_clk_div() 162 return clk_div; in get_clk_div() 316 int clk_div; in fsl_set_clock_params() local 333 clk_div = get_clk_div(micfil, rate); in fsl_set_clock_params() 334 if (clk_div < 0) in fsl_set_clock_params() 338 MICFIL_CTRL2_CLKDIV_MASK, clk_div); in fsl_set_clock_params()
|
/sound/soc/xilinx/ |
D | xlnx_spdif.c | 109 u32 val, clk_div, clk_cfg; in xlnx_spdif_hw_params() local 112 clk_div = DIV_ROUND_CLOSEST(ctx->aclk, MAX_CHANNELS * AES_SAMPLE_WIDTH * in xlnx_spdif_hw_params() 115 switch (clk_div) { in xlnx_spdif_hw_params()
|
/sound/soc/codecs/ |
D | lm49453.c | 1111 u16 clk_div = 0; in lm49453_hw_params() local 1120 clk_div = 256; in lm49453_hw_params() 1125 clk_div = 216; in lm49453_hw_params() 1128 clk_div = 127; in lm49453_hw_params() 1134 snd_soc_component_write(component, LM49453_P0_ADC_CLK_DIV_REG, clk_div); in lm49453_hw_params() 1135 snd_soc_component_write(component, LM49453_P0_DAC_HP_CLK_DIV_REG, clk_div); in lm49453_hw_params()
|
/sound/soc/rockchip/ |
D | rockchip_pdm.c | 151 unsigned int clk_rate, clk_div, samplerate; in rockchip_pdm_hw_params() local 186 clk_div = n / m; in rockchip_pdm_hw_params() 187 if (clk_div >= 40) in rockchip_pdm_hw_params() 189 else if (clk_div <= 35) in rockchip_pdm_hw_params()
|
/sound/soc/samsung/ |
D | s3c-i2s-v2.h | 71 unsigned int clk_div; /* for prescaler */ member
|
D | jive_wm8750.c | 70 div.clk_div - 1); in jive_hw_params()
|
D | s3c-i2s-v2.c | 612 info->clk_div = best_div; in s3c_i2sv2_iis_calc_rate()
|