From 1470e6c58529788285794be223a1de54688114f2 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 11 Jun 2024 12:45:12 +0300 Subject: [PATCH] Tools: Topology2: Use rates instead of rate_min/max in benchmark The rate_min/rate_max is obsolete, should use rates with list of rates to support. Without this change the playback of non-48 kHz content happens with 48 kHz rate with pitch shift effect. Aplay shows only a warning. Signed-off-by: Seppo Ingalsuo --- tools/topology/topology2/cavs-benchmark-hda.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/topology/topology2/cavs-benchmark-hda.conf b/tools/topology/topology2/cavs-benchmark-hda.conf index ac71f39a0e98..ca3a393c14ca 100644 --- a/tools/topology/topology2/cavs-benchmark-hda.conf +++ b/tools/topology/topology2/cavs-benchmark-hda.conf @@ -35,15 +35,13 @@ Object.PCM.pcm [ direction "playback" name $ANALOG_PLAYBACK_PCM formats 'S32_LE,S24_LE,S16_LE' - rate_min 8000 - rate_max 192000 + rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000" } Object.PCM.pcm_caps.2 { direction "capture" name $ANALOG_CAPTURE_PCM formats 'S32_LE,S24_LE,S16_LE' - rate_min 8000 - rate_max 192000 + rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000" } direction duplex }