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.