Skip to content

[BUG]DEMUX comp not work normally with channel 4 to 2 with format conversion #2959

@xiulipan

Description

@xiulipan

Describe the bug
Used to be #2533
The DEMUX should copy the data from source to sink without any error, but now with DEMXU comp, the copy out data is broken when copy channel 4 to channel 2 with format conversion

To Reproduce
Use demux test tplg sof-apl-demux-pcm512x.tplg (#2958 ) to replace the sof-apl-nocodec.tplg with sof-apl-demux-nocodec.tplg

aplay -Dhw:0,0 -f s32_le -c 4 -r 48000 wav/32le-4ch-sin-100-400hz.wav -vvv
arecord -Dhw:0,4 -f s16_le -c 2 -r 48000 2ch_s16.wav -vvv
arecord -Dhw:0,4 -f s32_le -c 2 -r 48000 2ch_s32.wav -vvv

Reproduction Rate
100%

Expected behavior
The record wav should be same with s16le and s32le

Impact
This will be a stopper for echo reference and smart amplifier

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: sof-apl-demux-nocodec.tplg rename to sof-apl-nocodec.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: APL

Screenshots or console output

image
All wav files and trace log attached.
wavandlog.zip

Metadata

Metadata

Labels

Mux/DemuxbugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions