Kernel hacking: ov51x-jpeg module with 2 webcams

墙外文章,贴来慢慢看

原文地址:

http://awesomegeekblog.blogspot.tw/2009/04/kernel-hacking-ov51x-jpeg-module-with-2.html

This is par­tially a note-to-self, and pretty es­o­teric. If you don't get what I'm talk­ing about, don't worry. This prob­a­bly doesn't apply to you. 

I have sent this fix to the mod­ule cre­ator, but until a so­lu­tion be­comes avail­able in the ac­tual mod­ule, I'm shar­ing the in­for­ma­tion here.

The fol­low­ing changes are made en­tirely at your own peril. I take ab­solutely no re­spon­si­bil­ity for what­ever doom it may bring upon your com­puter. It may cause your com­puter to go up in flames, your girl­friend to cheat on you and hor­ri­bly dis­fig­ur­ing and ag­o­niz­ing dis­eases to be in­flicted upon you. Don't say I didn't warn you.

I have had prob­lems with get­ting the ov51x-jpeg ker­nel mod­ule to ac­cept mul­ti­ple we­b­cams with my OV519 cam­eras. I'm quite sim­ply run­ning out of USB band­width. Now the mod­ule has built in func­tion­al­ity to han­dle this: You mod­probe with the ar­gu­ment "cams=2". This did not work for me. I was still using too much band­width. 

If you make the fol­low­ing al­ter­ation to ov51x-jpeg-1.5.9. 

File: ov51x-jpeg-core.c
5435 case BRG_OV519:
5436 if (cams == 1) size = 896;
5437 else if (cams == 2) size = 512;
5438 else {

is changed into
5435 case BRG_OV519:
5436 if (cams == 1) size = 896;
5437 else if (cams == 2) size = 512;
5438 else if (cams == 3) size = 384;
5439 else {


Un­load the ov51x-jpeg mod­ule. Re­com­pile the mod­ule sources. Load with

modprobe ov51x-jpeg cams=3

... and it works. At least for me.  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值