[Q] Help needed on compiling HepHappy's ICS - Optimus One, P500, V General
Howzit,
I've developed a few Android Apps and decided to check out compiling CM9. I've gotten as far as compiling CM9 into a working ROM.
My problem is this. I've been trying to use the sources of the HAL team (HepHappy, Lupo and AndroidMeda), but unlike them, I have been unable to get the camera working in my builds.
What am I missing?
I have the latests from github.com/p500 and I build using the following command: . build/envsetup.sh && brunch p500
Any advice on what I could be missing?
Does camera at least start? In my builds it force close.
This is what logcat shows when I open the camera app:
Code:
04-28 14:20:24.269: I/ActivityManager(194): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera} from pid 571
04-28 14:20:24.329: D/memalloc(105): /dev/pmem: Allocated buffer base:0x413a4000 size:614400 offset:4177920 fd:36
04-28 14:20:24.329: D/memalloc(194): /dev/pmem: Mapped buffer base:0x54d5c000 size:4792320 offset:4177920 fd:201
04-28 14:20:24.359: I/BatteryChangedHandler(1029): Received Broadcast ACTION_BATTERY_CHANGED
04-28 14:20:24.409: I/ActivityManager(194): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2455 uid=10039 gids={1006, 1015}
04-28 14:20:24.499: D/OpenGLRenderer(571): Flushing caches (mode 1)
04-28 14:20:24.559: D/OpenGLRenderer(571): Flushing caches (mode 0)
04-28 14:20:24.589: D/memalloc(571): /dev/pmem: Unmapping buffer base:0x511c4000 size:1884160 offset:1269760
04-28 14:20:24.589: D/memalloc(571): /dev/pmem: Unmapping buffer base:0x53758000 size:5406720 offset:4792320
04-28 14:20:24.589: D/memalloc(571): /dev/pmem: Unmapping buffer base:0x51b54000 size:614400 offset:0
04-28 14:20:24.599: D/memalloc(105): /dev/pmem: Freeing buffer base:0x414da000 size:614400 offset:1269760 fd:30
04-28 14:20:24.599: D/memalloc(105): /dev/pmem: Freeing buffer base:0x41836000 size:614400 offset:4792320 fd:33
04-28 14:20:24.749: V/CameraHolder(2455): open camera 0
04-28 14:20:24.749: I/CameraService(2419): Opening camera 0
04-28 14:20:24.749: D/CameraHAL(2419): qcamera_device_open: name:0 device:0x13cfc cameraId:0
04-28 14:20:24.749: D/QualcommCameraHardware(2419): createInstance: E
04-28 14:20:24.759: I/QualcommCameraHardware(2419): startCamera: camsensor name isx005, flash 0
04-28 14:20:24.979: D/dalvikvm(2455): GC_CONCURRENT freed 268K, 6% free 6748K/7175K, paused 8ms+9ms
04-28 14:20:25.009: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:25.009: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:25.059: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:25.129: D/memalloc(105): /dev/pmem: Freeing buffer base:0x413a4000 size:614400 offset:0 fd:21
04-28 14:20:25.179: D/dalvikvm(2455): GC_FOR_ALLOC freed 26K, 5% free 7010K/7367K, paused 42ms
04-28 14:20:25.199: A/libc(2419): Fatal signal 8 (SIGFPE) at 0x00000973 (code=0)
04-28 14:20:25.499: I/QualcommCameraHardware(2419): Parameter Rolloff is not supported for this sensor
04-28 14:20:25.499: I/QualcommCameraHardware(2419): Parameter Rolloff is not supported for this sensor
04-28 14:20:25.499: D/QualcommCameraHardware(2419): createInstance: X created hardware=0x14b50
04-28 14:20:25.499: I/AwesomePlayer(2419): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
04-28 14:20:25.509: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:25.509: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:25.519: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:25.559: E/OMXCodec(2419): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
04-28 14:20:25.559: E/OMXCodec(2419): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
04-28 14:20:25.559: I/AwesomePlayer(2419): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
04-28 14:20:25.589: E/OMXCodec(2419): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
04-28 14:20:25.589: E/OMXCodec(2419): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
04-28 14:20:25.599: D/CameraHAL(2419): Setting KEY_PREVIEW_FPS_RANGE: (15,30)
04-28 14:20:25.599: D/CameraHAL(2419): Setting KEY_PREVIEW_FPS_RANGE: (15,30)
04-28 14:20:25.609: D/Camera(2455): app passed NULL surface
04-28 14:20:25.609: D/CameraHAL(2419): Setting KEY_PREVIEW_FPS_RANGE: (15,30)
04-28 14:20:25.679: I/QualcommCameraHardware(2419): Parameter Rolloff is not supported for this sensor
04-28 14:20:25.679: D/CameraHAL(2419): Setting KEY_PREVIEW_FPS_RANGE: (15,30)
04-28 14:20:25.679: V/camera(2455): Preview size is 384x288
04-28 14:20:25.679: V/MediaProfilesJNI(2455): native_get_num_image_encoding_quality_levels
04-28 14:20:25.689: V/MediaProfilesJNI(2455): native_get_image_encoding_quality_level
04-28 14:20:25.689: V/MediaProfilesJNI(2455): native_get_image_encoding_quality_level
04-28 14:20:25.689: V/MediaProfilesJNI(2455): native_get_image_encoding_quality_level
04-28 14:20:25.689: I/QualcommCameraHardware(2419): Parameter Rolloff is not supported for this sensor
04-28 14:20:25.699: V/camera(2455): startPreview
04-28 14:20:25.699: A/libc(2419): Fatal signal 11 (SIGSEGV) at 0x81f7ff30 (code=1)
04-28 14:20:25.999: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:25.999: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:26.009: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:26.329: I/BatteryChangedHandler(1029): Received Broadcast ACTION_BATTERY_CHANGED
04-28 14:20:26.499: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:26.499: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:26.509: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:26.999: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:26.999: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:27.009: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:27.499: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:27.509: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:27.509: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:27.999: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:27.999: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:28.009: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:28.099: I/DEBUG(2416): timed out waiting for pid=2419 tid=2473 uid=1013 to die
04-28 14:20:28.099: I/DEBUG(2416): debuggerd committing suicide to free the zombie!
04-28 14:20:28.109: I/DEBUG(2482): debuggerd: Apr 28 2012 12:35:33
04-28 14:20:28.119: W/AudioSystem(194): AudioFlinger server died!
04-28 14:20:28.119: W/AudioSystem(194): AudioPolicyService server died!
04-28 14:20:28.119: I/ServiceManager(99): service 'media.audio_flinger' died
04-28 14:20:28.119: I/ServiceManager(99): service 'media.player' died
04-28 14:20:28.119: I/ServiceManager(99): service 'media.camera' died
04-28 14:20:28.119: I/ServiceManager(99): service 'media.audio_policy' died
04-28 14:20:28.119: W/MediaMetadataRetriever(552): MediaMetadataRetriever server died!
04-28 14:20:28.119: W/Camera(2455): Camera server died!
04-28 14:20:28.119: W/Camera(2455): ICamera died
04-28 14:20:28.359: I/BatteryChangedHandler(1029): Received Broadcast ACTION_BATTERY_CHANGED
04-28 14:20:28.499: D/dalvikvm(194): GC_EXPLICIT freed 478K, 12% free 10540K/11975K, paused 7ms+26ms
04-28 14:20:28.509: D/HardwareRenderer(2455): Disabling v-sync
04-28 14:20:28.519: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:28.519: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:28.529: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:28.549: E/Camera(2455): Error 100
04-28 14:20:28.549: E/CameraErrorCallback(2455): Got camera error callback. error=100
04-28 14:20:28.549: D/AndroidRuntime(2455): Shutting down VM
04-28 14:20:28.549: W/dalvikvm(2455): threadid=1: thread exiting with uncaught exception (group=0x40a3e1f8)
04-28 14:20:28.549: E/AndroidRuntime(2455): FATAL EXCEPTION: main
04-28 14:20:28.549: E/AndroidRuntime(2455): java.lang.RuntimeException: Media server died.
04-28 14:20:28.549: E/AndroidRuntime(2455): at com.android.camera.CameraErrorCallback.onError(CameraErrorCallback.java:31)
04-28 14:20:28.549: E/AndroidRuntime(2455): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:769)
04-28 14:20:28.549: E/AndroidRuntime(2455): at android.os.Handler.dispatchMessage(Handler.java:99)
04-28 14:20:28.549: E/AndroidRuntime(2455): at android.os.Looper.loop(Looper.java:137)
04-28 14:20:28.549: E/AndroidRuntime(2455): at android.app.ActivityThread.main(ActivityThread.java:4424)
04-28 14:20:28.549: E/AndroidRuntime(2455): at java.lang.reflect.Method.invokeNative(Native Method)
04-28 14:20:28.549: E/AndroidRuntime(2455): at java.lang.reflect.Method.invoke(Method.java:511)
04-28 14:20:28.549: E/AndroidRuntime(2455): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
04-28 14:20:28.549: E/AndroidRuntime(2455): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
04-28 14:20:28.549: E/AndroidRuntime(2455): at dalvik.system.NativeStart.main(Native Method)
04-28 14:20:28.579: W/ActivityManager(194): Force finishing activity com.android.camera/.Camera
04-28 14:20:28.679: D/memalloc(105): /dev/pmem: Allocated buffer base:0x413a4000 size:163840 offset:2498560 fd:21
04-28 14:20:28.679: D/memalloc(194): /dev/pmem: Mapped buffer base:0x54124000 size:2662400 offset:2498560 fd:237
04-28 14:20:28.999: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:29.009: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:29.019: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:29.049: I/(2483): ServiceManager: 0xf958
04-28 14:20:29.049: I/AudioHardwareMSM72XX(2483): get_audpp_filter
04-28 14:20:29.049: I/AudioHardwareMSM72XX(2483): open /system/etc/AudioFilter.csv success.
04-28 14:20:29.049: I/AudioHardwareMSM72XX(2483): EQ flag = 00.
04-28 14:20:29.049: I/AudioHardwareMSM72XX(2483): EQ flag = 00.
04-28 14:20:29.049: I/AudioHardwareMSM72XX(2483): EQ flag = 00.
04-28 14:20:29.059: E/AudioHardwareMSM72XX(2483): failed to open AUTO_VOLUME_CONTROL /system/etc/AutoVolumeControl.txt: No such file or directory (2)
04-28 14:20:29.059: I/AudioFlinger(2483): Loaded primary audio interface from QCOM Audio HW HAL (audio)
04-28 14:20:29.059: I/AudioFlinger(2483): Using 'QCOM Audio HW HAL' (audio.primary) as the primary audio interface
04-28 14:20:29.059: I/AudioFlinger(2483): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
04-28 14:20:29.059: D/AudioHardwareInterface(2483): setMode(NORMAL)
04-28 14:20:29.059: I/AudioHardwareMSM72XX(2483): Set master volume to 7.
04-28 14:20:29.069: I/CameraService(2483): CameraService started (pid=2483)
04-28 14:20:29.069: E/CameraHAL(2483): CameraHAL_GetNum_Cameras:
04-28 14:20:29.089: I/AudioFlinger(2483): AudioFlinger's thread 0x10ab0 ready to run
04-28 14:20:29.089: I/AudioHardwareMSM72XX(2483): Routing audio to Speakerphone
04-28 14:20:29.089: D/AudioHardwareMSM72XX(2483): doAudioRouteOrMute() device 0, mMode 0, mMicMute 1, mBuiltinMicSelected 0, muted
04-28 14:20:29.089: I/AudioHardwareMSM72XX(2483): Routing audio to Speakerphone
04-28 14:20:29.089: D/AudioHardwareMSM72XX(2483): setVoiceVolume(1.000000)
04-28 14:20:29.089: I/AudioHardwareMSM72XX(2483): Setting in-call volume to 7 (available range is 0 to 7)
04-28 14:20:29.089: I/AudioPolicyService(2483): Loaded audio policy from QCOM Audio Policy HAL (audio_policy)
04-28 14:20:29.099: W/ActivityManager(194): Activity pause timeout for ActivityRecord{412bca58 com.android.camera/.Camera}
04-28 14:20:29.109: I/Process(194): Sending signal. PID: 2455 SIG: 3
04-28 14:20:29.109: I/dalvikvm(2455): threadid=3: reacting to signal 3
04-28 14:20:29.119: I/dalvikvm(2455): Wrote stack traces to '/data/anr/traces.txt'
04-28 14:20:29.149: D/memalloc(105): /dev/pmem: Allocated buffer base:0x413a4000 size:614400 offset:0 fd:30
04-28 14:20:29.159: D/memalloc(571): /dev/pmem: Mapped buffer base:0x511c4000 size:614400 offset:0 fd:53
04-28 14:20:29.159: W/Adreno200-EGLSUB(571): SetSwapInterval() interval: 0 not set
04-28 14:20:29.199: D/memalloc(105): /dev/pmem: Allocated buffer base:0x413a4000 size:614400 offset:1269760 fd:33
04-28 14:20:29.209: D/memalloc(571): /dev/pmem: Mapped buffer base:0x52714000 size:1884160 offset:1269760 fd:61
04-28 14:20:29.619: E/AudioService(194): Media server died.
Same Problem
I have the same problem. Force closes.
And a quick compare between our logs shows we have the same problem. So obviously we not compiling properly.
Are we missing some parameters with the build or the setup?!
You might need this patch http://review.cyanogenmod.com/#/c/13317/ and their latest kernel patches.
Repo Update
@cougarcougar
Would a repo update (in other words: repo sync) have updated this. That was my thinking.
Or would I need to specifically apply the patch/update the source?
The patch hasn't been approved yet, so I think it isn't in CyanogenMod's github. If you check BoardConfig.mk in p500 github you will see that patch 13317 is mentioned. I'm trying to compile now, I'll let you know.
EDIT: IT WORKS!
Great!
That's awesome. Knew I was missing something stupid. But one last question, how do you apply patches tat have not been approved officially. As they wont show up in the repo?
Well, I have edited the code manually. I don't know if there are othere ways to do it. They are just a few lines of code anyway.
Related
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.
Logs on using the Nook with a BT headset after what it freezes: Code: W/InputManagerService( 1156): Window already focused, ignoring focus gain of: [email protected] 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() [email protected] 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...
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)
Well, last time I give ICS a try, there was no sound at all. So I don't know what to say...
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.
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.
Well maybe drivers could be taken from the nook tablets os since it has a built in mic
Modded Darts said: Well maybe drivers could be taken from the nook tablets os since it has a built in mic Click to expand... Click to collapse But the Nook Color does not have a built in mic. What would those drivers be "driving"?
patruns said: But the Nook Color does not have a built in mic. What would those drivers be "driving"? Click to expand... Click to collapse 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.
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
Modded Darts said: Exactly a blue tooth headset and so when cm 9 sound is up then 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 Click to expand... Click to collapse I don't like commenting too much on a thread, but drivers don't come with an operating system. The biggest issue with ICS is that is requires legacy drivers to make some normal things work. I am not absolutely sure how it is done(or I would be developing myself), but most of the work seems to be getting drivers for the device to function with each unsupported OS. Thank Dalingrin and Fattire and some others for getting us as far as we are right now. They are getting ICS working better than anyone could expect of our nook, getting any more out of it than was in the last working roms might be too tall of an order.
This has been an issue since the early froyo builds and even in gb (iirc). Sent from my ADR6300 using xda premium
Modded Darts said: Exactly a blue tooth headset and so when cm 9 sound is up then 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 Click to expand... Click to collapse You could learn to develop the software and help the community out =) Then again you could use some punctuation every once in a while too... =/
I'm not pretty sure but I think I did see a post about some guys trying to get skype call working via USB headset. Dunno if they succeeded. (not likely) It was in the USB host thread (when host support was in the nightlies only); Anyways, good luck. I hope you find something. It'll benefit many.
[Debug] Headphone rerouting
Well I ported MIUI to my device, using a CM10 base. I know the last guy that managed MIUI for my phone had switched to an AOKP base because of this exact issue. When playing music and plugging in headphones, audio continues to play through speakers instead of rerouting to the headphones. I was wondering if anyone else has had this issue that can help. I tried searching around, but nobody said anything on how they fixed it, except switching to an AOKP base. I think this is the issue Code: D/AudioSessionOutALSA( 139): Pausing the driver D/ALSAStreamOps( 139): setParameters(): keyRouting with device 2 D/ALSADevice( 139): route: devices 0x2 in mode 0 D/ALSADevice( 139): No valid input device: 0 But I am not sure.. Here's the entire logcat if anyone wants to take a look http://pastebin.com/CnNqZf9c
[Help]mt6577 Android 4.2 porting video errror
As I was porting Android 4.2 for my Micromax A92 based on mt6577 I am encountering these errors While playing video and recording videos Code: D/MPEG4Writer( 113): A bufferChunk D/MPEG4Writer( 113): left_video_chunk_num=0, mInterleaveDurationUs=1000000, mBitrate=6128000 D/MPEG4Writer( 113): left_mem_size 0 E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x42b10e60 (length 1024), timestamp 1076436623 us (1076.44 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a026e0 (length 1024), timestamp 1076452623 us (1076.45 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a02790 (length 1024), timestamp 1076468623 us (1076.47 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x42b10e60 (length 1024), timestamp 1076484623 us (1076.48 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a026e0 (length 1024), timestamp 1076500623 us (1076.50 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a02790 (length 1024), timestamp 1076516623 us (1076.52 secs) D/ADB_SERVICES( 135): adb fdevent_process list (15) (17) (18) While opening messaging (it force closes) Code: E/AndroidRuntime( 7534): FATAL EXCEPTION: main E/AndroidRuntime( 7534): java.lang.VerifyError: com/android/mms/ui/MessageUtils E/AndroidRuntime( 7534): at com.android.mms.MmsApp.onCreate(MmsApp.java:97) E/AndroidRuntime( 7534): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) E/AndroidRuntime( 7534): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4566) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.invokeOriginalMethod(XposedBridge.java:640) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:471) E/AndroidRuntime( 7534): at android.app.ActivityThread.handleBindApplication(Native Method) E/AndroidRuntime( 7534): at android.app.ActivityThread.access$1300(ActivityThread.java:156) E/AndroidRuntime( 7534): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) E/AndroidRuntime( 7534): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 7534): at android.os.Looper.loop(Looper.java:153) E/AndroidRuntime( 7534): at android.app.ActivityThread.main(ActivityThread.java:5299) E/AndroidRuntime( 7534): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 7534): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 7534): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) E/AndroidRuntime( 7534): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:112) E/AndroidRuntime( 7534): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 484): Force finishing activity com.android.mms/.ui.BootActivity Please help
sreeramllb said: As I was porting Android 4.2 for my Micromax A92 based on mt6577 I am encountering these errors While playing video and recording videos Code: D/MPEG4Writer( 113): A bufferChunk D/MPEG4Writer( 113): left_video_chunk_num=0, mInterleaveDurationUs=1000000, mBitrate=6128000 D/MPEG4Writer( 113): left_mem_size 0 E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x42b10e60 (length 1024), timestamp 1076436623 us (1076.44 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a026e0 (length 1024), timestamp 1076452623 us (1076.45 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a02790 (length 1024), timestamp 1076468623 us (1076.47 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x42b10e60 (length 1024), timestamp 1076484623 us (1076.48 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a026e0 (length 1024), timestamp 1076500623 us (1076.50 secs) E/OMXCodec( 113): [OMX.MTK.AUDIO.ENCODER.AAC] Calling emptyBuffer on buffer 0x45a02790 (length 1024), timestamp 1076516623 us (1076.52 secs) D/ADB_SERVICES( 135): adb fdevent_process list (15) (17) (18) While opening messaging (it force closes) Code: E/AndroidRuntime( 7534): FATAL EXCEPTION: main E/AndroidRuntime( 7534): java.lang.VerifyError: com/android/mms/ui/MessageUtils E/AndroidRuntime( 7534): at com.android.mms.MmsApp.onCreate(MmsApp.java:97) E/AndroidRuntime( 7534): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) E/AndroidRuntime( 7534): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4566) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.invokeOriginalMethod(XposedBridge.java:640) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:471) E/AndroidRuntime( 7534): at android.app.ActivityThread.handleBindApplication(Native Method) E/AndroidRuntime( 7534): at android.app.ActivityThread.access$1300(ActivityThread.java:156) E/AndroidRuntime( 7534): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) E/AndroidRuntime( 7534): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 7534): at android.os.Looper.loop(Looper.java:153) E/AndroidRuntime( 7534): at android.app.ActivityThread.main(ActivityThread.java:5299) E/AndroidRuntime( 7534): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 7534): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 7534): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) E/AndroidRuntime( 7534): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) E/AndroidRuntime( 7534): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:112) E/AndroidRuntime( 7534): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 484): Force finishing activity com.android.mms/.ui.BootActivity Please help Click to expand... Click to collapse
which device u r using for poet sreeramllb said: [/QUOT can u tell me which device u are porting fot Click to expand... Click to collapse
harsh luthra92 said: sreeramllb said: [/QUOT can u tell me which device u are porting fot Click to expand... Click to collapse Micromax Canvas A92 Canvas Lite Click to expand... Click to collapse
rom port sreeramllb said: harsh luthra92 said: Micromax Canvas A92 Canvas Lite Click to expand... Click to collapse u have the rom then why r u trying to port it. infact. can u tell me the link of kernel source code. and on which os linix or cygwin u r using. and all tools name. Click to expand... Click to collapse
harsh luthra92 said: sreeramllb said: u have the rom then why r u trying to port it. infact. can u tell me the link of kernel source code. and on which os linix or cygwin u r using. and all tools name. Click to expand... Click to collapse No official kernel sources yet.I ported it to my canvas Lite from Canvas 2 Click to expand... Click to collapse
Netflix audio/video sync issues after 4.4.2 update
I have a completely stock Sprint HTC One Max here that just got the 4.4.2 OTA update. Netflix was streaming fine before, but after the update there's a lot of audio/video sync issues, making it completely unwatchable. I've tried clearing data, then uninstalling/reinstalling without any luck. Any ideas? Anyone have the same issue?
just watched some netflix episodes today and no issues. i streamed two episodes over work wifi. had no issues with the stream, no audio lag. sprint, non rooted, stock and kit kat on board.
I streamed an older show and saw lag, but a newer show and movies had lag issues. Both over LTE. I'll have to test over wifi tonight when I get home from the office to see if that affects it.
Try to downgrade to Netflix version 1.8.1. Turn off auto updating in play store and then run the old version. It seems to lower video quality a bit more to facilitate streaming. I've had good luck with it. Sent from my HTC0P3P7 using Tapatalk
I just got a HTC One Max and I noticed the same stuttering after updating, did you find a way to fix it yet?
HTC ONE MAX Netflix playback issues in Kitkat I also have this phone and got it back in February. On JellyBean I had 0 issues. Ever since KitKat in March 4g video play is out of sync with audio by many seconds. I do not have the video lag in 3G or WIFI. I downloaded KitKat couldn't wait to have then once installed I remembered the terrible video lag I had on my Nexus 7 with 4.4.2. I was able to fix it by using the arts runtime instead of Dalvik. However HTC has completely removed the run time option under developer options.However this phone seems to have a serious flaw. that it will not play video from netflix over 750kbps. I know this because I use their test video that can be found by searching example short 23.976 from 2010. This video will display your bit rate, resolution, and par. While the video playback is smooth on 3G or WIFI it will not go above 750kbps. On my nexus 7 on the same wifi it will go to 4300kbps. I have a coworker that has a LG G2 with sprint and he can play video fine on 4G and get a bitrate above 4000 kbps also. I have spent the past 5-6 months dealing with this crappy performance. I called Netflix, Sprint and HTC today and all they can do is point the finger to one another. I am not sure who I have to yell at to get this fixed but I have been pushing Netflix the most. I would encourage you to call and complain to Netflix so the more complaint they get they will fix it. As we all know you get some basic phone support person that doesn't know anything. juicejar
Never had issues either stock or custom...
+1. stock non rooted sprint latest OS... cstrife999 said: Never had issues either stock or custom... Click to expand... Click to collapse
Even if you haven't had the video lag issue can you test and see if the phone will actually stream from netflix over 750kbps. I have a friend that also has the original HTC one with 4.4.2 and on t-mobile and his also will not stream above 750kbps. I also ran a debug and there seems to be some weird stuff going on that wasn't present when running it on my nexus 7. Maybe someone might be able to tell me if this is related to the problem with netflix playback. This is just a small sample of this type of output. D/NF_JPlayer(23870): start video pipe D/NF_JPlayer(23870): Play called D/NF_JPlayer(23870): mVideoPipe1 is idle E/OMX-VDEC-1080P( 252): E/OMX-VDEC-1080P( 252): omx_vdec::component_init(): Start of New Playback : role = OMX.qcom.video.decoder.avc : DEVICE = /dev/msm_vidc_dec E/OMX-VDEC-1080P( 252): Extension: OMX.google.android.index.storeMetaDataInBuffers not implemented E/OMXNodeInstance( 252): OMX_GetExtensionIndex OMX.google.android.index.storeMetaDataInBuffers failed E/ACodec (23870): [OMX.qcom.video.decoder.avc] storeMetaDataInBuffers failed w/ err -2147483648 E/OMX-VDEC-1080P( 252): Extension: OMX.google.android.index.prepareForAdaptivePlayback not implemented W/OMXNodeInstance( 252): OMX_GetExtensionIndex OMX.google.android.index.prepareForAdaptivePlayback failed W/ACodec (23870): [OMX.qcom.video.decoder.avc] prepareForAdaptivePlayback failed w/ err -2147483648 E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87bb0 w/ time 434476000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87b60 w/ time 434684000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87bb0 w/ time 434517000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87b60 w/ time 434559000 us E/OMXNodeInstance( 252): OMX_FreeBuffer for buffer header 0xb8c78de0 successful E/OMXNodeInstance( 252): OMX_FreeBuffer for buffer header 0xb8c78d90 successful W/AudFlgTh( 252): Using by PID 23870, ProcessName:com.netflix.mediaclient D/PMS ( 733): acquireWL(42ec92c0): PARTIAL_WAKE_LOCK AudioMix 0x1 252 1013 E/ACDB-LOADER( 252): Error: ACDB AFE returned = -8 E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x72b7b838 w/ time 434816000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cdf5cf8 w/ time 434859000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cc08ad0 w/ time 434901000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7a2bd6d0 w/ time 434944000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87bb0 w/ time 434934000 us E/AudioStreamOutALSA( 252): PCM_Write set_amp_mode,1 W/HtcAudFlgTh( 252): ThreadLoop_wrtie blocking by HAL 35525713ns, the mixerBufferTime is 10666666 E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x72b7b838 w/ time 434987000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cdf5cf8 w/ time 435029000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cc08ad0 w/ time 435072000 us D/NF_JPlayer(23870): mVideoPipe1 is current E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7a2bd6d0 w/ time 435115000 us D/JPlayer_Surface2(23870): Surface2 invisiable E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x72b7b838 w/ time 435157000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87b60 w/ time 435060000 us E/ACodec (23870): [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb8c87bb0 w/ time 435018000 us E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cdf5cf8 w/ time 435200000 us D/AudioService( 733): un-mute stream STREAM_MUSIC, by Pid: 23870, by Uid: 10306 D/PMS ( 733): acquireWL(42eb3b20): PARTIAL_WAKE_LOCK AudioMix 0x1 252 1013 D/PMS ( 733): releaseWL(42eb3b20): PARTIAL_WAKE_LOCK AudioMix 0x1 D/PMS ( 733): acquireWL(42e9bdf0): PARTIAL_WAKE_LOCK AudioMix 0x1 252 1013 D/PMS ( 733): releaseWL(42e9bdf0): PARTIAL_WAKE_LOCK AudioMix 0x1 E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7cc08ad0 w/ time 435243000 us W/AudioService( 733): stream was not muted by this client E/AudioService( 733): Could not get client death handler for stream: 3 W/AudioService( 733): stream was not muted by this client E/AudioService( 733): Could not get client death handler for stream: 3 E/ACodec (23870): [OMX.google.aac.decoder] calling emptyBuffer 0x7a2bd6d0 w/ time 435285000 us juicejar
again no issues.
How do I access Media focus stack in AduioFlinger ?
I want to know in low level framework either AudioTrack or AudioFlinger which app has the AudioFocus and which app lost it , especially when an app gains or loses AudioFocus momentarily (Transient GAIN or LOSS) . How do I pass that info from AudioManager or MediaFocusControl down to AudioTrack or AudioFlinger ?