summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-sii902x.c
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-04-22 13:01:34 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:49:59 +0800
commit556cc10e2c71ab10349e50358624dad28b773375 (patch)
tree1d5d0d693d587a2d2ebf7b63a51d03b7dd8560b3 /sound/soc/fsl/imx-sii902x.c
parente2310573c9f79debefa11aa124789255744f887c (diff)
MLK-10713-2 ASoC: imx-sii902x: Add 96k and 192k sample rate support
Add 96k and 192k sample rate support for hdmi audio. Signed-off-by: Zidan Wang <zidan.wang@freescale.com> (cherry picked from commit fa94b89ab94ce78800d112d0a013d0c0901d9b78)
Diffstat (limited to 'sound/soc/fsl/imx-sii902x.c')
-rw-r--r--sound/soc/fsl/imx-sii902x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-sii902x.c b/sound/soc/fsl/imx-sii902x.c
index 8dfcf4cfde64..72c407dd4f9c 100644
--- a/sound/soc/fsl/imx-sii902x.c
+++ b/sound/soc/fsl/imx-sii902x.c
@@ -55,8 +55,10 @@ static int imx_sii902x_startup(struct snd_pcm_substream *substream)
support_rates[0] = 32000;
support_rates[1] = 48000;
+ support_rates[2] = 96000;
+ support_rates[3] = 192000;
constraint_rates.list = support_rates;
- constraint_rates.count = 2;
+ constraint_rates.count = 4;
ret = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
&constraint_rates);