[android-porting] Re: ALSA sound lib

2009-06-19 Thread Luca Belluccini
On which platform are you? Try to get inspired by http://patch-hosting-for-android-x86-support.googlecode.com/files/asound.conf, changing controls (you can get them by alsa_actl store) On 19 Giu, 08:54, xro romanen...@hotmail.com wrote: i'm really noob in sound... how can i create i good

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
thanks for reply... i'm on a APF27 plateforme... It's based on ARM processor. So Androids works... I just have to fix the sound... If i understand i have to begin with ctl.AndroidPlayback { type hw card 0 } ctl.AndroidRecord { type hw card 0 } And after

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
i did the alsactl store and that build a asound.state i have to transform asound.state in asound.conf? and how? --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: ALSA sound lib

2009-06-19 Thread Androidphan
You can try and look at the sample that Luca Belluccini gave you. It's not that hard if you tried. On Jun 19, 11:39 am, xro romanen...@hotmail.com wrote: i did the alsactl store and that build a asound.state i have to transform asound.state in asound.conf? and how?

[android-porting] Re: ALSA sound lib

2009-06-19 Thread Luca Belluccini
In each { name 'Speaker Playback Switch'value [ true true ] } { name 'Line-Out Playback Volume' value [ 64 64 ] } { name 'Line-Out Playback Switch' value [ true true ] } {

[android-porting] Re: ALSA sound lib

2009-06-19 Thread Androidphan
In asound.state you'll see all kind of controls. They all have a name and a value. You need to put the names and values in your asound.conf On Jun 19, 11:49 am, xro romanen...@hotmail.com wrote: It's easy for you but not for me... I try to fix the sound since 2 days How can i know what

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
You know how to do. So could you give me just an exemple that would be great... i give you my asound.state. Can you just put the first lines of asound.conf... I hope i will be able to understand... state.IMX-ALSA { control.1 { comment.access 'read write'

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
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

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
thanks for ur help... should i do like that? (for each) hook_args [ { name 'Master Playback Volume' value. 0 64} { name 'Master Playback Volume' value. 1 64} { name 'Master

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
What is this error? E/AudioHardwareALSA( 1912): Unable to set buffer size to 16384: Invalid argument someone knows it? --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: ALSA sound lib

2009-06-19 Thread Luca Belluccini
Remember to set the system properties on init.rc files On 19 Giu, 14:05, xro romanen...@hotmail.com wrote: What is this error? E/AudioHardwareALSA( 1912): Unable to set buffer size to 16384: Invalid argument someone knows it? --~--~-~--~~~---~--~~

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
thanks for help... i put this properties for the sound: setprop alsa.mixer.playback.master Front setprop alsa.mixer.capture.master Capture setprop alsa.mixer.playback.earpiece Master setprop alsa.mixer.capture.earpiece Capture setprop alsa.mixer.playback.headset Master

[android-porting] Re: ALSA sound lib

2009-06-19 Thread xro
i finally found my error... it was in the AudioHardwareALSA.cpp... there is a bug with the buffer Now i comment the test in line 606... It works --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: