[android-porting] Re: ALSA recording audio on Donut problem

2011-07-29 Thread Diego
On Jul 28, 12:29 pm, Diego diego.rond...@kynetics.it wrote: Next problem I get (yeah, not finished yet!) is a buffer overflow issue in AudioFlinger which prevents audio recording to succeed. Inspecting the code I found out that disabling the second condition of the if in

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-28 Thread Diego
On Jul 23, 3:45 pm, amr.has nourha...@hotmail.com wrote: so the problem is in change SND_PCM_STREAM_CAPTUR by SND_PCM_STREAM_PLAYBACK ?? can u explain more details about this solution I hadn't found the solution at the time; I've found it recently. In openInputStream method (donut branch

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-23 Thread amr.has
so the problem is in change SND_PCM_STREAM_CAPTUR by SND_PCM_STREAM_PLAYBACK ?? can u explain more details about this solution thanks amr hassan On Jul 22, 4:42 pm, Diego diego.rond...@kynetics.it wrote: On Jul 19, 4:16 pm, Diego diego.rond...@kynetics.it wrote: Another step: I found out I

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-22 Thread Diego
On Jul 19, 4:16 pm, Diego diego.rond...@kynetics.it wrote: Another step: I found out I can use busybox's fuser. I get: # busybox fuser /dev/snd/pcmC0D0p 1788 # ps | busybox grep 1788 media     1788  1     17636  1212   afe0c51c S /system/bin/ mediaserver So the pcmC0D0p is opened

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-19 Thread Diego
On Jul 15, 6:18 pm, Diego diego.rond...@kynetics.it wrote: On Jul 13, 6:38 pm, Diego Rondini diego.rond...@kynetics.it wrote: I don't get while I see the err = ... line multiple times, and it's not clear to me what's happening in this method. Can anybody help me? Ok, found out some more:

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-15 Thread Diego
On Jul 13, 6:38 pm, Diego Rondini diego.rond...@kynetics.it wrote: I don't get while I see the err = ... line multiple times, and it's not clear to me what's happening in this method. Can anybody help me? Ok, found out some more: the err = ... line is present several times because the

[android-porting] Re: ALSA recording audio on Donut problem

2011-07-14 Thread Diego
On 14 Lug, 01:56, Ashwin Bihari abih...@gmail.com wrote: If you are starting a port to a new board, why are you starting with such an old version of Android? You should start with Gingerbread and at the worst FroYo.. The device I'll use isn't powerful enough to run Froyo smoothly, it has just