Re: [Em28xx] Sound failure with analog TV on Cinergy Hybrid T USB XS
On Wed, Jan 21, 2009 at 9:18 AM, Luca Santini luca.sant...@spesonline.com wrote: I have same tv dongle on ACER ASPIRE ONE and I got it work in this mode: 1. compiled and installed the hg version of em28xx-new driver (doh! i needed to install kernel sources and compiler on 8GB SSD :( ) 2. compiled and installed modified tvtime (doh! other developement pakages to install ... :( :( ) 3. DELETED /lib/modules/$KERNEL_VERSION/empia/{em28xx-audioep.ko,em28xx-audio.ko} 4. before starting tvtime, i load em28xx-aad module: modprobe em28xx-aad.ko tvtime -d /dev/video1 that was a good work from your side. Actually there's an installer package available for the Acer Aspire One. I will ask the customer if he wants to release it. The aad driver is not alsa compatible and will only work with that patched tvtime version. Without the alsa driver sources which are used by Acer I don't see any other way how to get analog audio work at all with that tiny notebook. So just as a reminder, the aad driver is good for the Acer Aspire One without having to update anything that's available, the em28xx-audio driver should be used on real hosts. Question: if i have the dongle connected at the boot kernel detect it as /dev/video0 ; otherwise video0 is the uvcvideo webcam... is there a way to force a fixed name or to discover WHAT device is a device? tvtime should be patched in order to figure out the right node for it... eeetv on mcentral.de already does auto discovering of available empia based devices. I might add that code to the tvtime version there.. regards, Markus Peter Stuge wrote: I wrote: The only way I get sound is if I load the driver before plugging the device, and even then I sometimes need to start tvtime or mplayer more than once. If the driver was not loaded before plugging the device no number of application restarts will produce sound. I did some more testing: If I plug the device without modules loaded so driver loads (which leads to no sound) then unload modules, then load modules again - all with the device plugged - I will still not get sound. If I load modules without device plugged, then plug device (in which case the sound works) unload the modules, load the modules again - all with the device plugged, I continue to get working sound. Any time I write working sound I always have to stop and restart tvtime/mplayer at least one time but usually two times. This also holds true after unloading and reloading the driver. For no sound cases I've tried restarting tvtime 15 times. dmesg output is attached from when modules are loaded automatically on device plug, and from when modules are loaded before device is plugged. Including diff. //Peter ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx -- *Luca Santini* //Elettronica di Sistema// *SPES. S.c.p.a* Via Lamberto Corsi, 43 60044 Fabriano (AN) tel. +39 0732 25291 fax +39 0732 2529441 luca.sant...@spesonline.com mailto:luca.sant...@spesonline.com www.spesonline.com http://www.spesonline.com ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] em28xx #0: Found Hauppauge WinTV HVR 900 (R2)
Hello all! Jelle wrote: The wiki needs an update, I dont support ubuntu anymore they do to much strange things with there kernel systems. I will fully support Debian. Jelle, please explain again to a dummy! Does that mean I cannot have sucsess with Ubuntu 8.10 untill Mr. Rechberger update the WIKI? Will my stick have support and work on Debian or neither on Debin nor on Ubuntu? Kindly regards Klaus Lang ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] em28xx #0: Found Hauppauge WinTV HVR 900 (R2)
On Wed, Jan 21, 2009 at 10:03 AM, KLaus Lang klau...@gmx.net wrote: Hello all! Jelle wrote: The wiki needs an update, I dont support ubuntu anymore they do to much strange things with there kernel systems. I will fully support Debian. Jelle, please explain again to a dummy! Does that mean I cannot have sucsess with Ubuntu 8.10 untill Mr. Rechberger update the WIKI? Will my stick have support and work on Debian or neither on Debin nor on Ubuntu? Ubunut reverted their mess as far as I know, it should be straight forward to set up the device on it now when the appropriate kernel sources are installed. With earlier systems they separated the kernel sources and some modules (for example the alsa sound framework). This separation caused any external compiled audio driver to fail unless someone went through the more or less complicated setup. regards, Markus ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] em28xx #0: Found Hauppauge WinTV HVR 900 (R2)
Markus Rechberger wrote: On Wed, Jan 21, 2009 at 10:03 AM, KLaus Lang klau...@gmx.net wrote: Hello all! Jelle wrote: The wiki needs an update, I dont support ubuntu anymore they do to much strange things with there kernel systems. I will fully support Debian. Jelle, please explain again to a dummy! Does that mean I cannot have sucsess with Ubuntu 8.10 untill Mr. Rechberger update the WIKI? Will my stick have support and work on Debian or neither on Debin nor on Ubuntu? Ubunut reverted their mess as far as I know, it should be straight forward to set up the device on it now when the appropriate kernel sources are installed. With earlier systems they separated the kernel sources and some modules (for example the alsa sound framework). This separation caused any external compiled audio driver to fail unless someone went through the more or less complicated setup. regards, Markus Ok I will post my latest version that i use for debian sid, if ubuntu fixed there issues, it should be trival to get it working for ubuntu. But Markus didn't you prepackage stuff for ubuntu. Did you have any time to fix the makefiles, then i can make debian packages for the drivers. BTW. Are you going to fosdem 2009 :-) Best regards, Jelle ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] em28xx #0: Found Hauppauge WinTV HVR 900 (R2)
KLaus Lang wrote: Hello all! Jelle wrote: The wiki needs an update, I dont support ubuntu anymore they do to much strange things with there kernel systems. I will fully support Debian. Jelle, please explain again to a dummy! Does that mean I cannot have sucsess with Ubuntu 8.10 untill Mr. Rechberger update the WIKI? Will my stick have support and work on Debian or neither on Debin nor on Ubuntu? Kindly regards Klaus Lang http://mcentral.de/wiki/index.php5/Installation_Guide So here we go, that toke far to much time :-D But this manual is not for beginners of Linux, if you feel experimental than you can try, but else wait a few years (with the current upstream merging speed) and then the device will work out of the box. Best regards, Jelle ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
[Em28xx] modified tvtime doesn't work on Ubuntu 8.10
It worked well on previous (Hardy Heron) Ubuntu, but since upgrade it stops work with an error Access type not available (AFAIK it is from the part of tvtime which processed the sound. If there is no active channel (i.e. when the tuner is not tuned) - and so, when all sounds is muted, all is right. I means - it simple shows the blue screen with some OSD. But when an attempt to make a sound happens - it crashes. If originally there was a tuned channel - it crashes in about one or two seconds after start - at the moment when the picture appears on the screen. And - if I unload em28xx-audio and load em28xx-aad instead, this is no difference (same crash with same message) Running tvtime as root (bad idea, by the way) also make no difference. Below is the log. ale...@vinogradov-ubuntu:~$ uname -a Linux vinogradov-ubuntu 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux ale...@vinogradov-ubuntu:~$ tvtime -vv Running tvtime 1.0.2. Reading settings from /usr/etc/tvtime/tvtime.xml Reading settings from /home/alexey/.tvtime/tvtime.xml cpuinfo: CPU Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz, family 15, model 2, stepping 7. cpuinfo: CPU measured at 1199,265MHz. tvtime: Cannot set priority to -10: Permission denied. trying to fall back to software scaling and X11 output xcommon: Display localhost:10.0, vendor Colin Harrison, vendor release 60900028 xfullscreen: No support for the vidmode extension, assuming square pixels. xfullscreen: Pixels are square. xfullscreen: Number of displays is 1. xfullscreen: Head 0 at 0,0 with size 1280x1024. xcommon: Pixel aspect ratio 1:1. xcommon: Pixel aspect ratio 1:1. xcommon: No window properties found for EWMH. xcommon: Window manager is not EWMH compliant. xcommon: Pixel aspect ratio 1:1. xcommon: Displaying in a 768x576 window inside 768x576 space. speedycode: Using MMXEXT optimized functions. station: Reading stationlist from /home/alexey/.tvtime/stationlist.xml videoinput: Using video4linux2 driver 'em28xx', card 'Pinnacle Hybrid Pro (em2882)' (bus 6-2.4). videoinput: Version is 1, capabilities 5030011. videoinput: Width 768 too high, using 720 instead as suggested by the driver. videoinput: Maximum input width: 720 pixels. tvtime: Sampling input at 720 pixels per scanline. xcommon: Pixel aspect ratio 1:1. xcommon: Displaying in a 768x576 window inside 768x576 space. Reading settings from /usr/etc/tvtime/tvtime.xml Reading settings from /home/alexey/.tvtime/tvtime.xml Intel 82801CA-ICH3 : Intel 82801CA-ICH3 hw:0,0 Intel 82801CA-ICH3 : Intel 82801CA-ICH3 - MIC ADC hw:0,1 Em28xx Audio : Empia 28xx Capture hw:1,0 opening: hw:1,0 xcommon: Received a map, marking window as visible (46). Access type not available -- С уважением, Gmail mailto:a.n.vinogra...@gmail.com ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] Grabshow 100 with em28xx
Hi Németh. Thanks for sticking to my prob! It always happens... The steps are a bit complicated... I installed Zoneminder (latest release on zoneminder.com), which needs quite a few additional packages to my standard distro (openSUSE 11.1) to work. I then added a new Monitor with the source /dev/video1 and resolution 640*480 (also tried different ones). Then, make it Active and click on it, and it should display the video source. But it just displays a black screen and the log files (in /tmp/) report errors. What I mailed you is dmesg output. Am 18.01.2009 um 22:20 schrieb Németh Márton: Unfortunately, you have to recompile your kernel to enable those features. Changing that file does nothing. Am 18.01.2009 um 22:27 schrieb Németh Márton: This is a problem of the kernel space em28xx-new. Does this always happen? What are the steps to reproduce the problem? To debug this problem it would be useful if you can set the CONFIG_* parameters I specified (run make menuconfig from the linux source directory (usually /usr/src/linux) and press the / key so you can search for the CONFIG_* parameters. Then the kernel configuration is saved to a file named .config. There should be a description somewhere which describes how to build Linux kernel. I finally managed to compile my kernel again with the parameters you gave me, took my quite a while. Now uname -r reports 2.6.27.7- debug2, means what I did worked. When activating /dev/video1 in Zoneminder, I get of these errors in dmesg: BUG: unable to handle kernel NULL pointer dereference at 0088 IP: [e1a9d20c] :em28xx:em28xx_v4l2_ioctl+0x9/0x5f *pdpt = 07563001 *pde = Oops: [#2] SMP last sysfs file: /sys/devices/pci:00/:00:10.3/ usb4/4-2/4-2:1.0/bInterfaceClass Modules linked in: tda9887(N) em28xx(N) zl10353(N) tuner(N) tvp5150 (N) nls_utf8(N) binfmt_misc(N) ipv6(N) hisax(N) capidrv(N) isdn(N) slhc(N) capi(N) capifs(N) kernelcapi(N) fuse(N) loop(N) dm_mod(N) saa7115(N) snd_via82xx(N) gameport(N) snd_ac97_codec(N) ppdev(N) ac97_bus(N) snd_pcm(N) snd_timer(N) snd_page_alloc(N) snd_mpu401_uart (N) rtc_cmos(N) i2c_viapro(N) snd_rawmidi(N) rtc_core(N) snd_seq_device(N) via_rhine(N) via_ircc(N) rtc_lib(N) serio_raw(N) pcspkr(N) snd(N) sr_mod(N) mii(N) soundcore(N) irda(N) cdrom(N) sg(N) crc_ccitt(N) videobuf_vmalloc(N) cx24110(N) dvb_bt8xx(N) dvb_core(N) bt878(N) thermal(N) parport_pc(N) bttv(N) parport(N) floppy(N) videodev(N) v4l1_compat(N) ir_common(N) compat_ioctl32(N) i2c_algo_bit (N) v4l2_common(N) videobuf_dma_sg(N) videobuf_core(N) btcx_risc(N) via_agp(N) tveeprom(N) processor(N) shpchp(N) button(N) agpgart(N) i2c_core(N) pci_hotplug(N) sd_mod(N) crc_t10dif(N) ehci_hcd(N) uhci_hcd(N) usbcore(N) edd(N) fan(N) thermal_sys(N) hwmon(N) ext3(N) mbcache(N) jbd(N) ide_pci_generic(N) via82cxxx(N) ide_core(N) ata_generic(N) pata_via(N) libata(N) scsi_mod(N) dock(N) [last unloaded: em28xx] Supported: No Pid: 7372, comm: zmc Tainted: G D (2.6.27.7-debug2 #2) EIP: 0060:[e1a9d20c] EFLAGS: 00010292 CPU: 0 EIP is at em28xx_v4l2_ioctl+0x9/0x5f [em28xx] EAX: EBX: ECX: c0445624 EDX: d8560900 ESI: d8560900 EDI: e1a9d203 EBP: c7577d48 ESP: c7577d40 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 Process zmc (pid: 7372, ti=c7576000 task=d78565e0 task.ti=c7576000) Stack: d8560900 c7577dac e1104406 c7577d54 00980900 dd1c6000 df458800 dd1c6008 c0132082 0006 0002 0001 d78565e0 d7843860 de004060 c7577d98 c014b5f4 c7577db0 0202 Call Trace: [e1104406] get_v4l_control+0x20/0xa2 [v4l1_compat] [e1105091] v4l1_compat_get_picture+0x41/0x183 [v4l1_compat] [e1105ac0] v4l_compat_translate_ioctl+0x1be/0x266 [v4l1_compat] [e1a9fa5d] em28xx_video_do_ioctl+0x1e06/0x1e59 [em28xx] [e10d9797] video_usercopy+0x1ae/0x247 [videodev] [e1a9d259] em28xx_v4l2_ioctl+0x56/0x5f [em28xx] [e1a9d271] em28xx_v4l2_ioctl_fops+0xf/0x11 [em28xx] [c01a9f4a] vfs_ioctl+0x4e/0x67 [c01aa1ad] do_vfs_ioctl+0x24a/0x25d [c01aa200] sys_ioctl+0x40/0x5c [c0104bdb] sysenter_do_call+0x12/0x3f [e430] 0xe430 === Code: 8d 94 03 2c 06 00 00 89 51 50 ff 84 03 80 06 00 00 31 c0 eb 05 b8 ea ff ff ff 8d 65 f4 5b 5e 5f 5d c3 55 89 e5 56 89 d6 53 89 c3 8b 80 88 00 00 00 8b 00 8b 90 24 0a 00 00 f6 c2 02 74 12 50 68 EIP: [e1a9d20c] em28xx_v4l2_ioctl+0x9/0x5f [em28xx] SS:ESP 0068:c7577d40 ---[ end trace 866b1e476144b190 ]--- Am 18.01.2009 um 22:20 schrieb Németh Márton: It seems that the segmentation fault is in user space (webcam and not in the em28xx-new driver. You might try to run strace webcam or try a different video application like xawtv. I actually searched the internet for xawtv and found out, that webcam is part of xawtv (I have xawtv installed). So I guess there is no other way to test the webcam with xawtv? strace webcam does give me the output I
Re: [Em28xx] Grabshow 100 with em28xx
Hi, ogre5000 wrote: Hi Németh. Thanks for sticking to my prob! It always happens... The steps are a bit complicated... I installed Zoneminder (latest release on zoneminder.com), which needs quite a few additional packages to my standard distro (openSUSE 11.1) to work. I then added a new Monitor with the source /dev/video1 and resolution 640*480 (also tried different ones). Then, make it Active and click on it, and it should display the video source. But it just displays a black screen and the log files (in /tmp/) report errors. What I mailed you is dmesg output. I couldn't really find a simple testcase which triggers this problem, but I analysed the source code and found that the function prototype v4l2_kioctl changed between Linux kernel 2.6.27 and 2.6.28: the inode parameter was removed. Last time when I updated the em28xx-new I forget this fact. I just sent a patch titled [PATCH] remove inode parameter of typedef v4l2_kioctl as of 2.6.28. Could you please apply and test the new version of em28xx-new driver? I actually searched the internet for xawtv and found out, that webcam is part of xawtv (I have xawtv installed). So I guess there is no other way to test the webcam with xawtv? *strace webcam* does give me the output I uploaded here: http://www.file-upload.net/download-1398622/strace_webcam.txt.html It doesn't say much to me ... :( The end of the log looks quite interesting: write(2, video4linux webcam v1.5 - (c) 19..., 51video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr ) = 51 write(2, grabber config:\n size 360x576 [..., 65grabber config: size 360x576 [16 bit YUV 4:2:2 (packed, YUYV)] ) = 65 write(2, input (null), norm (null), jpe..., 46 input (null), norm (null), jpeg quality 100 Here we can see that (null) is written to the output instead of a readable input and norm parameter. This usually signals that there might be some return value check missing in the code. ) = 46 write(2, rotate=0, top=0, left=0, botto..., 49 rotate=0, top=0, left=0, bottom=480, right=640 ) = 49 write(2, write config [local]:\n local tr..., 81write config [local]: local transfer /root/uploading.jpeg = /root/webcam.jpeg ) = 81 mmap2(NULL, 417792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d88000 read(3, \20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200..., 414720) = 414720 mmap2(NULL, 622592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cf This mmap2() calls also do not look like very good: -1 is the fd parameter which shall be positive. The -1 is an error code which comes from a previous system call and it is not a valid file descriptor. --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Regards, Márton Németh ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx
Re: [Em28xx] Grabshow 100 with em28xx
Németh Márton wrote: ogre5000 wrote: I actually searched the internet for xawtv and found out, that webcam is part of xawtv (I have xawtv installed). So I guess there is no other way to test the webcam with xawtv? *strace webcam* does give me the output I uploaded here: http://www.file-upload.net/download-1398622/strace_webcam.txt.html It doesn't say much to me ... :( The end of the log looks quite interesting: write(2, video4linux webcam v1.5 - (c) 19..., 51video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr ) = 51 write(2, grabber config:\n size 360x576 [..., 65grabber config: size 360x576 [16 bit YUV 4:2:2 (packed, YUYV)] ) = 65 write(2, input (null), norm (null), jpe..., 46 input (null), norm (null), jpeg quality 100 Here we can see that (null) is written to the output instead of a readable input and norm parameter. This usually signals that there might be some return value check missing in the code. ) = 46 write(2, rotate=0, top=0, left=0, botto..., 49 rotate=0, top=0, left=0, bottom=480, right=640 ) = 49 write(2, write config [local]:\n local tr..., 81write config [local]: local transfer /root/uploading.jpeg = /root/webcam.jpeg ) = 81 mmap2(NULL, 417792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d88000 read(3, \20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200\20\200..., 414720) = 414720 mmap2(NULL, 622592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cf This mmap2() calls also do not look like very good: -1 is the fd parameter which shall be positive. The -1 is an error code which comes from a previous system call and it is not a valid file descriptor. --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ write(2, reading config file: /root/.webc..., 37reading config file: /root/.webcamrc ) = 37 Could you please send your /root/.webcamrc ? (Please change the password field in it to *** before sending, if any.) Regards, Márton Németh ___ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx