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

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 add alsa-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 all alsa controls.
>
> > > 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 :
> > > > 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.
>
> > > > 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 my alsa thread.
>
> > > > > > 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 ===================================================
>
> > > > > > > # 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>
>
> > > > > > > > > Hi Luca:
>
> > > > > > > > > Yes , I build with lastest source code.
>
> > > > > > > > > On 4月17日, 下午4時11分, Luca Belluccini <lucabellucc...@gmail.com> 
> > > > > > > > > wrote:
> > > > > > > > > > Did you build with the last source code?
>
> > > > > > > > > > On Apr 17, 9:43 am, Skuld <skul...@gmail.com> wrote:
>
> > > > > > > > > > > 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
>
> ...
>
> read more >>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to