You will need to either download them separately using a git-clone
operation, or by editing the platform/manifest.git default.xml file. We have
added the ALSA stuff to the Openmoko Freerunner port at
http://git.koolu.org. The example manifest git can be found there.

Regards,
Brian Code

On Mon, Dec 8, 2008 at 8:15 PM, Misael Lopez <[EMAIL PROTECTED]> wrote:
>
>> I did a 'repo init ...' and 'repo sync' but neither alsa-lib nor
>> libaudio-alsa code is downloaded but they are showed in gitweb interface of
>> android code. Why arent they downloaded with default manifest? Did you add
>> entries for those projects in manifest file?
>>
>> -Misa
>> 2008/12/5 mvniekerk <[EMAIL PROTECTED]>
>>
>>
>>> I've sorted the problem.
>>> If you go to line 2962 of alsa-lib/src/conf.c, I've changed it to the
>>> following:
>>> {
>>>        if (!configs) {
>>>                configs = ALSA_CONFIG_PATH_DEFAULT;
>>>                if (!configs)
>>>                        configs = getenv(ALSA_CONFIG_PATH_VAR);
>>>        }
>>> }
>>>
>>> What happens is when the config is read, strace throws out EISDIR.
>>> Thus the system wanted to get a file but instead found a directory.
>>> Now I've changed it to the default config file path. Everything is
>>> picked up nicely.
>>> I know this is probably not the necessarily correct way of doing
>>> things, but if it gets my sound working then I'll use it!
>>>
>>> On Dec 2, 4:25 am, Sean McNeil <[EMAIL PROTECTED]> wrote:
>>> > asound.conf should go in /system/etc/asound.conf, not /etc. Most of the
>>> > time /etc is a symlink, so it doesn't matter.
>>> >
>>> > You will probably have to go through your complete asound.conf to see
>>> if
>>> > it is correct for your hardware and kernel. The best suggestion I have
>>> > is to use something like "alsactl -f /tmp/xxx save" (sorry, I'm going
>>> by
>>> > memory here and it might not be accurate) to save the alsa control
>>> state
>>> > and then compare your switches.
>>> >
>>> > mvniekerk wrote:
>>> > > I'm on the way of pulling my hair out.
>>> >
>>> > > 1) iMX Alsa Kernel driver loads
>>> > >      i) PROCFS entries in /proc/asound are made
>>> > >      ii) /proc/asound/version says 1.0.15
>>> > >      iii) /proc/asound/card0 has all the right entries
>>> > >      iv) Special device files are made in /dev/snd/  (pcmC0D0p/c
>>> > > mixer0 timer etc) with (forced by me) write permissions as 0777.
>>> > > 2) Alsa lib compiles in Android environment, identified as 1.0.16
>>> > > 3) AlsaAudioHardware code from Wind River compiles
>>> > > 4) Alsa utils compiled, identified as 1.0.16
>>> > > 5) /ets/asound.conf set up
>>> >
>>> > > aplayer cannot find any devices, nor does amixer (`aplayer -l`).
>>> > > libaudio crashes the repeatedly, without even the Android interface
>>> > > showing up, complaining of "Invalid CTL AndroidPlayback".
>>> >
>>> > > On Nov 27, 3:37 pm, "Sangsu Park" <[EMAIL PROTECTED]> wrote:
>>> >
>>> > >> Hi.
>>> >
>>> > >> did you check if alsa-lib is working well?
>>> > >> I checked it using aplay.
>>> > >> It's very simple to compile into Android.
>>> > >> I refered to below site.
>>> >
>>> > >>
>>> http://letsgoustc.spaces.live.com/Blog/cns!89AD27DFB5E249BA!404.entry<http://letsgoustc.spaces.live.com/Blog/cns%2189AD27DFB5E249BA%21404.entry>
>>> >
>>> > >> On 11/27/08, mvniekerk <[EMAIL PROTECTED]> wrote:
>>> >
>>> > >>> I'm sorry to dump this on a mailing list, but here goes:
>>> >
>>> > >>> cd /proc/asound
>>> >
>>> > >>> # ls -l
>>> >
>>> > >>> lrwxrwxrwx root     root              1970-01-01 00:00 PMICaudio ->
>>> > >>> card0
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 card0
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 pcm
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 timers
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 cards
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 devices
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 version
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 oss
>>> >
>>> > >>> # cd card0
>>> >
>>> > >>> # ls -l
>>> >
>>> > >>> -rw-r--r-- root     root            0 1970-01-01 00:00 oss_mixer
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:00 id
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 pcm2p
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 pcm1p
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 pcm0c
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:00 pcm0p
>>> >
>>> > >>> # cd ../
>>> >
>>> > >>> # ls -l
>>> >
>>> > >>> lrwxrwxrwx root     root              1970-01-01 00:01 PMICaudio ->
>>> > >>> card0
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:01 card0
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:01 pcm
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:01 timers
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:01 cards
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:01 devices
>>> >
>>> > >>> -r--r--r-- root     root            0 1970-01-01 00:01 version
>>> >
>>> > >>> dr-xr-xr-x root     root              1970-01-01 00:01 oss
>>> >
>>> > >>> # cat devices
>>> >
>>> > >>> 0: [ 0]   : control
>>> >
>>> > >>> 16: [ 0- 0]: digital audio playback
>>> >
>>> > >>> 17: [ 0- 1]: digital audio playback
>>> >
>>> > >>> 18: [ 0- 2]: digital audio playback
>>> >
>>> > >>> 24: [ 0- 0]: digital audio capture
>>> >
>>> > >>> 33:        : timer
>>> >
>>> > >>> # cd /dev/snd
>>> >
>>> > >>> # ls -l
>>> >
>>> > >>> crw-rw-r-- system   audio     14,   0 1970-01-01 00:00 mixer
>>> >
>>> > >>> crw-rw-r-- system   audio    116,   0 1970-01-01 00:00 controlC0
>>> >
>>> > >>> crw-rw-r-- system   audio     14,   4 1970-01-01 00:00 audio
>>> >
>>> > >>> crw-rw-r-- system   audio     14,   3 1970-01-01 00:00 dsp
>>> >
>>> > >>> crw-rw-r-- system   audio    116,  24 1970-01-01 00:00 pcmC0D0c
>>> >
>>> > >>> crw-rw-r-- system   audio    116,  16 1970-01-01 00:00 pcmC0D0p
>>> >
>>> > >>> crw-rw-r-- system   audio     14,  12 1970-01-01 00:00 adsp
>>> >
>>> > >>> crw-rw-r-- system   audio    116,  17 1970-01-01 00:00 pcmC0D1p
>>> >
>>> > >>> crw-rw-r-- system   audio    116,  18 1970-01-01 00:00 pcmC0D2p
>>> >
>>> > >>> crw-rw-r-- system   audio    116,  33 1970-01-01 00:00 timer
>>> >
>>> > >>> Here is the asound.conf file:
>>> > >>> # cat /etc/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 "T2 Master codec configure
>>> Switch"
>>> >
>>> > >>>                                lock false
>>> >
>>> > >>>                                preserve true
>>> >
>>> > >>>                                optional false
>>> >
>>> > >>>                                value true
>>> >
>>> > >>>                        }
>>> >
>>> > >>>                        {
>>> >
>>> > >>>                                name "T2 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 "T2 Master codec configure
>>> Switch"
>>> >
>>> > >>>                                value true
>>> >
>>> > >>>                        }
>>> >
>>> > >>>                        {
>>> >
>>> > >>>                                name "T2 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 "T2 Master codec configure
>>> Switch"
>>> >
>>> > >>>                                value true
>>> >
>>> > >>>                        }
>>> >
>>> > >>>                        {
>>> >
>>> > >>>                                name "T2 Master codec Sample Rate"
>>> >
>>> > >>>                                value 48000
>>> >
>>> > >>>                        }
>>> >
>>> > >>>                        {
>>> >
>>> > >>>                                name "Playback Source"
>>> >
>>> > >>>                                value 'Mono Handset'
>>> >
>>> > >>>                        }
>>> >
>>> > ...
>>> >
>>> > read more ยป
>>>   >>>
>>>
>

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

Reply via email to