From b43d3ada6a56e299ac955e52447d35be8043516e Mon Sep 17 00:00:00 2001 From: Dmitry Rokosov Date: Fri, 6 Jun 2025 17:55:36 +0300 Subject: ASoC: meson: sm1-eqdrc: set continuous rates The axg TDM HW does not depend on a selected set of rates. The hardware itself, just takes an input clock and work with it, regardless of its rate. In this way, the rates TDM can take are continuous. What might force the use of specific rate are the PLL available as clock and/or the codecs facing the TDM HW. Either way, this constraint does not belong in the TDM interface driver. Allow any rate as far as TDM is concerned by setting SNDRV_PCM_RATE_CONTINUOUS with an interval it has been tested with. Do the same change for sm1-eqdrc driver which used AXG_TDM_RATES before. Based-on: 3a02cc576acc ("ASoC: meson: axg-iface: set continuous rates") Signed-off-by: Dmitry Rokosov --- sound/soc/meson/sm1-eqdrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/meson/sm1-eqdrc.c b/sound/soc/meson/sm1-eqdrc.c index c57dae85df4b..582f846c62b3 100644 --- a/sound/soc/meson/sm1-eqdrc.c +++ b/sound/soc/meson/sm1-eqdrc.c @@ -589,7 +589,9 @@ static struct snd_soc_dai_driver sm1_eqdrc_dai_driver = { .stream_name = "Playback", .channels_min = 1, .channels_max = 2, - .rates = AXG_TDM_RATES, + .rates = SNDRV_PCM_RATE_CONTINUOUS, + .rate_min = 5512, + .rate_max = 768000, .formats = AXG_TDM_FORMATS, }, }; -- cgit v1.2.3