[alsa-devel] alsa_aplay doesn't work on android on hdk7108

Hou-xiang ZHU hou-xiang.zhu at st.com
Thu Sep 29 13:17:02 CEST 2011


I am trying to add alsa feature to Android on hdk7108 (which is sh4 
architecture, not arm).

Basically on non android linux platform ,i.e STLinux-2.4, the driver and 
alsa-libs and alsa-utils works with the following test command:
#aplay -v -t raw -D hw:1,0 -c 2 -r 32000 -f S16_BE /32K_16Bit_Stereo.pcm"

But when working on Android platform, because the alsa-lib/alsa-utils 
are different from STLinux-2.4, so we ask someone  the two packages from 
a arm platform. and compilation ok.
but during run alsa_aplay, the following error occurred:

#/system/bin/alsa_aplay -v -t raw -D hw:1,0 -c 2 -r 32000 -f S16_BE 

ALSA lib 
confmisc.c in func snd_config_get_bool line 137 Invalid type for nonblock

ALSA lib 
Invalid type for subdevice
aplay: main:656: in aplay.c func main line 656 audio open error: Invalid 
aplay/main.c in func main line 452
alsa-lib/src/pcm/pcm.c func snd_pcm_open line 2242 after call 
snd_config_update(), err=1

looks like alsa configuration issue. I noticed that on STLinux-2.4 
platform, the alsa-libs is 1.0.21a and on android platform, it is 
1.0.16, can this be a issue?

or configuration file wrong or else? how to debug this?

Thanks you very much!

More information about the Alsa-devel mailing list