-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Labels
IMXApplies to i.MX platformApplies to i.MX platformbugSomething isn't working as expectedSomething isn't working as expected
Description
Describe the bug
Playback and capture occasionally fails with Input/output error
To Reproduce
Run playback and capture simultaneously.
Or run the script below:
#!/bin/bash
test_aplay()
{
while true
do
aplay -Dhw:1,0 -f S32_LE -c 2 -r 48000 -t raw test_play.wav
done
}
test_arecord()
{
while true
do
arecord -Dhw:1,0 -f S32_LE -c 2 -r 48000 -d 5 test_record.pcm
done
}
test_aplay &
test_arecord
Reproduction Rate
20%
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: 5.10
- SOF: master, imx-stable-v1.5, imx-stable-v1.6.
- Name of the topology file
- Topology: sof-imx8qxp-wm8960.tplg, sof-imx8qxp-cs42888-mixer.tplg, sof-imx8mp-wm8960.tplg
- Name of the platform(s) on which the bug is observed.
- Platform: i.MX8QXP/i.MX8QM/i.MX8MP
Screenshots or console output
root@imx8qmmek:~# audio_dsp_sof.sh -t 4 -c wm8960 -f p -n 50
DSP_SOF_PLAY_RECORD_WORK_TOGETHER 0 TINFO : test 4: DSP_SOF_PLAY_RECORD_WORK_TOGETHER
TINFO : Do full hardware capacity test
TINFO : Do full hardware capacity test
TINFO : Start audio test, please check the HEADPHONE,hear if there is voice.
TINFO : Audio TEST: Total 3 combinations of formats.
TINFO : No.[1] Now playing audio stream with format S16_LE, channel 2,sample rate 48000
TINFO : Test #1: ADC record test. Headphone is need to check the voice and quality of recording.
TINFO : Audio TEST: Total 3 combinations of formats.
TINFO : No.[1] Now Recording audio stream with format S16_LE, channel 2,sample rate 48000
TINFO : No.[2] Now playing audio stream with format S24_LE, channel 2,sample rate 48000
TINFO : No.[3] Now playing audio stream with format S32_LE, channel 2,sample rate 48000
TINFO : No.[2] Now Recording audio stream with format S24_LE, channel 2,sample rate 48000
TINFO : Start audio test, please check the HEADPHONE,hear if there is voice.
TINFO : Audio TEST: Total 3 combinations of formats.
TINFO : No.[4] Now playing audio stream with format S16_LE, channel 2,sample rate 48000
TINFO : No.[5] Now playing audio stream with format S24_LE, channel 2,sample rate 48000
TINFO : No.[3] Now Recording audio stream with format S32_LE, channel 2,sample rate 48000
TFAIL : ltpapicmd.c:188: Test #1: Playing back audio48k24b2c_sle.pcm Failed on hw:1,0
Playing raw data '/tmp/tmpfs/tmp.jWsafwNfuh/audio48k24b2c_sle.pcm' : Signed 24 bit Little Endian, Rate 48000 Hz, Stereo
aplay: pcm_write:2061: write error: Input/output error
TINFO : No.[6] Now playing audio stream with format S32_LE, channel 2,sample rate 48000
TINFO : Test #1: ADC record test. Headphone is need to check the voice and quality of recording.
TINFO : Audio TEST: Total 3 combinations of formats.
TINFO : No.[4] Now Recording audio stream with format S16_LE, channel 2,sample rate 48000
TFAIL: Audio Playback test fails in loop time 2
TFAIL: Test Failed on below file: audio48k24b2c_sle.pcm
TGE_LV_DAC2 1 TFAIL : ltpapicmd.c:188: Test FAIL
^CTFAIL: Test #1: Recording audio48k16b2c_sle.pcm Failed on hw:1,0
Recording raw data '/tmp/tmpfs/tmp.Nzsd3l5HpA/audio48k16b2c_sle.pcm' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Aborted by signal Interrupt...
^C^Caplay: no process found
arecord: no process found
root@imx8qmmek:~# ^C
Metadata
Metadata
Assignees
Labels
IMXApplies to i.MX platformApplies to i.MX platformbugSomething isn't working as expectedSomething isn't working as expected