Dear I.MX Community,
Could you please provide me the test application from userspace in order to directly play a .wav file through the /dev/snd/pcmC0D0p node on SGTL5000 in I.MX28 BSP, instead of using alsa utilities ie., aplay , Kindly do the needful as early as possible,
Many Many thanks in advance
已解决! 转到解答。
aplay is a software to play the sound. sgtl5000 is an audio codec that like as a sound card in the system.
They are different things.
e.g. to list the playback device
~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: mxssgtl5000 [mxs_sgtl5000], device 0: HiFi Playback sgtl5000-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
to play .wav sound file
~ # aplay -D plughw:0,0 sound.wav
aplay is a software to play the sound. sgtl5000 is an audio codec that like as a sound card in the system.
They are different things.
e.g. to list the playback device
~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: mxssgtl5000 [mxs_sgtl5000], device 0: HiFi Playback sgtl5000-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
to play .wav sound file
~ # aplay -D plughw:0,0 sound.wav