Hi... I got alsa state from my eeepc and configured asound.conf # #
# # Mixer devices # # ctl.AndroidPlayback { type hw card 0 # Can replace with drivers name from /proc/asound/cards } ctl.AndroidRecord { type hw card 0 } # # # # Playback devices # # pcm.AndroidPlayback { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Speaker_ringtone { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Earpiece_normal { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Earpiece_ringtone { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth_normal { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth_ringtone { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth_incall { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Headset_normal { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Headset_ringtone { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth-A2DP_normal { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth-A2DP_ringtone { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidPlayback_Bluetooth-A2DP_incall { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } pcm.AndroidRecord { type hooks slave.pcm { type hw card 0 device 0 } hooks.0 { type ctl_elems hook_args [ { name 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { 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 'Speaker Playback Switch' value.0 true value.1 true } { name 'Line-Out Playback Volume' value.0 52 value.1 52 } { name 'Line-Out Playback Switch' value.0 true value.1 true } { name 'e-Mic Boost' value.0 0 value.1 0 } { name 'e-Mic Playback Volume' value.0 0 value.1 0 } { name 'e-Mic Playback Switch' value.0 false value.1 false } { name 'i-Mic Boost' value.0 0 value.1 0 } { name 'i-Mic Playback Volume' value.0 0 value.1 0 } { name 'i-Mic Playback Switch' value.0 false value.1 false } { name 'Capture Volume' value.0 0 value.1 0 } { name 'Input Source' value i-Mic } { name 'Master Playback Volume' value 52 } { name 'Master Playback Switch' value true } ] } } For system properties??? setprop alsa.mixer.playback.master PCM 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 >From where can I obtain the values of these properties? --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---