Home
last modified time | relevance | path

Searched refs:bclk_rate (Results 1 – 18 of 18) sorted by relevance

/linux/include/sound/sof/
H A Ddai-imx.h24 uint32_t bclk_rate; /* BCLK frequency in Hz */ member
45 uint32_t bclk_rate; /* BCLK frequency in Hz */ member
H A Ddai-intel.h69 uint32_t bclk_rate; /* bclk frequency in Hz */ member
/linux/sound/soc/adi/
H A Daxi-i2s.c93 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 Dwm8996.c78 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 Dwm8995.c1553 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 Dpcm512x.c705 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 Drt5631.c34 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 Dwm8994.c2929 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 Dcx2072x.c671 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 Dpcm6240.c1916 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 Dtas2781-i2c.c1471 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 Dtegra210_i2s.c546 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 Drockchip_i2s.c356 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 Drockchip_i2s_tdm.c654 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 Dmchp-i2s-mcc.c544 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 Dipc3-topology.c1088 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 Dasoc.h346 __le32 bclk_rate; /* BCLK freqency in Hz */ member
/linux/sound/soc/dwc/
H A Ddwc-i2s.c912 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()