diego, thank for u help

but i have audio sound working when i try musicplayer, but when i try

#alsa_aplay
not found alsa_aplay
#alsa_amixer
not found alsa_amixer

but i think the problem in asound.conf is thier a way how to modify it
 here my asound.conf

ctl.AndroidOut {
        type hw
        card 0
}
ctl.AndroidIn {
        type hw
        card 0
}

ctl.AndroidPlayback {
        type hw
        card 0
}
ctl.AndroidRecord {
        type hw
        card 0
}

pcm.AndroidPlayback {
        type hooks
        slave.pcm {
                type hw
                card 0
                device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                ]
        }
}

pcm.AndroidPlayback_Speaker_normal {
        type hooks
        slave.pcm {
                type hw
                card 0
                device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                        #{ name 'PCM Playback Switch'                   value   
true            }
                        #{ name 'PCM Playback Volume'                   value   
[ 25 25 ]       } # music volume
(max: [31 31])
                        #{ name 'PC Beep Playback Headphone Switch'     value   
false           }
                        #{ name 'PC Beep Playback Speaker Switch'       value   
false           }
                        #{ name 'Capture Switch'                                
value   false           }
                        #{ name 'RecMuxl to hp'                         value   
'Mute'          }

                        #{ name 'Mic 1 Switch'                          value   
false           }
                        #{ name 'Mic 1 Ctl'                             value   
false           }
                        #{ name 'Mic 2 Switch'                          value   
false           }
                        #{ name 'Mic 2 Ctl'                             value   
false           }
                        #{ name 'Voice Playback Mono Switch'            value   
false           }

                        { name 'Headphone Playback Volume'              value [ 
22 22 ]         }
                        #{ name 'Speaker Playback Switch'               value [ 
true true ]     }
                        #{ name 'Out3 Playback Switch'                  value   
false           }
                        #{ name 'Out4 Playback Switch'                  value   
false           }
                        #{ name 'Mono Playback Switch'                  value   
false           }
                ]
        }
}

On Jul 14, 10:13 pm, Diego <diego.rond...@kynetics.it> wrote:
> On Jul 14, 7:05 pm, "amr.has" <nourha...@hotmail.com> wrote:
>
> > E/ALSALib (  746): external/alsa-lib/src/control/setup.c:565:
> > (add_elem) Cannot obtain info for CTL elem (MIXER,'Headphone Playback
> > Volume',0,0,0): No such file or directory
> > E/ALSALib (  746): external/alsa-lib/src/pcm/pcm.c:2210:
> > (snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
>
> These look like the problematic lines. I managed to solve a similar
> problem (but I still have another) tweaking my asound.conf; take a
> look 
> here:http://groups.google.com/group/android-porting/browse_thread/thread/9...

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to