Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 4 of 4) sorted by relevance

/sound/soc/codecs/
Dmax98095.c945 unsigned long long ni; in max98095_dai1_hw_params() local
979 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98095_dai1_hw_params()
981 do_div(ni, (unsigned long long int)max98095->sysclk); in max98095_dai1_hw_params()
983 (ni >> 8) & 0x7F); in max98095_dai1_hw_params()
985 ni & 0xFF); in max98095_dai1_hw_params()
1006 unsigned long long ni; in max98095_dai2_hw_params() local
1040 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98095_dai2_hw_params()
1042 do_div(ni, (unsigned long long int)max98095->sysclk); in max98095_dai2_hw_params()
1044 (ni >> 8) & 0x7F); in max98095_dai2_hw_params()
1046 ni & 0xFF); in max98095_dai2_hw_params()
[all …]
Dmax98088.c972 unsigned long long ni; in max98088_dai1_hw_params() local
1011 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98088_dai1_hw_params()
1014 ni = DIV_ROUND_CLOSEST_ULL(ni, pclk); in max98088_dai1_hw_params()
1016 (ni >> 8) & 0x7F); in max98088_dai1_hw_params()
1018 ni & 0xFF); in max98088_dai1_hw_params()
1042 unsigned long long ni; in max98088_dai2_hw_params() local
1081 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98088_dai2_hw_params()
1084 ni = DIV_ROUND_CLOSEST_ULL(ni, pclk); in max98088_dai2_hw_params()
1086 (ni >> 8) & 0x7F); in max98088_dai2_hw_params()
1088 ni & 0xFF); in max98088_dai2_hw_params()
Dmax9867.c330 unsigned int ni = DIV_ROUND_CLOSEST_ULL(96ULL * 0x10000 * params_rate(params), in max9867_dai_hw_params() local
335 MAX9867_NI_HIGH_MASK, (0xFF00 & ni) >> 8); in max9867_dai_hw_params()
337 MAX9867_NI_LOW_MASK, 0x00FF & ni); in max9867_dai_hw_params()
Dmax98090.c1492 unsigned long long ni; in max98090_configure_bclk() local
1569 ni = 65536ULL * (max98090->lrclk < 50000 ? 96ULL : 48ULL) in max98090_configure_bclk()
1571 do_div(ni, (unsigned long long int)max98090->sysclk); in max98090_configure_bclk()
1573 dev_info(component->dev, "Calculating ni %lld with mi 65536\n", ni); in max98090_configure_bclk()
1575 (ni >> 8) & 0x7F); in max98090_configure_bclk()
1576 snd_soc_component_write(component, M98090_REG_CLOCK_RATIO_NI_LSB, ni & 0xFF); in max98090_configure_bclk()