Put every option you found in asound.state in your asound.conf. Not just Master Playback Volume and Switch.
Also your Master Playback Volume has two values value.0 and value.1, put both of them in it. On Jun 19, 1:07 pm, xro <[email protected]> wrote: > I tried to do my asound.conf > Someone could say me what is wrong > > 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 [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Speaker_normal { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Speaker { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Headset { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Speaker_incall { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Headset_incall { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Earpiece_incall { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidPlayback_Bluetooth { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > pcm.AndroidRecord_Microphone { > type hooks > slave.pcm { > type hw > card 0 > device 0 > } > hooks.0 { > type ctl_elems > hook_args [ > { name 'Master Playback Volume' value > 64 } > { name 'Master Playback Switch' value > true } > ] > } > > } > > i always can't boot... that's the logcat > > I/ServiceManager( 1812): Waiting for sevice > media.audio_flinger... > I/ ( 1896): ServiceManager: > 0xac38 > E/ALSALib ( 1896): external/alsa-lib/src/conf.c:1589: > (snd_config_load1) _toplevel_:164:0:Unexpected > char > E/ALSALib ( 1896): external/alsa-lib/src/conf.c:2850: > (snd_config_hook_load) /etc/asound.conf may be old or corrupted: > consider to remove or fix it > E/ALSALib ( 1896): external/alsa-lib/src/conf.c:2714: > (snd_config_hooks_call) function snd_config_hook_load returned error: > Invalid argument > E/ALSALib ( 1896): external/alsa-lib/src/conf.c:3079: > (snd_config_update_r) hooks failed, removing configuration --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
