ASoC: n810: Use snd_pcm_hw_constraint_single()
[firefly-linux-kernel-4.4.55.git] / sound / soc / omap / n810.c
index dcb5336b569815b8958e2ecb572710930ca425cb..190f868e78b24af37d8442d378c06aeb8ec6aaf2 100644 (file)
@@ -99,8 +99,7 @@ static int n810_startup(struct snd_pcm_substream *substream)
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct snd_soc_pcm_runtime *rtd = substream->private_data;
 
-       snd_pcm_hw_constraint_minmax(runtime,
-                                    SNDRV_PCM_HW_PARAM_CHANNELS, 2, 2);
+       snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_CHANNELS, 2);
 
        n810_ext_control(&rtd->card->dapm);
        return clk_prepare_enable(sys_clkout2);