Phew... this one was one major headache for me...
- amixer
- alsamixer
amixer set 'Speaker Mixer Aux Playback Swit' onamixer set 'Speaker Mixer PC Beep Playback ' onamixer set 'Speaker Mixer PCM Playback Swit' onamixer set 'Left Speaker Out Mux' 'Speaker'amixer set 'Out4' 100% onamixer set 'Speaker' 100% onamixer set 'PCM' 100%amixer set 'PC Beep Playback Speaker' 100%
Once the build was completed, I booted up Android with the kernel and new system image. After booting, in shell issued the same commands(but this time the name is alsa_amixer), and audio started working in Android too...HAVE_HTC_AUDIO_DRIVER := falseBOARD_USES_GENERIC_AUDIO := falseBOARD_USES_ALSA_AUDIO := trueBUILD_WITH_ALSA_UTILS := true
# ## # Mixer devices# #ctl.AndroidOut {type hwcard 0}ctl.AndroidIn {type hwcard 0}ctl.AndroidPlayback {type hwcard 0 # Can replace with drivers name from /proc/asound/cards}ctl.AndroidCapture {type hwcard 0}# ## # Playback devices# #pcm.AndroidPlayback {type hooksslave.pcm {type hwcard 0device 0}hooks.0 {type ctl_elemshook_args [{ name 'Speaker Mixer Aux Playback Swit' value on }{ name 'Speaker Mixer PC Beep Playback ' value on }{ name 'Speaker Mixer PCM Playback Swit' value on }{ name 'Left Speaker Out Mux' value 'Speaker' }{ name 'Out4 Playback Switch' value on }{ name 'PC Beep Playback Speaker Volume' value 7 }]}}





