From owner-freebsd-multimedia@FreeBSD.ORG Wed Jun 30 22:04:57 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 04CB716A4CE for ; Wed, 30 Jun 2004 22:04:56 +0000 (GMT) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A3FA43D39 for ; Wed, 30 Jun 2004 22:04:56 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd10.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1BfnBm-0001wo-01; Thu, 01 Jul 2004 00:04:22 +0200 Received: from Andro-Beta.Leidinger.net (XV5CpgZXZeTIuaINx+cgZVqp8UDpSkswz3GBBcy61ee+Gbeg5OYNYQ@[84.128.193.229]) by fmrl10.sul.t-online.com with esmtp id 1BfnBZ-0d5Q1I0; Thu, 1 Jul 2004 00:04:09 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i5UM47dR017420; Thu, 1 Jul 2004 00:04:07 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Thu, 1 Jul 2004 00:04:07 +0200 From: Alexander Leidinger To: Mathew Kanner Message-Id: <20040701000407.4910564e@Magellan.Leidinger.net> In-Reply-To: <20040630182234.GA28342@cnd.mcgill.ca> References: <20040629075337.81BEF16A4CF@hub.freebsd.org> <200406302123.46882.doconnor@gsoft.com.au> <20040630143347.143ff922@Magellan.Leidinger.net> <200406302241.22363.doconnor@gsoft.com.au> <20040630183300.3217b82e@Magellan.Leidinger.net> <20040630182234.GA28342@cnd.mcgill.ca> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__1_Jul_2004_00_04_07_+0200_vswbv_K1RN14dOsi" X-Seen: false X-ID: XV5CpgZXZeTIuaINx+cgZVqp8UDpSkswz3GBBcy61ee+Gbeg5OYNYQ@t-dialin.net cc: Daniel O'Connor cc: multimedia@freebsd.org Subject: Re: unimplemented sound ioctl 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: Wed, 30 Jun 2004 22:04:57 -0000 This is a multi-part message in MIME format. --Multipart=_Thu__1_Jul_2004_00_04_07_+0200_vswbv_K1RN14dOsi Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 30 Jun 2004 14:22:34 -0400 Mathew Kanner wrote: > If we are missing IOCTL, this should be corrected. If you can > show that we are missing IOCTLs then we can at least implemented them > as stubs so apps can compile and run. I'm offline for at least a > couple of weeks (I have moving!). According to the OSS documentation from 4front (oss.pdf, page 105) we are missing it... Attached is a patch, I haven't tested it yet, but I will test it tomorrow. I don't know if we are allowed to switch at any time, so this may show bad behavior if misused. Bye, Alexander. -- I'm available to get hired (preferred in .lu). http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 --Multipart=_Thu__1_Jul_2004_00_04_07_+0200_vswbv_K1RN14dOsi Content-Type: text/plain; name="dsp.diff" Content-Disposition: attachment; filename="dsp.diff" Content-Transfer-Encoding: 8bit Index: dsp.c =================================================================== RCS file: /big/FreeBSD-CVS/src/sys/dev/sound/pcm/dsp.c,v retrieving revision 1.76 diff -u -u -r1.76 dsp.c --- dsp.c 17 Jun 2004 17:16:45 -0000 1.76 +++ dsp.c 30 Jun 2004 21:46:01 -0000 @@ -1006,6 +1006,15 @@ } break; + case SNDCTL_DSP_SETDUPLEX: + /* + * switch to full-duplex mode if card is in halb-duplex + * mode and is able to work in full-duplex mode + */ + if (rdch && wrch && (dsp_get_flags(i_dev) & SD_F_SIMPLEX)) + dsp_set_flags(i_dev, dsp_get_flags(i_dev)^SD_F_SIMPLEX); + break; + case SNDCTL_DSP_MAPINBUF: case SNDCTL_DSP_MAPOUTBUF: case SNDCTL_DSP_SETSYNCRO: @@ -1015,6 +1024,7 @@ case SOUND_PCM_WRITE_FILTER: case SOUND_PCM_READ_FILTER: /* dunno what these do, don't sound important */ + default: DEB(printf("default ioctl fn 0x%08lx fail\n", cmd)); ret = EINVAL; --Multipart=_Thu__1_Jul_2004_00_04_07_+0200_vswbv_K1RN14dOsi--