From owner-freebsd-multimedia Sun Mar 15 07:29:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA25123 for freebsd-multimedia-outgoing; Sun, 15 Mar 1998 07:29:21 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA25118 for ; Sun, 15 Mar 1998 07:29:16 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id OAA18225; Sun, 15 Mar 1998 14:10:43 +0100 From: Luigi Rizzo Message-Id: <199803151310.OAA18225@labinfo.iet.unipi.it> Subject: Re: Status on detect fix for Hauppauge FI1236 MK2 Tuner Cards To: iang@digs.iafrica.com (Ian Freislich) Date: Sun, 15 Mar 1998 14:10:43 +0100 (MET) Cc: Joachim.Wunder@lrz-muenchen.de, rhh@ct.picker.com, multimedia@FreeBSD.ORG In-Reply-To: from "Ian Freislich" at Mar 15, 98 04:12:14 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Luigi Rizzo... > > there is a small program at http://www.iet.unipi.it/~luigi/txt.c > > which i use to control various features of my card, and uses the > > I2C commands to fetch Teletext pages from the SAA5246. The command > > are very simple. > > That ioctl won't work (I don't think) because it only supports the > following format: yes... i did not wrote the i2c support routines in the brooktree, just hacked up the ioctl to use them. I am not sure if the message format comes from some intrinsic limitation of the bt848, you should check the documentation. > If you can write something to get the data onto the bus, I should > be able to get it to initialise the chip correctly. I'd propose > something like this: > > ioctl (int, BT848_I2CWR6, u_long *) this would lead to an infinite proliferation of ioctls... buch better to define a suitably sized struct, e.g. struct i2cio { u_char len ; u_char sa ; u_char data[MAX_LEN]; } to be passed to modified I2CWR/I2CRD routines. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message