From 278ecc5b74adae50547e57cf147b0bb6147cd3d8 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Mon, 22 Apr 2024 14:10:07 +0300 Subject: [PATCH] topology2: intel: bt-generic.conf: fix rate constraints Commit c77a4feb2f1f1 ("topology2: pcm_caps: Remove defaults for rate_min/rate_max") changed how rate constraints are described in topology. After this change, the rate_min/max was ignored by SOF Linux driver and the rate was incorrectly limited to 48000Hz for these topologies. Fix this issue by enumerating the supported sampling rates with "rates". Link: https://github.com/thesofproject/sof/issues/9067 Signed-off-by: Kai Vehmanen --- tools/topology/topology2/platform/intel/bt-generic.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/topology/topology2/platform/intel/bt-generic.conf b/tools/topology/topology2/platform/intel/bt-generic.conf index 85c121a01026..2b0fd8b80753 100644 --- a/tools/topology/topology2/platform/intel/bt-generic.conf +++ b/tools/topology/topology2/platform/intel/bt-generic.conf @@ -235,8 +235,7 @@ Object.PCM.pcm [ direction "playback" name $BT_PB_PCM_CAPS formats 'S16_LE' - rate_min 8000 - rate_max 48000 + rates '8000,16000,48000' channels_min 1 channels_max 2 } @@ -245,8 +244,7 @@ Object.PCM.pcm [ direction "capture" name $BT_CP_PCM_CAPS formats 'S16_LE' - rate_min 8000 - rate_max 48000 + rates '8000,16000,48000' channels_min 1 channels_max 2 }