From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 25 11:07:05 2010 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F0A810656E6 for ; Mon, 25 Oct 2010 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E59E78FC12 for ; Mon, 25 Oct 2010 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9PB744d088826 for ; Mon, 25 Oct 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9PB74Hw088824 for freebsd-multimedia@FreeBSD.org; Mon, 25 Oct 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Oct 2010 11:07:04 GMT Message-Id: <201010251107.o9PB74Hw088824@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2010 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/151206 multimedia [PATCH] audio/libsndfile: update to 1.0.22 o ports/151203 multimedia Fixed syntax in libfame.m4 file in multimedia/libfame o ports/150705 multimedia audio/grip seg faults on AMD64 8.1-STABLE (but not i38 o ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o ports/149765 multimedia [PATCH] audio/faac: improve build patches o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r p kern/147466 multimedia [snd_hda] [patch] Thinkpad t510, codecs not recognized o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/140453 multimedia [sound] No sound inside Virtualbox on 50% volume o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt f kern/115666 multimedia [sound] Microphone does not work o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst s kern/113950 multimedia [sound] [patch] [request] add per-vchan mixer support o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/104626 multimedia [sound] FreeBSD 6.2 does not support SoundBlaster Audi o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup s kern/83697 multimedia [sound] [snd_mss] [patch] support, docs added for full o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 67 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 30 09:24:34 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AAAC106564A for ; Sat, 30 Oct 2010 09:24:34 +0000 (UTC) (envelope-from appdebgr@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 323368FC0C for ; Sat, 30 Oct 2010 09:24:33 +0000 (UTC) Received: by vws12 with SMTP id 12so1066714vws.13 for ; Sat, 30 Oct 2010 02:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ECNkh6wJ2tf5BnrW4qWsp9zJDeZLFCrqZxqiJjbzlWo=; b=W/cjzhzV5gGzE11LbzHRaez/Wx+v1gJXsy/mAD7mCwBBqouoxdDlNHhxSwO1aZNcRx 0YVq4nujAO+lufAvnKK+cUVzG2YZ3uIvsFpVnCOz6WcC7eYmqKLu0eBA/Xg/7DBpVM2H htVNIf8AVhF4G3uMcVLIjw9yZfEJWQ1lZ1+xM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=i+vfm7osD8goqwY2nOGxjZ5H1R16f2jxAa2az6yabf+sFn1jsICkywp7kD3oa9dn7J 11o2DlvsRnEphTmj3NTVIVqpgKAFAYs/7+G3DgXH7LYv8AIbHidJ/7Eo2dmVel1dBC9j v1fcOF+ZMNuhPCEiMBLzIf8Bo5U/uWdjzTq/I= MIME-Version: 1.0 Received: by 10.229.222.19 with SMTP id ie19mr10642563qcb.198.1288428902082; Sat, 30 Oct 2010 01:55:02 -0700 (PDT) Received: by 10.229.28.7 with HTTP; Sat, 30 Oct 2010 01:54:55 -0700 (PDT) Date: Sat, 30 Oct 2010 11:54:55 +0300 Message-ID: From: App Deb To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: webcamd: usb dvb-t tuner needs to be re-plugged (after boot/reboot) to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 09:24:34 -0000 Great work on webcamd, I easily managed to get my usb dvb-t working with VLC. It works great but there is a slight problem. For it to work it needs to be unplugged and plugged again once after a FreeBSD boot or reboot. My usb dvb-t uses 2 firmware files: "dvb-usb-dib0700-1.20.fw" and "xc3028-v27.fw" (I have them in /boot/modules of course). Looking at the webcamd program output, The dib0700 firmware doesn't seem to be loaded if my usb tuner was already connected when FreeBSD booted. The result is that when trying to view TV, all channels have garbled video and audio output (if they work at all). Replugging it on a live system, correctly shows a webcamd message "Loading dvb-usb-dib0700-1.20.fw firmware.." and from there on the usb tuner works perfectly. I don't exactly know the internal workings of USB tuners, but for some reason the tuner itself seems to need a full power-cycle (replug) to be initialized properly, or maybe webcamd "thinks" that the firmware is already loaded when it is not (when FreeBSD boots). Is there any workaround/solution for this? Is there any command that does some virtual (software) re-plug of a usb device. I could use it in a startup script to solve the problem. Thanks, keep up the good work on webcamd, great project. From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 30 12:01:00 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE07C1065675 for ; Sat, 30 Oct 2010 12:01:00 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6E23C8FC1A for ; Sat, 30 Oct 2010 12:00:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=N5IAIDgfLPYA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=rDw2S1W8ldNazqnQrzYA:9 a=SVI1g205yZPRX6J6pAIA:7 a=6vvV7jU0GxxMaXtnACXYW-2FldEA:4 a=QEXdDO2ut3YA:10 a=SV7veod9ZcQA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 42947979; Sat, 30 Oct 2010 14:00:58 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Sat, 30 Oct 2010 14:02:08 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201010301402.08201.hselasky@c2i.net> Cc: Subject: Re: webcamd: usb dvb-t tuner needs to be re-plugged (after boot/reboot) to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 12:01:00 -0000 On Saturday 30 October 2010 10:54:55 App Deb wrote: > Great work on webcamd, I easily managed to get my usb dvb-t working with > VLC. It works great but there is a slight problem. > > For it to work it needs to be unplugged and plugged again once after a > FreeBSD boot or reboot. > > My usb dvb-t uses 2 firmware files: "dvb-usb-dib0700-1.20.fw" and > "xc3028-v27.fw" (I have them in /boot/modules of course). > > Looking at the webcamd program output, The dib0700 firmware doesn't seem to > be loaded if my usb tuner was already connected when FreeBSD booted. The > result is that when trying to view TV, all channels have garbled video and > audio output (if they work at all). > > Replugging it on a live system, correctly shows a webcamd message "Loading > dvb-usb-dib0700-1.20.fw firmware.." and from there on the usb tuner works > perfectly. > > I don't exactly know the internal workings of USB tuners, but for some > reason the tuner itself seems to need a full power-cycle (replug) to be > initialized properly, or maybe webcamd "thinks" that the firmware is > already loaded when it is not (when FreeBSD boots). > > Is there any workaround/solution for this? Is there any command that does > some virtual (software) re-plug of a usb device. I could use it in a > startup script to solve the problem. > > Thanks, keep up the good work on webcamd, great project. > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to > "freebsd-multimedia-unsubscribe@freebsd.org" Hi, 1) You can try to compile webcamd using the "make HAVE_DEBUG=YES". 2) Also try: usbconfig -d X.Y reset --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 30 13:54:16 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A968F106564A for ; Sat, 30 Oct 2010 13:54:16 +0000 (UTC) (envelope-from appdebgr@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5E64A8FC14 for ; Sat, 30 Oct 2010 13:54:16 +0000 (UTC) Received: by vws12 with SMTP id 12so1323489vws.13 for ; Sat, 30 Oct 2010 06:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/WNIOt5rn7+R/gPz7hfeBgmXlqaEhmA1ovc+qNfu14s=; b=IqSVnqt28DtjYC01aayxVio+MbVS8XfizhOS+urDK9b2lBbvmt0OMN5+NPKiMrusN3 KV4v0vTfCRVhNdZu54ur30pQ68Os8bNCl/R+5m61WJPPbcYRaw4xDuaAaqmX/9BCYs8Y Gp76080Agh3I6Xo62t73tGKh9LKo2X++yHP6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Kj3cXCyZRmThk5agBHRsaE4lsUc3M6RQn1WKkeaNNC4zAKtd0YrLKoCHTMynGkZWKW fN8SUcLzOOGbqQ/Iy0IQw0AXm/Z/uhY6ZsKFg/nDJYtLYUA9T04usqw1i3S4wDAgGQwg VSl/CI7VqB2tw0QJPuiP3107PXxKYVyUJ9rN4= MIME-Version: 1.0 Received: by 10.224.39.18 with SMTP id d18mr6080827qae.233.1288446854769; Sat, 30 Oct 2010 06:54:14 -0700 (PDT) Received: by 10.229.28.7 with HTTP; Sat, 30 Oct 2010 06:54:14 -0700 (PDT) In-Reply-To: <201010301402.08201.hselasky@c2i.net> References: <201010301402.08201.hselasky@c2i.net> Date: Sat, 30 Oct 2010 16:54:14 +0300 Message-ID: From: App Deb To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org Subject: Re: webcamd: usb dvb-t tuner needs to be re-plugged (after boot/reboot) to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 13:54:16 -0000 OK, first I tried usbconfig -d 2.2 reset (or "power_off" and "power_on") but it didn't work. The tuner was still not working after I restarted webcamd. However webcamd with HAVE_DEBUG gives some useful information: - webcamd log when IT IS NOT working (first start after boot/reboot without manually replugging device): Attached ugen2.2[0] to cuse unit 0 dvb-usb: found a 'Gigabyte U8000-RH' in warm state. dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. DVB: registering new adapter (Gigabyte U8000-RH) DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... xc2028 130-0061: creating new instance xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner dvb-usb: schedule remote query interval to 50 msecs. dvb-usb: Gigabyte U8000-RH successfully initialized and connected. Creating /dev/dvb/adapter0/demux0 Creating /dev/dvb/adapter0/dvr0 Creating /dev/dvb/adapter0/frontend0 webcamd log when it IS working (start webcamd after I manually re-plug usb device): Attached ugen2.2[0] to cuse unit 0 dvb-usb: found a 'Gigabyte U8000-RH' in cold state, will try to load a firmware Loading firmware at '/boot/modules/dvb-usb-dib0700-1.20.fw', f=7 dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw' dib0700: firmware started successfully. dvb-usb: found a 'Gigabyte U8000-RH' in warm state. dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. DVB: registering new adapter (Gigabyte U8000-RH) DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... xc2028 130-0061: creating new instance xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner dvb-usb: schedule remote query interval to 50 msecs. dvb-usb: Gigabyte U8000-RH successfully initialized and connected. Creating /dev/dvb/adapter0/demux0 Creating /dev/dvb/adapter0/dvr0 Creating /dev/dvb/adapter0/frontend0 - - - As you see, when webcamd first finds the usb tuner in "cold state" and loads the firmware it works, but when it finds it in warm state (and bypasses firmware load) it doesn't. Also sometimes a message appears like that: dvb-usb: Gigabyte U8000-RH successfully initialized and connected. dib0700: rc submit urb failed But even when it doesn't appear, the tuner still doesn't work if it was started from warm-state. Is there any way to force webcamd to behave like the tuner is always in Cold State to fix this? As I said the usbconfig command didn't seem to work for that. Thanks. On Sat, Oct 30, 2010 at 3:02 PM, Hans Petter Selasky wrote: > On Saturday 30 October 2010 10:54:55 App Deb wrote: > > Great work on webcamd, I easily managed to get my usb dvb-t working with > > VLC. It works great but there is a slight problem. > > > > For it to work it needs to be unplugged and plugged again once after a > > FreeBSD boot or reboot. > > > > My usb dvb-t uses 2 firmware files: "dvb-usb-dib0700-1.20.fw" and > > "xc3028-v27.fw" (I have them in /boot/modules of course). > > > > Looking at the webcamd program output, The dib0700 firmware doesn't seem > to > > be loaded if my usb tuner was already connected when FreeBSD booted. The > > result is that when trying to view TV, all channels have garbled video > and > > audio output (if they work at all). > > > > Replugging it on a live system, correctly shows a webcamd message > "Loading > > dvb-usb-dib0700-1.20.fw firmware.." and from there on the usb tuner works > > perfectly. > > > > I don't exactly know the internal workings of USB tuners, but for some > > reason the tuner itself seems to need a full power-cycle (replug) to be > > initialized properly, or maybe webcamd "thinks" that the firmware is > > already loaded when it is not (when FreeBSD boots). > > > > Is there any workaround/solution for this? Is there any command that does > > some virtual (software) re-plug of a usb device. I could use it in a > > startup script to solve the problem. > > > > Thanks, keep up the good work on webcamd, great project. > > _______________________________________________ > > freebsd-multimedia@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > > To unsubscribe, send any mail to > > "freebsd-multimedia-unsubscribe@freebsd.org" > > Hi, > > 1) You can try to compile webcamd using the "make HAVE_DEBUG=YES". > > 2) Also try: usbconfig -d X.Y reset > > --HPS > From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 30 15:06:37 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBFB0106566B for ; Sat, 30 Oct 2010 15:06:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 21F418FC20 for ; Sat, 30 Oct 2010 15:06:36 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=gl0LPzB4YDQuuzpDoHYit7deEV0cOo++Sg28kyvF6vg= c=1 sm=1 a=N5IAIDgfLPYA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=cgo7ehMVg5bIQryBmskA:9 a=uevkSJNgWftDwmR-l0kA:7 a=Adhe5QDBIHJHjuG86temY6M08MgA:4 a=PUjeQqilurYA:10 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 42188999; Sat, 30 Oct 2010 17:06:34 +0200 From: Hans Petter Selasky To: App Deb Date: Sat, 30 Oct 2010 17:07:44 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010301402.08201.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010301707.44939.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: webcamd: usb dvb-t tuner needs to be re-plugged (after boot/reboot) to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 15:06:37 -0000 On Saturday 30 October 2010 15:54:14 App Deb wrote: > OK, first I tried usbconfig -d 2.2 reset (or "power_off" and "power_on") > but it didn't work. The tuner was still not working after I restarted > webcamd. > > > However webcamd with HAVE_DEBUG gives some useful information: > > - webcamd log when IT IS NOT working (first start after boot/reboot without > manually replugging device): > > Attached ugen2.2[0] to cuse unit 0 > dvb-usb: found a 'Gigabyte U8000-RH' in warm state. > dvb-usb: will pass the complete MPEG2 transport stream to the software > demuxer. > DVB: registering new adapter (Gigabyte U8000-RH) > DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... > xc2028 130-0061: creating new instance > xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner > dvb-usb: schedule remote query interval to 50 msecs. > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > Creating /dev/dvb/adapter0/demux0 > Creating /dev/dvb/adapter0/dvr0 > Creating /dev/dvb/adapter0/frontend0 > > > webcamd log when it IS working (start webcamd after I manually re-plug usb > device): > > Attached ugen2.2[0] to cuse unit 0 > dvb-usb: found a 'Gigabyte U8000-RH' in cold state, will try to load a > firmware > Loading firmware at '/boot/modules/dvb-usb-dib0700-1.20.fw', f=7 > dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw' > dib0700: firmware started successfully. > dvb-usb: found a 'Gigabyte U8000-RH' in warm state. > dvb-usb: will pass the complete MPEG2 transport stream to the software > demuxer. > DVB: registering new adapter (Gigabyte U8000-RH) > DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... > xc2028 130-0061: creating new instance > xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner > dvb-usb: schedule remote query interval to 50 msecs. > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > Creating /dev/dvb/adapter0/demux0 > Creating /dev/dvb/adapter0/dvr0 > Creating /dev/dvb/adapter0/frontend0 > > > - - - > > As you see, when webcamd first finds the usb tuner in "cold state" and > loads the firmware it works, but when it finds it in warm state (and > bypasses firmware load) it doesn't. > > Also sometimes a message appears like that: > > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > dib0700: rc submit urb failed > > But even when it doesn't appear, the tuner still doesn't work if it was > started from warm-state. > > > > > Is there any way to force webcamd to behave like the tuner is always in > Cold State to fix this? As I said the usbconfig command didn't seem to > work for that. > > Thanks. > > On Sat, Oct 30, 2010 at 3:02 PM, Hans Petter Selasky wrote: > > On Saturday 30 October 2010 10:54:55 App Deb wrote: > > > Great work on webcamd, I easily managed to get my usb dvb-t working > > > with VLC. It works great but there is a slight problem. > > > > > > For it to work it needs to be unplugged and plugged again once after a > > > FreeBSD boot or reboot. > > > > > > My usb dvb-t uses 2 firmware files: "dvb-usb-dib0700-1.20.fw" and > > > "xc3028-v27.fw" (I have them in /boot/modules of course). > > > > > > Looking at the webcamd program output, The dib0700 firmware doesn't > > > seem > > > > to > > > > > be loaded if my usb tuner was already connected when FreeBSD booted. > > > The result is that when trying to view TV, all channels have garbled > > > video > > > > and > > > > > audio output (if they work at all). > > > > > > Replugging it on a live system, correctly shows a webcamd message > > > > "Loading > > > > > dvb-usb-dib0700-1.20.fw firmware.." and from there on the usb tuner > > > works perfectly. > > > > > > I don't exactly know the internal workings of USB tuners, but for some > > > reason the tuner itself seems to need a full power-cycle (replug) to be > > > initialized properly, or maybe webcamd "thinks" that the firmware is > > > already loaded when it is not (when FreeBSD boots). > > > > > > Is there any workaround/solution for this? Is there any command that > > > does some virtual (software) re-plug of a usb device. I could use it > > > in a startup script to solve the problem. > > > > > > Thanks, keep up the good work on webcamd, great project. > > > _______________________________________________ > > > freebsd-multimedia@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > > > To unsubscribe, send any mail to > > > "freebsd-multimedia-unsubscribe@freebsd.org" > > > > Hi, > > > > 1) You can try to compile webcamd using the "make HAVE_DEBUG=YES". > > > > 2) Also try: usbconfig -d X.Y reset > > > > --HPS Hi, If you grep for the idVendor and idProduct as shown by usbconfig -d X.Y dump_device_desc, in the webcamd sources, you will probably find the driver and can by-pass the warm check by inspecting the code. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 30 17:51:46 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F77D106564A for ; Sat, 30 Oct 2010 17:51:46 +0000 (UTC) (envelope-from appdebgr@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id F23018FC08 for ; Sat, 30 Oct 2010 17:51:44 +0000 (UTC) Received: by vws12 with SMTP id 12so1539447vws.13 for ; Sat, 30 Oct 2010 10:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=B2GIcD4WoLn+AhW13mpOTzFamlOvEyxciTDvEmyzbto=; b=fS4StAR5Z/u5nDJ8PXvorxq1MuslEYLezxz9lkP9f+BefafMAfydsowQ0UwwZORtbL eKT2PyMFW1CKS6zAirWPBpGFtYEZLerAnpMAyXmnGGIn5kg2ZZ9rBSPtXL0gJ5Gblqy/ 4RlZ8BSePtXiWrTK7jrK3FGRtQpIFsMy4pSPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Cg5/VjQIbg/tE2LZe12KgZPDXLFu4gPj2+i6QQAz5WCZYySydrZs2x8JIyyGVoMAzt mDfx4t2lGKlrkW+r2jK5HKtXGnJHog85JJEy+hfms69asYpvBN4l2RkyWO6qEQ8yik+w NlHscvM3aEit/XV15STppftwxZoKXE6CO8SC0= MIME-Version: 1.0 Received: by 10.224.137.20 with SMTP id u20mr6199893qat.203.1288461104285; Sat, 30 Oct 2010 10:51:44 -0700 (PDT) Received: by 10.229.28.7 with HTTP; Sat, 30 Oct 2010 10:51:43 -0700 (PDT) In-Reply-To: <201010301707.44939.hselasky@c2i.net> References: <201010301402.08201.hselasky@c2i.net> <201010301707.44939.hselasky@c2i.net> Date: Sat, 30 Oct 2010 20:51:43 +0300 Message-ID: From: App Deb To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org Subject: Re: webcamd: usb dvb-t tuner needs to be re-plugged (after boot/reboot) to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 17:51:46 -0000 Nice, I wasn't able to find something that links my usb idVendor/Product to cold/warm states (not very good comments and not much time), however in: drivers/media/dvb/dvb-usb/dvb-usb-init.c I found a line: if (cold) and replaced it with... if (1) and guess what, it works perfectly now, many thanks Hans. On Sat, Oct 30, 2010 at 6:07 PM, Hans Petter Selasky wrote: > On Saturday 30 October 2010 15:54:14 App Deb wrote: > > OK, first I tried usbconfig -d 2.2 reset (or "power_off" and "power_on") > > but it didn't work. The tuner was still not working after I restarted > > webcamd. > > > > > > However webcamd with HAVE_DEBUG gives some useful information: > > > > - webcamd log when IT IS NOT working (first start after boot/reboot > without > > manually replugging device): > > > > Attached ugen2.2[0] to cuse unit 0 > > dvb-usb: found a 'Gigabyte U8000-RH' in warm state. > > dvb-usb: will pass the complete MPEG2 transport stream to the software > > demuxer. > > DVB: registering new adapter (Gigabyte U8000-RH) > > DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... > > xc2028 130-0061: creating new instance > > xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner > > dvb-usb: schedule remote query interval to 50 msecs. > > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > > Creating /dev/dvb/adapter0/demux0 > > Creating /dev/dvb/adapter0/dvr0 > > Creating /dev/dvb/adapter0/frontend0 > > > > > > webcamd log when it IS working (start webcamd after I manually re-plug > usb > > device): > > > > Attached ugen2.2[0] to cuse unit 0 > > dvb-usb: found a 'Gigabyte U8000-RH' in cold state, will try to load a > > firmware > > Loading firmware at '/boot/modules/dvb-usb-dib0700-1.20.fw', f=7 > > dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw' > > dib0700: firmware started successfully. > > dvb-usb: found a 'Gigabyte U8000-RH' in warm state. > > dvb-usb: will pass the complete MPEG2 transport stream to the software > > demuxer. > > DVB: registering new adapter (Gigabyte U8000-RH) > > DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)... > > xc2028 130-0061: creating new instance > > xc2028 130-0061: type set to XCeive xc2028/xc3028 tuner > > dvb-usb: schedule remote query interval to 50 msecs. > > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > > Creating /dev/dvb/adapter0/demux0 > > Creating /dev/dvb/adapter0/dvr0 > > Creating /dev/dvb/adapter0/frontend0 > > > > > > - - - > > > > As you see, when webcamd first finds the usb tuner in "cold state" and > > loads the firmware it works, but when it finds it in warm state (and > > bypasses firmware load) it doesn't. > > > > Also sometimes a message appears like that: > > > > dvb-usb: Gigabyte U8000-RH successfully initialized and connected. > > dib0700: rc submit urb failed > > > > But even when it doesn't appear, the tuner still doesn't work if it was > > started from warm-state. > > > > > > > > > > Is there any way to force webcamd to behave like the tuner is always in > > Cold State to fix this? As I said the usbconfig command didn't seem to > > work for that. > > > > Thanks. > > > > On Sat, Oct 30, 2010 at 3:02 PM, Hans Petter Selasky > wrote: > > > On Saturday 30 October 2010 10:54:55 App Deb wrote: > > > > Great work on webcamd, I easily managed to get my usb dvb-t working > > > > with VLC. It works great but there is a slight problem. > > > > > > > > For it to work it needs to be unplugged and plugged again once after > a > > > > FreeBSD boot or reboot. > > > > > > > > My usb dvb-t uses 2 firmware files: "dvb-usb-dib0700-1.20.fw" and > > > > "xc3028-v27.fw" (I have them in /boot/modules of course). > > > > > > > > Looking at the webcamd program output, The dib0700 firmware doesn't > > > > seem > > > > > > to > > > > > > > be loaded if my usb tuner was already connected when FreeBSD booted. > > > > The result is that when trying to view TV, all channels have garbled > > > > video > > > > > > and > > > > > > > audio output (if they work at all). > > > > > > > > Replugging it on a live system, correctly shows a webcamd message > > > > > > "Loading > > > > > > > dvb-usb-dib0700-1.20.fw firmware.." and from there on the usb tuner > > > > works perfectly. > > > > > > > > I don't exactly know the internal workings of USB tuners, but for > some > > > > reason the tuner itself seems to need a full power-cycle (replug) to > be > > > > initialized properly, or maybe webcamd "thinks" that the firmware is > > > > already loaded when it is not (when FreeBSD boots). > > > > > > > > Is there any workaround/solution for this? Is there any command that > > > > does some virtual (software) re-plug of a usb device. I could use it > > > > in a startup script to solve the problem. > > > > > > > > Thanks, keep up the good work on webcamd, great project. > > > > _______________________________________________ > > > > freebsd-multimedia@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > > > > To unsubscribe, send any mail to > > > > "freebsd-multimedia-unsubscribe@freebsd.org" > > > > > > Hi, > > > > > > 1) You can try to compile webcamd using the "make HAVE_DEBUG=YES". > > > > > > 2) Also try: usbconfig -d X.Y reset > > > > > > --HPS > > Hi, > > If you grep for the idVendor and idProduct as shown by usbconfig -d X.Y > dump_device_desc, in the webcamd sources, you will probably find the driver > and can by-pass the warm check by inspecting the code. > > --HPS >