Thanks, I appriciate if any relevent pointers given w.r.t my problem with ALSA.
Best Regards, Rajesh On Thu, May 21, 2009 at 2:39 PM, <[email protected]> wrote: > check it out > http://www.sumitsaxena.mysite.com/ > > i need to ur help to improve this site ................. > > On 21-May-2009 11:31am, Rajesh N <[email protected]> wrote: > > HI, > > > > I directly placed "asound.conf" file in > "/cupcake/out/target/product/generic/system/etc" and generated a image which > I flashed into board. My asound.conf file is mentioned below. Kindly give me > some pointers If there is any syntax mistake or any mistake I have done. > > > > > > > > I am working on i.MX31 PDK board, I am not very sure about the > paramenters which is passed here, Kindly correct me or suggest me . > > > > > -------------------------------------------------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' } > > > > ] } > > > > } # 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 Wed, May 20, 2009 at 7:44 PM, Ravishankar Haranath [email protected]> > wrote: > > > > > > Check your asound.conf file.. Its syntax may be wrong! Or you may post it > here so that the group can provide you some pointers. > > > > > > > > > > On Wed, May 20, 2009 at 5:46 PM, Rajesh N [email protected]> > wrote: > > > > > > > > > > Hi All, > > > > I have built android filesystem with ALSA downloaded from git, I > changed BoardConfig.mk to Then turn on BOARD_USES_ALSA_AUDIO := true > andBUILD_WITH_ALSA_UTILS := true, Code got successfully compiled , but when > ported I am getting this message at bootup , from where it is not going > further, I am unable to see android screen: Kindly provide some pointers on > this issue, > > > > > > > > > > > > > > > > Error Log : > > > > W/AudioSystem( 1714): AudioFlinger not published, waiting... > > I/ServiceManager( 1714): Waiting for sevice media.audio_flinger... > > I/ServiceManager( 1714): Waiting for sevice media.audio_flinger... > > > > > > > > > > > > > > I/ServiceManager( 1714): Waiting for sevice media.audio_flinger... > > I/ServiceManager( 1714): Waiting for sevice media.audio_flinger... > > I/ServiceManager( 1714): Waiting for sevice media.audio_flinger... > > I/ ( 1848): ServiceManager: 0xac38 > > > > > > > > > > > > > > E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1) > _toplevel_:10:1:Unexpected char > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2850:(snd_config_hook_load) /etc/asound.conf > may be old or corrupted: considt > > > > > > > > > > > > > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call) function > snd_config_hook_load returned error: It > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:3079:(snd_config_update_r) hooks failed, > removing configuration > > > > > > > > > > > > > > E/AudioHardwareALSA( 1848): Unable to attach mixer to device > AndroidPlayback: Invalid argument > > E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1) > _toplevel_:10:1:Unexpected char > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2850:(snd_config_hook_load) /etc/asound.conf > may be old or corrupted: considt > > > > > > > > > > > > > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call) function > snd_config_hook_load returned error: It > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:3079:(snd_config_update_r) hooks failed, > removing configuration > > > > > > > > > > > > > > E/AudioHardwareALSA( 1848): Unable to attach mixer to device default: > Invalid argument > > E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1) > _toplevel_:10:1:Unexpected char > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2850:(snd_config_hook_load) /etc/asound.conf > may be old or corrupted: considt > > > > > > > > > > > > > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call) function > snd_config_hook_load returned error: It > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:3079:(snd_config_update_r) hooks failed, > removing configuration > > > > > > > > > > > > > > E/AudioHardwareALSA( 1848): Unable to attach mixer to device > AndroidRecord: Invalid argument > > E/ALSALib ( 1848): external/alsa-lib/src/conf.c:1589:(snd_config_load1) > _toplevel_:10:1:Unexpected char > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2850:(snd_config_hook_load) /etc/asound.conf > may be old or corrupted: considt > > > > > > > > > > > > > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:2714:(snd_config_hooks_call) function > snd_config_hook_load returned error: It > > E/ALSALib ( 1848): > external/alsa-lib/src/conf.c:3079:(snd_config_update_r) hooks failed, > removing configuration > > > > > > > > > > > > > > E/AudioHardwareALSA( 1848): Unable to attach mixer to device default: > Invalid argument > > > > > > -- > > Best Regards, > > Rajesh N > > > > > > > > > > > > > > > > > > > > > > > > -- > > Ravishankar Haranath > > http://www.linmaya.net > > > > We should be taught not to wait for inspiration to start a thing. Action > always generates inspiration. Inspiration seldom generates action. > > > > > > > > > > - Frank Tibolt > > > > > > > > > > > > > > > > > > > > > > > > -- > > Best Regards, > > Rajesh N > > > > > > > > > > > > > > > > > > > > > > > > > -- Best Regards, Rajesh N --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
