/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 76 struct clk *lrclk; member 116 clk_enable(info->lrclk); in ep93xx_i2s_enable() 159 clk_disable(info->lrclk); in ep93xx_i2s_disable() 347 err = clk_set_rate(info->lrclk, clk_get_rate(info->sclk) / lrdiv); in ep93xx_i2s_hw_params() 466 info->lrclk = clk_get(&pdev->dev, "lrclk"); in ep93xx_i2s_probe() 467 if (IS_ERR(info->lrclk)) { in ep93xx_i2s_probe() 468 err = PTR_ERR(info->lrclk); in ep93xx_i2s_probe() 486 clk_put(info->lrclk); in ep93xx_i2s_probe() 499 clk_put(info->lrclk); in ep93xx_i2s_remove()
|
/sound/soc/meson/ |
D | axg-tdm-formatter.c | 21 struct clk *lrclk; member 130 ret = clk_prepare_enable(formatter->lrclk); in axg_tdm_formatter_enable() 150 clk_disable_unprepare(formatter->lrclk); in axg_tdm_formatter_disable() 213 ret = clk_set_parent(formatter->lrclk_sel, ts->iface->lrclk); in axg_tdm_formatter_power_up() 312 formatter->lrclk = devm_clk_get(dev, "lrclk"); in axg_tdm_formatter_probe() 313 if (IS_ERR(formatter->lrclk)) { in axg_tdm_formatter_probe() 314 ret = PTR_ERR(formatter->lrclk); in axg_tdm_formatter_probe()
|
D | axg-tdm-interface.c | 211 ret = clk_set_rate(iface->lrclk, params_rate(params)); in axg_tdm_iface_set_lrclk() 240 ret = clk_set_duty_cycle(iface->lrclk, ratio_num, 2); in axg_tdm_iface_set_lrclk() 248 ret = clk_set_phase(iface->lrclk, in axg_tdm_iface_set_lrclk() 528 iface->lrclk = devm_clk_get(dev, "lrclk"); in axg_tdm_iface_probe() 529 if (IS_ERR(iface->lrclk)) { in axg_tdm_iface_probe() 530 ret = PTR_ERR(iface->lrclk); in axg_tdm_iface_probe()
|
D | axg-tdm.h | 28 struct clk *lrclk; member
|
/sound/soc/codecs/ |
D | wm8960.c | 129 int lrclk; member 179 if (abs(deemph_settings[i] - wm8960->lrclk) < in wm8960_set_deemph() 180 abs(deemph_settings[best] - wm8960->lrclk)) in wm8960_set_deemph() 626 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local 634 lrclk = wm8960->lrclk; in wm8960_configure_sysclk() 642 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk() 689 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local 694 lrclk = wm8960->lrclk; in wm8960_configure_pll() 710 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll() 849 wm8960->lrclk = params_rate(params); in wm8960_hw_params()
|
D | wm2200.c | 1557 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local 1559 lrclk = 0; in wm2200_set_fmt() 1579 lrclk |= WM2200_AIF1TX_LRCLK_MSTR; in wm2200_set_fmt() 1585 lrclk |= WM2200_AIF1TX_LRCLK_MSTR; in wm2200_set_fmt() 1599 lrclk |= WM2200_AIF1TX_LRCLK_INV; in wm2200_set_fmt() 1605 lrclk |= WM2200_AIF1TX_LRCLK_INV; in wm2200_set_fmt() 1615 lrclk); in wm2200_set_fmt() 1618 lrclk); in wm2200_set_fmt() 1690 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local 1747 lrclk = bclk_rates[bclk] / params_rate(params); in wm2200_hw_params() [all …]
|
D | arizona.c | 1447 int lrclk, bclk, mode, base; in arizona_set_fmt() local 1451 lrclk = 0; in arizona_set_fmt() 1487 lrclk |= ARIZONA_AIF1TX_LRCLK_MSTR; in arizona_set_fmt() 1494 lrclk |= ARIZONA_AIF1TX_LRCLK_MSTR; in arizona_set_fmt() 1507 lrclk |= ARIZONA_AIF1TX_LRCLK_INV; in arizona_set_fmt() 1513 lrclk |= ARIZONA_AIF1TX_LRCLK_INV; in arizona_set_fmt() 1525 ARIZONA_AIF1TX_LRCLK_MSTR, lrclk); in arizona_set_fmt() 1529 ARIZONA_AIF1RX_LRCLK_MSTR, lrclk); in arizona_set_fmt() 1755 int base, int bclk, int lrclk, int frame) in arizona_aif_cfg_changed() argument 1764 if (lrclk != (val & ARIZONA_AIF1TX_BCPF_MASK)) in arizona_aif_cfg_changed() [all …]
|
D | wm5100.c | 1282 int lrclk, bclk, mask, base; in wm5100_set_fmt() local 1286 lrclk = 0; in wm5100_set_fmt() 1306 lrclk |= WM5100_AIF1TX_LRCLK_MSTR; in wm5100_set_fmt() 1312 lrclk |= WM5100_AIF1TX_LRCLK_MSTR; in wm5100_set_fmt() 1326 lrclk |= WM5100_AIF1TX_LRCLK_INV; in wm5100_set_fmt() 1332 lrclk |= WM5100_AIF1TX_LRCLK_INV; in wm5100_set_fmt() 1341 WM5100_AIF1TX_LRCLK_INV, lrclk); in wm5100_set_fmt() 1343 WM5100_AIF1TX_LRCLK_INV, lrclk); in wm5100_set_fmt() 1402 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local 1476 lrclk = bclk_rates[bclk] / params_rate(params); in wm5100_hw_params() [all …]
|
D | max98090.c | 1498 if (!max98090->bclk || !max98090->lrclk) { in max98090_configure_bclk() 1512 (lrclk_rates[i] == max98090->lrclk)) { in max98090_configure_bclk() 1529 (user_lrclk_rates[i] == max98090->lrclk)) { in max98090_configure_bclk() 1567 ni = 65536ULL * (max98090->lrclk < 50000 ? 96ULL : 48ULL) in max98090_configure_bclk() 1568 * (unsigned long long int)max98090->lrclk; in max98090_configure_bclk() 1942 max98090->lrclk = params_rate(params); in max98090_dai_hw_params() 1956 cdata->rate = max98090->lrclk; in max98090_dai_hw_params() 1959 if (max98090->lrclk < 24000) in max98090_dai_hw_params() 1967 if (max98090->lrclk < 50000) in max98090_dai_hw_params() 1975 max98090->lrclk); in max98090_dai_hw_params()
|
D | wm8962.c | 60 int lrclk; member 2462 if (!wm8962->bclk || !wm8962->lrclk) { in wm8962_configure_bclk() 2468 if (sysclk_rates[i] == wm8962->sysclk_rate / wm8962->lrclk) { in wm8962_configure_bclk() 2476 wm8962->sysclk_rate / wm8962->lrclk); 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() 2622 wm8962->lrclk = params_rate(params); in wm8962_hw_params() 2625 if (sr_vals[i].rate == wm8962->lrclk) { in wm8962_hw_params() 2631 dev_err(component->dev, "Unsupported rate %dHz\n", wm8962->lrclk); in wm8962_hw_params() 2635 if (wm8962->lrclk % 8000 == 0) in wm8962_hw_params() [all …]
|
D | madera.c | 2765 int lrclk, bclk, mode, base; in madera_set_fmt() local 2769 lrclk = 0; in madera_set_fmt() 2805 lrclk |= MADERA_AIF1TX_LRCLK_MSTR; in madera_set_fmt() 2812 lrclk |= MADERA_AIF1TX_LRCLK_MSTR; in madera_set_fmt() 2825 lrclk |= MADERA_AIF1TX_LRCLK_INV; in madera_set_fmt() 2831 lrclk |= MADERA_AIF1TX_LRCLK_INV; in madera_set_fmt() 2844 lrclk); in madera_set_fmt() 2847 lrclk); in madera_set_fmt() 3077 int base, int bclk, int lrclk, int frame) in madera_aif_cfg_changed() argument 3086 if (lrclk != (val & MADERA_AIF1RX_BCPF_MASK)) in madera_aif_cfg_changed() [all …]
|
D | wm8995.c | 1555 int lrclk, bclk; in wm8995_hw_params() local 1665 lrclk = bclk_rate / params_rate(params); in wm8995_hw_params() 1667 lrclk, bclk_rate / lrclk); in wm8995_hw_params() 1674 WM8995_AIF1DAC_RATE_MASK, lrclk); in wm8995_hw_params()
|
D | wm8994.c | 2766 int lrclk = 0; in wm8994_set_dai_fmt() local 2798 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2838 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2845 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2877 WM8958_AIF1_LRCLK_INV, lrclk); in wm8994_set_dai_fmt() 2879 WM8958_AIF1_LRCLK_INV, lrclk); in wm8994_set_dai_fmt() 2925 int lrclk = 0; in wm8994_hw_params() local 3055 lrclk = bclk_rate / params_rate(params); in wm8994_hw_params() 3056 if (!lrclk) { in wm8994_hw_params() 3062 lrclk, bclk_rate / lrclk); in wm8994_hw_params() [all …]
|
D | wm8996.c | 1737 int lrclk = 0; in wm8996_hw_params() local 1794 lrclk = bclk_rate / params_rate(params); in wm8996_hw_params() 1796 lrclk, bclk_rate / lrclk); in wm8996_hw_params() 1803 lrclk); in wm8996_hw_params()
|
D | max98090.h | 1526 unsigned int lrclk; member
|
/sound/soc/fsl/ |
D | fsl_mqs.c | 54 int lrclk; in fsl_mqs_hw_params() local 57 lrclk = params_rate(params); in fsl_mqs_hw_params() 64 div = mclk_rate / (32 * lrclk * 2 * 8); in fsl_mqs_hw_params() 65 res = mclk_rate % (32 * lrclk * 2 * 8); in fsl_mqs_hw_params()
|
/sound/soc/bcm/ |
D | cygnus-ssp.h | 100 u32 lrclk; member
|
D | cygnus-ssp.c | 553 bit_rate = aio->bit_per_frame * aio->lrclk; in cygnus_ssp_set_clocks() 579 aio->lrclk, aio->bit_per_frame, aio->mclk); in cygnus_ssp_set_clocks() 616 aio->bit_per_frame, aio->mclk, aio->lrclk); in cygnus_ssp_set_clocks() 704 aio->lrclk = rate; in cygnus_ssp_hw_params()
|