Date: Sat, 4 Sep 1999 22:42:30 +0200 (CEST) From: Wilko Bulte <wilko@yedi.iaf.nl> To: Juha.Nurmela@quicknet.inet.fi Cc: runge@rostock.zgdv.de, sanpei@sanpei.org, multimedia@FreeBSD.ORG Subject: Re: mtv + pcm Audio Message-ID: <199909042042.WAA04508@yedi.iaf.nl> In-Reply-To: <Pine.BSF.4.05.9909042251520.5727-100000@pena.oh5nxo.ampr.org> from Juha Nurmela at "Sep 4, 1999 10:58:37 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909042042.WAA04508>