Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: soc-utils: allow sample rate up to 768kHz for the dummy dai

The dummy DAI should allow any (reasonable) rates possible.
Make the rate continuous for dummy and set range from 5512Hz to 768kHz

The change is mostly cosmetic as dummy is skipped when setting
the hwparams.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20240628120130.2015665-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jerome Brunet and committed by
Mark Brown
4adf454f 36ac1e29

+6 -3
+6 -3
sound/soc/soc-utils.c
··· 144 144 .endianness = 1, 145 145 }; 146 146 147 - #define STUB_RATES SNDRV_PCM_RATE_8000_384000 148 147 #define STUB_FORMATS (SNDRV_PCM_FMTBIT_S8 | \ 149 148 SNDRV_PCM_FMTBIT_U8 | \ 150 149 SNDRV_PCM_FMTBIT_S16_LE | \ ··· 197 198 .stream_name = "Playback", 198 199 .channels_min = 1, 199 200 .channels_max = 384, 200 - .rates = STUB_RATES, 201 + .rates = SNDRV_PCM_RATE_CONTINUOUS, 202 + .rate_min = 5512, 203 + .rate_max = 768000, 201 204 .formats = STUB_FORMATS, 202 205 }, 203 206 .capture = { 204 207 .stream_name = "Capture", 205 208 .channels_min = 1, 206 209 .channels_max = 384, 207 - .rates = STUB_RATES, 210 + .rates = SNDRV_PCM_RATE_CONTINUOUS, 211 + .rate_min = 5512, 212 + .rate_max = 768000, 208 213 .formats = STUB_FORMATS, 209 214 }, 210 215 .ops = &dummy_dai_ops,