Commit 730674b2 authored by Jerome Brunet's avatar Jerome Brunet Committed by Mark Brown

ASoC: meson: tdm: add sample rate support up to 768kHz

Add support for 705.6kHz and 768kHz sample rates
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20240628123256.2019224-1-jbrunet@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 28892123
...@@ -32,7 +32,7 @@ static const struct snd_pcm_hardware axg_fifo_hw = { ...@@ -32,7 +32,7 @@ static const struct snd_pcm_hardware axg_fifo_hw = {
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP), SNDRV_PCM_INFO_NO_PERIOD_WAKEUP),
.formats = AXG_FIFO_FORMATS, .formats = AXG_FIFO_FORMATS,
.rate_min = 5512, .rate_min = 5512,
.rate_max = 384000, .rate_max = 768000,
.channels_min = 1, .channels_min = 1,
.channels_max = AXG_FIFO_CH_MAX, .channels_max = AXG_FIFO_CH_MAX,
.period_bytes_min = AXG_FIFO_BURST, .period_bytes_min = AXG_FIFO_BURST,
......
...@@ -112,7 +112,7 @@ static struct snd_soc_dai_driver axg_frddr_dai_drv = { ...@@ -112,7 +112,7 @@ static struct snd_soc_dai_driver axg_frddr_dai_drv = {
.channels_max = AXG_FIFO_CH_MAX, .channels_max = AXG_FIFO_CH_MAX,
.rates = SNDRV_PCM_RATE_CONTINUOUS, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5515, .rate_min = 5515,
.rate_max = 384000, .rate_max = 768000,
.formats = AXG_FIFO_FORMATS, .formats = AXG_FIFO_FORMATS,
}, },
.ops = &axg_frddr_ops, .ops = &axg_frddr_ops,
...@@ -189,7 +189,7 @@ static struct snd_soc_dai_driver g12a_frddr_dai_drv = { ...@@ -189,7 +189,7 @@ static struct snd_soc_dai_driver g12a_frddr_dai_drv = {
.channels_max = AXG_FIFO_CH_MAX, .channels_max = AXG_FIFO_CH_MAX,
.rates = SNDRV_PCM_RATE_CONTINUOUS, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5515, .rate_min = 5515,
.rate_max = 384000, .rate_max = 768000,
.formats = AXG_FIFO_FORMATS, .formats = AXG_FIFO_FORMATS,
}, },
.ops = &g12a_frddr_ops, .ops = &g12a_frddr_ops,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define AXG_TDM_NUM_LANES 4 #define AXG_TDM_NUM_LANES 4
#define AXG_TDM_CHANNEL_MAX 128 #define AXG_TDM_CHANNEL_MAX 128
#define AXG_TDM_RATES (SNDRV_PCM_RATE_5512 | \ #define AXG_TDM_RATES (SNDRV_PCM_RATE_5512 | \
SNDRV_PCM_RATE_8000_384000) SNDRV_PCM_RATE_8000_768000)
#define AXG_TDM_FORMATS (SNDRV_PCM_FMTBIT_S8 | \ #define AXG_TDM_FORMATS (SNDRV_PCM_FMTBIT_S8 | \
SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_LE | \ SNDRV_PCM_FMTBIT_S20_LE | \
......
...@@ -131,7 +131,7 @@ static struct snd_soc_dai_driver axg_toddr_dai_drv = { ...@@ -131,7 +131,7 @@ static struct snd_soc_dai_driver axg_toddr_dai_drv = {
.channels_max = AXG_FIFO_CH_MAX, .channels_max = AXG_FIFO_CH_MAX,
.rates = SNDRV_PCM_RATE_CONTINUOUS, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5515, .rate_min = 5515,
.rate_max = 384000, .rate_max = 768000,
.formats = AXG_FIFO_FORMATS, .formats = AXG_FIFO_FORMATS,
}, },
.ops = &axg_toddr_ops, .ops = &axg_toddr_ops,
...@@ -228,7 +228,7 @@ static struct snd_soc_dai_driver g12a_toddr_dai_drv = { ...@@ -228,7 +228,7 @@ static struct snd_soc_dai_driver g12a_toddr_dai_drv = {
.channels_max = AXG_FIFO_CH_MAX, .channels_max = AXG_FIFO_CH_MAX,
.rates = SNDRV_PCM_RATE_CONTINUOUS, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5515, .rate_min = 5515,
.rate_max = 384000, .rate_max = 768000,
.formats = AXG_FIFO_FORMATS, .formats = AXG_FIFO_FORMATS,
}, },
.ops = &g12a_toddr_ops, .ops = &g12a_toddr_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment