Author Topic: modprobe for em2820 video grabber  (Read 1900 times)

Offline pupthai

  • Hero Member
  • *****
  • Posts: 1426
  • PCLinuxOS 2011 2 - KDE4
modprobe for em2820 video grabber
« on: July 18, 2011, 05:10:42 AM »
OK I don't know for sure how this is done.  As you see from the email below the em2820 is misdirected as em2860.  The talked of
Documentation/video4linux/CARDLIST.em28xx says it is card 1 so it is listed.  windows with vlc detects it as em2820 and puts it on
the devise list and works fine.  It has worked in the past with linux.
I guess I need to modprobe em28xx with card=1 parameter and force it to detect em2820.  My noob is showing. :D
Thanks.

>lsusb
Bus 001 Device 004: ID eb1a:2820 eMPIA Technology, Inc.

>dmesg | grep em28xx
usbcore: registered new interface driver em28xx
em28xx driver loaded
em28xx: New device @ 480 Mbps (eb1a:2820, interface 0, class 0)
em28xx #0: chip ID is em2820 (or em2710)
em28xx #0: board has no eeprom
em28xx #0: found i2c device @ 0x4a [saa7113h]
em28xx #0: Your board has no unique USB ID.
em28xx #0: A hint were successfully done, based on i2c devicelist hash.
em28xx #0: This method is not 100% failproof.
em28xx #0: If the board were missdetected, please email this log to:
em28xx #0:      V4L Mailing List  <linux-media@vger.kernel.org>
em28xx #0: Board detected as EM2860/SAA711X Reference Design
em28xx #0: Identified as EM2860/SAA711X Reference Design (card=19)
em28xx #0: Registering snapshot button...
input: em28xx snapshot button as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/input/input1
em28xx #0: Config register raw data: 0x00
em28xx #0: v4l2 driver version 0.1.2
em28xx #0: V4L2 video device registered as video0

FM: linux-media@vgar.kernel.org
our device doesn't have an eeprom. So, there's no reliable way to identify
what board you have. Kernel can try to hint, but there will always be cases
where two different boards will match such hint. On such cases (like yours),
you'll need to modprobe em28xx with card= parameter.

If your device used to be supported by the in-kernel em28xx driver, all you
need is to add something like:
   options em28xx card=20

(well, replacing 20 by the correct card number from Documentation/video4linux/CARDLIST.em28xx)

If otherwise your board is not listed there, then you'll need to discover what are
the correct setups for it and send us a patch adding a new card number with your
configs.
PCLinuxOS 2011 2 - KDE4
Intel 2 core duo @3.22gig, Asus P5G41/M, DDR2/1066 4gig, ENGT220 DDR3/1gig, 2x Seagate 250gig.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10697
  • MLUs Forever!
Re: modprobe for em2820 video grabber
« Reply #1 on: July 18, 2011, 07:54:30 AM »
I guess I should be OK so ....

Quote
Bus 001 Device 021: ID eb1a:2863 eMPIA Technology, Inc. Video Grabber


Quote
usb 1-6: new high speed USB device using ehci_hcd and address 21
usb 1-6: New USB device found, idVendor=eb1a, idProduct=2863
usb 1-6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
em28xx: New device @ 480 Mbps (eb1a:2863, interface 0, class 0)
em28xx #0: chip ID is em2860
em28xx #0: board has no eeprom
em28xx #0: found i2c device @ 0xb8 [tvp5150a]
em28xx #0: Your board has no unique USB ID.
em28xx #0: A hint were successfully done, based on i2c devicelist hash.
em28xx #0: This method is not 100% failproof.
em28xx #0: If the board were missdetected, please email this log to:
em28xx #0:      V4L Mailing List  <linux-media@vger.kernel.org>
em28xx #0: Board detected as EM2860/TVP5150 Reference Design
em28xx #0: Identified as EM2860/TVP5150 Reference Design (card=29)
tvp5150 12-005c: chip found @ 0xb8 (em28xx #0)
em28xx #0: Config register raw data: 0x10
em28xx #0: AC97 vendor ID = 0x83847650
em28xx #0: AC97 features = 0x6a90
em28xx #0: Sigmatel audio processor detected(stac 9750)
tvp5150 12-005c: tvp5150am1 detected.
em28xx #0: v4l2 driver version 0.1.2
em28xx #0: V4L2 video device registered as video1
em28xx #0: V4L2 VBI device registered as vbi0
em28xx-audio.c: probing for em28x1 non standard usbaudio
em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
em28xx_dvb: This device does not support the extension
tvp5150 12-005c: tvp5150am1 detected.
tvp5150 12-005c: tvp5150am1 detected.
« Last Edit: July 18, 2011, 08:01:02 AM by Just19 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pupthai

  • Hero Member
  • *****
  • Posts: 1426
  • PCLinuxOS 2011 2 - KDE4
Re: modprobe for em2820 video grabber
« Reply #2 on: July 18, 2011, 09:22:19 AM »
What I did from root is

modprobe em28xx options card=1

Still it detects wrong even after rebooting.  I cannot force it to use card=1 it is seeing only 19  the em2870 but lsusb sees the right thing.  All applications like webcam studio if I click add a device only list the em2780 as it is wrongly detected and because it is the wrong driver when I ask vlc from dev/video0 it fails to work the same as webcam studio and every other program in the repo.  I think the only reason is this detection as the driver is in the kernel and it should work.  I need a bigger hammer.

What did I do wrong? 

How if the card 1 option is in the module as shown in the v4l2 list can I make it work or is the module broken and won't take modprobe options?

I have had video from this device in the past and it works PnP with vlc in windows no problem and is detected as em2820 just like lsusb does.

It seems to be supported but not working correctly.

PCLinuxOS 2011 2 - KDE4
Intel 2 core duo @3.22gig, Asus P5G41/M, DDR2/1066 4gig, ENGT220 DDR3/1gig, 2x Seagate 250gig.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10697
  • MLUs Forever!
Re: modprobe for em2820 video grabber
« Reply #3 on: July 18, 2011, 12:07:01 PM »
I don't have a video source connected at present, but this may give some ideas ....

Before plugging in the device I do

ls /dev/

then plug it in and do the same command again.

I find that the device I plugged in is

/dev/video1

I can then use VLC to 'Capture Device' and specify   /dev/video1  as the device.

VLC then attempts to play whatever stream might be present ....  in this case none as I said, but VLC does put up a screen ...

My device is a Video Grabber (capture) device.
It requires a later kernel to work ....  >2.6.37  .....  so make sure you have the latest kernel.

I dunno if any of that helps .....

regards
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT