63b38b65eb63043fc24d76f9621851576c1be1ea
[openwrt/staging/ynezz.git] /
1 From 2bc81e99f261aa6eafa900453b477dd46d568d73 Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Fri, 19 Jan 2018 15:45:21 +0800
4 Subject: [PATCH] MLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate
5
6 support 768Hz sample rate and 2.8MHz for DSD
7
8 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
9 ---
10 sound/soc/fsl/fsl_sai.c | 7 ++-----
11 1 file changed, 2 insertions(+), 5 deletions(-)
12
13 --- a/sound/soc/fsl/fsl_sai.c
14 +++ b/sound/soc/fsl/fsl_sai.c
15 @@ -91,7 +91,8 @@ static struct fsl_sai_soc_data fsl_sai_i
16 static const unsigned int fsl_sai_rates[] = {
17 8000, 11025, 12000, 16000, 22050,
18 24000, 32000, 44100, 48000, 64000,
19 - 88200, 96000, 176400, 192000
20 + 88200, 96000, 176400, 192000, 352800,
21 + 384000, 705600, 768000, 1411200, 2822400,
22 };
23
24 static const struct snd_pcm_hw_constraint_list fsl_sai_rate_constraints = {
25 @@ -916,8 +917,6 @@ static struct snd_soc_dai_driver fsl_sai
26 .stream_name = "CPU-Playback",
27 .channels_min = 1,
28 .channels_max = 32,
29 - .rate_min = 8000,
30 - .rate_max = 192000,
31 .rates = SNDRV_PCM_RATE_KNOT,
32 .formats = FSL_SAI_FORMATS,
33 },
34 @@ -925,8 +924,6 @@ static struct snd_soc_dai_driver fsl_sai
35 .stream_name = "CPU-Capture",
36 .channels_min = 1,
37 .channels_max = 32,
38 - .rate_min = 8000,
39 - .rate_max = 192000,
40 .rates = SNDRV_PCM_RATE_KNOT,
41 .formats = FSL_SAI_FORMATS,
42 },