Tools: Topology2: Fix cavs-nocodec.conf SSP2 PCM rates#9382
Merged
kv2019i merged 1 commit intothesofproject:mainfrom Aug 22, 2024
Merged
Tools: Topology2: Fix cavs-nocodec.conf SSP2 PCM rates#9382kv2019i merged 1 commit intothesofproject:mainfrom
kv2019i merged 1 commit intothesofproject:mainfrom
Conversation
The rate_min and rate_max no more work with IPC4 topologies. The
SSP2 PCM host pipeline contains a sample rate converter so it can
support multiple rates. With attempt to play (or capture) with
other than 48 kHz the error is printed and resulting playback has
wrong pitch:
Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
please, try the plug plugin
Use of rates with list of all rates in topology fixes the issue.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
plbossart
reviewed
Aug 21, 2024
| formats 'S16_LE,S24_LE,S32_LE' | ||
| rate_min 8000 | ||
| rate_max 192000 | ||
| rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000" |
| formats 'S16_LE,S24_LE,S32_LE' | ||
| rate_min 8000 | ||
| rate_max 192000 | ||
| rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000" |
Collaborator
Author
There was a problem hiding this comment.
Yep. I'll test it if can be used.
Collaborator
Author
There was a problem hiding this comment.
Seems it can't be used. In tplg build:
[1/142] Generating sof-tgl-nocodec.tplg
saving nhlt as binary in nhlt-sof-tgl-nocodec.bin
ALSA lib pcm.c:366:(split_rate) unsupported stream rate 24000
ALSA lib parser.c:211:(tplg_load_config) failed to parse topology
Unable to load configuration: Invalid argument
Member
| formats 'S16_LE,S24_LE,S32_LE' | ||
| rate_min 8000 | ||
| rate_max 192000 | ||
| rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000" |
Member
There was a problem hiding this comment.
do we support 44.1? Not sure how the clocks would be derived or maybe this assumes an SRC?
Collaborator
Author
There was a problem hiding this comment.
Yes, there's a SRC in host pipeline for SSP2. I'm trying to replicate with this topology an issue with 44.1 kHz volume with HiFi4 and noticed other than 48 kHz no more worked.
lgirdwood
approved these changes
Aug 21, 2024
Member
lgirdwood
left a comment
There was a problem hiding this comment.
We can circle back on 24k if needed, not a blocker to merge. Best to focus on fixing the Hifi 4 SRC issue.
kv2019i
approved these changes
Aug 22, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rate_min and rate_max no more work with IPC4 topologies. The SSP2 PCM host pipeline contains a sample rate converter so it can support multiple rates. With attempt to play (or capture) with other than 48 kHz the error is printed and resulting playback has wrong pitch:
Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
please, try the plug plugin
Use of rates with list of all rates in topology fixes the issue.