
10th December 2011, 01:53 PM
|
Junior Member - OP
Thanks Meter 0
Posts: 17
Join Date: Aug 2010
|
NookColor Audio Input
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.
Code:
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.
|

10th December 2011, 01:59 PM
|
Junior Member - OP
Thanks Meter 0
Posts: 17
Join Date: Aug 2010
|
Logs on using the Nook with a BT headset after what it freezes:
Code:
W/InputManagerService( 1156): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@407d8720
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioService( 1156): ScoClient.decCount() already 0
D/btMicTest( 1968): Starting SCO
D/ScoSocket( 1245): connect() android.bluetooth.ScoSocket@4057ef48
I/bluetooth_ScoSocket.cpp( 1245): getScoType BH99 - 0x0
I/bluetooth_ScoSocket.cpp( 1245): Connecting to socket
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
I/bluetooth_ScoSocket.cpp( 1245): SCO socket connected (outgoing)
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManagerALSA( 1071): getDeviceForStrategy() unknown strategy: 4
D/btMicTest( 1968): >>> Bluetooth SCO state changed !!!
D/btMicTest( 1968): Bluetooth sco state changed : 1
D/btMicTest( 1968): connected!
D/Omap3ALSA( 1071): open called for devices 00080004 in mode 0...
E/Omap3ALSA( 1071): direction requext. devices 524288, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices 524288, mask 43007, result 0
E/Omap3ALSA( 1071): direction requext. devices 524288, 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 524288, mask 43007, result 0
I/Omap3ALSA( 1071): Using 1 channel for CAPTURE.
E/Omap3ALSA( 1071): direction requext. devices 524288, mask 43007, result 0
I/Omap3ALSA( 1071): Set CAPTURE sample rate to 8000 HZ
I/Omap3ALSA( 1071): Buffer size: 2048
I/Omap3ALSA( 1071): Latency: 256000
I/Omap3ALSA( 1071): Initialized ALSA CAPTURE device hw:0,2
D/AcousticsModule( 1071): Acoustics set_params stub called with 7.
I/AudioHardwareALSA( 1071): buffer size (bytes) to AF = 4096
D/TIOMX_CORE( 1071): Found component OMX.TI.AMR.encode with refCount 0 pHandle (0x34f10)
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 17, keyvalue input_source=1;routing=524288, tid 1152, calling tid 1071
D/Omap3ALSA( 1071): route called for devices 00080000 in mode 0...
|

20th December 2011, 07:45 AM
|
Member
Thanks Meter 5
Posts: 58
Join Date: Jul 2011
Location: Fort Worth
|
I would like to help but i am no dev maybe fat tire could do it or better drivers could be in ics try that rom i think it has blue tooth (you have to download the source on the second post and compile it for the most update rom if you didnt know)
|

20th December 2011, 07:47 AM
|
Junior Member - OP
Thanks Meter 0
Posts: 17
Join Date: Aug 2010
|
Well, last time I give ICS a try, there was no sound at all.
So I don't know what to say...
|

20th December 2011, 09:01 AM
(Last edited by Modded Darts; 20th December 2011 at 09:10 AM.)
|
Member
Thanks Meter 5
Posts: 58
Join Date: Jul 2011
Location: Fort Worth
|
Sound
Oh fattire said he was going to try to fix it.
I have no computer and cant compile from source so didnt know if he did or not
Update: I dont know if your using tyhe right nightly but some had usb host mode that you need to enable and there is an entire thread for blue tooth problems.
|

20th December 2011, 02:01 PM
|
Recognized Contributor
Thanks Meter 771
Posts: 1,551
Join Date: Sep 2010
Location: Jacksonville
DONATE TO ME
|
This is a question, so in the future I would put it in the Q and A section.
The nook color has no drivers for audio input, neither does the OS that the nook color uses. I have done a fair amount of research and asked myself, it simply isn't possible, trust me.
Issues with the AMAZE 4g? Come stalk the always up to date, always maintained, Ultimate Guide to Everything Amaze-ing!(Amaze 4g BIBLE!)!
Current Device: International Galaxy S3 i9300 with Null_19 Rom

Other Devices: Nexus 7
HTC Amaze 4g
PS: I am not a noob, I swear. I know my android pretty well  My helpfulness is fueled by the thanks button. (Hint: thanks button is FREE!)-so hit it! Or god forbid, hit the donate button- lord( spaghetti monster) knows this broke ass college student could use some more ramen.
|

21st December 2011, 12:55 AM
|
Member
Thanks Meter 5
Posts: 58
Join Date: Jul 2011
Location: Fort Worth
|
Well maybe drivers could be taken from the nook tablets os since it has a built in mic
|

21st December 2011, 03:50 PM
|
Senior Member
Thanks Meter 93
Posts: 844
Join Date: May 2011
|
Quote:
Originally Posted by Modded Darts
Well maybe drivers could be taken from the nook tablets os since it has a built in mic
|
But the Nook Color does not have a built in mic. What would those drivers be "driving"?
Pat
CM7 on eMMC - currently running 201 nightly.
Google Nexus running JB.
|

21st December 2011, 09:19 PM
(Last edited by Silentbtdeadly; 21st December 2011 at 09:23 PM.)
|
Recognized Contributor
Thanks Meter 771
Posts: 1,551
Join Date: Sep 2010
Location: Jacksonville
DONATE TO ME
|
Quote:
Originally Posted by patruns
But the Nook Color does not have a built in mic. What would those drivers be "driving"? 
|
I imagine he is talking about if he connected it to a bluetooth headset.. I've always believed it should be possible since it has bluetooth, but the feedback I've gotten made me doubt it. Since the OP is a developer of some kind, if he wanted it bad enough maybe he could figure something out, I'm sure there are others out there who'd appreciate it.
Issues with the AMAZE 4g? Come stalk the always up to date, always maintained, Ultimate Guide to Everything Amaze-ing!(Amaze 4g BIBLE!)!
Current Device: International Galaxy S3 i9300 with Null_19 Rom

Other Devices: Nexus 7
HTC Amaze 4g
PS: I am not a noob, I swear. I know my android pretty well  My helpfulness is fueled by the thanks button. (Hint: thanks button is FREE!)-so hit it! Or god forbid, hit the donate button- lord( spaghetti monster) knows this broke ass college student could use some more ramen.
|

22nd December 2011, 07:44 AM
(Last edited by Modded Darts; 8th January 2012 at 02:09 AM.)
|
Member
Thanks Meter 5
Posts: 58
Join Date: Jul 2011
Location: Fort Worth
|
mics
Exactly a blue tooth headset and so with cm 9 sound up the nook should already have a lot of drivers in it so it might work since it is open source why cant someone develop the software if it isnt already there
fat tire got sound fixed as you probably know so you might try again
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
Go to top of page...
|
|
|
|