jancona / android-on-freerunner

Automatically exported from code.google.com/p/android-on-freerunner
1 stars 1 forks source link

audio recording is not working #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download, install and configure "Walkie Talkie Push to Talk" program:
http://andappstore.com/AndroidApplications/apps/Walkie_Talkie_Push_to_Talk
2. Try to "Hold Down to Record & Send"
3. Observe the program (and the Android in general) lockup with
battery-ejecton the only way to recover.

What is the expected output? What do you see instead?
To record the audio or graciously fail (application crash), but not the
distro lockup.

What version of the product are you using? On what operating system?
android-on-freerunner-cupcake-week-2009-44.tar.gz

Can someone with included "Audio recorder" application test, whether the
audio recording works at all and update the bug please?

Please provide any additional information below.
"adb logcat" has following text:
I/ARMAssembler(  862): generated
scanline__00000077:03515104_00000000_00000000 [ 45 ipp] (66 ins) at
[0x1f0388:0x1f0490] in 5000000 ns
I/AudioHardwareALSA(  847): Initialized ALSA PLAYBACK device
AndroidPlayback_Speaker_normal
D/AudioHardwareALSA(  847): Set PLAYBACK PCM format to S16_LE (Signed 16
bit Little Endian)
D/AudioHardwareALSA(  847): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA(  847): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA(  847): Buffer size: 16384
D/AudioHardwareALSA(  847): Latency: 371519
W/AudioFlinger(  847): write blocked for 898 msecs
E/ALSALib (  847):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord_Speaker_normal
E/ALSALib (  847):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord_Speaker
E/ALSALib (  847):
external/alsa-lib/src/pcm/pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord
I/AudioHardwareALSA(  847): Initialized ALSA CAPTURE device hw:00,0
D/AudioHardwareALSA(  847): Set CAPTURE PCM format to S16_LE (Signed 16 bit
Little Endian)
E/AudioHardwareALSA(  847): Unable to set channel count to 1: Invalid argument
W/AudioFlinger(  847): AudioRecordThread: buffer overflow
D/PlaybackHelper( 1017): media player onCompletion
W/AudioRecord(  847): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  847): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
...

Original issue reported on code.google.com by skliarie@gmail.com on 12 Nov 2009 at 1:52

GoogleCodeExporter commented 9 years ago
I've tried the SoundRecorder inlcuded in Android, and I get the exact same 
issue. I
even tried adding a default ALSA record profile in etc/asound.conf, basically 
just
copying the AndroidRecord_Microphone to AndroidRecord thinking maybe this was 
the
issue, but I still get the obtainBuffer timeouts.

Original comment by larss...@gmail.com on 3 Dec 2009 at 11:17

GoogleCodeExporter commented 9 years ago
Confirmed for android-on-freerunner-master-daily-20100404.tar.bz2 albeit with a
different error:

D/WalkieTalkieService( 1807): ***** WalkieTalkie Service *****: checking msgs
D/WifiService(  855): acquireWifiLockLocked: WifiLock{wifilock type=1
binder=android.os.BinderProxy@4d12d00}
E/PV      (  840): OsclErrorTrap::Init error 1
E/MediaPlayerService(  840): Failed to create player object
E/MediaPlayer( 1807): Unable to to create media player
E/WalkieTalkie( 1807): failed to start recording
E/WalkieTalkie( 1807): java.io.IOException: setDataSourceFD failed.: 
status=0x80000000
E/WalkieTalkie( 1807):  at android.media.MediaPlayer.setDataSource(Native 
Method)
E/WalkieTalkie( 1807):  at com.rcreations.ptt.audio.PlaybackHelper.<i
...

Original comment by skliarie@gmail.com on 6 Apr 2010 at 2:32