]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/soc/sunxi/sun4i-i2s.c
ASoC: sun4i-i2s: Replace call to params_width by local variable
[linux.git] / sound / soc / sunxi / sun4i-i2s.c
index 9ef784b8867c1c7088834e74c263186a9695d102..69162af9fd65f7c04bdc03d628d9907a01100686 100644 (file)
@@ -487,7 +487,7 @@ static int sun4i_i2s_hw_params(struct snd_pcm_substream *substream,
        }
        i2s->playback_dma_data.addr_width = width;
 
-       sr = i2s->variant->get_sr(i2s, params_width(params));
+       sr = i2s->variant->get_sr(i2s, word_size);
        if (sr < 0)
                return -EINVAL;