Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: anish kumar <yesanishhere@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
unsigned long int bclk_rate, pclk_bclk_ratio;
int bclk_value;
- bclk_rate = params_rate(params) * 2 *
- snd_pcm_format_width(params_format(params));
+ bclk_rate = params_rate(params) * 2 * params_width(params);
pclk_bclk_ratio = max9867->pclk/bclk_rate;
- switch (snd_pcm_format_width(params_format(params))) {
+ switch (params_width(params)) {
case 8:
case 16:
switch (pclk_bclk_ratio) {