diff options
| author | Dmitry Rokosov <ddrokosov@salutedevices.com> | 2025-06-06 17:55:36 +0300 |
|---|---|---|
| committer | Dmitry Rokosov <rockosov@rulkc.org> | 2026-08-13 14:41:33 +0300 |
| commit | b43d3ada6a56e299ac955e52447d35be8043516e (patch) | |
| tree | b9126f785b86c59b0c3ce4f14f62ed458d76c8df | |
| parent | a62732985ae50e93f690878c21f176ce0adbbd8c (diff) | |
| download | linux-b43d3ada6a56e299ac955e52447d35be8043516e.tar.gz linux-b43d3ada6a56e299ac955e52447d35be8043516e.zip | |
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 <rockosov@rulkc.org>
| -rw-r--r-- | sound/soc/meson/sm1-eqdrc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, }, }; |
