ASoC: meson: axg: extend TDM maximum sample rate to 384kHz
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 7 Sep 2023 09:09:10 +0000 (11:09 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:30:00 +0000 (01:30 +0100)
The TDM HW on the axg SoC families and derivatives actually supports
384kHz sampling rate.

Update the fifo and tdm interface constraints accordingly.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20230907090910.13546-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-fifo.c
sound/soc/meson/axg-fifo.h
sound/soc/meson/axg-tdm.h

index bccfb770b339118a9997d37164721753b75ae2b8..2e3d0108179bb122c37dc13e5950d2ed21059dfe 100644 (file)
@@ -31,7 +31,7 @@ static struct snd_pcm_hardware axg_fifo_hw = {
                 SNDRV_PCM_INFO_NO_PERIOD_WAKEUP),
        .formats = AXG_FIFO_FORMATS,
        .rate_min = 5512,
-       .rate_max = 192000,
+       .rate_max = 384000,
        .channels_min = 1,
        .channels_max = AXG_FIFO_CH_MAX,
        .period_bytes_min = AXG_FIFO_BURST,
index b63acd723c870c58d4406596057002fc925d26a2..df528e8cb7c91339acfdebfb8a6d91358fdcfaaa 100644 (file)
@@ -22,7 +22,7 @@ struct snd_soc_pcm_runtime;
 
 #define AXG_FIFO_CH_MAX                        128
 #define AXG_FIFO_RATES                 (SNDRV_PCM_RATE_5512 |          \
-                                        SNDRV_PCM_RATE_8000_192000)
+                                        SNDRV_PCM_RATE_8000_384000)
 #define AXG_FIFO_FORMATS               (SNDRV_PCM_FMTBIT_S8 |          \
                                         SNDRV_PCM_FMTBIT_S16_LE |      \
                                         SNDRV_PCM_FMTBIT_S20_LE |      \
index 5774ce0916d403a4fb59116a05c661dd7343198b..42f7470b9a7f41fd948948c54d58ea30c49831be 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_192000)
+                                SNDRV_PCM_RATE_8000_384000)
 #define AXG_TDM_FORMATS                (SNDRV_PCM_FMTBIT_S8 |          \
                                 SNDRV_PCM_FMTBIT_S16_LE |      \
                                 SNDRV_PCM_FMTBIT_S20_LE |      \