/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 65 struct clk *lrclk; member 106 clk_enable(info->lrclk); in ep93xx_i2s_enable() 140 clk_disable(info->lrclk); in ep93xx_i2s_disable() 297 err = clk_set_rate(info->lrclk, clk_get_rate(info->sclk) / lrdiv); in ep93xx_i2s_hw_params() 407 info->lrclk = clk_get(&pdev->dev, "lrclk"); in ep93xx_i2s_probe() 408 if (IS_ERR(info->lrclk)) { in ep93xx_i2s_probe() 409 err = PTR_ERR(info->lrclk); in ep93xx_i2s_probe() 429 clk_put(info->lrclk); in ep93xx_i2s_probe() 443 clk_put(info->lrclk); in ep93xx_i2s_remove()
|
/sound/soc/codecs/ |
D | wm8960.c | 132 int lrclk; member 182 if (abs(deemph_settings[i] - wm8960->lrclk) < in wm8960_set_deemph() 183 abs(deemph_settings[best] - wm8960->lrclk)) in wm8960_set_deemph() 610 int sysclk, bclk, lrclk, freq_out, freq_in; in wm8960_configure_clocking() local 627 lrclk = wm8960->lrclk; in wm8960_configure_clocking() 652 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_clocking() 676 sysclk = lrclk * dac_divs[j]; in wm8960_configure_clocking() 751 wm8960->lrclk = params_rate(params); in wm8960_hw_params()
|
D | wm2200.c | 1568 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local 1570 lrclk = 0; in wm2200_set_fmt() 1590 lrclk |= WM2200_AIF1TX_LRCLK_MSTR; in wm2200_set_fmt() 1596 lrclk |= WM2200_AIF1TX_LRCLK_MSTR; in wm2200_set_fmt() 1610 lrclk |= WM2200_AIF1TX_LRCLK_INV; in wm2200_set_fmt() 1616 lrclk |= WM2200_AIF1TX_LRCLK_INV; in wm2200_set_fmt() 1626 lrclk); in wm2200_set_fmt() 1629 lrclk); in wm2200_set_fmt() 1701 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local 1758 lrclk = bclk_rates[bclk] / params_rate(params); in wm2200_hw_params() [all …]
|
D | arizona.c | 1318 int lrclk, bclk, mode, base; in arizona_set_fmt() local 1322 lrclk = 0; in arizona_set_fmt() 1358 lrclk |= ARIZONA_AIF1TX_LRCLK_MSTR; in arizona_set_fmt() 1365 lrclk |= ARIZONA_AIF1TX_LRCLK_MSTR; in arizona_set_fmt() 1378 lrclk |= ARIZONA_AIF1TX_LRCLK_INV; in arizona_set_fmt() 1384 lrclk |= ARIZONA_AIF1TX_LRCLK_INV; in arizona_set_fmt() 1396 ARIZONA_AIF1TX_LRCLK_MSTR, lrclk); in arizona_set_fmt() 1400 ARIZONA_AIF1RX_LRCLK_MSTR, lrclk); in arizona_set_fmt() 1621 int base, int bclk, int lrclk, int frame) in arizona_aif_cfg_changed() argument 1630 if (lrclk != (val & ARIZONA_AIF1TX_BCPF_MASK)) in arizona_aif_cfg_changed() [all …]
|
D | wm5100.c | 1286 int lrclk, bclk, mask, base; in wm5100_set_fmt() local 1290 lrclk = 0; in wm5100_set_fmt() 1310 lrclk |= WM5100_AIF1TX_LRCLK_MSTR; in wm5100_set_fmt() 1316 lrclk |= WM5100_AIF1TX_LRCLK_MSTR; in wm5100_set_fmt() 1330 lrclk |= WM5100_AIF1TX_LRCLK_INV; in wm5100_set_fmt() 1336 lrclk |= WM5100_AIF1TX_LRCLK_INV; in wm5100_set_fmt() 1345 WM5100_AIF1TX_LRCLK_INV, lrclk); in wm5100_set_fmt() 1347 WM5100_AIF1TX_LRCLK_INV, lrclk); in wm5100_set_fmt() 1406 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local 1480 lrclk = bclk_rates[bclk] / params_rate(params); in wm5100_hw_params() [all …]
|
D | max98090.c | 1511 if (!max98090->bclk || !max98090->lrclk) { in max98090_configure_bclk() 1525 (lrclk_rates[i] == max98090->lrclk)) { in max98090_configure_bclk() 1542 (user_lrclk_rates[i] == max98090->lrclk)) { in max98090_configure_bclk() 1580 ni = 65536ULL * (max98090->lrclk < 50000 ? 96ULL : 48ULL) in max98090_configure_bclk() 1581 * (unsigned long long int)max98090->lrclk; in max98090_configure_bclk() 1940 max98090->lrclk = params_rate(params); in max98090_dai_hw_params() 1954 cdata->rate = max98090->lrclk; in max98090_dai_hw_params() 1957 if (max98090->lrclk < 24000) in max98090_dai_hw_params() 1965 if (max98090->lrclk < 50000) in max98090_dai_hw_params() 1973 max98090->lrclk); in max98090_dai_hw_params()
|
D | wm8962.c | 64 int lrclk; member 2419 if (!wm8962->bclk || !wm8962->lrclk) { in wm8962_configure_bclk() 2425 if (sysclk_rates[i] == wm8962->sysclk_rate / wm8962->lrclk) { in wm8962_configure_bclk() 2433 wm8962->sysclk_rate / wm8962->lrclk); in wm8962_configure_bclk() 2497 aif2 |= wm8962->bclk / wm8962->lrclk; in wm8962_configure_bclk() 2499 wm8962->bclk / wm8962->lrclk, wm8962->lrclk); in wm8962_configure_bclk() 2569 wm8962->lrclk = params_rate(params); in wm8962_hw_params() 2572 if (sr_vals[i].rate == wm8962->lrclk) { in wm8962_hw_params() 2578 dev_err(codec->dev, "Unsupported rate %dHz\n", wm8962->lrclk); in wm8962_hw_params() 2582 if (wm8962->lrclk % 8000 == 0) in wm8962_hw_params() [all …]
|
D | wm8995.c | 1557 int lrclk, bclk; in wm8995_hw_params() local 1667 lrclk = bclk_rate / params_rate(params); in wm8995_hw_params() 1669 lrclk, bclk_rate / lrclk); in wm8995_hw_params() 1676 WM8995_AIF1DAC_RATE_MASK, lrclk); in wm8995_hw_params()
|
D | wm8994.c | 2624 int lrclk = 0; in wm8994_set_dai_fmt() local 2656 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2695 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2702 lrclk |= WM8958_AIF1_LRCLK_INV; in wm8994_set_dai_fmt() 2734 WM8958_AIF1_LRCLK_INV, lrclk); in wm8994_set_dai_fmt() 2736 WM8958_AIF1_LRCLK_INV, lrclk); in wm8994_set_dai_fmt() 2782 int lrclk = 0; in wm8994_hw_params() local 2912 lrclk = bclk_rate / params_rate(params); in wm8994_hw_params() 2913 if (!lrclk) { in wm8994_hw_params() 2919 lrclk, bclk_rate / lrclk); in wm8994_hw_params() [all …]
|
D | wm8996.c | 1742 int lrclk = 0; in wm8996_hw_params() local 1799 lrclk = bclk_rate / params_rate(params); in wm8996_hw_params() 1801 lrclk, bclk_rate / lrclk); in wm8996_hw_params() 1808 lrclk); in wm8996_hw_params()
|
D | max98090.h | 1529 unsigned int lrclk; member
|
/sound/soc/bcm/ |
D | cygnus-ssp.h | 100 u32 lrclk; member
|
D | cygnus-ssp.c | 693 if ((p_entry->rate == aio->lrclk) && in cygnus_ssp_set_clocks() 704 aio->lrclk, aio->bit_per_frame, aio->mclk); in cygnus_ssp_set_clocks() 739 aio->bit_per_frame, aio->mclk, aio->lrclk); in cygnus_ssp_set_clocks() 841 aio->lrclk = rate; in cygnus_ssp_hw_params()
|