Devkit8000 Mic support

111 views
Skip to first unread message

trek-Oo

unread,
Nov 29, 2010, 10:07:48 PM11/29/10
to 0xlab-devel
I've been trying to get the mic to work. ive applied the fixes and
patches as mentioned in some of the earlier issues. I've managed to
record sound via ALSA aplay command.. and it plays back fine. But i
can't get any sound recording applications to work, each one giving me
a slightly different error and usually there are multiple errors. Also
when i playback a sound i recorded using ALSA commands the sound
duration doesn't not show up.

Here is an example when i run the standard android sound recorder:

E/ALSALib ( 1261): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidOut
W/AudioHardwareALSA( 1261): Unable to attach mixer to device
AndroidOut: No such file or directory
E/ALSALib ( 1261): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidIn
W/AudioHardwareALSA( 1261): Unable to attach mixer to device
AndroidIn: No such file or directory
I/CameraService( 1261): CameraService started: pid=1261
D/AudioHardwareALSA( 1261): openOutputStream called for devices:
0x00000002
D/ALSAModule( 1261): open called for devices 00000002 in mode 0...
E/ALSALib ( 1261): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib ( 1261): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
E/ALSALib ( 1261): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
I/ALSAModule( 1261): Initialized ALSA PLAYBACK device default
I/AudioFlinger( 1261): AudioFlinger's thread 0x24cc0 ready to run
D/ALSAModule( 1261): route called for devices 00000002 in mode 0...
E/AudioService( 905): Media server died.
E/AudioService( 905): Media server started.
W/AudioPolicyManagerALSA( 1261): setPhoneState() setting same state 0

Also:

E/PV ( 1261): PVLOG:TID(0xc5e8):Time=6:OsclLib::loadlibrary:
Error opening library (libomx_sharedlibrary_debug.so): Cannot load
library: load_library[1052]: Library 'libomx_sharedlibrary_debug.so'
not found
E/PV ( 1261): PVLOG:TID(0xc5e8):Time=14:OsclLib::loadlibrary:
Error opening library (libopencore_streamingreg_debug.so): Cannot load
library: load_library[1052]: Library
'libopencore_streamingreg_debug.so' not found
E/PV ( 1261): PVLOG:TID(0xc5e8):Time=16:OsclLib::loadlibrary:
Error opening library (libopencore_downloadreg_debug.so): Cannot load
library: load_library[1052]: Library
'libopencore_downloadreg_debug.so' not found
E/PV ( 1261): PVLOG:TID(0xc5e8):Time=18:OsclLib::loadlibrary:
Error opening library (libopencore_mp4localreg_debug.so): Cannot load
library: load_library[1052]: Library
'libopencore_mp4localreg_debug.so' not found
E/PV ( 1261): PVLOG:TID(0xc5e8):Time=22:OsclLib::loadlibrary:
Error opening library (libopencore_mp4localreg_debug.so): Cannot load
library: load_library[1052]: Library
'libopencore_mp4localreg_debug.so' not found
E/PV ( 1261):
PVLOG:TID(0xc5e8):Time=29:PVMFRecognizerRegistryImpl::CheckForDataAvailability
- RequestReadCapacityNotification Failed

E/Mms/media( 1034): MediaMetadataRetriever failed to get duration for /
external/audio/media/2




Any idea?

trek-Oo

unread,
Nov 29, 2010, 10:28:01 PM11/29/10
to 0xlab-devel
I'm assuming its to do with defining hooks in the alsa config. but
where do i define it? this alsa version doesnt use asound.conf

Jim Huang

unread,
Nov 29, 2010, 11:24:49 PM11/29/10
to 0xlab...@googlegroups.com
2010/11/30 trek-Oo <tari...@gmail.com>:

> I've been trying to get the mic to work. ive applied the fixes and
> patches as mentioned in some of the earlier issues. I've managed to
> record sound via ALSA aplay command.. and it plays back fine. But i
> can't get any sound recording applications to work, each one giving me
> a slightly different error and usually there are multiple errors. Also
> when i playback a sound i recorded using ALSA commands the sound
> duration doesn't not show up.
>

hi,

Did you apply changes done by 0xlab-kernel tree?
http://gitorious.org/0xlab-kernel/kernel/commit/8e8c008acb1feb56739c3189191a5af760b0fc1d

(commit commit 8e8c008acb1feb56739c3189191a5af760b0fc1d)

Thanks,
Jim Huang (jserv)
http://0xlab.org/

trek-Oo

unread,
Dec 1, 2010, 12:37:26 AM12/1/10
to 0xlab-devel
Yes I've already applied all the patches to do with the registry
changes. I'm on the 2.6.29 kernel btw. will try my luck with the newer
kernel

On Nov 30, 5:24 pm, Jim Huang <js...@0xlab.org> wrote:
> 2010/11/30 trek-Oo <tarik....@gmail.com>:
>
> > I've been trying to get the mic to work. ive applied the fixes and
> > patches as mentioned in some of the earlier issues. I've managed to
> > record sound via ALSA aplay command.. and it plays back fine. But i
> > can't get any sound recording applications to work, each one giving me
> > a slightly different error and usually there are multiple errors. Also
> > when i playback a sound i recorded using ALSA commands the sound
> > duration doesn't not show up.
>
> hi,
>
> Did you apply changes done by 0xlab-kernel tree?
>    http://gitorious.org/0xlab-kernel/kernel/commit/8e8c008acb1feb56739c3...
Message has been deleted

Jim Huang

unread,
Dec 1, 2010, 12:46:15 PM12/1/10
to 0xlab...@googlegroups.com, tari...@gmail.com, jer...@0xlab.org
2010/12/1 trek-Oo <tari...@gmail.com>:

> Yes I've already applied all the patches to do with the registry
> changes. I'm on the 2.6.29 kernel btw. will try my luck with the newer
> kernel

hi,

As far as I know, Jeremy did it on omap3-2.6.32 branch.

Please try it again and report to us. Thanks in advance.

Sincerely,

trek-Oo

unread,
Dec 2, 2010, 4:40:43 AM12/2/10
to 0xlab-devel
Thanks for the reply Jim,

I dunno if its any help but I think the error originates from this
line, after u hit record:
E/audio_input( 1566): unsupported parameter: x-pvmf/media-input-node/
cap-config-interface;valtype=key_specific_value

The problem seems to be related to the MediaPlayer. as im testing it
and this error shows at:
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

this then leads to the AudioFlinger and AudioPolicyService servers
dying before any recording happens...

Shun-Yu Chang

unread,
Dec 6, 2010, 4:05:37 AM12/6/10
to 0xlab...@googlegroups.com
Hi, Tarik:
I would admit I have not touched devkit8k for a while.
I used to use Ringdroid to test the recording.

If you can use alsa_aplay -C command to do the recording and if it
works, then I think the problem is not at kernel but at upper layer.

and you should focus on why AudioFlinger dying.
You can unmark "#define LOG_NDEBUG 0" in AudioFlinger.cpp got get more
log of AudioFlinger.

Regards,
Jeremy Chang

> --
> You received this message because you are subscribed to the Google Groups "0xlab-devel" group.
> To post to this group, send email to 0xlab...@googlegroups.com.
> To unsubscribe from this group, send email to 0xlab-devel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/0xlab-devel?hl=en.
>
>

trek-Oo

unread,
Dec 8, 2010, 11:43:28 AM12/8/10
to 0xlab-devel
Hi Jeremey,

Thanks for the reply.

I've turned debug on for AudioFlinger, AudioPolicyService, AudioSystem
(just to make sure lol). Here is the log below. Again media services
died straight after I clicked record.. but I dnt even know if thats
related.. It seems like AudioPolicyService is getting some input as
the volume is changing.... I dont understand why the media servers are
constantly dying :(

I hope you can make something out of this log.

Kind regards,
Tarik


After clicking record:


1089 PV E
PVLOG:TID(0x64c90):Time=2:OsclLib::loadlibrary: Error opening library
(libomx_sharedlibrary_debug.so): Ca
nnot load library:
load_library[1052]: Library 'libomx_sharedlibrary_debug.so' not found
1089 audio_input E unsupported parameter: x-pvmf/media-
input-node/cap-config-interface;valtype=key_specific_value
1089 PV E
PVLOG:TID(0x64c90):Time=9:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=11:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=11:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=14:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=15:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=16:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=17:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=19:PVAuthorEngineNodeUtility::NodeCommandCompleted
1089 PV E
PVLOG:TID(0x64c90):Time=20:PVAuthorEngineNodeUtility::NodeCommandCompleted
1079 MediaPlayer W MediaPlayer server died!
1058 MediaPlayer W MediaPlayer server died!
820 AudioSystem W AudioFlinger server died!
820 AudioSystem W AudioPolicyService server died!
787 ServiceManager I service 'media.audio_flinger' died
787 ServiceManager I service 'media.player' died
787 ServiceManager I service 'media.camera' died
787 ServiceManager I service 'media.audio_policy' died
1099 I ServiceManager: 0xad08
1099 ALSALib E external/alsa-lib/src/control/
control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidOut
1099 AudioHardwareALSA W Unable to attach mixer to device
AndroidOut: No such file or directory
1099 ALSALib E external/alsa-lib/src/control/
control.c:909:(snd_ctl_open_noupdate) Invalid CTL AndroidIn
1099 AudioHardwareALSA W Unable to attach mixer to device
AndroidIn: No such file or directory
1099 CameraService I CameraService started: pid=1099
1099 AudioPolicyService V Using hardware specific audio policy
1099 AudioFlinger V registerClient() 0x20c5c, tid 1099,
calling tid 1099
1099 AudioFlinger V Adding notification client 0x20c60
1099 AudioFlinger V openOutput(), Device 2, SamplingRate
0, Format 0, Channels 0, flags 0
1099 AudioHardwareALSA D openOutputStream called for devices:
0x00000002
1099 ALSAModule D open called for devices 00000002 in
mode 0...
1099 ALSALib E external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
1099 ALSALib E external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
1099 ALSALib E external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 ALSAModule I Initialized ALSA PLAYBACK device
default
1099 AudioFlinger V openOutput() openOutputStream
returned output 0x20df0, SamplingRate 44100, Format 1, Channels c,
status 0

1099 AudioFlinger V sendConfigEvent() num events 1 event
0, param 0
1099 AudioFlinger V openOutput() created mixer output:
ID 1 thread 0x25220
1099 AudioPolicyService V inserting command: 3 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
parameter string routing=2, io 1 ,delay 0
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
parameters string routing=2, io 1
1099 AudioFlinger V setParameters(): io 1, keyvalue
routing=2, tid 1101, calling tid 1099
1099 AudioFlinger V ThreadBase::setParameters()
routing=2
1099 AudioFlinger I AudioFlinger's thread 0x25220 ready
to run
1099 AudioFlinger V processConfigEvents() remaining
events 1
1099 AudioFlinger V PlaybackThread::audioConfigChanged,
thread 0x25220, event 0, param 0
1099 AudioFlinger V audioConfigChanged_l() Notifying
change to client 0x20c60
1099 AudioSystem V ioConfigChanged() event 0
1099 AudioSystem V ioConfigChanged() new output
samplingRate 44100, format 1 channels 2 frameCount 8192 latency 186
1099 ALSAModule D route called for devices 00000002 in
mode 0...
1099 AudioPolicyService V inserting command: 4 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
voice volume volume 1.000000
1099 AudioPolicyService V AudioCommandThread() processing set
voice volume volume 1.000000
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 0, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 0, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 1, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 1, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 2, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 2, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 3, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 3, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 4, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 4, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 5, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 5, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 7, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 7, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 8, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 8, volume 1.000000, output 1
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 9, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 9, volume 1.000000, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioFlinger V Audio hardware entering standby,
mixer 0x25220, mSuspended 0
1099 AudioFlinger V MixerThread 0x25220 TID 1102 going
to sleep
820 AudioService E Media server died.
1099 AudioFlinger V registerClient() 0x254e0, tid 1099,
calling tid 820
1099 AudioFlinger V Adding notification client 0x25520
1099 AudioFlinger V sendConfigEvent() num events 1 event
0, param 0
1099 AudioFlinger V MixerThread 0x25220 TID 1102 waking
up
1099 AudioFlinger V processConfigEvents() remaining
events 1
1099 AudioFlinger V PlaybackThread::audioConfigChanged,
thread 0x25220, event 0, param 0
1099 AudioFlinger V audioConfigChanged_l() Notifying
change to client 0x20c60
1099 AudioSystem V ioConfigChanged() event 0
1099 AudioSystem V ioConfigChanged() opening already
existing output! 1
1099 AudioFlinger V audioConfigChanged_l() Notifying
change to client 0x25520
820 AudioSystem V ioConfigChanged() event 0
820 AudioService E Media server started.
820 AudioSystem V ioConfigChanged() opening already
existing output! 1
1099 AudioPolicyService V setPhoneState() tid 1099
1099 dioPolicyManagerALSA W setPhoneState() setting same state 0
1099 AudioPolicyService V setForceUse() tid 1103
1099 AudioPolicyService V setForceUse() tid 1099
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 9, volume 0.211349, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 9, volume 0.211349, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 8, volume 0.323065, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 8, volume 0.323065, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 5, volume 0.188365, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 5, volume 0.188365, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 4, volume 0.421696, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 4, volume 0.421696, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 3, volume 0.211349, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 3, volume 0.211349, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 2, volume 0.188365, output 1
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 2, volume 0.188365, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioPolicyService V inserting command: 4 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
voice volume volume 0.800000
1099 AudioPolicyService V AudioCommandThread() waking up
1099 AudioPolicyService V AudioCommandThread() processing set
voice volume volume 0.800000
1099 AudioPolicyService V inserting command: 2 at index 0, num
commands 0
1099 AudioPolicyService V AudioCommandThread() adding set
volume stream 0, volume 0.323065, output 1
1099 AudioPolicyService V AudioCommandThread() processing set
volume stream 0, volume 0.323065, output 1
1099 AudioPolicyService V AudioCommandThread() going to sleep
1099 AudioFlinger V MixerThread 0x25220 TID 1102 going
to sleep
1099 MediaPlayerService E offset error
1079 MediaPlayer E Unable to to create media player
820 InputManagerService W Window already focused, ignoring
focus gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@4
3dd4168
...

trek-Oo

unread,
Dec 14, 2010, 7:02:54 AM12/14/10
to 0xlab-devel
Turns out the problem originates from the opencore library. I replaced
the 2.07 with the older 2.02 library and its working fine now.

kchin...@gmail.com

unread,
Nov 12, 2012, 5:37:30 AM11/12/12
to 0xlab...@googlegroups.com
hi trek,

Can you post full details regarding opencore library ..from where to get and where we have to replace those libraries in source tree

Regards
kmr

anil...@gmail.com

unread,
Feb 5, 2013, 11:35:27 AM2/5/13
to 0xlab...@googlegroups.com

Hi  all,

Could you please share the alsa amixer commands for record (devkit8000) ?

Thanks,
Anil
Reply all
Reply to author
Forward
0 new messages