]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/soc/sunxi/sun4i-i2s.c
ASoC: sun4i-i2s: Use the actual format width instead of an hardcoded one
[linux.git] / sound / soc / sunxi / sun4i-i2s.c
index cdc3fa60ff33a5fd9796d1c5f423600632c58f7e..9ef784b8867c1c7088834e74c263186a9695d102 100644 (file)
@@ -359,7 +359,7 @@ static int sun4i_i2s_set_clk_rate(struct snd_soc_dai *dai,
        if (i2s->variant->has_fmt_set_lrck_period)
                regmap_update_bits(i2s->regmap, SUN4I_I2S_FMT0_REG,
                                   SUN8I_I2S_FMT0_LRCK_PERIOD_MASK,
-                                  SUN8I_I2S_FMT0_LRCK_PERIOD(32));
+                                  SUN8I_I2S_FMT0_LRCK_PERIOD(slot_width));
 
        return 0;
 }