aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/intel/boards/cht_bsw_rt5672.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c
index 23fe04075142..5621ccd92992 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5672.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5672.c
@@ -222,20 +222,10 @@ static int cht_codec_fixup(struct snd_soc_pcm_runtime *rtd,
222 return 0; 222 return 0;
223} 223}
224 224
225static unsigned int rates_48000[] = {
226 48000,
227};
228
229static struct snd_pcm_hw_constraint_list constraints_48000 = {
230 .count = ARRAY_SIZE(rates_48000),
231 .list = rates_48000,
232};
233
234static int cht_aif1_startup(struct snd_pcm_substream *substream) 225static int cht_aif1_startup(struct snd_pcm_substream *substream)
235{ 226{
236 return snd_pcm_hw_constraint_list(substream->runtime, 0, 227 return snd_pcm_hw_constraint_single(substream->runtime,
237 SNDRV_PCM_HW_PARAM_RATE, 228 SNDRV_PCM_HW_PARAM_RATE, 48000);
238 &constraints_48000);
239} 229}
240 230
241static struct snd_soc_ops cht_aif1_ops = { 231static struct snd_soc_ops cht_aif1_ops = {