summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards
diff options
context:
space:
mode:
authorDharageswari R <dharageswari.r@intel.com>2017-05-31 08:00:26 +0300
committerMark Brown <broonie@kernel.org>2017-06-06 22:00:43 +0300
commite8883cb61aa0a91980222e5e9d114100783eb7e2 (patch)
tree30ed5b2723f9af3ac84d0ecaf6106e6f6e157a11 /sound/soc/intel/boards
parent7a1b749b34e8238acae8a039a8f6822f4f4e2061 (diff)
downloadlinux-e8883cb61aa0a91980222e5e9d114100783eb7e2.tar.xz
ASoC: Intel: Boards: Add 4-channel DMIC fixup.
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>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r--sound/soc/intel/boards/bxt_rt298.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c
index 1a68d043c803..36ee7480e9f1 100644
--- a/sound/soc/intel/boards/bxt_rt298.c
+++ b/sound/soc/intel/boards/bxt_rt298.c
@@ -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 = {