Wind River Support Network

HomeDefectsLIN1019-3200
Fixed

LIN1019-3200 : "aplay -l" command return null device name on xilinx-zynqmp BSP

Created: Oct 29, 2019    Updated: Dec 11, 2019
Resolved Date: Nov 20, 2019
Found In Version: 10.19.45.1
Fix Version: 10.19.45.2
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

1. Build project.

setup.sh --machines=xilinx-zynqmp --templates feature/test --accept-eula=yes --dl-layers
. ./oe-init-build-env build_test

bitbake-layers add-layer wr-testing/bts-dev
echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf

bitbake wrlinux-image-glibc-std

2. Load images to the target of #28570

3. Run the BTS test case of "audio_aplay"

/opt/wr-test/testcases/bts/audio_aplay/runtest.sh -h

root@xilinx-zynqmp:/opt/wr-test/testcases/bts/audio_aplay# aplay -l

List of PLAYBACK Hardware Devices ****
card 0: monitor [DisplayPort monitor], device 0: (null) xilinx-dp-snd-codec-dai-0 [(null) xilinx-dp-snd-codec-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: monitor [DisplayPort monitor], device 1: (null) xilinx-dp-snd-codec-dai-1 [(null) xilinx-dp-snd-codec-dai-1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Switch screen on for audio.
root@xilinx-zynqmp:/opt/wr-test/testcases/bts/audio_aplay# echo -n 0 > /sys/class/graphics/fb0/blank
<< [do_test1] start Play music with aplay>>
********************
root@xilinx-zynqmp:/opt/wr-test/testcases/bts/audio_aplay# aplay -Dhw:, /opt/wr-test/testcases/bts/audio_aplay/little_apple.wav
ALSA lib ../../alsa-lib-1.1.9/src/conf.c:5031:(snd_config_expand) Parse arguments error: Invalid argument
ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM hw:,
aplay: main:828: audio open error: Invalid argument
<<end Play music with aplay>>
********************
<<clean subcase>>
********************

<< [do_check_call_trace] start check testcase call trace>>
********************
root@xilinx-zynqmp:/opt/wr-test/testcases/bts/audio_aplay# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:|WARNING:' ||return 0

<<end check testcase call trace>>
********************
<<clean subcase>>
********************

<< [do_check_kmemleak] start check kmemleak>>
********************
root@xilinx-zynqmp:/opt/wr-test/testcases/bts/audio_aplay# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0

<<end check kmemleak>>
********************
<<clean subcase>>
********************

#########################################################################
audio_aplay (keyword: ) test results:
*1 Play music with aplay(do_test1) FAIL
ERROR CMD OR INFO IS :
line:10 "aplay -Dhw:, /opt/wr-test/testcases/bts/audio_aplay/little_apple.wav "
*2 check testcase call trace(do_check_call_trace) PASS
*3 check kmemleak(do_check_kmemleak) PASS
Test Summary
Total number : 3
Pass number : 2
Fail number : 1
Skip number : 0
Excution Time: 8 seconds

Steps to Reproduce

1. Build project.

/lpg-build/cdc/fast_prod/WRL10_19/WRL10_19_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --templates feature/test --accept-eula=yes --dl-layers
. ./oe-init-build-env build_test

bitbake-layers add-layer wr-testing/bts-dev
echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf 

bitbake wrlinux-image-glibc-std

2. Load images to the target of #28570

3. Run the BTS test case of "audio_aplay"

# /opt/wr-test/testcases/bts/audio_aplay/runtest.sh -h
Live chat
Online