Hi Luca,

I have checked out alsa-lib, alsa_sound from android git, and it doesn't
generates any file with the name asound.conf , it generates alsa.conf in
system/usr/share/alsa.conf (I cross checked Android.mk file ) which I copied
in system/etc with the name asound.conf. But the system is crashing with the
same logs.

Hi Ravi,

1. Use, "alsa_amixer contents" to get the controls and their values

alsa_mixer will not work as the system is not even getting UP bcoz of the
crash.
2. Create asound.conf based on the above result
3. Put it in /system/etc/ folder in your Android-target and check.

I already tried with that but the system is still geting crashed.

Please find attached my alsa.conf file

Thanks & Regards
Nimit



On Fri, Jun 5, 2009 at 8:56 AM, crazygenie <[email protected]> wrote:

>
> ALSA will NOT work unless you have a valid asound.conf customized for
> your audio controls.
>
> 1. Use, "alsa_amixer contents" to get the controls and their values
> 2. Create asound.conf based on the above result
> 3. Put it in /system/etc/ folder in your Android-target and check.
>
>
> On Jun 4, 6:23 pm, Nimit Manglick <[email protected]> wrote:
> > Its trying to look for soem configuration settings it seems teh code
> snippet
> > is as below :-
> >
> > err = snd_config_search_definition(root, "ctl", name, &ctl_conf);
> >     if (err < 0) {
> >         SNDERR("Invalid CTL %s", name);
> >         return err;
> >     }
> >
> > plus the error its throwing from some config.c fiel also.
> >
> > Is it a problem of soem configuration file ??
> >
> > Regards
> > Nimit
> >
> > On Thu, Jun 4, 2009 at 6:35 PM, Luca Belluccini <
> [email protected]>wrote:
> >
> >
> >
> > > control.c @ line 909 what is trying to do?
> >
> > > On 4 Giu, 07:50, Nimit Manglick <[email protected]> wrote:
> > > > I followed the steps... I checked out alsa-lib , alsa-utils and
> > > alsa_sound
> > > > from android git repository.
> >
> > > > But The system is getting crashed on start up.
> >
> > > > the logs are :-
> >
> > > > E/ALSALib (  691):
> > > > external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate)
> > > Invalid
> > > > CTL AndroidPlayback
> > > > E/AudioHardwareALSA(  691): Unable to attach mixer to device
> > > > AndroidPlayback: No such file or directory
> > > > E/ALSALib (  691):
> external/alsa-lib/src/conf.c:3964:(snd_config_expand)
> > > > Load defaults error: File exists
> > > > E/ALSALib (  691):
> > > > external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate)
> > > Invalid
> > > > CTL hw:00
> > > > E/AudioHardwareALSA(  691): Unable to attach mixer to device default:
> > > File
> > > > exists
> > > > E/ALSALib (  691):
> > > > external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate)
> > > Invalid
> > > > CTL AndroidRecord
> > > > E/AudioHardwareALSA(  691): Unable to attach mixer to device
> > > AndroidRecord:
> > > > No such file or directory
> > > > E/ALSALib (  691):
> external/alsa-lib/src/conf.c:3964:(snd_config_expand)
> > > > Load defaults error: File exists
> > > > E/ALSALib (  691):
> > > > external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate)
> > > Invalid
> > > > CTL hw:00
> > > > E/AudioHardwareALSA(  691): Unable to attach mixer to device default:
> > > File
> > > > exists
> >
> > > > Please help me what i am misisng. ?
> >
> > > > Thanks
> > > > Nimit
> >
> > > > On Thu, Jun 4, 2009 at 11:14 AM, crazygenie <[email protected]>
> wrote:
> >
> > > > > Those error messages in system startup will vanish as soon as you
> put
> > > > > a proper asound.conf file covering all the audio controls into
> /system/
> > > > > etc directory. One way to write a asound.conf is to look at the
> output
> > > > > of "alsa_mixer contents" command and writing the asound.conf
> > > > > accordingly.
> >
> > > > > On Jun 3, 4:40 pm, Luca Belluccini <[email protected]>
> wrote:
> > > > > > asound.conf must be fixed:
> > > > > > +device 0
> > > > > > -device 16
> >
> > > > > > On 3 Giu, 13:36, Luca Belluccini <[email protected]>
> wrote:
> >
> > > > > > > Solved.
> >
> > > > > > > Use these info as guide for ALSA on x86.
> > > > > > > Remember to make clean!
> >
> >
> >
>

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

Attachment: alsa.conf
Description: Binary data

Reply via email to