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 <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2024-06-11 12:45:12 +03:00 committed by Kai Vehmanen
parent 7ee322f70a
commit 1470e6c585
1 changed files with 2 additions and 4 deletions

View File

@ -35,15 +35,13 @@ Object.PCM.pcm [
direction "playback" direction "playback"
name $ANALOG_PLAYBACK_PCM name $ANALOG_PLAYBACK_PCM
formats 'S32_LE,S24_LE,S16_LE' formats 'S32_LE,S24_LE,S16_LE'
rate_min 8000 rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
rate_max 192000
} }
Object.PCM.pcm_caps.2 { Object.PCM.pcm_caps.2 {
direction "capture" direction "capture"
name $ANALOG_CAPTURE_PCM name $ANALOG_CAPTURE_PCM
formats 'S32_LE,S24_LE,S16_LE' formats 'S32_LE,S24_LE,S16_LE'
rate_min 8000 rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
rate_max 192000
} }
direction duplex direction duplex
} }