/linux/include/sound/sof/ |
H A D | dai-imx.h | 24 uint32_t bclk_rate; /* BCLK frequency in Hz */ member 45 uint32_t bclk_rate; /* BCLK frequency in Hz */ member
|
H A D | dai-intel.h | 69 uint32_t bclk_rate; /* bclk frequency in Hz */ member
|
/linux/sound/soc/adi/ |
H A D | axi-i2s.c | 93 unsigned int bclk_rate; in axi_i2s_hw_params() local 95 bclk_rate = params_rate(params) * AXI_I2S_BITS_PER_FRAME; in axi_i2s_hw_params() 98 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params()
|
/linux/sound/soc/codecs/ |
H A D | wm8996.c | 78 int bclk_rate[WM8996_AIFS]; member 1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local 1552 bclk_rate = wm8996->bclk_rate[aif]; in wm8996_update_bclk() 1557 cur_val = (wm8996->sysclk / bclk_divs[i]) - bclk_rate; in wm8996_update_bclk() 1562 bclk_rate = wm8996->sysclk / bclk_divs[best]; in wm8996_update_bclk() 1564 bclk_divs[best], bclk_rate); in wm8996_update_bclk() 1735 int bits, i, bclk_rate, best; in wm8996_hw_params() local 1769 bclk_rate = snd_soc_params_to_bclk(params); in wm8996_hw_params() 1770 if (bclk_rate < 0) { in wm8996_hw_params() 1771 dev_err(component->dev, "Unsupported BCLK rate: %d\n", bclk_rate); in wm8996_hw_params() [all …]
|
H A D | wm8995.c | 1553 int bclk_rate; in wm8995_hw_params() local 1590 bclk_rate = snd_soc_params_to_bclk(params); in wm8995_hw_params() 1591 if (bclk_rate < 0) in wm8995_hw_params() 1592 return bclk_rate; in wm8995_hw_params() 1626 dai->id + 1, wm8995->aifclk[dai->id], bclk_rate); in wm8995_hw_params() 1654 cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; in wm8995_hw_params() 1661 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params() 1663 bclk_divs[best], bclk_rate); in wm8995_hw_params() 1665 lrclk = bclk_rate / params_rate(params); in wm8995_hw_params() 1667 lrclk, bclk_rate / lrclk); in wm8995_hw_params()
|
H A D | pcm512x.c | 705 unsigned long bclk_rate) in pcm512x_find_sck() argument 720 pow2 = 1 << fls((pcm512x_pll_max(pcm512x) - 16000000) / bclk_rate); in pcm512x_find_sck() 723 bclk_rate * pow2); in pcm512x_find_sck() 898 unsigned long bclk_rate; in pcm512x_set_dividers() local 927 bclk_rate = params_rate(params) * lrclk_div; in pcm512x_set_dividers() 928 bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate); in pcm512x_set_dividers() 941 bclk_rate = ret; in pcm512x_set_dividers() 945 sck_rate = pcm512x_find_sck(dai, bclk_rate); in pcm512x_set_dividers() 991 bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate); in pcm512x_set_dividers()
|
H A D | rt5631.c | 34 int bclk_rate; member 1362 rt5631->bclk_rate = snd_soc_params_to_bclk(params); in rt5631_hifi_pcm_params() 1363 if (rt5631->bclk_rate < 0) { in rt5631_hifi_pcm_params() 1365 return rt5631->bclk_rate; in rt5631_hifi_pcm_params() 1371 rt5631->bclk_rate / rt5631->rx_rate); in rt5631_hifi_pcm_params()
|
H A D | wm8994.c | 2929 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local 2962 bclk_rate = params_rate(params); in wm8994_hw_params() 2965 bclk_rate *= 16; in wm8994_hw_params() 2968 bclk_rate *= 20; in wm8994_hw_params() 2972 bclk_rate *= 24; in wm8994_hw_params() 2976 bclk_rate *= 32; in wm8994_hw_params() 2994 bclk_rate *= 2; in wm8994_hw_params() 2997 bclk_rate *= 4; in wm8994_hw_params() 3011 dai->id, wm8994->aifclk[id], bclk_rate); in wm8994_hw_params() 3045 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params() [all …]
|
H A D | cx2072x.c | 671 unsigned int bclk_rate = 0; in cx2072x_config_i2spcm() local 823 bclk_rate = cx2072x->sample_rate * frame_len; in cx2072x_config_i2spcm() 832 mod = do_div(div, bclk_rate); in cx2072x_config_i2spcm() 834 dev_err(dev, "Unsupported BCLK %dHz\n", bclk_rate); in cx2072x_config_i2spcm() 837 dev_dbg(dev, "enables BCLK %dHz output\n", bclk_rate); in cx2072x_config_i2spcm()
|
H A D | pcm6240.c | 1916 int bclk_rate; in pcmdevice_hw_params() local 1949 bclk_rate = snd_soc_params_to_bclk(params); in pcmdevice_hw_params() 1950 if (bclk_rate < 0) { in pcmdevice_hw_params() 1952 __func__, bclk_rate); in pcmdevice_hw_params() 1953 ret = bclk_rate; in pcmdevice_hw_params()
|
H A D | tas2781-i2c.c | 1471 int bclk_rate; in tasdevice_hw_params() local 1500 bclk_rate = snd_soc_params_to_bclk(params); in tasdevice_hw_params() 1501 if (bclk_rate < 0) { in tasdevice_hw_params() 1503 __func__, bclk_rate); in tasdevice_hw_params() 1504 rc = bclk_rate; in tasdevice_hw_params()
|
/linux/sound/soc/tegra/ |
H A D | tegra210_i2s.c | 546 unsigned int val, bit_count, bclk_rate, num_bclk = sample_size; in tegra210_i2s_set_timing_params() local 556 bclk_rate = srate * channels * num_bclk; in tegra210_i2s_set_timing_params() 558 err = tegra210_i2s_set_clock_rate(dev, bclk_rate); in tegra210_i2s_set_timing_params() 561 bclk_rate, err); in tegra210_i2s_set_timing_params() 576 bit_count = (bclk_rate / (srate * 2)) - 1; in tegra210_i2s_set_timing_params() 579 bit_count = (bclk_rate / srate) - 1; in tegra210_i2s_set_timing_params()
|
/linux/sound/soc/rockchip/ |
H A D | rockchip_i2s.c | 356 unsigned int mclk_rate, bclk_rate, div_bclk, div_lrck; in rockchip_i2s_hw_params() local 360 bclk_rate = i2s->bclk_ratio * params_rate(params); in rockchip_i2s_hw_params() 361 if (!bclk_rate) in rockchip_i2s_hw_params() 364 div_bclk = DIV_ROUND_CLOSEST(mclk_rate, bclk_rate); in rockchip_i2s_hw_params() 365 div_lrck = bclk_rate / params_rate(params); in rockchip_i2s_hw_params()
|
H A D | rockchip_i2s_tdm.c | 654 unsigned int mclk_rate, bclk_rate, div_bclk = 4, div_lrck = 64; in rockchip_i2s_tdm_hw_params() local 675 bclk_rate = i2s_tdm->frame_width * params_rate(params); in rockchip_i2s_tdm_hw_params() 676 if (!bclk_rate) in rockchip_i2s_tdm_hw_params() 679 div_bclk = DIV_ROUND_CLOSEST(mclk_rate, bclk_rate); in rockchip_i2s_tdm_hw_params() 680 div_lrck = bclk_rate / params_rate(params); in rockchip_i2s_tdm_hw_params()
|
/linux/sound/soc/atmel/ |
H A D | mchp-i2s-mcc.c | 544 unsigned int bclk_rate; in mchp_i2s_mcc_hw_params() local 698 bclk_rate = frame_length * params_rate(params); in mchp_i2s_mcc_hw_params() 699 ret = mchp_i2s_mcc_config_divs(dev, bclk_rate, &mra, in mchp_i2s_mcc_hw_params()
|
/linux/sound/soc/sof/ |
H A D | ipc3-topology.c | 1088 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_sai_load() 1139 config->esai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_esai_load() 1423 config[i].ssp.bclk_rate = le32_to_cpu(hw_config[i].bclk_rate); in sof_link_ssp_load() 1433 config[i].ssp.mclk_rate, config[i].ssp.bclk_rate, in sof_link_ssp_load() 2539 return private->dai_config->ssp.bclk_rate; in sof_ipc3_parse_manifest()
|
/linux/include/uapi/sound/ |
H A D | asoc.h | 346 __le32 bclk_rate; /* BCLK freqency in Hz */ member
|
/linux/sound/soc/dwc/ |
H A D | dwc-i2s.c | 912 u32 bclk_rate = config->sample_rate * 64; in jh7110_i2stx0_clk_cfg() local 914 return clk_set_rate(dev->clk, bclk_rate); in jh7110_i2stx0_clk_cfg()
|