X86 ALSA Sound Issue

302 views
Skip to first unread message

Skuld

unread,
Apr 17, 2009, 3:43:09 AM4/17/09
to android-porting
Hi All:

I port to alsa-sound alsa-lib on X86 system and I use alas_ctl produce
asound.conf to /system/etc/.

When I tried to play Music Player on Android system, time line of
music player isn't correct and it can't play audio.
How to fix it? Thank you..

I modified init.rc file and add following .

# change permissions for alsa nodes
symlink /dev/snd/pcmC0D0c /dev/pcmC0D0c
symlink /dev/snd/pcmC0D0p /dev/pcmC0D0p
symlink /dev/snd/controlC0 /dev/controlC0
symlink /dev/snd/timer /dev/timer
chmod 0777 /dev/pcmC0D0c
chmod 0777 /dev/pcmC0D0p
chmod 0777 /dev/controlC0
chmod 0777 /dev/timer
chmod 0666 /dev/binder
chmod 0666 /dev/ashmem
#following are new lines
chown root audio /dev/snd/controlC0
chown root audio /dev/snd/pcmC0D0c
chown root audio /dev/snd/pcmC0D0p
chown root audio /dev/snd/timer



Following Error log:

========================================================
E/AudioService( 2111): Media server died.
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
I/ServiceManager( 2241): Waiting for sevice media.player...
E/MountListener( 2111): Failed to connect to vold
E/MountListener( 2111): java.lang.IllegalStateException
E/MountListener( 2111): at
com.android.server.MountListener.listenToSocket(MountListener.java:
253)
E/MountListener( 2111): at com.android.server.MountListener.run
(MountListener.java:273)
E/MountListener( 2111): at java.lang.Thread.run(Thread.java:1058)
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ ( 2323): ServiceManager: 0x804ac38
E/ALSALib ( 2323): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
E/AudioHardwareALSA( 2323): Unable to attach mixer to device
AndroidPlayback: No such file or directory
E/ALSALib ( 2323): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidRecord
E/AudioHardwareALSA( 2323): Unable to attach mixer to device
AndroidRecord: No such file or directory
D/AudioHardwareALSA( 2323): Mixer: element name: 'Master'
D/AudioHardwareALSA( 2323): Mixer: element name: 'Front'
D/AudioHardwareALSA( 2323): Mixer: element name: 'Front Mic'
D/AudioHardwareALSA( 2323): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2323): Mixer: master 'PCM' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Earpiece' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Speaker' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Bluetooth' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Headphone' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Bluetooth A2DP' not found.
D/AudioHardwareALSA( 2323): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2323): Mixer: element name: 'Capture'
D/AudioHardwareALSA( 2323): Mixer: master 'Capture' found.
D/AudioHardwareALSA( 2323): Mixer: route 'Capture' found.
D/AudioHardwareALSA( 2323): Mixer: route '' not found.
D/AudioHardwareALSA( 2323): Mixer: route 'Bluetooth Capture' not
found.
D/AudioHardwareALSA( 2323): Mixer: route 'Capture' found.
D/AudioHardwareALSA( 2323): Mixer: route 'Bluetooth A2DP Capture' not
found.
D/AudioHardwareALSA( 2323): mixer initialized.
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm_hw.c:1445:
(_snd_pcm_hw_open) Invalid type for subdevice
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM NULL_Device
I/AudioHardwareALSA( 2323): Initialized ALSA PLAYBACK device
NULL_Device
W/AudioHardwareALSA( 2323): AudioMixer expects two channels, but only
-1 found!
W/AudioHardwareALSA( 2323): AudioMixer expects two channels, but only
-1 found!
I/AudioFlinger( 2323): AudioFlinger's thread ready to run for output 0
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm_hw.c:1445:
(_snd_pcm_hw_open) Invalid type for subdevice
E/ALSALib ( 2323): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM NULL_Device
I/AudioHardwareALSA( 2323): Initialized ALSA PLAYBACK device
NULL_Device
I/CameraService( 2323): CameraService started: pid=2323
E/AudioService( 2111): Media server started.
W/MediaPlayer( 2241): MediaPlayerService not published, waiting...
E/MountListener( 2111): Failed to connect to vold
E/MountListener( 2111): java.lang.IllegalStateException
E/MountListener( 2111): at
com.android.server.MountListener.listenToSocket(MountListener.java:
253)
E/MountListener( 2111): at com.android.server.MountListener.run
(MountListener.java:273)
E/MountListener( 2111): at java.lang.Thread.run(Thread.java:1058)
W/AudioSystem( 2111): AudioFlinger server died!
I/ServiceManager( 2094): service 'media.audio_flinger' died
I/ServiceManager( 2094): service 'media.camera' died
I/ServiceManager( 2094): service 'media.player' died
W/MediaPlayer( 2241): MediaPlayer server died!
E/MediaPlayer( 2241): error (100, 0)
W/MediaPlayer( 2241): mediaplayer went away with unhandled events
E/MediaPlayer( 2241): Attempt to call getDuration without a valid
mediaplayer
E/MediaPlayer( 2241): error (-38, 0)
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2241): Waiting for sevice media.player...
E/AudioService( 2111): Media server died.
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
E/MountListener( 2111): Failed to connect to vold
E/MountListener( 2111): java.lang.IllegalStateException
E/MountListener( 2111): at
com.android.server.MountListener.listenToSocket(MountListener.java:
253)
E/MountListener( 2111): at com.android.server.MountListener.run
(MountListener.java:273)
E/MountListener( 2111): at java.lang.Thread.run(Thread.java:1058)
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ ( 2332): ServiceManager: 0x804ac38
E/ALSALib ( 2332): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
E/AudioHardwareALSA( 2332): Unable to attach mixer to device
AndroidPlayback: No such file or directory
E/ALSALib ( 2332): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidRecord
E/AudioHardwareALSA( 2332): Unable to attach mixer to device
AndroidRecord: No such file or directory
D/AudioHardwareALSA( 2332): Mixer: element name: 'Master'
D/AudioHardwareALSA( 2332): Mixer: element name: 'Front'
D/AudioHardwareALSA( 2332): Mixer: element name: 'Front Mic'
D/AudioHardwareALSA( 2332): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2332): Mixer: master 'PCM' not found.
D/AudioHardwareALSA( 2332): Mixer: route 'Earpiece' not found.
D/AudioHardwareALSA( 2332): Mixer: route 'Speaker' not found.
D/AudioHardwareALSA( 2332): Mixer: route 'Bluetooth' not found.
D/AudioHardwareALSA( 2332): Mixer: route 'Headphone' not found.
D/AudioHardwareALSA( 2332): Mixer: route 'Bluetooth A2DP' not found.
D/AudioHardwareALSA( 2332): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2332): Mixer: element name: 'Capture'
D/AudioHardwareALSA( 2332): Mixer: master 'Capture' found.
D/AudioHardwareALSA( 2332): Mixer: route 'Capture' found.
D/MediaPlayer( 2241): Error (100,0)
W/MediaPlayer( 2241): mediaplayer went away with unhandled events
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2241): Waiting for sevice media.player...
E/AudioService( 2111): Media server died.
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
E/MountListener( 2111): Failed to connect to vold
E/MountListener( 2111): java.lang.IllegalStateException
E/MountListener( 2111): at
com.android.server.MountListener.listenToSocket(MountListener.java:
253)
E/MountListener( 2111): at com.android.server.MountListener.run
(MountListener.java:273)
E/MountListener( 2111): at java.lang.Thread.run(Thread.java:1058)
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ServiceManager( 2111): Waiting for sevice media.audio_flinger...
E/MountListener( 2111): Failed to connect to vold
E/MountListener( 2111): java.lang.IllegalStateException
E/MountListener( 2111): at
com.android.server.MountListener.listenToSocket(MountListener.java:
253)
E/MountListener( 2111): at com.android.server.MountListener.run
(MountListener.java:273)
E/MountListener( 2111): at java.lang.Thread.run(Thread.java:1058)
I/ServiceManager( 2241): Waiting for sevice media.player...
I/ ( 2341): ServiceManager: 0x804ac38
E/ALSALib ( 2341): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
E/AudioHardwareALSA( 2341): Unable to attach mixer to device
AndroidPlayback: No such file or directory
E/ALSALib ( 2341): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidRecord
E/AudioHardwareALSA( 2341): Unable to attach mixer to device
AndroidRecord: No such file or directory
D/AudioHardwareALSA( 2341): Mixer: element name: 'Master'
D/AudioHardwareALSA( 2341): Mixer: element name: 'Front'
D/AudioHardwareALSA( 2341): Mixer: element name: 'Front Mic'
D/AudioHardwareALSA( 2341): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2341): Mixer: master 'PCM' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Earpiece' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Speaker' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Bluetooth' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Headphone' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Bluetooth A2DP' not found.
D/AudioHardwareALSA( 2341): Mixer: element name: 'Front Mic Boost'
D/AudioHardwareALSA( 2341): Mixer: element name: 'Capture'
D/AudioHardwareALSA( 2341): Mixer: master 'Capture' found.
D/AudioHardwareALSA( 2341): Mixer: route 'Capture' found.
D/AudioHardwareALSA( 2341): Mixer: route '' not found.
D/AudioHardwareALSA( 2341): Mixer: route 'Bluetooth Capture' not
found.
D/AudioHardwareALSA( 2341): Mixer: route 'Capture' found.
D/AudioHardwareALSA( 2341): Mixer: route 'Bluetooth A2DP Capture' not
found.
D/AudioHardwareALSA( 2341): mixer initialized.
E/ALSALib ( 2341): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSALib ( 2341): external/alsa-lib/src/pcm/pcm_hw.c:1445:
(_snd_pcm_hw_open) Invalid type for subdevice
E/ALSALib ( 2341): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM NULL_Device

Luca Belluccini

unread,
Apr 17, 2009, 4:11:32 AM4/17/09
to android-porting
Did you build with the last source code?

Skuld

unread,
Apr 17, 2009, 4:42:20 AM4/17/09
to android-porting
Hi Luca:

Yes , I build with lastest source code.
> ...
>
> 閱讀更多 >>

RongJun Ying

unread,
Apr 17, 2009, 6:02:47 AM4/17/09
to android...@googlegroups.com
Verify your asound.conf :

ctl.AndroidPlayback ...
---------------------------
Ying RongJun China

2009/4/17 Skuld <sku...@gmail.com>

Luca Belluccini

unread,
Apr 17, 2009, 7:57:42 AM4/17/09
to android-porting
Can you post your asound.conf ? I am using this one.
I don't know it it works... I am working on a eeepc 701.
Btw... You just modified the USES_ALSA_AUDIO... in mk file and added
the lines in init.rc (and moved asound.conf in the right place), isn't
it?
Tonight I'll try to copy a song in sd partition.

asound.conf ===================================================

# Android ALSA configuration file for OMAP2430SDP using the MXC audio.
##
## Mixer Devices
##
ctl.AndroidPlayback {
type hw
card 0
}
ctl.AndroidRecord {
type hw
card 0
}
##
## Playback Devices
##
pcm.AndroidPlayback_Speaker {
type hooks
slave.pcm {
type hw
card 0
device 0 # Must be of type "digital audio
playback"
}
hooks.0 {
type ctl_elems
hook_args [
# Enable audio output from the DSP
{
name "Master codec configure Switch"
lock false
preserve true
optional false
value true
}
{
name "Master codec Sample Rate"
lock false
preserve true
optional true
value 48000
}
{
name "Playback Source"
lock false
preserve true
optional false
# Values are:
# 0 - 'Stereo Headset'
# 1 - 'Hands-free (Speakers)'
# 2 - 'Mono Handset'
# 3 'USB CarKit'
value 'Hands-free (Speakers)'
}
]
}
}
pcm.AndroidPlayback_Headset {
type hooks
slave.pcm {
type hw
card 0
device 0 # Must be of type "digital audio
playback"
}
hooks.0 {
type ctl_elems
hook_args [
# Enable audio output from the DSP
{
name "Master codec configure Switch"
value true
}
{
name "Master codec Sample Rate"
value 48000
}
{
name "Playback Source"
value 'Stereo Headset'
}
]
}
}
pcm.AndroidPlayback_Earpiece {
type hooks
slave.pcm {
type hw
card 0
device 0 # Must be of type "digital audio
playback"
}
hooks.0 {
type ctl_elems
hook_args [
# Enable audio output from the DSP
{
name "Master codec configure Switch"
value true
}
{
name "Master codec Sample Rate"
value 48000
}
{
name "Playback Source"
value 'Mono Handset'
}
]
}
}
# No bluetooth available. Send output to the bit bucket.
pcm.AndroidPlayback_Bluetooth {
type null
}
##
## Recording device
##
pcm.AndroidRecord_Microphone {
type hooks
slave.pcm {
type hw
card 0
device 0 # Must be of type "digital audio
capture"
}
hooks.0 {
type ctl_elems
hook_args [
{
# MXC values for capture source:
# 0 - 'Headset Mic'
# 1 - 'Main Mic Sub Mic'
# 2 - 'Aux/FM'
# 3 - 'USB CarKit'
name "Capture Source"
lock false
preserve true
optional false
value 'Main Mic Sub Mic'
}
{
# Enable capture, range [0..100]
name "Mic Headset Capture Volume"
value [100 100]
}
{
name "Mic Headset Capture Switch"
value true
}
{
# MXC Capture volume, range [0..100]
name "Master Capture Volume"
value [60 60]
}
]
}

On 17 Apr, 12:02, RongJun Ying <rjy...@gmail.com> wrote:
> Verify your asound.conf :
>
> ctl.AndroidPlayback ...
> ---------------------------
> Ying RongJun China
>
> 2009/4/17 Skuld <skul...@gmail.com>
> ...
>
> leggi tutto

Androidphan

unread,
Apr 17, 2009, 8:26:57 AM4/17/09
to android-porting
I finally got my sound working. I tested it outside Android with
aplay. Alsa-utils can be downloaden now from the Android repository. I
used alsactl store in Ubuntu to get an asound.state. With the values
from that file I created my own asound.conf. It looks a lot like the
one in my alsa thread.
> > > > > E/ALSALib (...
>
> meer lezen >>

Luca Belluccini

unread,
Apr 17, 2009, 8:56:57 AM4/17/09
to android-porting
Congratulations!

Could you post your asound.conf, just to see it and understand
correctly its structure?
Mediaplayer is working?
> ...
>
> leggi tutto

Androidphan

unread,
Apr 17, 2009, 10:44:47 AM4/17/09
to android-porting
My asound.conf can be found here:
http://pastebin.com/f41e6b204

I also added the following to init.rc :
setprop alsa.mixer.playback.master Front
setprop alsa.mixer.capture.master Capture
setprop alsa.mixer.playback.earpiece Master
setprop alsa.mixer.capture.earpiece Capture
setprop alsa.mixer.playback.headset Master
setprop alsa.mixer.playback.speaker Master

I don't know how to play video files yet, haven't tried actually.
But I ran Mediascanner from Dev tools, then it found my mp3 inside
'Music' and that played well.
> > > > > > > E/AudioHardwareALSA( 2323): Unable to...
>
> meer lezen >>

Luca Belluccini

unread,
Apr 17, 2009, 11:27:27 AM4/17/09
to android-porting
Thanks! I'm preparing a ubuntu live for getting all alsa controls.
> ...
>
> leggi tutto

Androidphan

unread,
Apr 17, 2009, 12:57:58 PM4/17/09
to android-porting
It probably is possible to add alsa-utils to your local_manifest and
put BUILD_WITH_ALSA_UTILS := true inside your BoardConfig.mk and then
run alsa_ctl.
> ...
>
> read more >>

Luca Belluccini

unread,
Apr 17, 2009, 2:24:06 PM4/17/09
to android-porting
there's only asound...
> ...
>
> leggi tutto

Luca Belluccini

unread,
Apr 17, 2009, 2:28:17 PM4/17/09
to android-porting
Ok i see them ... Sorry :D

On 17 Apr, 18:57, Androidphan <niels.kee...@tass.nl> wrote:
> ...
>
> leggi tutto

dmoti

unread,
Apr 21, 2009, 10:52:19 AM4/21/09
to android-porting
Hi people,
I followed this discussion and I'm trying to do what you did and
I just need the configure line you used for both alsa-lib and alsa-
utils

thanks,
-md
> ...
>
> read more >>

Androidphan

unread,
Apr 22, 2009, 3:28:43 AM4/22/09
to android-porting
I just downloaded the alsa-lib and alsa-utils with repo, you need to
download it with a local_manifest file.
Then turn on BOARD_USES_ALSA_AUDIO := true and
BUILD_WITH_ALSA_UTILS := true at asus/eee_701/BoardConfig.mk.

Then it builds Android with the alsa library and the alsa utils. Then
you need a proper asound.conf to get your sound working.
> > > > > > > > > ---------------------------...
>
> read more »

dmoti

unread,
Apr 22, 2009, 7:58:58 AM4/22/09
to android-porting
Thanks!
I did it with this local_manifest.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="platform/vendor/asus/eee_701" path="vendor/asus/
eee_701"/>
<project name="platform/external/alsa-lib" path="external/alsa-lib"/>
<project name="platform/external/alsa-utils" path="external/alsa-
utils"/>
</manifest>

it took me a while to figure it out so I'm puting it here for future
generations :-)

it synced OK but when I build it I got this:

make: *** No rule to make target `out/target/product/eee_701/obj/lib/
libaudio.so', needed by `out/target/product/eee_701/obj/EXECUTABLES/
alsa_amixer_intermediates/LINKED/alsa_amixer'. Stop.


any ideas?

On Apr 22, 10:28 am, Androidphan <niels.kee...@tass.nl> wrote:
> I just downloaded thealsa-lib andalsa-utils with repo, you need to
> download it with a local_manifest file.
> Then turn on BOARD_USES_ALSA_AUDIO := true and
> BUILD_WITH_ALSA_UTILS := true at asus/eee_701/BoardConfig.mk.
>
> Then it builds Android with thealsalibrary and thealsautils. Then
> you need a proper asound.conf to get your sound working.
>
> On Apr 21, 4:52 pm, dmoti <moti.dan...@gmail.com> wrote:
>
> > Hi people,
> > I followed this discussion and I'm trying to do what you did and
> > I just need the configure line you used for bothalsa-lib andalsa-
> > utils
>
> > thanks,
> > -md
>
> > On Apr 17, 9:28 pm, Luca Belluccini <lucabellucc...@gmail.com> wrote:
>
> > > Ok i see them ... Sorry :D
>
> > > On 17 Apr, 18:57, Androidphan <niels.kee...@tass.nl> wrote:
>
> > > > It probably is possible to addalsa-utils to your local_manifest and
> > > > put BUILD_WITH_ALSA_UTILS := true inside your BoardConfig.mk and then
> > > > run alsa_ctl.
>
> > > > On Apr 17, 5:27 pm, Luca Belluccini <lucabellucc...@gmail.com> wrote:
>
> > > > > Thanks! I'm preparing a ubuntu live for getting allalsacontrols.
>
> > > > > On 17 Apr, 16:44, Androidphan <niels.kee...@tass.nl> wrote:
>
> > > > > > My asound.conf can be found here:http://pastebin.com/f41e6b204
>
> > > > > > I also added the following to init.rc :
> > > > > > setpropalsa.mixer.playback.master Front
> > > > > > setpropalsa.mixer.capture.master Capture
> > > > > > setpropalsa.mixer.playback.earpiece Master
> > > > > > setpropalsa.mixer.capture.earpiece Capture
> > > > > > setpropalsa.mixer.playback.headset Master
> > > > > > setpropalsa.mixer.playback.speaker Master
>
> > > > > > I don't know how to play video files yet, haven't tried actually.
> > > > > > But I ran Mediascanner from Dev tools, then it found my mp3 inside
> > > > > > 'Music' and that played well.
>
> > > > > > On 17 apr, 14:56, Luca Belluccini <lucabellucc...@gmail.com> wrote:
>
> > > > > > > Congratulations!
>
> > > > > > > Could you post your asound.conf, just to see it and understand
> > > > > > > correctly its structure?
> > > > > > > Mediaplayer is working?
>
> > > > > > > On 17 Apr, 14:26, Androidphan <niels.kee...@tass.nl> wrote:
>
> > > > > > > > I finally got my sound working. I tested it outside Android with
> > > > > > > > aplay.Alsa-utils can be downloaden now from the Android repository. I
> > > > > > > > used alsactl store in Ubuntu to get an asound.state. With the values
> > > > > > > > from that file I created my own asound.conf. It looks a lot like the
> > > > > > > > one in myalsathread.
>
> > > > > > > > On 17 apr, 13:57, Luca Belluccini <lucabellucc...@gmail.com> wrote:
>
> > > > > > > > > Can you post your asound.conf ? I am using this one.
> > > > > > > > > I don't know it it works... I am working on a eeepc 701.
> > > > > > > > > Btw... You just modified the USES_ALSA_AUDIO... in mk file and added
> > > > > > > > > the lines in init.rc (and moved asound.conf in the right place), isn't
> > > > > > > > > it?
> > > > > > > > > Tonight I'll try to copy a song in sd partition.
>
> > > > > > > > > asound.conf ===================================================
>
> > > > > > > > > # AndroidALSAconfiguration file for OMAP2430SDP using the MXC audio.
> ...
>
> read more »

Androidphan

unread,
Apr 22, 2009, 12:49:26 PM4/22/09
to android-porting
You should clean your project and build all over again.
> ...
>
> read more »

dmoti

unread,
Apr 26, 2009, 11:32:35 AM4/26/09
to android-porting
Thanks Androidphan,

I think that the problem is that I didn't have hardware/alsa_sound
package so I added it to
the local_manifest.xml now the problem is:

make: *** No rule to make target `vendor/google/frameworks/maps/
com.google.android.maps.xml', needed by `out/target/product/eee_701/
system/etc/permissions/com.google.android.maps.xml'. Stop.

It's not related to the alsa_sound addition I made since it fails like
this even without it.
can someone provide a little bit more details regarding the build
setup:
the contents of localmanifest platform compiler and library used in
case that the problem is with my setup
(I tryied ubuntu 8.10, 9.04 with gcc-4.2)


-md
> ...
>
> read more »

fala70

unread,
Apr 26, 2009, 5:26:43 PM4/26/09
to android-porting
me too I've same problem
somebody can help ?

thanks
> ...
>
> leggi tutto

dmoti

unread,
Apr 27, 2009, 2:24:09 AM4/27/09
to android-porting
Found a solution:

edit ./build/target/product/generic_with_google.mk

and put under remark 3 lines starting with PRODUCT_COPY_FILES (with
#)

I'm not sure about remarking the gtalkservice but since every compile
takes a long time I didn't have a chance to test it.

keep in mind that it'll probably disable google maps and gtalk!

also I noticed that the alsa utils executables are prefixed with alsa_
and placed at /system/bin/

-md
> ...
>
> read more »

dmoti

unread,
Apr 27, 2009, 6:19:35 AM4/27/09
to android-porting
Audio works!

final tip:
I've ran alsa_ctl store on a live Ubuntu on the machine it created a
file: /var/lib/alsa/asound.state
I've stored the file into /system/etc/asound.conf on the Android disk,
loaded Android and ran alsa_ctl restore 0.

thank you all for your help!

-md


On Apr 27, 9:24 am, dmoti <moti.dan...@gmail.com> wrote:
> Found a solution:
>
> edit ./build/target/product/generic_with_google.mk
>
> and put  under remark 3 lines starting with PRODUCT_COPY_FILES (with
> #)
>
> I'm not sure about remarking the gtalkservice but since every compile
> takes a long time I didn't have a chance to test it.
>
> keep in mind that it'll probably disable google maps and gtalk!
>
> also I noticed that thealsautils executables are prefixed with alsa_
> ...
>
> read more »

cindy_king_1024

unread,
Apr 30, 2009, 1:14:06 AM4/30/09
to android...@googlegroups.com
Hi,make a disturb
how to get the alsa-util,and what's the main effect about alsa-lib?

网易邮箱,中国第一大电子邮件服务商

dmoti

unread,
Apr 30, 2009, 3:52:00 AM4/30/09
to android-porting
you need this 3 lines added in you local_manifest:

<project name="platform/hardware/alsa_sound" path="hardware/
alsa_sound"/>


<project name="platform/external/alsa-lib" path="external/alsa-lib"/>
<project name="platform/external/alsa-utils" path="external/alsa-
utils"/>

alsa-utils are some alsa related command-line tools like aplay
alsa_ctl and amixer
which are playing configuring and controlling the mixer respectively.
alsa-lib is a library that this alsa-tool depend upon (I think)
and if I understand correctly alsa_sound is the interface between
anddroid and alsa.

to enable all of this in the compilation add this 2 lines to your
BoardConfig.mk

BOARD_USES_ALSA_AUDIO := true
BUILD_WITH_ALSA_UTILS := true

-md

On Apr 30, 8:14 am, cindy_king_1024 <cindy_king_1...@126.com> wrote:
> Hi,make a disturb
> how to get the alsa-util,and what's the main effect about alsa-lib?
>

> ...
>
> read more »

Gani Bhagavathula

unread,
Apr 30, 2009, 7:44:07 AM4/30/09
to android-porting
Bump... I am stuck at the same error (about android.maps.xml) when I
did a repo sync after completely unrelated changes. Is anyone able to
help?

Gani
> ...
>
> read more »

Yi Sun

unread,
Apr 30, 2009, 12:03:39 PM4/30/09
to android...@googlegroups.com
continue to read the list and look for ravikh for answer or here
http://code.google.com/p/patch-hosting-for-android-x86-support/wiki/noruletomaketarget where I copied his e-mail

penguins

unread,
Apr 30, 2009, 8:49:12 PM4/30/09
to android-porting
Is is possible to add sound to eee pc without rebuilding android?

ehung

unread,
Jun 16, 2009, 3:32:04 AM6/16/09
to android-porting

Hi dmoti
I have follow your tips to implment alsa function.
I have built the libaudio.so, alsa_ctl, alsa_amixer and alsa_aplay on
android system.
I use a aplayer application to test the alsa function, but the audio
still not work.
Could you give me some suggestion?
Thank in advance.

Best Regards,
ehung


On 4月30日, 下午3時52分, dmoti <moti.dan...@gmail.com> wrote:
> you need this 3 lines added in you local_manifest:
>
> <project name="platform/hardware/alsa_sound" path="hardware/
> alsa_sound"/>
> <project name="platform/external/alsa-lib" path="external/alsa-lib"/>
> <project name="platform/external/alsa-utils" path="external/alsa-
> utils"/>
>

> alsa-utils are somealsarelated command-line tools like aplay
> alsa_ctl and amixer
> which are playing configuring and controlling the mixer respectively.alsa-lib is a library that thisalsa-tool depend upon (I think)


> and if I understand correctly alsa_sound is the interface between
> anddroid andalsa.
>
> to enable all of this in the compilation add this 2 lines to your
> BoardConfig.mk
>
> BOARD_USES_ALSA_AUDIO := true
> BUILD_WITH_ALSA_UTILS := true
>
> -md
>
> On Apr 30, 8:14 am, cindy_king_1024 <cindy_king_1...@126.com> wrote:
>
>
>
> > Hi,make a disturb

> > how to get thealsa-util,and what's the main effect aboutalsa-lib?

> ...
>
> 閱讀更多 »- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

ehung

unread,
Jun 16, 2009, 4:54:30 AM6/16/09
to android-porting
Hi all:.
This is my test result below. Could someone give me some suggestion?

I can launch alsa_aplay -l and audio card is listed.

Launching alsa_aplay file.mp3 and it tells me "unable to install hw
params".

Launching alsa_amixer -c 0, it has show some information below.
Simple mixer control 'Master' ,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 13
[1] Segmentation fault alsa_mixer -c 0

When I set the Audible selection on settings of UI, the logcat message
will show
E/MediaPlayer: Unable to to create media player.

That's all for my test that I can do it what I know.

Thanks in advance again.
Best Regards,
ehung


On 6月16日, 下午3時32分, ehung <ehung1...@gmail.com> wrote:
> Hi dmoti
>      I have follow your tips to implmentalsafunction.
> I have built the libaudio.so, alsa_ctl, alsa_amixer and alsa_aplay on
> android system.

> I use a aplayer application to test thealsafunction, but the audio

> > - 顯示被引用文字 -- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Luca Belluccini

unread,
Jun 16, 2009, 6:16:12 AM6/16/09
to android-porting
It { seems to be / is } not possible.
Reply all
Reply to author
Forward
0 new messages