diff options
author | G Kranthi <gudishax.kranthikumar@intel.com> | 2017-03-24 13:40:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-29 07:53:24 -0400 |
commit | e59ed0875b0681ebd1e5062b739742f98f24274c (patch) | |
tree | 897844989f9faf4f7a59a94293e4ff004cba85a4 | |
parent | 66d6bbc6c0beb04c1dfeb0107d4d828f3e1959ee (diff) |
ASoC: Intel: Skylake: Add 16-bit constraint to FE bxt_rt298 machine
Add constraint to FE to restrict sample format to 16-bit for bxt_rt298
machine
Signed-off-by: G Kranthi <gudishax.kranthikumar@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/boards/bxt_rt298.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c index 176c080a9818..1a68d043c803 100644 --- a/sound/soc/intel/boards/bxt_rt298.c +++ b/sound/soc/intel/boards/bxt_rt298.c | |||
@@ -274,12 +274,15 @@ static int bxt_fe_startup(struct snd_pcm_substream *substream) | |||
274 | * on this platform for PCM device we support: | 274 | * on this platform for PCM device we support: |
275 | * 48Khz | 275 | * 48Khz |
276 | * stereo | 276 | * stereo |
277 | * 16-bit audio | ||
277 | */ | 278 | */ |
278 | 279 | ||
279 | runtime->hw.channels_max = 2; | 280 | runtime->hw.channels_max = 2; |
280 | snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, | 281 | snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, |
281 | &constraints_channels); | 282 | &constraints_channels); |
282 | 283 | ||
284 | runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; | ||
285 | snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16); | ||
283 | snd_pcm_hw_constraint_list(runtime, 0, | 286 | snd_pcm_hw_constraint_list(runtime, 0, |
284 | SNDRV_PCM_HW_PARAM_RATE, &constraints_rates); | 287 | SNDRV_PCM_HW_PARAM_RATE, &constraints_rates); |
285 | 288 | ||