From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 17 23:50:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD13616A4CE; Fri, 17 Dec 2004 23:50:04 +0000 (GMT) Received: from mail-out.iptelecom.net.ua (mail-out.iptelecom.net.ua [212.9.224.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D4A643D54; Fri, 17 Dec 2004 23:50:04 +0000 (GMT) (envelope-from vkushnir@i.kiev.ua) Received: from h143.241.159.dialup.iptcom.net ([213.159.241.143]:29645 "EHLO kushnir1.kiev.ua" ident: "NO-IDENT-SERVICE[2]" whoson: "vkushnir") by pechkin.iptelecom.net.ua with ESMTP id S359175AbULQXuC (ORCPT + 1 other); Sat, 18 Dec 2004 01:50:02 +0200 Received: from kushnir1.kiev.ua (localhost [127.0.0.1]) by kushnir1.kiev.ua (8.13.1/8.12.11) with ESMTP id iBHNnvxm046545; Sat, 18 Dec 2004 01:49:57 +0200 (EET) (envelope-from vkushnir@i.kiev.ua) Received: by kushnir1.kiev.ua (8.13.1/8.13.1/Submit) id iBHNnuf3046544; Sat, 18 Dec 2004 01:49:56 +0200 (EET) (envelope-from vkushnir@i.kiev.ua) X-Authentication-Warning: kushnir1.kiev.ua: vkushnir set sender to vkushnir@i.kiev.ua using -f From: Vladimir Kushnir Organization: BITP To: freebsd-multimedia@freebsd.org Date: Sat, 18 Dec 2004 01:49:53 +0200 User-Agent: KMail/1.7.50 References: <20041217021611.GC8164@unixpages.org> In-Reply-To: <20041217021611.GC8164@unixpages.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_iC3wB/w44MIOKDv" Message-Id: <200412180149.54748.vkushnir@i.kiev.ua> cc: brueffer@freebsd.org Subject: Re: Call to bktr(4) users X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 23:50:05 -0000 --Boundary-00=_iC3wB/w44MIOKDv Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Christian, On Friday 17 December 2004 04:16, you wrote: > Hi, > > I'm currently adding a HARDWARE section to the bktr(4) driver manpage. > There are a few cards listed in the current manpage, but I'm sure > there are more supported. > > If you have bktr(4) running on a card, please send me the full name of > the card (preferrebly the corresponding pciconf -lv entry) so it can > be added to the manpage. > > Thanks in advance. > > - Christian Here's my card: V-Stream XPERT TV-PVR 878 (AFAICT more or less the same as KWorld KW-TV878RF); 'pciconf -lv' output: bktr0@pci0:13:0: class=0x040000 card=0x00000000 chip=0x036e109e rev=0x11hdr=0x00 vendor = 'Brooktree Corporation' device = 'Bt878 MediaStream Controller' class = multimedia subclass = video none1@pci0:13:1: class=0x048000 card=0x00000000 chip=0x0878109e rev=0x11hdr=0x00 vendor = 'Brooktree Corporation' device = 'Bt878/Fusion878A Video Capture (Audio Section)' class = multimedia Since this card has no EEPROM, it's not detected automatically (I tried to add it to sys/dev/bktr/bktr_card.c, patch attached) so I have to set in /etc/sysctl.conf (both without and with my patch): hw.bt848.card=2 hw.bt848.tuner=10 Works perfectly all right in both cases, 'cept for the remote control (under Linux, it's handled by LIRC, lirc_gpio module, and not the driver itself). BTW, does anybody work on porting LIRC drivers to FreeBSD (especially lirc_gpio, of course :-)? Any suggestions on how to handle them? I'd love to use my remote too. Regards, Vladimir --Boundary-00=_iC3wB/w44MIOKDv Content-Type: text/x-diff; charset="koi8-u"; name="patch-bktr" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-bktr" *** sys/dev/bktr/bktr_card.c.orig Sun Sep 19 11:08:05 2004 --- sys/dev/bktr/bktr_card.c Sun Sep 19 11:53:56 2004 *************** *** 368,373 **** --- 368,385 ---- { 0x02, 0x00, 0x00, 0x00, 1 }, /* audio MUX values */ 0x18e0 }, /* GPIO mask */ + { CARD_KWORLD_878RF, /* the card id */ + "KWorld XPERT TV-PVR 878", /* the 'name' */ + NULL, /* the tuner */ + 0, /* the tuner i2c address */ + 0, /* dbx is optional */ + 0, + 0, + 0, /* EEProm unknown */ + 0, /* size unknown */ + /* Tuner, External, Internal, Mute, Enabled */ + { 0x080000, 0, 0x000001, 0x000001, 1 }, /* audio MUX values */ + 0x1c0007 }, /* GPIO mask */ }; struct bt848_card_sig bt848_card_signature[1]= { *** sys/dev/bktr/bktr_card.h.orig Sun Sep 19 11:08:12 2004 --- sys/dev/bktr/bktr_card.h Sun Sep 19 11:36:39 2004 *************** *** 78,84 **** #define CARD_TERRATVPLUS 16 #define CARD_IO_BCTV3 17 #define CARD_AOPEN_VA1000 18 ! #define Bt848_MAX_CARD 19 #define CARD_IO_GV CARD_IO_BCTV2 --- 78,85 ---- #define CARD_TERRATVPLUS 16 #define CARD_IO_BCTV3 17 #define CARD_AOPEN_VA1000 18 ! #define CARD_KWORLD_878RF 19 ! #define Bt848_MAX_CARD 20 #define CARD_IO_GV CARD_IO_BCTV2 --Boundary-00=_iC3wB/w44MIOKDv--