Skip to content

Volume: Improve PCM format handling in params and prepare - #1136

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
singalsu:volume_improve_formats_handling
Mar 21, 2019
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
singalsu:volume_improve_formats_handling

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

This patch removes from params function the setting of component's
own stored frame_fmt since the variable cd->sink_format was not set.

In prepare function the stored frame_fmt is stored based on stream
direction. In playback it's set from source and in capture from sink.
This way the format matches the host component.

These changes help other components in the pipeline to operate with
correct PCM format.

Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com

This patch removes from params function the setting of component's
own stored frame_fmt since the variable cd->sink_format was not set.

In prepare function the frame_fmt is stored based on stream
direction. In playback it's set from source and in capture from sink.
This way the format matches the host component side of stream.

These changes help other components in the pipeline to operate with
correct PCM format.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu
singalsu force-pushed the volume_improve_formats_handling branch from f2acf1e to c07ee51 Compare March 15, 2019 14:11
@singalsu

Copy link
Copy Markdown
Collaborator Author

Update: I fixed commit text.

Comment thread src/audio/volume.c Resolved
@lgirdwood

Copy link
Copy Markdown
Member

Still pending on some CI

@singalsu

Copy link
Copy Markdown
Collaborator Author

@tlauda Thanks for suggesting this fix!

@wenqingfu

Copy link
Copy Markdown

@lgirdwood @mmaka1 CI is complete, two approvals, good to go.

@lgirdwood
lgirdwood merged commit c838ad0 into thesofproject:master Mar 21, 2019
@singalsu
singalsu deleted the volume_improve_formats_handling branch January 27, 2021 08:49
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.

5 participants