[Nook Color Android Development] sushkov:
Hi,

I'm trying to find a solution for my nook to get audio input working.

So far I have a BT headset that I'm able to pair.

The problem appears when I'm trying to use it as a microphone. The nook basically freezes.

I'm a dev, though not specialized in Android development.

What I was able to investigate so far is that Nook rom uses alsa and it dies somewhere when trying to get the hwId of my headset.

I/ActivityManager( 1156): Displayed com.android.soundrecorder/.SoundRecorder: +404ms (total +59m57s673ms)
I/dalvikvm( 1156): Total arena pages for JIT: 12
D/dalvikvm( 1249): GC_EXPLICIT freed 585K, 51% free 3099K/6215K, external 3424K/3769K, paused 74ms
D/Omap3ALSA( 1071): open called for devices 00040004 in mode 0...
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm_hw.c:1400:(_snd_pcm_hw_open) Invalid value for card
D/Omap3ALSA( 1071): open called for devices 00040000 in mode 0...
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Using 1 channel for CAPTURE.
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Set CAPTURE sample rate to 48000 HZ
I/Omap3ALSA( 1071): Buffer size: 8192
I/Omap3ALSA( 1071): Latency: 170666
E/ALSAControl( 1071): Control 'Analog Left Main Mic Capture Switch' cannot get element info: -2
E/ALSAControl( 1071): Control 'Analog Right Sub Mic Capture Switch' cannot get element info: -2
E/ALSAControl( 1071): Control 'Analog Left Headset Mic Capture Switch' cannot get element info: -2
I/Omap3ALSA( 1071): Initialized ALSA CAPTURE device default
D/AcousticsModule( 1071): Acoustics set_params stub called with 7.
I/AudioHardwareALSA( 1071): buffer size (bytes) to AF = 16384
D/TIOMX_CORE( 1071): Found component OMX.TI.AMR.encode with refCount 0 pHandle (0x34e78)
D/OMX_NBAMRENC( 1071): OMX_ComponentInit():209 Entering OMX_ComponentInit
I/MPEG4Writer( 1071): limits: 2147483647/0 bytes/us, bit rate: 12200 bps and the estimated moov size 3072 bytes
D/AudioFlinger( 1071): setParameters(): io 12, keyvalue input_source=1;routing=262144, tid 1152, calling tid 1071
D/Omap3ALSA( 1071): route called for devices 00040000 in mode 0...
I/AudioHardwareALSA( 1071): setParameters() :: BAD_VALUE
W/AudioFlinger( 1071): RecordThread: buffer overflow
I/OMXCodec( 1071): [OMX.TI.AMR.encode] allocating 1 buffers of size 3200 on input port
I/OMXCodec( 1071): [OMX.TI.AMR.encode] allocating 1 buffers of size 8192 on output port
I/MPEG4Writer( 1071): setStartTimestampUs: 0
I/MPEG4Writer( 1071): Earliest track starting time: 0
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
W/AudioFlinger( 1071): RecordThread: buffer overflow
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm.c:7315:(snd_pcm_recover) overrun occurred
I/MPEG4Writer( 1071): Received total/0-length (781/0) buffers and encoded 781 frames. - audio
I/MPEG4Writer( 1071): Audio track drift time: 0 us
D/TI_LCML ( 1071): DeleteDspResource():1742 1742 :: DeInit: Calling DspManager_Close, iDspOpenCount 1!!
D/TI_LCML ( 1071): FreeResources():1640 1640 :: LCML:: FreeResources
D/AudioFlinger( 1071): setParameters(): io 12, keyvalue routing=0, tid 1152, calling tid 1071
D/Omap3ALSA( 1071): route called for devices 00000000 in mode 0...
E/Omap3ALSA( 1071): Why are we routing to a device that isn't supported by this object?!?!?!?!
D/Omap3ALSA( 1071): open called for devices 00000004 in mode 0...
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/ALSALib ( 1071): external/alsa-lib/src/pcm/pcm_hw.c:1400:(_snd_pcm_hw_open) Invalid value for card
D/Omap3ALSA( 1071): open called for devices 00000000 in mode 0...
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Using 1 channel for CAPTURE.
E/Omap3ALSA( 1071): direction requext. devices -2131296256, mask 43007, result 0
I/Omap3ALSA( 1071): Set CAPTURE sample rate to 8000 HZ
I/Omap3ALSA( 1071): Buffer size: 8192
I/Omap3ALSA( 1071): Latency: 1024000
I/Omap3ALSA( 1071): Initialized ALSA CAPTURE device default
D/MPEG4Writer( 1071): 0 chunks are written in the last batch
I/MPEG4Writer( 1071): The mp4 file will not be streamable.

There were some theories saying that Nook rom builds do not have audio codecs for capturing audio inputs.

Any help/hints would be much appreciated.

Maybe we can get our Nooks a mic so our relatives can call us.

Thanks.