Hello,
I am trying to bring audio up on a custom 3530 platform. I've tried to edit the asound.conf but I can't see to figure it out. So I've written a shell script to route the sound via alsa_amixer.
#!/system/bin/
alsa_amixer cset numid=56 on
alsa_amixer cset numid=57 on
alsa_amixer cset numid=58 on
alsa_amixer cset numid=52 on
alsa_amixer cset numid=53 on
alsa_amixer cset numid=54 on
alsa_amixer cset numid=13 3,0
alsa_amixer cset numid=3 30,30
alsa_amixer cset numid=5 1,0
When i run this script the unit has sound, but I would like to integrate this logic into the asound.conf. Here was my attempt modifying the asound.conf.
# Android ALSA configuration file for TI OMAP3430 reference platform using the TWL4030 ASoC audio.
##
## Mixer Devices
##
ctl.AndroidOut {
type hw
card 0
}
ctl.AndroidIn {
type hw
card 0
}
##
## Playback Devices
##
pcm.AndroidOut_Speaker {
type hooks
slave.pcm {
type hw
card 0
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{name 'PredriveL Mixer AudioL1' value on}
{name 'PredriveL Mixer AudioL2' value on}
{name 'PredriveL Mixer AudioR2' value on}
{name 'PredriveR Mixer AudioL2' value on}
{name 'PredriveR Mixer AudioR1' value on}
{name 'PredriveR Mixer AudioR2' value on}
{name 'PreDriv Playback Volume' value 3}
]
}
}
pcm.AndroidOut_Speaker_normal {
type hooks
slave.pcm {
type hw
card 0
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{name 'PredriveL Mixer AudioL1' value on}
{name 'PredriveL Mixer AudioL2' value on}
{name 'PredriveL Mixer AudioR2' value on}
{name 'PredriveR Mixer AudioL2' value on}
{name 'PredriveR Mixer AudioR1' value on}
{name 'PredriveR Mixer AudioR2' value on}
{name 'PreDriv Playback Volume' value 3}
]
}
}
pcm.AndroidOut_Headset {
type hw
}
pcm.AndroidOut_Earpiece {
type hw
}
# No bluetooth available. Send output to the bit bucket.
pcm.AndroidOut_Bluetooth {
type null
}
pcm.AndroidOut_Bluetooth-A2DP {
type null
}
##
## Recording device
##
pcm.AndroidIn {
type hw
}
This asound.conf seems to do nothing. Is there something I'm missing, or could someone point me to some documentation? Thanks!