Skip to content

ASoC: SOF: ipc4-pcm: support multiple configs in BE DAIs - #4137

Merged
plbossart merged 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:202301-ipc4-copier-multi-hwconfig-fix
Feb 16, 2023
Merged

plbossart merged 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:202301-ipc4-copier-multi-hwconfig-fix

Conversation

@kv2019i

@kv2019i kv2019i commented Jan 12, 2023 •

Copy link
Copy Markdown
Collaborator

Depends on: thesofproject/sof#7091

ASoC: SOF: ipc4-pcm: support multiple configs for BE DAIs

Backend DAIs may support multiple audio formats. Modify pipeline
setup to select a suitable configuration based on topology and
frontend DAI runtime configuration.

For sampling rate, if one of the BE DAI configurations has
a sampling rate matching that of FE DAI, configure BE DAI to
this rate.

For sample format, the current code hardcodes DAI copier sample format
to 32bit for both playback and capture pipelines. This is not always
desired, so lift the limitation and set the sample format based on
topology definitions for the copiers. For capture pipelines, we want to
set the BE DAI pipeline format based on topology instead of using the FE
DAI format. This covers the common use-case where BE DAI outputs data at
a higher sample precision and sample width is reduced later in the
pipeline. Instead of hardcoding to 32bit, use the BE DAI copier output
format defined in topology.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants