After I modified some codes in alsa-lib, no more "Invalid type for
card" error from logcat.
but below message shows.
------------------------------------------------------------------
I/ServiceManager(  677): Waiting for sevice
media.audio_policy...
W/AudioSystem(  677): AudioPolicyService not published, waiting...
------------------------------------------------------------------

Anybody met this message before??



On Mar 17, 5:46 pm, abukustfan <[email protected]> wrote:
> Did anyone try android-2.1 + alsa on linux kernel-2.6.31 ??
>
> I read the source code under hardware/alsa_sound but cannot find out
> where should I change for my target.
> Can somebody guide me how or which part should I modify?
>
> Thanks for any help!
>
> On Mar 16, 10:40 am, abukustfan <[email protected]> wrote:
>
>
>
> > Hi all,
>
> > I tried to port eclair + alsa to my target board.
> > Target board boot up success but I cannot play sound on it.
>
> > # alsa_amixer -c 0
> > # alsa_aplay -l
> > shows my devices info correctly. but "# alsa_aplay sample.wav" shows
> > below error,
> > ------------------------------------------
> > ALSA lib external/alsa-lib/src/confmisc.c:768:(parse_card) cannot find
> > card
> > '-76922'
> > ALSA lib external/alsa-lib/src/conf.c:3514:(_snd_config_evaluate)
> > function snd_func_card_driver returned error: No such
> > device
> > ALSA lib external/alsa-lib/src/confmisc.c:392:(snd_func_concat) error
> > evaluating
> > strings
> > ALSA lib external/alsa-lib/src/conf.c:3514:(_snd_config_evaluate)
> > function snd_func_concat returned error: No such
> > device
> > ALSA lib external/alsa-lib/src/confmisc.c:1251:(snd_func_refer) error
> > evaluating
> > name
> > ALSA lib external/alsa-lib/src/conf.c:3514:(_snd_config_evaluate)
> > function snd_func_refer returned error: No such
> > device
> > ALSA lib external/alsa-lib/src/conf.c:3986:(snd_config_expand)
> > Evaluate error: No such
> > device
> > ALSA lib external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate)
> > Unknown PCM
> > default
> > aplay: main:590: audio open error: No such device
> > ------------------------------------------
>
> > I got below messages from my logcat.
> > ------------------------------------------
> > E/ALSALib (  644): external/alsa-lib/src/confmisc.c:136:
> > (snd_config_get_bool) In
> > valid type for
> > nonblock
> > E/ALSALib (  644): external/alsa-lib/src/pcm/pcm_hw.c:1423:
> > (_snd_pcm_hw_open) In
> > valid type for card
> > ------------------------------------------
>
> > I found a lots of discussion about android alsa problem but cannot
> > find the solution of this.
> > Can somebody help me?
>
> > Thanks

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

To unsubscribe from this group, send email to 
android-porting+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to