Skip to content

[BUG IMX] Input/output error when mixing two streams #3802

Description

@iuliana-prodan

Describe the bug
Input/output error when when mixing two streams.

To Reproduce
$aplay -Dhw:1,0 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom & aplay -Dhw:1,1 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom &

Reproduction Rate
100%

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: 5.10
    • SOF: master
  2. Name of the topology file
    • Topology: sof-imx8-wm8960-mixer.tplg, sof-imx8-cs42888-mixer.tplg, sof-imx8mp-wm8960-mixer.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: i.MX8QXP/i.MX8QM/i.MX8MP

Screenshots or console output

root@imx8qxpc0mek:~# aplay -Dhw:1,0 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom & aplay -Dhw:1,1 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom &
[1] 560
[2] 561
root@imx8qxpc0mek:~# Playing raw data '/dev/urandom' : Playing raw data '/dev/urandom' : Signed 16 bit Little Endian, Signed 16 bit Little Endian, Rate 48000 Hz, Rate 48000 Hz, StereoStereo
root@imx8qxpc0mek:~# aplay: pcm_write:2061: aplay: pcm_write:2061: write error: Input/output errorwrite error: Input/output error
[1]- Done(1) aplay -Dhw:1,0 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom
[2]+ Done(1) aplay -Dhw:1,1 -f S16_LE -c 2 -r 48000 -t raw /dev/urandom
root@imx8qxpc0mek:~#
root@imx8qxpc0mek:~# ./sof-logger -t -l /lib/firmware/imx/sof/sof-imx8x.ldc TIMESTAMP DELTA C# COMPONENT LOCATION CONTENT
[81523859753.437500] ( nan) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81523860036.666672] ( 283.229156) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81523892089.583344] ( 32052.916016) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81523892409.270844] ( 319.687500) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81523892734.635422] ( 325.364594) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81523893066.562500] ( 331.927094) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81523893349.479172] ( 282.916656) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81523925364.114594] ( 32014.634766) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81523925676.041672] ( 311.927094) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81523926021.927094] ( 345.885406) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81523926353.229172] ( 331.302094) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81523926644.479172] ( 291.250000) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81523958758.072922] ( 32113.593750) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81523959075.312500] ( 317.239594) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81523959400.260422] ( 324.947906) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81523959731.562500] ( 331.302094) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81523960014.166672] ( 282.604156) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81523992138.333344] ( 32124.166016) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81523992456.979172] ( 318.645844) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81523992788.906250] ( 331.927094) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81523993112.395844] ( 323.489594) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81523993395.312500] ( 282.916656) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81524025452.447922] ( 32057.134766) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81524025764.062500] ( 311.614594) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81524026087.135422] ( 323.072906) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81524026410.312500] ( 323.177094) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 < period bytes 192, possible glitch
[81524026693.854172] ( 283.541656) c0 dai 1.2 src/audio/dai.c:855 WARN dai_copy(): nothing to copy
[81524058770.000000] ( 32076.146484) c0 buffer 3.15 src/audio/buffer.c:271 comp_update_buffer_consume(), no bytes to consume, source->comp.id = 13, source->comp.type = 5, sink->comp.id = 0, sink->comp.type = 6
[81524059089.895844] ( 319.895844) c0 buffer 1.4 src/audio/buffer.c:231 comp_update_buffer_produce(), no bytes to produce, source->comp.id = 0, source->comp.type = 6, sink->comp.id = 1, sink->comp.type = 5
[81524059414.843750] ( 324.947906) c0 pga 1.1 ../audio/volume/volume.c:729 volume_copy(), source_bytes = 0x0, sink_bytes = 0x0
[81524059736.458344] ( 321.614594) c0 dai 1.2 src/audio/dai.c:847 WARN dai_copy(): Copy_bytes 0 + avail bytes 0 

Metadata

Metadata

Labels

IMXApplies to i.MX platformbugSomething 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