Hi,

I added external/alsa-lib, external/alsa-utils, hardware/alsa_sound
from git to my android build tree.

Changed BoardConfig.mk as below,
  BOARD_USES_GENERIC_AUDIO := false
  BOARD_USES_ALSA_AUDIO := true
  BUILD_WITH_ALSA_UTILS := true

Added asound.conf to (my_target)/system/etc.
------------------------------------
# #
# # Mixer devices
# #
ctl.AndroidPlayback {
        type hw
        card 0
}
ctl.AndroidRecord {
        type hw
        card 0
}

# #
# # Playback devices
# #
pcm.AndroidPlayback {
:
:
------------------------------------

Build success but I got the following error when run my target board:
-----------------------------------------
E/AudioHardwareALSA( 1774): Unable to attach mixer to device
AndroidPlayback: No
 such file or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device default:
No such fi
le or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device
AndroidRecord: No s
uch file or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device default:
No such fi
le or
directory
W/AudioSystem( 1670): AudioFlinger not published,
waiting...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
-----------------------------------------

I can see my alsa device "cat /proc/asound/cards",
but "alsa_aplay -l"  said
aplay: device_list:217: no soundcards found...


Can anyone give me some suggestion?
Thank in advance.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to