Skip to content
Snippets Groups Projects
Unverified Commit 0d11bab8 authored by Shengjiu Wang's avatar Shengjiu Wang Committed by Mark Brown
Browse files

ASoC: fsl_sai: Add support for more sample rates


Add support for more sample rates, because PDM format
bitstream has higher sample rates. for example DSD512
format, the bit clock is 22.5792MHz, if the word width
is U8_LE, then the max sample rate is 2822400.

Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1655451877-16382-4-git-send-email-shengjiu.wang@nxp.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 46657704
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
static const unsigned int fsl_sai_rates[] = { static const unsigned int fsl_sai_rates[] = {
8000, 11025, 12000, 16000, 22050, 8000, 11025, 12000, 16000, 22050,
24000, 32000, 44100, 48000, 64000, 24000, 32000, 44100, 48000, 64000,
88200, 96000, 176400, 192000 88200, 96000, 176400, 192000, 352800,
384000, 705600, 768000, 1411200, 2822400,
}; };
static const struct snd_pcm_hw_constraint_list fsl_sai_rate_constraints = { static const struct snd_pcm_hw_constraint_list fsl_sai_rate_constraints = {
...@@ -763,7 +764,7 @@ static struct snd_soc_dai_driver fsl_sai_dai_template = { ...@@ -763,7 +764,7 @@ static struct snd_soc_dai_driver fsl_sai_dai_template = {
.channels_min = 1, .channels_min = 1,
.channels_max = 32, .channels_max = 32,
.rate_min = 8000, .rate_min = 8000,
.rate_max = 192000, .rate_max = 2822400,
.rates = SNDRV_PCM_RATE_KNOT, .rates = SNDRV_PCM_RATE_KNOT,
.formats = FSL_SAI_FORMATS, .formats = FSL_SAI_FORMATS,
}, },
...@@ -772,7 +773,7 @@ static struct snd_soc_dai_driver fsl_sai_dai_template = { ...@@ -772,7 +773,7 @@ static struct snd_soc_dai_driver fsl_sai_dai_template = {
.channels_min = 1, .channels_min = 1,
.channels_max = 32, .channels_max = 32,
.rate_min = 8000, .rate_min = 8000,
.rate_max = 192000, .rate_max = 2822400,
.rates = SNDRV_PCM_RATE_KNOT, .rates = SNDRV_PCM_RATE_KNOT,
.formats = FSL_SAI_FORMATS, .formats = FSL_SAI_FORMATS,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment