From owner-freebsd-multimedia Sat Sep 4 16: 2:23 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (Postfix) with ESMTP id 7664D14C91 for ; Sat, 4 Sep 1999 16:02:18 -0700 (PDT) (envelope-from wilko@yedi.iaf.nl) Received: from yedi.iaf.nl (uucp@localhost) by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id AAA12877; Sun, 5 Sep 1999 00:49:19 +0200 (MET DST) Received: (from wilko@localhost) by yedi.iaf.nl (8.9.3/8.9.3) id WAA04508; Sat, 4 Sep 1999 22:42:30 +0200 (CEST) (envelope-from wilko) From: Wilko Bulte Message-Id: <199909042042.WAA04508@yedi.iaf.nl> Subject: Re: mtv + pcm Audio In-Reply-To: from Juha Nurmela at "Sep 4, 1999 10:58:37 pm" To: Juha.Nurmela@quicknet.inet.fi Date: Sat, 4 Sep 1999 22:42:30 +0200 (CEST) Cc: runge@rostock.zgdv.de, sanpei@sanpei.org, multimedia@FreeBSD.ORG X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-pgp-info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As Juha Nurmela wrote ... > > The change to /sys/i386/linux/linux_ioctl.c > which added a macro called SETDIR (preserves the direction bits > in ioctl cmd) fixed few problems with linux+volume. > This change also originated from Mr. Chen and is present in -current. Below is the linux_ioctl.c part of the patch of www.mpegtv.com I really don't see anything related to SETDIR or audiocard support. This looks to me like piece of code related to extracting audio from CDROMs. I checked the /sys/i386/linux/linux_ioctl.c in 3.2-stable and there I find: #define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30]) This is: * $Id: linux_ioctl.c,v 1.30.2.8 1999/08/18 07:52:36 marcel Exp $ Am I missing something here?? Wilko =================== Index: i386/linux/linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.32 diff -u -r1.32 linux_ioctl.c --- linux_ioctl.c 1999/05/06 18:44:22 1.32 +++ linux_ioctl.c 1999/05/07 00:35:37 @@ -1130,6 +1130,20 @@ return error; } + case LINUX_CDROMREADRAW: { + struct linux_cdrom_msf *msf = (struct linux_cdrom_msf *)args->arg; + struct ioc_read_cd irc; + irc.data_type = CDDATA_ANY; + irc.address_format = CD_MSF_FORMAT; + irc.address.msf.minute = msf->cdmsf_min0; + irc.address.msf.second = msf->cdmsf_sec0; + irc.address.msf.frame = msf->cdmsf_frame0; + irc.nframes = 1; + irc.buffer = (u_char *)args->arg; + error = (*func)(fp, CDIOCREADCD, (caddr_t)&irc, p); + return error; + } + } uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not implemented\n", -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message