Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

- - - - -

[KERNEL MODULE] CM 10.1 Easycap Module

  • Please log in to reply

OP dcplaya

dcplaya

Android Beginner

  • 332 posts

Posted 13 March 2013 - 04:33 PM #1

I have built an Easycap module for CM10.1 on the N7. This module should allow anyone to connect an Easycap and with the correct software, view video from the easycap. This is only for the Syntek EasyCAP (USB ID 05e1:0408) and no others.

This will only work on kernel version 3.1.10-gfcf72bf-dirty. You can check your kernel version under Settings --> About Tablet --> Kernel Version

To install, copy the easycap.ko to /data/local and then install the module by running

 

Once the module is installed and the device is plugged in, there should be a /dev/video* (where * can be a 0, 1, 2, 3, 4 or 5)
Depending on how you access /dev/video* you may need to chmod 0666 /dev/video* to allow access.
 

 

 

EDIT: Please see Rage2 post on page 9. I have not tested his release yet but once I can confirm, I will update the main post. Big thanks to Rage2!

 

EDIT2: Newest update from DmitrySmol and Adman. Ill try to keep the main post updated with links and news.

http://rootzwiki.com...13#entry1437778

 

New version of CarCam out. See http://rootzwiki.com...15#entry1443034

Thanks Adman and DmitrySmol!


Edited by dcplaya, 12 September 2013 - 04:49 AM.

  • 1 Likes

Adman

Adman

Member

  • 17 posts

Posted 13 March 2013 - 07:09 PM #2

dcplaya,

Same result here. Insmod worked with your module. Prior versions gave me the "Exec format error." Running Timur ROM on talapia. Have the correct Syntek video capture device.

Sorry I cannot be more help other than to second your result...no /dev/video*.

I also have a webcam. This worked fine. Got /dev/video0 when plugged in to USB hub. Had to chmod 666 and set proper video settings (carcam_api9.apk) and it works.

Clearly you are very close! Let me know if I can do anything else to help. Once this works I am ready to install!


c,
  • 0 Likes

Dr4g0n

Dr4g0n

Member

  • 25 posts

Posted 16 March 2013 - 10:19 AM #3

The Easycap is working fine, but sometimes i get only a black screen (/dev/video0) is available and the permissions are corret.
i think there is a problem with the driver... when i listen online music with tunein there is no problemes, but when i start the carcam with easycap than the musik is lagging.
when i close the carcam app, the lagging problem still exist until i restart my tablet.
maybe the driver closes the videostream not correctly?
i checkt the CPU / RAM usage, when my music an tablet ar lagging but usages are okay.

a other question is, i used the easycap.ko from USBROM (build 20130302) than i took a hex editor and changed the version to the newest (current release).
the original easycap from USBROM is only 80KB in size and the easycap.ko in this thread have 900kb... it looks strange... maybe some other problem?

here is my kernel log, first the easycap works fine but than the devices shows only black screen.
<7>[ 2590.697759] easycap:: easycap_open: ==========OPEN=========
<7>[ 2592.186997] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2592.546942] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2592.547237] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2592.547418] easycap::0adjust_format: actioning: 640x480 NTSC_M_AT_640x480_FMT_UYVY-i
<7>[ 2592.577410] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2592.607065] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2592.609140] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2592.640700] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 2592.643915] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2592.644044] easycap::0adjust_standard: requested standard already in effect
<7>[ 2592.644122] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2592.644245] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2592.644329] easycap::0adjust_format: actioning: 640x480 NTSC_M_AT_640x480_FMT_UYVY-i
<7>[ 2592.704103] easycap::0easycap_complete: easycap driver shutting down on condition green
<7>[ 2594.117501] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2594.506125] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2594.506195] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2594.506322] easycap::0adjust_format: actioning: 640x480 NTSC_M_AT_640x480_FMT_UYVY-i
<7>[ 2594.536014] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2594.567847] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2594.596049] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2594.626338] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 2594.655964] easycap::0easycap_complete: easycap driver shutting down on condition green
<7>[ 2595.897426] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2596.266598] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2596.267004] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2596.267254] easycap::0adjust_format: actioning: 640x480 NTSC_M_AT_640x480_FMT_UYVY-i
<7>[ 2596.296103] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2596.326027] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2596.356021] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2596.386067] easycap::0adjust_hue: adjusting hue to  0x00
<4>[ 2603.737350] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 2612.048170] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2621.507093] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2627.950323] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2636.564120] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 2647.893226] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2654.173173] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<4>[ 2659.560072] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<4>[ 2665.503079] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 2670.890286] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2676.927307] snd_pcm_update_hw_ptr0: 9 callbacks suppressed
<4>[ 2682.104258] snd_pcm_update_hw_ptr0: 9 callbacks suppressed
<4>[ 2690.218292] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2696.707441] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 2702.756175] snd_pcm_update_hw_ptr0: 10 callbacks suppressed
<4>[ 2710.267091] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 2718.906082] snd_pcm_update_hw_ptr0: 7 callbacks suppressed
<4>[ 2725.511158] snd_pcm_update_hw_ptr0: 15 callbacks suppressed
<4>[ 2739.314190] snd_pcm_update_hw_ptr0: 10 callbacks suppressed
<4>[ 2751.157107] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<4>[ 2756.222285] snd_pcm_update_hw_ptr0: 13 callbacks suppressed
<7>[ 2758.224595] easycap:: easycap_open: ==========OPEN=========
<7>[ 2759.687427] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2760.046298] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2760.046468] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2760.046754] easycap::0adjust_format: actioning: 640x480 NTSC_M_AT_640x480_FMT_UYVY-i
<7>[ 2760.076494] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2760.106571] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2760.135893] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2760.166249] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 2760.172157] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2760.172383] easycap::0adjust_standard: requested standard already in effect
<7>[ 2760.172791] easycap::0adjust_format: sought:    720x576,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2760.173173] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2760.173965] easycap::0adjust_format: cannot do: 720x576 with standard mask 0x01
<7>[ 2760.174364] easycap::0adjust_format: actioning: 720x480 NTSC_M_AT_720x480_FMT_UYVY-i
<4>[ 2762.656396] snd_pcm_update_hw_ptr0: 14 callbacks suppressed
<4>[ 2769.308071] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2779.246149] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<4>[ 2785.956176] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2806.433761] snd_pcm_update_hw_ptr0: 17 callbacks suppressed
<4>[ 2812.852172] snd_pcm_update_hw_ptr0: 9 callbacks suppressed
<4>[ 2819.920188] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<4>[ 2826.468152] snd_pcm_update_hw_ptr0: 8 callbacks suppressed
<4>[ 2838.517140] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2844.415128] snd_pcm_update_hw_ptr0: 11 callbacks suppressed
<4>[ 2850.017274] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2859.123290] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2866.007562] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 2874.013158] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 2881.362284] snd_pcm_update_hw_ptr0: 9 callbacks suppressed
<4>[ 2889.628313] snd_pcm_update_hw_ptr0: 7 callbacks suppressed
<4>[ 2895.223374] snd_pcm_update_hw_ptr0: 17 callbacks suppressed
<4>[ 2901.120059] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 2911.719175] snd_pcm_update_hw_ptr0: 8 callbacks suppressed
<4>[ 2917.937225] snd_pcm_update_hw_ptr0: 9 callbacks suppressed
<7>[ 2919.882619] easycap:: easycap_open: ==========OPEN=========
<7>[ 2921.127262] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2921.486457] easycap::0adjust_format: sought:    720x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2921.486864] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2921.487123] easycap::0adjust_format: actioning: 720x480 NTSC_M_AT_720x480_FMT_UYVY-i
<7>[ 2921.515876] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2921.546292] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2921.548049] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2921.551606] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 2921.558484] easycap::0adjust_standard: selected standard: PAL_BGHIN
<7>[ 2921.939846] easycap::0adjust_format: sought:    720x576,UYVY(0x59565955),4=field,0x00=std mask
<7>[ 2921.940261] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2921.940479] easycap::0adjust_format: actioning: 720x576 PAL_BGHIN_AT_720x576_FMT_UYVY-i
<7>[ 2922.010125] easycap::0easycap_complete: easycap driver shutting down on condition green
<7>[ 2923.367447] easycap::0adjust_standard: selected standard: PAL_BGHIN
<7>[ 2923.756311] easycap::0adjust_format: sought:    720x576,UYVY(0x59565955),4=field,0x00=std mask
<7>[ 2923.756647] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2923.756832] easycap::0adjust_format: actioning: 720x576 PAL_BGHIN_AT_720x576_FMT_UYVY-i
<7>[ 2923.786033] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2923.815969] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2923.846104] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2923.876011] easycap::0adjust_hue: adjusting hue to  0x00
<4>[ 2924.162343] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 2930.222322] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 2942.052319] snd_pcm_update_hw_ptr0: 8 callbacks suppressed
<7>[ 2953.806466] easycap::0easycap_dqbuf: aborted by signal
<4>[ 2954.465923] al3010 debug log : light sensor chip is resumed
<4>[ 2955.835215] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<6>[ 2961.166332] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 2961.166529] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 2961.172210] L2
<6>[ 2961.268169] CP L2->L0
<6>[ 2961.269323] L0
<6>[ 2965.995995] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 2965.996893] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 2966.004764] L2
<6>[ 2967.606389] CP L2->L0
<6>[ 2967.608431] L0
<6>[ 2969.995963] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 2969.996588] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 2970.002720] L2
<6>[ 2970.301739] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 2970.314740] AP L2->L0
<6>[ 2970.332531] L0
<4>[ 2974.287276] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<7>[ 2981.132601] easycap:: easycap_open: ==========OPEN=========
<7>[ 2984.347304] easycap::0adjust_standard: selected standard: PAL_BGHIN
<7>[ 2984.736324] easycap::0adjust_format: sought:    720x576,UYVY(0x59565955),4=field,0x00=std mask
<7>[ 2984.736567] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2984.736949] easycap::0adjust_format: actioning: 720x576 PAL_BGHIN_AT_720x576_FMT_UYVY-i
<7>[ 2984.765933] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 2984.796138] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 2984.825895] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 2984.856135] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 2984.866245] easycap::0adjust_standard: selected standard: NTSC_M
<7>[ 2985.179779] easycap::0adjust_format: sought:    720x480,UYVY(0x59565955),4=field,0x01=std mask
<7>[ 2985.180186] easycap::0adjust_format: sought:    V4L2_FIELD_INTERLACED
<7>[ 2985.180605] easycap::0adjust_format: actioning: 720x480 NTSC_M_AT_720x480_FMT_UYVY-i
<4>[ 2987.866385] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 2993.916353] snd_pcm_update_hw_ptr0: 2 callbacks suppressed
<4>[ 2999.550237] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 3005.946194] snd_pcm_update_hw_ptr0: 8 callbacks suppressed
<4>[ 3015.002274] snd_pcm_update_hw_ptr0: 1 callbacks suppressed
<4>[ 3028.191201] snd_pcm_update_hw_ptr0: 5 callbacks suppressed
<4>[ 3035.412203] snd_pcm_update_hw_ptr0: 15 callbacks suppressed
<4>[ 3067.850116] snd_pcm_update_hw_ptr0: 14 callbacks suppressed
<4>[ 3073.702185] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 3096.016306] snd_pcm_update_hw_ptr0: 6 callbacks suppressed
<4>[ 3101.914162] snd_pcm_update_hw_ptr0: 4 callbacks suppressed
<4>[ 3106.978724] al3010 debug log : light sensor chip is resumed
<4>[ 3108.403288] snd_pcm_update_hw_ptr0: 3 callbacks suppressed
<6>[ 3111.616411] usb 1-1: USB disconnect, device number 2
<6>[ 3111.616603] usb 1-1.1: USB disconnect, device number 3
<6>[ 3111.617987] usb 1-1.3: USB disconnect, device number 4
<6>[ 3111.618130] usb 1-1.3.3: USB disconnect, device number 5
<4>[ 3111.631605] irq_work()
<7>[ 3111.715886] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716037] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716236] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716372] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716596] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716734] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.716928] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717069] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717258] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717394] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717588] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717724] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.717917] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.718083] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.718313] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.718447] easycap::0easycap_complete: unknown:-19 ENOMEM
<7>[ 3111.722281] easycap:: easycap_delete:	    0=video urbs    after all deletions
<7>[ 3111.722371] easycap:: easycap_delete:	    0=video pages   after all deletions
<7>[ 3111.722527] easycap:: easycap_delete:	    0=video structs after all deletions
<7>[ 3111.722673] easycap:: easycap_delete:	    0=video devices after all deletions
<7>[ 3111.722749] easycap:: easycap_delete:	    0=audio urbs    after all deletions
<7>[ 3111.722897] easycap:: easycap_delete:	    0=audio pages   after all deletions
<7>[ 3111.723045] easycap:: easycap_delete:	    0=audio structs after all deletions
<7>[ 3111.723133] easycap:: easycap_delete:	    0=audio devices after all deletions
<4>[ 3112.215853] inok_isr_work_function hostmode=1 usbhost_external_power=1 usbhost_charge_slave_devices=0
<4>[ 3112.216487] inok_isr_work_function fixed_install stop host-mode, don't chargeSlaves, don't stopChargeSlaves
<4>[ 3112.216753] smb347_configure_otg otg=0 chargeSlaves=0 stopSlaves=0 lastOtg=1
<4>[ 3112.217170] smb347_configure_otg disable host mode
<4>[ 3112.217972] inok_isr_work_function fixed_install make external power detectable
<4>[ 3112.219267] inok_isr_work_function fixed_install make host aware it is now discharging
<6>[ 3112.219432] cable_type_detect()
<6>[ 3112.219522] INOK=H no power
<4>[ 3112.219682] ========================================================
<4>[ 3112.219769] battery_callback  usb_cable_state = 0
<4>[ 3112.219854] ========================================================
<4>[ 3112.220011] battery_callback cable_wake_lock 5 sec...
<4>[ 3112.220016] 
<6>[ 3112.220542] elan-ktf3k 1-0010: Update power source to 0
<4>[ 3112.220904] inok_isr_work_function make external power detectable1
<4>[ 3112.224269] inok_isr_work_function done hostmode=0 usbhost_external_power=0 usbhost_charge_slave_devices=0
<6>[ 3114.919716] Wake7 for irq=390
<6>[ 3114.919836] Disabling wake7
<3>[ 3118.542706] init: untracked pid 14047 exited
<3>[ 3119.380996] init: untracked pid 14105 exited
<6>[ 3121.086349] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3121.086828] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3121.093044] L2
<6>[ 3123.834700] CP L2->L0
<6>[ 3123.866617] L0
<6>[ 3126.996477] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3126.996937] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3127.002331] L2
<4>[ 3130.388975] #### ehci-tegra tegra_usb_resume with smb347_deep_sleep=0 usbhost_charging_state=0: default
<4>[ 3130.389132] irq_work()
<6>[ 3130.665809] usb 1-1: new high speed USB device number 6 using tegra-ehci
<6>[ 3130.697645] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
<6>[ 3130.697765] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
<6>[ 3130.697826] usb 1-1: Product: USB2.0 Hub
<6>[ 3130.698643] hub 1-1:1.0: USB hub found
<6>[ 3130.699006] hub 1-1:1.0: 4 ports detected
<4>[ 3130.975771] inok_isr_work_function hostmode=0 usbhost_external_power=0 usbhost_charge_slave_devices=0
<6>[ 3130.975890] cable_type_detect()
<6>[ 3130.975951] INOK=L
<6>[ 3130.976458] usb 1-1.1: new high speed USB device number 7 using tegra-ehci
<5>[ 3130.976570] smb347_charger: [cable_type_detect] Reg39 : 0x10
<5>[ 3130.977061] smb347_charger: [cable_type_detect] Reg3F : 0x83
<5>[ 3130.977135] smb347_charger: [cable_type_detect] USB_IN
<5>[ 3130.977452] smb347_charger: [cable_type_detect] Reg3E : 0x0e
<6>[ 3130.977524] Cable: host mode charging ac
<4>[ 3130.977594] ========================================================
<4>[ 3130.977721] battery_callback  usb_cable_state = 3
<4>[ 3130.977791] ========================================================
<4>[ 3130.977919] battery_callback cable_wake_lock 5 sec...
<4>[ 3130.977922] 
<6>[ 3130.978182] elan-ktf3k 1-0010: Update power source to 1
<4>[ 3130.978654] inok_isr_work_function external power available, start host mode
<4>[ 3130.978792] smb347_configure_otg otg=1 chargeSlaves=0 stopSlaves=0 lastOtg=0
<4>[ 3130.979190] smb347_configure_otg enable host mode
<4>[ 3130.979960] inok_isr_work_function external power available hostmode=1
<6>[ 3131.022793] usb 1-1.1: New USB device found, idVendor=0ccd, idProduct=00e0
<6>[ 3131.022913] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 3131.022975] usb 1-1.1: Product: RTL2832U
<6>[ 3131.023083] usb 1-1.1: Manufacturer: Realtek
<6>[ 3131.023142] usb 1-1.1: SerialNumber: 00000001
<6>[ 3131.106214] usb 1-1.3: new high speed USB device number 8 using tegra-ehci
<6>[ 3131.138019] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
<6>[ 3131.138141] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
<6>[ 3131.138205] usb 1-1.3: Product: USB2.0 Hub
<6>[ 3131.139019] hub 1-1.3:1.0: USB hub found
<6>[ 3131.139383] hub 1-1.3:1.0: 4 ports detected
<6>[ 3131.416275] usb 1-1.3.3: new high speed USB device number 9 using tegra-ehci
<6>[ 3131.446766] usb 1-1.3.3: New USB device found, idVendor=05e1, idProduct=0408
<6>[ 3131.446842] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 3131.446964] usb 1-1.3.3: Product: USB 2.0 Video Capture Controller
<6>[ 3131.447029] usb 1-1.3.3: Manufacturer: Syntek Semiconductor
<6>[ 3132.132476] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3132.166439] AP L2->L0
<6>[ 3132.176464] L0
<6>[ 3132.201567] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<7>[ 3135.067260] easycap::0adjust_standard: selected standard: PAL_BGHIN
<7>[ 3135.396928] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),1=field,0x00=std mask
<7>[ 3135.397301] easycap::0adjust_format: sought:    V4L2_FIELD_NONE
<7>[ 3135.397917] easycap::0adjust_format: actioning: 640x480 PAL_BGHIN_AT_640x480_FMT_UYVY-n
<7>[ 3135.401828] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 3135.426364] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 3135.428058] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 3135.455918] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 3135.457729] easycap::0easycap_usb_probe: registered with videodev: 0=minor
<7>[ 3135.457832] easycap::0easycap_usb_probe: ends successfully for interface 0
<4>[ 3135.458651] ##### sound/usb/card.c REGISTER tv_sec=3135 ++++++++++++++++++++++++
<4>[ 3135.459363] ##### endpoint.c snd_usb_add_audio_endpoint SUCCESS 'USB Audio'
<4>[ 3135.459803] ##### clock.c set_sample_rate dev=9 iface=2 altset=1 ep=0x84 rate=48000
<6>[ 3135.995989] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3135.996461] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3136.001963] L2
<6>[ 3137.137114] AP L2->L0
<6>[ 3137.138299] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3137.159908] L0
<6>[ 3142.996337] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3142.997720] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3143.005388] L2
<6>[ 3145.218825] CP L2->L0
<6>[ 3145.256512] L0
<6>[ 3148.006145] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3148.006421] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3148.012315] L2
<6>[ 3184.412610] usb 1-1.3.3: USB disconnect, device number 9
<7>[ 3184.427999] easycap:: easycap_delete:	    0=video urbs    after all deletions
<7>[ 3184.428164] easycap:: easycap_delete:	    0=video pages   after all deletions
<7>[ 3184.428430] easycap:: easycap_delete:	    0=video structs after all deletions
<7>[ 3184.428694] easycap:: easycap_delete:	    0=video devices after all deletions
<7>[ 3184.428841] easycap:: easycap_delete:	    0=audio urbs    after all deletions
<7>[ 3184.429105] easycap:: easycap_delete:	    0=audio pages   after all deletions
<7>[ 3184.429372] easycap:: easycap_delete:	    0=audio structs after all deletions
<7>[ 3184.429519] easycap:: easycap_delete:	    0=audio devices after all deletions
<6>[ 3189.476445] usb 1-1.3.3: new high speed USB device number 10 using tegra-ehci
<6>[ 3189.508404] usb 1-1.3.3: New USB device found, idVendor=05e1, idProduct=0408
<6>[ 3189.508687] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 3189.508855] usb 1-1.3.3: Product: USB 2.0 Video Capture Controller
<6>[ 3189.509126] usb 1-1.3.3: Manufacturer: Syntek Semiconductor
<7>[ 3191.187298] easycap::0adjust_standard: selected standard: PAL_BGHIN
<4>[ 3191.195813] smb347_set_InputCurrentlimit 1800
<4>[ 3191.196618] smb347_charger_enable 0
<6>[ 3191.197442] [charger] Disable AICL, retval=93 setting=83
<6>[ 3191.198201] [charger] set charger limit, limit=1800 retval =73 setting=76
<6>[ 3191.198797] [charger] re-enable AICL, setting=93
<4>[ 3191.226024] smb347_charger_enable 1
<7>[ 3191.546320] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),1=field,0x00=std mask
<7>[ 3191.546717] easycap::0adjust_format: sought:    V4L2_FIELD_NONE
<7>[ 3191.546944] easycap::0adjust_format: actioning: 640x480 PAL_BGHIN_AT_640x480_FMT_UYVY-n
<7>[ 3191.576096] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 3191.606106] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 3191.636099] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 3191.666115] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 3191.669654] easycap::0easycap_usb_probe: registered with videodev: 0=minor
<7>[ 3191.670069] easycap::0easycap_usb_probe: ends successfully for interface 0
<4>[ 3191.672261] ##### sound/usb/card.c REGISTER tv_sec=3191 ++++++++++++++++++++++++
<4>[ 3191.673846] ##### endpoint.c snd_usb_add_audio_endpoint SUCCESS 'USB Audio'
<4>[ 3191.674327] ##### clock.c set_sample_rate dev=10 iface=2 altset=1 ep=0x84 rate=48000
<3>[ 3258.452478] binder: release proc 3117, transaction 592931, not freed
<6>[ 3306.761700] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3306.795948] AP L2->L0
<6>[ 3306.808081] L0
<6>[ 3308.995967] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3308.996213] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3309.001568] L2
<6>[ 3311.766582] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3311.805869] AP L2->L0
<6>[ 3311.824669] L0
<6>[ 3317.046016] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3317.046186] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3317.051083] L2
<6>[ 3319.867604] CP L2->L0
<6>[ 3319.906552] L0
<6>[ 3322.996168] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3322.996352] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3323.001471] L2
<3>[ 3362.102124] init: untracked pid 15218 exited
<3>[ 3362.102897] init: untracked pid 15223 exited
<3>[ 3377.556639] init: untracked pid 15293 exited
<3>[ 3377.571408] init: untracked pid 15298 exited
<6>[ 3419.469400] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3419.505831] AP L2->L0
<6>[ 3419.521441] L0
<6>[ 3424.996119] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3424.996414] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3425.001970] L2
<6>[ 3428.124306] usb 1-1.3.3: USB disconnect, device number 10
<7>[ 3428.149622] easycap:: easycap_delete:	    0=video urbs    after all deletions
<7>[ 3428.149908] easycap:: easycap_delete:	    0=video pages   after all deletions
<7>[ 3428.150175] easycap:: easycap_delete:	    0=video structs after all deletions
<7>[ 3428.150322] easycap:: easycap_delete:	    0=video devices after all deletions
<7>[ 3428.150586] easycap:: easycap_delete:	    0=audio urbs    after all deletions
<7>[ 3428.150850] easycap:: easycap_delete:	    0=audio pages   after all deletions
<7>[ 3428.150999] easycap:: easycap_delete:	    0=audio structs after all deletions
<7>[ 3428.151265] easycap:: easycap_delete:	    0=audio devices after all deletions
<6>[ 3433.196362] usb 1-1.3.3: new high speed USB device number 11 using tegra-ehci
<6>[ 3433.227573] usb 1-1.3.3: New USB device found, idVendor=05e1, idProduct=0408
<6>[ 3433.227975] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 3433.228188] usb 1-1.3.3: Product: USB 2.0 Video Capture Controller
<6>[ 3433.228564] usb 1-1.3.3: Manufacturer: Syntek Semiconductor
<7>[ 3435.298322] easycap::0adjust_standard: selected standard: PAL_BGHIN
<7>[ 3435.446157] easycap::0adjust_format: sought:    640x480,UYVY(0x59565955),1=field,0x00=std mask
<7>[ 3435.446455] easycap::0adjust_format: sought:    V4L2_FIELD_NONE
<7>[ 3435.446736] easycap::0adjust_format: actioning: 640x480 PAL_BGHIN_AT_640x480_FMT_UYVY-n
<7>[ 3435.476221] easycap::0adjust_brightness: adjusting brightness to  0x7F
<7>[ 3435.509839] easycap::0adjust_contrast: adjusting contrast to  0x3F
<7>[ 3435.535907] easycap::0adjust_saturation: adjusting saturation to  0x2F
<7>[ 3435.565899] easycap::0adjust_hue: adjusting hue to  0x00
<7>[ 3435.567447] easycap::0easycap_usb_probe: registered with videodev: 0=minor
<7>[ 3435.567511] easycap::0easycap_usb_probe: ends successfully for interface 0
<4>[ 3435.568229] ##### sound/usb/card.c REGISTER tv_sec=3435 ++++++++++++++++++++++++
<4>[ 3435.568670] ##### endpoint.c snd_usb_add_audio_endpoint SUCCESS 'USB Audio'
<4>[ 3435.568878] ##### clock.c set_sample_rate dev=11 iface=2 altset=1 ep=0x84 rate=48000
<3>[ 3438.881986] init: untracked pid 15500 exited
<3>[ 3438.888330] init: untracked pid 15494 exited
<3>[ 3439.407708] init: untracked pid 15530 exited
<3>[ 3439.416567] init: untracked pid 15536 exited
<3>[ 3439.978064] init: untracked pid 15567 exited
<3>[ 3439.994481] init: untracked pid 15572 exited
<6>[ 3506.767184] usb_net_raw_ip_tx_urb_work: usb->susp_count 1 > 0 (suspended)
<6>[ 3506.805832] AP L2->L0
<6>[ 3506.815966] L0
<6>[ 3511.996013] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3511.996542] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3512.002565] L2
<6>[ 3514.280031] CP L2->L0
<6>[ 3514.316600] L0
<6>[ 3517.006238] usb_net_raw_ip_rx_urb_comp: rx urb e3aeaf60 - status -2
<6>[ 3517.006860] usb_net_raw_ip_rx_urb_comp: rx urb e3a3f1c0 - status -2
<6>[ 3517.013817] L2

Edited by Dr4g0n, 16 March 2013 - 10:21 AM.

  • 0 Likes

DmitrySmol

DmitrySmol

Member

  • 79 posts

Posted 16 March 2013 - 10:43 AM #4

hi,
i think You have lagging, because carcam_beta have a lot debug info :). pls send me logcat. i will prepare soon alfa version.

Edited by DmitrySmol, 16 March 2013 - 10:44 AM.

  • 0 Likes

OP dcplaya

dcplaya

Android Beginner

  • 332 posts

Posted 18 March 2013 - 11:07 AM #5

Im running a not released kernel/module and I am getting no lags at all. I am also setting permissions via my modified ramdisk which isnt very secure but it was the easiest to setup and test my module and the camera hardware.

@Dra4g0n
Are you running the latest USBROM with that module from an older ROM?

I have also added a memory leak patch I found online to my version of the un-released module
https://github.com/d...e90464efbd896ec


I haven't released it yet because I cannot get it to run on USBROM's kernel, and I havent had time to to keep working with possible fixes. And no one seems to be able to answer what is causing it from my log (shown in the first post)


This has slowed down a little bit, I just havent had the chance to do tests lately.

Edited by dcplaya, 21 March 2013 - 05:43 AM.

  • 0 Likes

Hydro

Hydro

Member

  • 31 posts

Posted 26 March 2013 - 03:27 AM #6

Hi

I saw on Timur topic that easycap driver won't be support anymore :(

So if i understand with your file i can use easycap STK1160 like old timur rom ?

Edited by Hydro, 26 March 2013 - 03:27 AM.

  • 0 Likes

OP dcplaya

dcplaya

Android Beginner

  • 332 posts

Posted 26 March 2013 - 04:45 AM #7

Hi

I saw on Timur topic that easycap driver won't be support anymore :(

So if i understand with your file i can use easycap STK1160 like old timur rom ?


If you look at my first post all of the way, I am having issues with my module running under Timur's kernel. I am currently waiting for the next release of his rom before I try a new build of the kernel.
  • 0 Likes

Kuchar09

Kuchar09

Android Lover

  • 137 posts

Posted 26 March 2013 - 05:38 AM #8

Well I just ordered my easycap and should have it monday! Thanks for putting this together dcplaya!
  • 0 Likes

DmitrySmol

DmitrySmol

Member

  • 79 posts

Posted 26 March 2013 - 05:44 AM #9

dcplaya, good news.
we have built stk1160-standalone for RK3066 3.0.8+.
Maybe You can try to build it and for Nexus?
just remove ac97 support for this driver (remove stk1160-ac97.o in makefile and comment all calls ac97, You will see it in build process)
also build and insmod next modules:
  • saa7115
  • videobuf2_core
  • videobuf2_vmalloc
  • videobuf2_memops

Edited by DmitrySmol, 26 March 2013 - 05:47 AM.

  • 0 Likes

OP dcplaya

dcplaya

Android Beginner

  • 332 posts

Posted 26 March 2013 - 08:16 AM #10

dcplaya, good news.
we have built stk1160-standalone for RK3066 3.0.8+.
Maybe You can try to build it and for Nexus?
just remove ac97 support for this driver (remove stk1160-ac97.o in makefile and comment all calls ac97, You will see it in build process)
also build and insmod next modules:

  • saa7115
  • videobuf2_core
  • videobuf2_vmalloc
  • videobuf2_memops


Isnt this older than what is in the kernel now? Or is the one in the Android kernel (v3.1.10) and this one different?
  • 0 Likes