/sound/soc/samsung/ |
D | neo1973_wm8753.c | 28 unsigned int pll_out = 0, bclk = 0; in neo1973_hifi_hw_params() local 40 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params() 44 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params() 48 bclk = WM8753_BCLK_DIV_16; in neo1973_hifi_hw_params() 52 bclk = WM8753_BCLK_DIV_8; in neo1973_hifi_hw_params() 56 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params() 60 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params() 78 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk); in neo1973_hifi_hw_params()
|
/sound/soc/codecs/ |
D | wm9081.c | 151 int bclk; member 664 if (wm9081->master && wm9081->bclk) { in configure_clock() 671 if (target >= wm9081->bclk && in configure_clock() 1021 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params() 1024 wm9081->bclk = 2 * wm9081->fs; in wm9081_hw_params() 1028 wm9081->bclk *= 16; in wm9081_hw_params() 1031 wm9081->bclk *= 20; in wm9081_hw_params() 1035 wm9081->bclk *= 24; in wm9081_hw_params() 1039 wm9081->bclk *= 32; in wm9081_hw_params() 1047 dev_dbg(component->dev, "Target BCLK is %dHz\n", wm9081->bclk); in wm9081_hw_params() [all …]
|
D | wm2200.c | 1557 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local 1560 bclk = 0; in wm2200_set_fmt() 1582 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt() 1586 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt() 1598 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt() 1602 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt() 1612 WM2200_AIF1_BCLK_INV, bclk); in wm2200_set_fmt() 1690 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local 1705 bclk = snd_soc_params_to_bclk(params); in wm2200_hw_params() 1706 if (bclk < 0) in wm2200_hw_params() [all …]
|
D | wm8960.c | 130 int bclk; member 626 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local 633 bclk = wm8960->bclk; in wm8960_configure_sysclk() 645 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk() 689 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local 693 bclk = wm8960->bclk; in wm8960_configure_pll() 717 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll() 822 wm8960->bclk = snd_soc_params_to_bclk(params); in wm8960_hw_params() 824 wm8960->bclk *= 2; in wm8960_hw_params()
|
D | wm8993.c | 217 unsigned int bclk; member 1207 wm8993->bclk = 2 * wm8993->fs; in wm8993_hw_params() 1211 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots; in wm8993_hw_params() 1215 wm8993->bclk *= 16; in wm8993_hw_params() 1218 wm8993->bclk *= 20; in wm8993_hw_params() 1222 wm8993->bclk *= 24; in wm8993_hw_params() 1226 wm8993->bclk *= 32; in wm8993_hw_params() 1234 dev_dbg(component->dev, "Target BCLK is %dHz\n", wm8993->bclk); in wm8993_hw_params() 1278 - wm8993->bclk; in wm8993_hw_params() 1286 wm8993->bclk = (wm8993->sysclk_rate * 10) / bclk_divs[best].div; in wm8993_hw_params() [all …]
|
D | wm5100.c | 1282 int lrclk, bclk, mask, base; in wm5100_set_fmt() local 1287 bclk = 0; in wm5100_set_fmt() 1309 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt() 1313 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt() 1325 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt() 1329 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt() 1339 WM5100_AIF1_BCLK_INV, bclk); in wm5100_set_fmt() 1402 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local 1419 bclk = snd_soc_params_to_bclk(params); in wm5100_hw_params() 1420 if (bclk < 0) in wm5100_hw_params() [all …]
|
D | arizona.c | 1447 int lrclk, bclk, mode, base; in arizona_set_fmt() local 1452 bclk = 0; in arizona_set_fmt() 1490 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt() 1493 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt() 1506 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt() 1510 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt() 1522 bclk); in arizona_set_fmt() 1755 int base, int bclk, int lrclk, int frame) in arizona_aif_cfg_changed() argument 1760 if (bclk != (val & ARIZONA_AIF1_BCLK_FREQ_MASK)) in arizona_aif_cfg_changed() 1789 int bclk, lrclk, wl, frame, bclk_target; in arizona_hw_params() local [all …]
|
D | da7219.c | 802 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_dai_event() local 811 if (bclk) { in da7219_dai_event() 812 ret = clk_prepare_enable(bclk); in da7219_dai_event() 858 if (bclk) in da7219_dai_event() 859 clk_disable_unprepare(bclk); in da7219_dai_event() 1427 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_set_dai_tdm_slot() local 1472 if (bclk) { in da7219_set_dai_tdm_slot() 1475 ret = clk_set_rate(bclk, bclk_rate); in da7219_set_dai_tdm_slot() 1563 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_hw_params() local 1624 if (bclk) { in da7219_hw_params() [all …]
|
D | wm8985.c | 191 unsigned int bclk; member 760 wm8985->bclk = snd_soc_params_to_bclk(params); in wm8985_hw_params() 761 if ((int)wm8985->bclk < 0) in wm8985_hw_params() 762 return wm8985->bclk; in wm8985_hw_params() 803 dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8985->bclk); in wm8985_hw_params() 825 if (wm8985->bclk == tmp / bclk_divs[i]) in wm8985_hw_params()
|
D | wm8903.c | 1445 int bclk; in wm8903_hw_params() local 1483 bclk = 2 * fs; in wm8903_hw_params() 1486 bclk *= 16; in wm8903_hw_params() 1489 bclk *= 20; in wm8903_hw_params() 1493 bclk *= 24; in wm8903_hw_params() 1497 bclk *= 32; in wm8903_hw_params() 1554 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params() 1565 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params() 1569 aif3 |= bclk / fs; in wm8903_hw_params()
|
D | cros_ec_codec.c | 229 uint32_t bclk; in i2s_rx_hw_params() local 256 bclk = params_rate(params) * priv->i2s_rx_bclk_ratio; in i2s_rx_hw_params() 258 bclk = snd_soc_params_to_bclk(params); in i2s_rx_hw_params() 260 dev_dbg(component->dev, "set bclk to %u\n", bclk); in i2s_rx_hw_params() 263 p.set_bclk_param.bclk = bclk; in i2s_rx_hw_params()
|
D | wm8904.c | 81 int bclk; member 1311 wm8904->bclk = snd_soc_calc_bclk(wm8904->fs, in wm8904_hw_params() 1315 wm8904->bclk = snd_soc_params_to_bclk(params); in wm8904_hw_params() 1335 dev_dbg(component->dev, "Target BCLK is %dHz\n", wm8904->bclk); in wm8904_hw_params() 1383 - wm8904->bclk; in wm8904_hw_params() 1391 wm8904->bclk = (wm8904->sysclk_rate * 10) / bclk_divs[best].div; in wm8904_hw_params() 1393 bclk_divs[best].div, wm8904->bclk); in wm8904_hw_params() 1397 dev_dbg(component->dev, "LRCLK_RATE is %d\n", wm8904->bclk / wm8904->fs); in wm8904_hw_params() 1398 aif3 |= wm8904->bclk / wm8904->fs; in wm8904_hw_params()
|
D | rt1019.h | 157 int bclk; member
|
D | wm8983.c | 101 u32 bclk; member 664 wm8983->bclk = ret; in wm8983_hw_params() 705 dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8983->bclk); in wm8983_hw_params() 727 if (wm8983->bclk == tmp / bclk_divs[i]) in wm8983_hw_params()
|
D | wm8962.c | 59 int bclk; /* Desired BCLK */ member 2462 if (!wm8962->bclk || !wm8962->lrclk) { in wm8962_configure_bclk() 2528 dev_dbg(component->dev, "DSPCLK is %dHz, BCLK %d\n", dspclk, wm8962->bclk); in wm8962_configure_bclk() 2537 diff = (dspclk / bclk_divs[i]) - wm8962->bclk; in wm8962_configure_bclk() 2545 wm8962->bclk = dspclk / bclk_divs[best]; in wm8962_configure_bclk() 2548 bclk_divs[best], wm8962->bclk); in wm8962_configure_bclk() 2550 aif2 |= wm8962->bclk / wm8962->lrclk; in wm8962_configure_bclk() 2552 wm8962->bclk / wm8962->lrclk, wm8962->lrclk); in wm8962_configure_bclk() 2618 wm8962->bclk = snd_soc_params_to_bclk(params); in wm8962_hw_params() 2620 wm8962->bclk *= 2; in wm8962_hw_params() [all …]
|
D | madera.c | 2765 int lrclk, bclk, mode, base; in madera_set_fmt() local 2770 bclk = 0; in madera_set_fmt() 2808 bclk |= MADERA_AIF1_BCLK_MSTR; in madera_set_fmt() 2811 bclk |= MADERA_AIF1_BCLK_MSTR; in madera_set_fmt() 2824 bclk |= MADERA_AIF1_BCLK_INV; in madera_set_fmt() 2828 bclk |= MADERA_AIF1_BCLK_INV; in madera_set_fmt() 2841 bclk); in madera_set_fmt() 3077 int base, int bclk, int lrclk, int frame) in madera_aif_cfg_changed() argument 3082 if (bclk != (val & MADERA_AIF1_BCLK_FREQ_MASK)) in madera_aif_cfg_changed() 3114 int bclk, lrclk, wl, frame, bclk_target, num_rates; in madera_hw_params() local [all …]
|
D | rt1016.h | 225 int bclk; member
|
D | rt1019.c | 181 rt1019->bclk = rt1019->lrck * (32 << bclk_ms); in rt1019_hw_params() 184 rt1019->bclk, rt1019->lrck); in rt1019_hw_params()
|
D | rt5514.h | 278 int bclk; member
|
D | max98373-i2c.c | 179 static int max98373_get_bclk_sel(int bclk) in max98373_get_bclk_sel() argument 184 if (bclk_sel_table[i] == bclk) in max98373_get_bclk_sel()
|
D | cs42l42.c | 617 clk = cs42l42->bclk; in cs42l42_pll_config() 841 cs42l42->bclk = snd_soc_params_to_bclk(params); in cs42l42_pcm_hw_params() 845 cs42l42->bclk *= 2; in cs42l42_pcm_hw_params() 852 cs42l42->bclk = (cs42l42->bclk / 3) * 4; in cs42l42_pcm_hw_params()
|
/sound/soc/tegra/ |
D | tegra_audio_graph_card.c | 72 unsigned int plla_rate, plla_out0_rate, bclk; in tegra_audio_graph_update_pll() local 123 bclk = srate * params_channels(params) * params_width(params); in tegra_audio_graph_update_pll() 124 if (div_u64(plla_out0_rate, bclk) > MAX_PLLA_OUT0_DIV) in tegra_audio_graph_update_pll()
|
/sound/soc/fsl/ |
D | fsl_micfil.c | 116 int bclk; in get_pdm_clk() local 127 bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */ in get_pdm_clk() 131 bclk = rate * 4 * osr * 1; /* kfactor = 1 */ in get_pdm_clk() 135 bclk = rate * 2 * osr * 2; /* kfactor = 2 */ in get_pdm_clk() 138 bclk = rate * osr * 4; /* kfactor = 4 */ in get_pdm_clk() 143 bclk = -1; in get_pdm_clk() 147 return bclk; in get_pdm_clk()
|
/sound/soc/atmel/ |
D | mchp-i2s-mcc.c | 417 unsigned int bclk, unsigned int *mra, in mchp_i2s_mcc_config_divs() argument 429 sysclk = bclk; in mchp_i2s_mcc_config_divs() 438 lcm_rate = lcm(sysclk, bclk); in mchp_i2s_mcc_config_divs() 440 (lcm_rate / bclk % 2 == 1 && lcm_rate / bclk > 2)) in mchp_i2s_mcc_config_divs() 445 (clk_rate == bclk || clk_rate / (bclk * 2) <= GENMASK(5, 0)); in mchp_i2s_mcc_config_divs() 489 *mra |= MCHP_I2SMCC_MRA_ISCKDIV(*best_rate / (2 * bclk)); in mchp_i2s_mcc_config_divs()
|
/sound/soc/pxa/ |
D | pxa-ssp.c | 543 int bclk = rate * chn * (width / 8); in pxa_ssp_hw_params() local 584 ret = pxa_ssp_set_pll(priv, bclk); in pxa_ssp_hw_params() 610 ret = pxa_ssp_set_pll(priv, bclk); in pxa_ssp_hw_params() 626 pxa_ssp_set_scr(ssp, bclk / rate); in pxa_ssp_hw_params() 633 if (((priv->sysclk / bclk) == 64) && (width == 16)) { in pxa_ssp_hw_params()
|