Home
last modified time | relevance | path

Searched refs:i2sclock (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/sound/soc/tegra/
H A Dtegra20_i2s.c147 int ret, sample_size, srate, i2sclock, bitcnt; in tegra20_i2s_hw_params() local
175 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra20_i2s_hw_params()
177 ret = clk_set_rate(i2s->clk_i2s, i2sclock); in tegra20_i2s_hw_params()
183 bitcnt = (i2sclock / (2 * srate)) - 1; in tegra20_i2s_hw_params()
188 if (i2sclock % (2 * srate)) in tegra20_i2s_hw_params()
H A Dtegra30_i2s.c141 int ret, sample_size, srate, i2sclock, bitcnt; in tegra30_i2s_hw_params() local
162 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra30_i2s_hw_params()
164 bitcnt = (i2sclock / (2 * srate)) - 1; in tegra30_i2s_hw_params()
168 ret = clk_set_rate(i2s->clk_i2s, i2sclock); in tegra30_i2s_hw_params()
176 if (i2sclock % (2 * srate)) in tegra30_i2s_hw_params()