alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* alsa_aplay doesn't work on android on hdk7108
@ 2011-09-29 11:17 Hou-xiang ZHU
  0 siblings, 0 replies; only message in thread
From: Hou-xiang ZHU @ 2011-09-29 11:17 UTC (permalink / raw)
  To: alsa-devel

Hello,

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 
/32K_16Bit_Stereo.pcm

ALSA lib 
vendor/STMicroelectronics/hdk7108/alsa/alsa-lib/src/confmisc.c:137:(snd_config_get_bool) 
confmisc.c in func snd_config_get_bool line 137 Invalid type for nonblock

ALSA lib 
vendor/STMicroelectronics/hdk7108/alsa/alsa-lib/src/pcm/pcm_hw.c:1417:(_snd_pcm_hw_open) 
Invalid type for subdevice
aplay: main:656: in aplay.c func main line 656 audio open error: Invalid 
argument
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!
Houxiang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-29 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 11:17 alsa_aplay doesn't work on android on hdk7108 Hou-xiang ZHU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).