]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: meson: tdm: add sample rate support up to 768kHz
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 28 Jun 2024 12:32:54 +0000 (14:32 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jun 2024 12:39:33 +0000 (13:39 +0100)
Add support for 705.6kHz and 768kHz sample rates

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20240628123256.2019224-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-fifo.c
sound/soc/meson/axg-frddr.c
sound/soc/meson/axg-tdm.h
sound/soc/meson/axg-toddr.c

index 59abe0b3c59fb40ed20cc97a4cff344fd85ed49d..7e6090af720b9a2b569e20f5a25e702f0338e7d8 100644 (file)
@@ -32,7 +32,7 @@ static const struct snd_pcm_hardware axg_fifo_hw = {
                 SNDRV_PCM_INFO_NO_PERIOD_WAKEUP),
        .formats = AXG_FIFO_FORMATS,
        .rate_min = 5512,
-       .rate_max = 384000,
+       .rate_max = 768000,
        .channels_min = 1,
        .channels_max = AXG_FIFO_CH_MAX,
        .period_bytes_min = AXG_FIFO_BURST,
index e97d43ae7fd291da826634de659147a319f400c1..e70c8c34c7db86ad1eceb7e671a8d746bb3dbcdf 100644 (file)
@@ -112,7 +112,7 @@ static struct snd_soc_dai_driver axg_frddr_dai_drv = {
                .channels_max   = AXG_FIFO_CH_MAX,
                .rates          = SNDRV_PCM_RATE_CONTINUOUS,
                .rate_min       = 5515,
-               .rate_max       = 384000,
+               .rate_max       = 768000,
                .formats        = AXG_FIFO_FORMATS,
        },
        .ops            = &axg_frddr_ops,
@@ -189,7 +189,7 @@ static struct snd_soc_dai_driver g12a_frddr_dai_drv = {
                .channels_max   = AXG_FIFO_CH_MAX,
                .rates          = SNDRV_PCM_RATE_CONTINUOUS,
                .rate_min       = 5515,
-               .rate_max       = 384000,
+               .rate_max       = 768000,
                .formats        = AXG_FIFO_FORMATS,
        },
        .ops            = &g12a_frddr_ops,
index daaca10fec9e2bff82164ccccea75f1aefadaba1..1a17f546ce6e80ac6b1354f8e85e29f4ed6b61fd 100644 (file)
@@ -16,7 +16,7 @@
 #define AXG_TDM_NUM_LANES      4
 #define AXG_TDM_CHANNEL_MAX    128
 #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 |          \
                                 SNDRV_PCM_FMTBIT_S16_LE |      \
                                 SNDRV_PCM_FMTBIT_S20_LE |      \
index e03a6e21c1c649e6e9aa5a55fb3c3a2bb2e899e9..03512da4092b66a2c19da6e3efc794f12f71b321 100644 (file)
@@ -131,7 +131,7 @@ static struct snd_soc_dai_driver axg_toddr_dai_drv = {
                .channels_max   = AXG_FIFO_CH_MAX,
                .rates          = SNDRV_PCM_RATE_CONTINUOUS,
                .rate_min       = 5515,
-               .rate_max       = 384000,
+               .rate_max       = 768000,
                .formats        = AXG_FIFO_FORMATS,
        },
        .ops            = &axg_toddr_ops,
@@ -228,7 +228,7 @@ static struct snd_soc_dai_driver g12a_toddr_dai_drv = {
                .channels_max   = AXG_FIFO_CH_MAX,
                .rates          = SNDRV_PCM_RATE_CONTINUOUS,
                .rate_min       = 5515,
-               .rate_max       = 384000,
+               .rate_max       = 768000,
                .formats        = AXG_FIFO_FORMATS,
        },
        .ops            = &g12a_toddr_ops,