ASoC: Intel: Boards: Add 4-channel DMIC fixup.
authorDharageswari R <dharageswari.r@intel.com>
Wed, 31 May 2017 05:00:26 +0000 (10:30 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 19:00:43 +0000 (20:00 +0100)
This patch adds a 4-channel dmic fixup so that DMIC copier will receive
4 channel data and further selection will be done by mic-select module.

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bxt_rt298.c

index 1a68d043c803331afeb4c8acabacb3844816e02e..36ee7480e9f166724bb585b76bdc0e8f9ae2e6cb 100644 (file)
@@ -222,16 +222,13 @@ static int broxton_dmic_fixup(struct snd_soc_pcm_runtime *rtd,
 {
        struct snd_interval *channels = hw_param_interval(params,
                                                SNDRV_PCM_HW_PARAM_CHANNELS);
-       if (params_channels(params) == 2)
-               channels->min = channels->max = 2;
-       else
-               channels->min = channels->max = 4;
+       channels->min = channels->max = 4;
 
        return 0;
 }
 
 static unsigned int channels_dmic[] = {
-       2, 4,
+       1, 2, 3, 4,
 };
 
 static struct snd_pcm_hw_constraint_list constraints_dmic_channels = {