Skip to content

Commit

Permalink
topology2: intel: bt-generic.conf: fix rate constraints
Browse files Browse the repository at this point in the history
Commit c77a4fe ("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 <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i authored and lgirdwood committed Apr 26, 2024
1 parent e603d8f commit 278ecc5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/topology/topology2/platform/intel/bt-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 278ecc5

Please sign in to comment.