本帖最后由 一只耳朵怪 于 2018-6-6 16:24 编辑
您好!
使用AM3517在Android2.2移植ALSA声卡驱动,在录音时总是提示RecordThread: buffer overflow错误,请问是什么原因引起的?
--------- beginning of /dev/log/main
I/DEBUG ( 794): debuggerd: Sep 17 2011 13:18:12
--------- beginning of /dev/log/system
E/ALSALib ( 797): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidPlayback
W/AudioHardwareALSA( 797): Unable to attach mixer to device AndroidPlayback: No such file or directory
E/ALSALib ( 797): external/alsa-lib/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidCapture
W/AudioHardwareALSA( 797): Unable to attach mixer to device AndroidCapture: No such file or directory
E/
tiALSAModule( 797): ------------------------------------------------------------Open with TI ALSA module opened,use this TI ALSA module
D/TIALSAModule( 797): TI ALSA module opened
D/TIALSAModule( 797): Initializing devices for TI ALSA module
I/CameraService( 797): CameraService started: pid=797
D/AudioHardwareALSA( 797): openOutputStream called for devices: 0x00000002
D/TIALSAModule( 797): open called for devices 00000002 in mode 0...
E/ALSAControl( 797): Control 'HeadsetR Mixer AudioR2' cannot get element info: -2
E/ALSAControl( 797): Control 'HeadsetL Mixer AudioL2' cannot get element info: -2
E/TIALSAModule( 797): Initialized ALSA PLAYBACK device default
I/AudioFlinger( 797): AudioFlinger's thread 0x1e288 ready to run
D/TIALSAModule( 797): route called for devices 00000002 in mode 0...
E/AudioHardwareALSA( 797): CALLING STANDBY
E/AudioRecord( 943): set(): sampleRate 8000, channels 16, frameCount 0
E/AudioRecord( 943): AUDIO_SOURCE_MIC = 1
D/TIALSAModule( 797): open called for devices 00040000 in mode 0...
E/ALSAControl( 797): Control 'Analog Left AUXL Capture Switch' cannot get element info: -2
E/ALSAControl( 797): Control 'Analog Right AUXR Capture Switch' cannot get element info: -2
E/ALSAControl( 797): Control 'Analog Capture Volume' cannot get element info: -2
E/TIALSAModule( 797): Initialized ALSA CAPTURE device default
D/AcousticsModule( 797): Acoustics set_params stub called with 0.
E/AudioFlinger( 797): openInput() openInputStream returned input 0x2b580, SamplingRate 8000, Format 1, Channels 10, acoustics 0, status 0
E/AudioFlinger( 797): openInput() created record thread: ID 2 thread 0xc3c8
D/dalvikvm( 850): GC_EXTERNAL_ALLOC freed 4290 objects / 260496 bytes in 194ms
D/TIALSAModule( 797): route called for devices 00040000 in mode 0...
W/AudioFlinger( 797): RecordThread: buffer overflow
W/AudioFlinger( 797): RecordThread: buffer overflow
W/AudioFlinger( 797): RecordThread: buffer overflow