/sound/soc/samsung/ |
D | neo1973_wm8753.c | 36 unsigned int pll_out = 0, bclk = 0; in neo1973_hifi_hw_params() local 48 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params() 52 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params() 56 bclk = WM8753_BCLK_DIV_16; in neo1973_hifi_hw_params() 60 bclk = WM8753_BCLK_DIV_8; in neo1973_hifi_hw_params() 64 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params() 68 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params() 86 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk); in neo1973_hifi_hw_params()
|
/sound/soc/codecs/ |
D | wm9081.c | 155 int bclk; member 668 if (wm9081->master && wm9081->bclk) { in configure_clock() 675 if (target >= wm9081->bclk && in configure_clock() 1024 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params() 1027 wm9081->bclk = 2 * wm9081->fs; in wm9081_hw_params() 1031 wm9081->bclk *= 16; in wm9081_hw_params() 1034 wm9081->bclk *= 20; in wm9081_hw_params() 1038 wm9081->bclk *= 24; in wm9081_hw_params() 1042 wm9081->bclk *= 32; in wm9081_hw_params() 1050 dev_dbg(codec->dev, "Target BCLK is %dHz\n", wm9081->bclk); in wm9081_hw_params() [all …]
|
D | wm2200.c | 1568 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local 1571 bclk = 0; in wm2200_set_fmt() 1593 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt() 1597 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt() 1609 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt() 1613 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt() 1623 WM2200_AIF1_BCLK_INV, bclk); in wm2200_set_fmt() 1701 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local 1716 bclk = snd_soc_params_to_bclk(params); in wm2200_hw_params() 1717 if (bclk < 0) in wm2200_hw_params() [all …]
|
D | wm8993.c | 220 unsigned int bclk; member 1208 wm8993->bclk = 2 * wm8993->fs; in wm8993_hw_params() 1212 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots; in wm8993_hw_params() 1216 wm8993->bclk *= 16; in wm8993_hw_params() 1219 wm8993->bclk *= 20; in wm8993_hw_params() 1223 wm8993->bclk *= 24; in wm8993_hw_params() 1227 wm8993->bclk *= 32; in wm8993_hw_params() 1235 dev_dbg(codec->dev, "Target BCLK is %dHz\n", wm8993->bclk); in wm8993_hw_params() 1279 - wm8993->bclk; in wm8993_hw_params() 1287 wm8993->bclk = (wm8993->sysclk_rate * 10) / bclk_divs[best].div; in wm8993_hw_params() [all …]
|
D | wm5100.c | 1285 int lrclk, bclk, mask, base; in wm5100_set_fmt() local 1290 bclk = 0; in wm5100_set_fmt() 1312 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt() 1316 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt() 1328 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt() 1332 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt() 1342 WM5100_AIF1_BCLK_INV, bclk); in wm5100_set_fmt() 1405 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local 1422 bclk = snd_soc_params_to_bclk(params); in wm5100_hw_params() 1423 if (bclk < 0) in wm5100_hw_params() [all …]
|
D | arizona.c | 1171 int lrclk, bclk, mode, base; in arizona_set_fmt() local 1176 bclk = 0; in arizona_set_fmt() 1214 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt() 1217 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt() 1230 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt() 1234 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt() 1246 bclk); in arizona_set_fmt() 1502 int base, int bclk, int lrclk, int frame) in arizona_aif_cfg_changed() argument 1507 if (bclk != (val & ARIZONA_AIF1_BCLK_FREQ_MASK)) in arizona_aif_cfg_changed() 1536 int bclk, lrclk, wl, frame, bclk_target; in arizona_hw_params() local [all …]
|
D | wm8960.c | 133 int bclk; member 599 int sysclk, bclk, lrclk, freq_out, freq_in; in wm8960_configure_clocking() local 615 bclk = wm8960->bclk; in wm8960_configure_clocking() 644 if (sysclk == bclk * bclk_divs[k] / 10) in wm8960_configure_clocking() 669 if (sysclk == bclk * bclk_divs[k] / 10 && in wm8960_configure_clocking() 714 wm8960->bclk = snd_soc_params_to_bclk(params); in wm8960_hw_params() 716 wm8960->bclk *= 2; in wm8960_hw_params()
|
D | wm8903.c | 1439 int bclk; in wm8903_hw_params() local 1477 bclk = 2 * fs; in wm8903_hw_params() 1480 bclk *= 16; in wm8903_hw_params() 1483 bclk *= 20; in wm8903_hw_params() 1487 bclk *= 24; in wm8903_hw_params() 1491 bclk *= 32; in wm8903_hw_params() 1546 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params() 1549 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params() 1561 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params() 1565 aif3 |= bclk / fs; in wm8903_hw_params()
|
D | wm8985.c | 185 unsigned int bclk; member 697 wm8985->bclk = snd_soc_params_to_bclk(params); in wm8985_hw_params() 698 if ((int)wm8985->bclk < 0) in wm8985_hw_params() 699 return wm8985->bclk; in wm8985_hw_params() 740 dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8985->bclk); in wm8985_hw_params() 762 if (wm8985->bclk == tmp / bclk_divs[i]) in wm8985_hw_params()
|
D | wm8904.c | 86 int bclk; member 1295 wm8904->bclk = snd_soc_calc_bclk(wm8904->fs, in wm8904_hw_params() 1299 wm8904->bclk = snd_soc_params_to_bclk(params); in wm8904_hw_params() 1319 dev_dbg(codec->dev, "Target BCLK is %dHz\n", wm8904->bclk); in wm8904_hw_params() 1367 - wm8904->bclk; in wm8904_hw_params() 1375 wm8904->bclk = (wm8904->sysclk_rate * 10) / bclk_divs[best].div; in wm8904_hw_params() 1377 bclk_divs[best].div, wm8904->bclk); in wm8904_hw_params() 1381 dev_dbg(codec->dev, "LRCLK_RATE is %d\n", wm8904->bclk / wm8904->fs); in wm8904_hw_params() 1382 aif3 |= wm8904->bclk / wm8904->fs; in wm8904_hw_params()
|
D | wm8962.c | 63 int bclk; /* Desired BCLK */ member 2420 if (!wm8962->bclk || !wm8962->lrclk) { in wm8962_configure_bclk() 2478 dev_dbg(codec->dev, "DSPCLK is %dHz, BCLK %d\n", dspclk, wm8962->bclk); in wm8962_configure_bclk() 2485 if (dspclk / bclk_divs[i] == wm8962->bclk) { in wm8962_configure_bclk() 2487 bclk_divs[i], wm8962->bclk); in wm8962_configure_bclk() 2494 dspclk / wm8962->bclk); in wm8962_configure_bclk() 2498 aif2 |= wm8962->bclk / wm8962->lrclk; in wm8962_configure_bclk() 2500 wm8962->bclk / wm8962->lrclk, wm8962->lrclk); in wm8962_configure_bclk() 2566 wm8962->bclk = snd_soc_params_to_bclk(params); in wm8962_hw_params() 2568 wm8962->bclk *= 2; in wm8962_hw_params() [all …]
|
D | wm8983.c | 104 u32 bclk; member 667 wm8983->bclk = ret; in wm8983_hw_params() 708 dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8983->bclk); in wm8983_hw_params() 730 if (wm8983->bclk == tmp / bclk_divs[i]) in wm8983_hw_params()
|
D | wm8995.c | 1557 int lrclk, bclk; in wm8995_hw_params() local 1654 bclk = 0; in wm8995_hw_params() 1661 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params() 1674 WM8995_AIF1_BCLK_DIV_MASK, bclk); in wm8995_hw_params()
|
D | wm8996.c | 1638 int bclk = 0; in wm8996_set_fmt() local 1665 bclk |= WM8996_AIF1_BCLK_INV; in wm8996_set_fmt() 1672 bclk |= WM8996_AIF1_BCLK_INV; in wm8996_set_fmt() 1686 bclk |= WM8996_AIF1_BCLK_MSTR; in wm8996_set_fmt() 1689 bclk |= WM8996_AIF1_BCLK_MSTR; in wm8996_set_fmt() 1716 bclk); in wm8996_set_fmt()
|
D | max98090.c | 1511 if (!max98090->bclk || !max98090->lrclk) { in max98090_configure_bclk() 1951 max98090->bclk = snd_soc_params_to_bclk(params); in max98090_dai_hw_params() 1953 max98090->bclk *= 2; in max98090_dai_hw_params()
|
D | rt5631.c | 1211 u32 bclk; member 1346 (coeff_div[i].bclk / coeff_div[i].rate) == timesofbclk) in get_coeff()
|
D | rt5651.c | 1364 rt5651->bclk[dai->id] = rt5651->lrck[dai->id] * (32 << bclk_ms); in rt5651_hw_params() 1367 rt5651->bclk[dai->id], rt5651->lrck[dai->id]); in rt5651_hw_params()
|
D | rt5640.c | 1703 rt5640->bclk[dai->id] = rt5640->lrck[dai->id] * (32 << bclk_ms); in rt5640_hw_params() 1706 rt5640->bclk[dai->id], rt5640->lrck[dai->id]); in rt5640_hw_params()
|
D | max98090.h | 1528 unsigned int bclk; member
|
D | rt5645.c | 256 int bclk[RT5645_AIFS]; member 2561 rt5645->bclk[dai->id] = rt5645->lrck[dai->id] * (32 << bclk_ms); in rt5645_hw_params() 2564 rt5645->bclk[dai->id], rt5645->lrck[dai->id]); in rt5645_hw_params()
|
D | rt5670.c | 2337 rt5670->bclk[dai->id] = rt5670->lrck[dai->id] * (32 << bclk_ms); in rt5670_hw_params() 2340 rt5670->bclk[dai->id], rt5670->lrck[dai->id]); in rt5670_hw_params()
|
D | rt5677.h | 1774 int bclk[RT5677_AIFS]; member
|
D | rt5670.h | 1997 int bclk[RT5670_AIFS]; member
|
D | rt5651.h | 2069 int bclk[RT5651_AIFS]; member
|
/sound/soc/fsl/ |
D | fsl_esai.c | 521 u32 bclk, mask, val; in fsl_esai_hw_params() local 528 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params() 530 ret = fsl_esai_set_bclk(dai, tx, bclk); in fsl_esai_hw_params()
|