Home
last modified time | relevance | path

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

/sound/soc/cirrus/
Dep93xx-i2s.c76 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/
Daxg-tdm-formatter.c21 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()
Daxg-tdm-interface.c211 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()
Daxg-tdm.h28 struct clk *lrclk; member
/sound/soc/codecs/
Dwm8960.c129 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()
Dwm2200.c1557 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 …]
Darizona.c1447 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 …]
Dwm5100.c1282 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 …]
Dmax98090.c1498 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()
Dwm8962.c60 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 …]
Dmadera.c2765 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 …]
Dwm8995.c1555 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()
Dwm8994.c2766 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 …]
Dwm8996.c1737 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()
Dmax98090.h1526 unsigned int lrclk; member
/sound/soc/fsl/
Dfsl_mqs.c54 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/
Dcygnus-ssp.h100 u32 lrclk; member
Dcygnus-ssp.c553 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()