Merge branch 'topic/hw-constraint-single' into for-next
[firefly-linux-kernel-4.4.55.git] / sound / soc / ux500 / ux500_msp_dai.c
index 6ba8ae9ecc7a13a04624b2fe760cdad9d4425735..6d5698b25bd4b25c92c128860527245167d665d0 100644 (file)
@@ -522,9 +522,9 @@ static int ux500_msp_dai_hw_params(struct snd_pcm_substream *substream,
                slots_active = hweight32(mask);
                dev_dbg(dai->dev, "TDM-slots active: %d", slots_active);
 
-               snd_pcm_hw_constraint_minmax(runtime,
+               snd_pcm_hw_constraint_single(runtime,
                                SNDRV_PCM_HW_PARAM_CHANNELS,
-                               slots_active, slots_active);
+                               slots_active);
                break;
 
        default: