[alsa-devel] [PATCH] ASoC: Intel: boards: add dmic format constraint

mac.chiang at intel.com mac.chiang at intel.com
Tue Jun 18 07:48:46 CEST 2019


From: Mac Chiang <mac.chiang at intel.com>

platform dmic recording fixup 16bits

Signed-off-by: Mac Chiang <mac.chiang at intel.com>
---
 sound/soc/intel/boards/bxt_da7219_max98357a.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/intel/boards/bxt_da7219_max98357a.c b/sound/soc/intel/boards/bxt_da7219_max98357a.c
index 5cadb7f..ac06408 100644
--- a/sound/soc/intel/boards/bxt_da7219_max98357a.c
+++ b/sound/soc/intel/boards/bxt_da7219_max98357a.c
@@ -330,6 +330,9 @@ static int broxton_dmic_startup(struct snd_pcm_substream *substream)
 	snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
 			&constraints_channels_quad);
 
+	runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE;
+	snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16);
+
 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
 			SNDRV_PCM_HW_PARAM_RATE, &constraints_rates);
 }
-- 
2.7.4



More information about the Alsa-devel mailing list