Merge remote-tracking branches 'asoc/topic/txx9', 'asoc/topic/uda134x', 'asoc/topic...
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / wm5100.c
index 3695b1dcbaf7d8e1b580a129a9ff3e4cc486b88f..e5f7b9dbc3c7942c8e121c7e9dbe228fd619c2a5 100644 (file)
@@ -1408,7 +1408,7 @@ static int wm5100_hw_params(struct snd_pcm_substream *substream,
        base = dai->driver->base;
 
        /* Data sizes if not using TDM */
-       wl = snd_pcm_format_width(params_format(params));
+       wl = params_width(params);
        if (wl < 0)
                return wl;
        fl = snd_soc_params_to_frame_size(params);