From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 06:48:09 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A81216A41F; Sun, 11 Sep 2005 06:48:09 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 283A543D46; Sun, 11 Sep 2005 06:48:09 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B6m9us012993; Sun, 11 Sep 2005 06:48:09 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B6m8XT012989; Sun, 11 Sep 2005 06:48:09 GMT (envelope-from linimon) Date: Sun, 11 Sep 2005 06:48:09 GMT From: Mark Linimon Message-Id: <200509110648.j8B6m8XT012989@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/85964: [sound] Can't play 24 bit audio (Audigy 2 and others) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 06:48:09 -0000 Old Synopsis: Can't play 24 bit audio New Synopsis: [sound] Can't play 24 bit audio (Audigy 2 and others) Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Sun Sep 11 06:46:51 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=85964 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:05:18 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B4B116A420; Sun, 11 Sep 2005 09:05:18 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E86C43D4C; Sun, 11 Sep 2005 09:05:17 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B95GNm030826; Sun, 11 Sep 2005 09:05:16 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B95Gpv030821; Sun, 11 Sep 2005 09:05:16 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:05:16 GMT From: Alexander Leidinger Message-Id: <200509110905.j8B95Gpv030821@freefall.freebsd.org> To: hselasky@c2i.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/80977: [patch] [sound] panic with the vibra16x when trying to record X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:05:18 -0000 Synopsis: [patch] [sound] panic with the vibra16x when trying to record State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:04:56 GMT 2005 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=80977 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:19:23 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 616F316A41F; Sun, 11 Sep 2005 09:19:23 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14CF243D45; Sun, 11 Sep 2005 09:18:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9ICQM032957; Sun, 11 Sep 2005 09:18:12 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9H2Qb032950; Sun, 11 Sep 2005 09:17:02 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:17:02 GMT From: Alexander Leidinger Message-Id: <200509110917.j8B9H2Qb032950@freefall.freebsd.org> To: bill@twwells.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/38795: [sound] kldunload of snd_ess, snd_sb16, snd_sb8 panics system X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:19:23 -0000 Synopsis: [sound] kldunload of snd_ess, snd_sb16, snd_sb8 panics system State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:15:59 GMT 2005 State-Changed-Why: Should be fixed in -current. If not feel free to open a new bug report with a backtrace of the panic. http://www.freebsd.org/cgi/query-pr.cgi?pr=38795 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:35:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 34A2116A41F for ; Sun, 11 Sep 2005 09:35:42 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 938C843D45 for ; Sun, 11 Sep 2005 09:35:41 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5EC88.dip.t-dialin.net [84.165.236.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j8B9OGrc044030; Sun, 11 Sep 2005 11:24:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j8B9Ya0v013870; Sun, 11 Sep 2005 11:34:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 11 Sep 2005 11:34:36 +0200 From: Alexander Leidinger To: freebsd-multimedia@freebsd.org, Harry Coin Message-ID: <20050911113436.1ef21a6d@Magellan.Leidinger.net> In-Reply-To: <4.3.2.7.2.20050804120923.03827918@www.n4comm.com> References: <4.3.2.7.2.20050804120923.03827918@www.n4comm.com> X-Mailer: Sylpheed-Claws 1.9.14 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Subject: Re: Upgrade, fix and new, maximal CS4236B chip support to mss.c available for testing X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:35:42 -0000 On Thu, 04 Aug 2005 12:25:20 -0500 Harry Coin wrote: > Freebsd Multimedia enthusiasts, kindly take a look at the following upgrade > to mss.c that fixes broken mixer support (and adds mode 3 support and full > duplex support at different sample rates, in fact exposing every chip > feature) for a CS chip, and consider testing it if possible. I've looked at it now. Unfortunately your files are based upon 5.4. All changes have to be committed to -current first. Can you please download the files from -current (e.g. via http://cvsweb.freebsd.org/src/sys/), change it and provide a diff ("diff -u old_file new_file > file.diff")? You can concatenate all diff's to one file if you like. This way we see only the changes you did to the file and can review your patch much better. Bye, Alexander. -- The three Rs of Microsoft support: Retry, Reboot, Reinstall. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:37:59 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7012316A420; Sun, 11 Sep 2005 09:37:59 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B29A43D45; Sun, 11 Sep 2005 09:37:59 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9bxPt034429; Sun, 11 Sep 2005 09:37:59 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9bxY4034425; Sun, 11 Sep 2005 09:37:59 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:37:59 GMT From: Alexander Leidinger Message-Id: <200509110937.j8B9bxY4034425@freefall.freebsd.org> To: natedac@kscable.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/25910: [sound] Kernel sound driver may die if a program crashes (workaround) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:37:59 -0000 Synopsis: [sound] Kernel sound driver may die if a program crashes (workaround) State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:36:25 GMT 2005 State-Changed-Why: The sound system changed a lot since 4.3. Does this still apply to 5.[34] or -current? Internal note: This PR should be closed after 2 months if we don't get an answer. http://www.freebsd.org/cgi/query-pr.cgi?pr=25910 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:40:48 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD87916A420; Sun, 11 Sep 2005 09:40:48 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6013843D45; Sun, 11 Sep 2005 09:40:48 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9emR3034547; Sun, 11 Sep 2005 09:40:48 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9elOe034543; Sun, 11 Sep 2005 09:40:47 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:40:47 GMT From: Alexander Leidinger Message-Id: <200509110940.j8B9elOe034543@freefall.freebsd.org> To: vovan@hosix.ntu-kpi.kiev.ua, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/26035: [sound] [hang] system hangs when playing mp3 on PCI Maestro-1 (es1948f) soundcard (using (pcm(4)) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:40:48 -0000 Synopsis: [sound] [hang] system hangs when playing mp3 on PCI Maestro-1 (es1948f) soundcard (using (pcm(4)) State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:39:21 GMT 2005 State-Changed-Why: Back to feedback state :-) The sound system changed a lot since 4.4. Does this still apply to 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=26035 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:43:05 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6EBC16A41F; Sun, 11 Sep 2005 09:43:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5C3743D45; Sun, 11 Sep 2005 09:43:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9h533034667; Sun, 11 Sep 2005 09:43:05 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9h5kl034663; Sun, 11 Sep 2005 09:43:05 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:43:05 GMT From: Alexander Leidinger Message-Id: <200509110943.j8B9h5kl034663@freefall.freebsd.org> To: jesper@FreeBSD.org, jesper@FreeBSD.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/27694: [sound] Panic in csa(4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:43:06 -0000 Synopsis: [sound] Panic in csa(4) State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:42:20 GMT 2005 State-Changed-Why: Is this still the case with 5.[34] or -current? There are a lot of changes to the bus space functions and to the sound system since then. http://www.freebsd.org/cgi/query-pr.cgi?pr=27694 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:47:50 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B732616A420; Sun, 11 Sep 2005 09:47:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7586043D45; Sun, 11 Sep 2005 09:47:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9log8034755; Sun, 11 Sep 2005 09:47:50 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9loq4034751; Sun, 11 Sep 2005 09:47:50 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:47:50 GMT From: Alexander Leidinger Message-Id: <200509110947.j8B9loq4034751@freefall.freebsd.org> To: sakichan@sakichan.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/28692: [sound] ICH sound driver hangs kernel X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:47:50 -0000 Synopsis: [sound] ICH sound driver hangs kernel State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:46:32 GMT 2005 State-Changed-Why: The device now has a suspend function. If it doesn't work for you please open a new PR. Thanks for submitting a patch back then though. http://www.freebsd.org/cgi/query-pr.cgi?pr=28692 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:49:32 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A138216A420; Sun, 11 Sep 2005 09:49:32 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3553C43D46; Sun, 11 Sep 2005 09:49:32 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9nWJn034818; Sun, 11 Sep 2005 09:49:32 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9nVVY034814; Sun, 11 Sep 2005 09:49:31 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:49:31 GMT From: Alexander Leidinger Message-Id: <200509110949.j8B9nVVY034814@freefall.freebsd.org> To: sho@sfc.wide.ad.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/29465: [sound] Can't probe NeoMagic 256AX audio chip. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:49:32 -0000 Synopsis: [sound] Can't probe NeoMagic 256AX audio chip. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:49:06 GMT 2005 State-Changed-Why: Does this still apply to 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=29465 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:51:43 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C96A16A420; Sun, 11 Sep 2005 09:51:43 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C70E43D48; Sun, 11 Sep 2005 09:51:43 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9pgGh035036; Sun, 11 Sep 2005 09:51:42 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9pgLw035032; Sun, 11 Sep 2005 09:51:42 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:51:42 GMT From: Alexander Leidinger Message-Id: <200509110951.j8B9pgLw035032@freefall.freebsd.org> To: petr@petrovich.com.ua, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33532: [sound] Playing audio on some soundcards with pcm driver may hang machine. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:51:43 -0000 Synopsis: [sound] Playing audio on some soundcards with pcm driver may hang machine. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:51:19 GMT 2005 State-Changed-Why: Do you still have this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=33532 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:53:14 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CBA216A420; Sun, 11 Sep 2005 09:53:14 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB8AB43D45; Sun, 11 Sep 2005 09:53:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9rDnB035087; Sun, 11 Sep 2005 09:53:13 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9rDE1035083; Sun, 11 Sep 2005 09:53:13 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:53:13 GMT From: Alexander Leidinger Message-Id: <200509110953.j8B9rDE1035083@freefall.freebsd.org> To: sky@alpha.net.pl, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/35351: [sound] emu10k1: no posibility to record sound. Kernel panic X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:53:14 -0000 Synopsis: [sound] emu10k1: no posibility to record sound. Kernel panic State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:52:23 GMT 2005 State-Changed-Why: Does this problem still occour with 5.[34] or -current? If yes, please provide the panic message and a kernel backtrace. http://www.freebsd.org/cgi/query-pr.cgi?pr=35351 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:54:27 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 827A816A420; Sun, 11 Sep 2005 09:54:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40B1A43D45; Sun, 11 Sep 2005 09:54:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9sRE7035145; Sun, 11 Sep 2005 09:54:27 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9sREL035141; Sun, 11 Sep 2005 09:54:27 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:54:27 GMT From: Alexander Leidinger Message-Id: <200509110954.j8B9sREL035141@freefall.freebsd.org> To: qaz99@pacbell.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/35615: [sound] [hang] ES1978 Maestro 2E sound card locks up machine X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:54:27 -0000 Synopsis: [sound] [hang] ES1978 Maestro 2E sound card locks up machine State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:53:53 GMT 2005 State-Changed-Why: Do you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=35615 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:55:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B27216A420; Sun, 11 Sep 2005 09:55:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08CEF43D48; Sun, 11 Sep 2005 09:55:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9tiRc035232; Sun, 11 Sep 2005 09:55:44 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9titu035228; Sun, 11 Sep 2005 09:55:44 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:55:44 GMT From: Alexander Leidinger Message-Id: <200509110955.j8B9titu035228@freefall.freebsd.org> To: hsu@bbnetworks.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/39260: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:55:45 -0000 Synopsis: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:54:50 GMT 2005 State-Changed-Why: Does this still apply to 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=39260 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:57:26 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D854216A420; Sun, 11 Sep 2005 09:57:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96E8A43D45; Sun, 11 Sep 2005 09:57:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9vQJn035288; Sun, 11 Sep 2005 09:57:26 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9vQFA035284; Sun, 11 Sep 2005 09:57:26 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:57:26 GMT From: Alexander Leidinger Message-Id: <200509110957.j8B9vQFA035284@freefall.freebsd.org> To: raimund@baumann-online.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/40122: [sound] Device pcm stopps booting Kernel 4.6 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:57:27 -0000 Synopsis: [sound] Device pcm stopps booting Kernel 4.6 State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:56:48 GMT 2005 State-Changed-Why: Do you still see this behavior on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=40122 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 09:58:51 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C915416A420; Sun, 11 Sep 2005 09:58:51 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614A643D45; Sun, 11 Sep 2005 09:58:51 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8B9wph5035334; Sun, 11 Sep 2005 09:58:51 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8B9wpp4035330; Sun, 11 Sep 2005 09:58:51 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 09:58:51 GMT From: Alexander Leidinger Message-Id: <200509110958.j8B9wpp4035330@freefall.freebsd.org> To: geecsrus@yahoo.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/40574: [sound] NeoMagic soundcard detection on Gateway Solo 3300 locks up FreeBSD 4.4/4.6-RELEASE kernel X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 09:58:51 -0000 Synopsis: [sound] NeoMagic soundcard detection on Gateway Solo 3300 locks up FreeBSD 4.4/4.6-RELEASE kernel State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 09:58:27 GMT 2005 State-Changed-Why: Do you still see this with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=40574 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:00:30 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78DCD16A420; Sun, 11 Sep 2005 10:00:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 358F843D45; Sun, 11 Sep 2005 10:00:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BA0UG3035483; Sun, 11 Sep 2005 10:00:30 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BA0TTY035479; Sun, 11 Sep 2005 10:00:29 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:00:29 GMT From: Alexander Leidinger Message-Id: <200509111000.j8BA0TTY035479@freefall.freebsd.org> To: madd@tecdigital.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/42173: [sound] Sony VAIO FXA 53 (or FXA 679 in Mexico) hangs in sound driver on boot X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:00:30 -0000 Synopsis: [sound] Sony VAIO FXA 53 (or FXA 679 in Mexico) hangs in sound driver on boot State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:00:08 GMT 2005 State-Changed-Why: Do you still have this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=42173 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:08:10 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AACD416A41F; Sun, 11 Sep 2005 10:08:10 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DDA743D48; Sun, 11 Sep 2005 10:08:10 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BA8AKK040065; Sun, 11 Sep 2005 10:08:10 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BA89Hb040061; Sun, 11 Sep 2005 10:08:09 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:08:09 GMT From: Alexander Leidinger Message-Id: <200509111008.j8BA89Hb040061@freefall.freebsd.org> To: CQG00620@nifty.ne.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/45673: [sound] [patch] PC98 internal CS4231A is mis-detected to OPTi chip [4.5] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:08:10 -0000 Synopsis: [sound] [patch] PC98 internal CS4231A is mis-detected to OPTi chip [4.5] State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:07:57 GMT 2005 State-Changed-Why: Comimted, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=45673 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:10:10 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 817D616A420; Sun, 11 Sep 2005 10:10:10 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E76A43D48; Sun, 11 Sep 2005 10:10:10 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAAA8J040131; Sun, 11 Sep 2005 10:10:10 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAA7lg040127; Sun, 11 Sep 2005 10:10:07 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:10:07 GMT From: Alexander Leidinger Message-Id: <200509111010.j8BAA7lg040127@freefall.freebsd.org> To: alex@smallet.spb.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/46245: [sound] AC'97 is not supported on ABIT BW7 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:10:10 -0000 Synopsis: [sound] AC'97 is not supported on ABIT BW7 State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:09:16 GMT 2005 State-Changed-Why: No feedback after 3 months. Please open a new bugreport with "pciconf -v -l" output. http://www.freebsd.org/cgi/query-pr.cgi?pr=46245 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:13:38 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D44016A41F; Sun, 11 Sep 2005 10:13:38 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4880043D45; Sun, 11 Sep 2005 10:13:38 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BADcdw040349; Sun, 11 Sep 2005 10:13:38 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BADbj9040345; Sun, 11 Sep 2005 10:13:37 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:13:37 GMT From: Alexander Leidinger Message-Id: <200509111013.j8BADbj9040345@freefall.freebsd.org> To: kawasaki@kawasaki3.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/49980: [sound] [patch] enable ThinkPAD X24 sound device (Intel 82801CA (ICH3)) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:13:38 -0000 Synopsis: [sound] [patch] enable ThinkPAD X24 sound device (Intel 82801CA (ICH3)) State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:12:23 GMT 2005 State-Changed-Why: It seems that ICH3 (and more) support is included in 5.[34], if it doesn't work for you please open a new bug report (and reference this one please). http://www.freebsd.org/cgi/query-pr.cgi?pr=49980 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:15:41 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2627616A41F; Sun, 11 Sep 2005 10:15:41 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AADC643D46; Sun, 11 Sep 2005 10:15:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAFevx040407; Sun, 11 Sep 2005 10:15:40 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAFdYm040403; Sun, 11 Sep 2005 10:15:39 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:15:39 GMT From: Alexander Leidinger Message-Id: <200509111015.j8BAFdYm040403@freefall.freebsd.org> To: vk@vk.pp.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/51308: [sound] Creative SB32 doesn't work under 5.0-CURRENT X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:15:41 -0000 Synopsis: [sound] Creative SB32 doesn't work under 5.0-CURRENT State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:14:44 GMT 2005 State-Changed-Why: Does this still applies to -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=51308 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:17:20 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 151BC16A420; Sun, 11 Sep 2005 10:17:20 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C581F43D45; Sun, 11 Sep 2005 10:17:19 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAHJuu040455; Sun, 11 Sep 2005 10:17:19 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAHJ3T040451; Sun, 11 Sep 2005 10:17:19 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:17:19 GMT From: Alexander Leidinger Message-Id: <200509111017.j8BAHJ3T040451@freefall.freebsd.org> To: mitica@moldnet.md, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/51338: [sound] [hang] system hangs randomly because of the ICH sound driver X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:17:20 -0000 Synopsis: [sound] [hang] system hangs randomly because of the ICH sound driver State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:16:51 GMT 2005 State-Changed-Why: Does you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=51338 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:20:54 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 310B316A41F; Sun, 11 Sep 2005 10:20:54 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 203E943D7B; Sun, 11 Sep 2005 10:20:48 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAKmbT040586; Sun, 11 Sep 2005 10:20:48 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAKmOe040582; Sun, 11 Sep 2005 10:20:48 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:20:48 GMT From: Alexander Leidinger Message-Id: <200509111020.j8BAKmOe040582@freefall.freebsd.org> To: mwest@uct.ac.za, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/54595: [sound] emu10k1 sound driver locks system X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:20:54 -0000 Synopsis: [sound] emu10k1 sound driver locks system State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:18:27 GMT 2005 State-Changed-Why: Close this since it doesn't seem to apply to 5.x or -current (no new release on 4.x is planned). http://www.freebsd.org/cgi/query-pr.cgi?pr=54595 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:21:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E005616A421; Sun, 11 Sep 2005 10:21:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 255EC43D72; Sun, 11 Sep 2005 10:21:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BALjLF040689; Sun, 11 Sep 2005 10:21:45 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BALiYo040685; Sun, 11 Sep 2005 10:21:44 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:21:44 GMT From: Alexander Leidinger Message-Id: <200509111021.j8BALiYo040685@freefall.freebsd.org> To: lukas@razik.de, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/54705: [sound] codec timeout during read of register 26 with snd_t4dwave.ko X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:21:46 -0000 Synopsis: [sound] codec timeout during read of register 26 with snd_t4dwave.ko State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:21:26 GMT 2005 State-Changed-Why: Do you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=54705 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:26:50 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C80316A420; Sun, 11 Sep 2005 10:26:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC04B43D45; Sun, 11 Sep 2005 10:26:49 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAQnl9040761; Sun, 11 Sep 2005 10:26:49 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAQn4p040757; Sun, 11 Sep 2005 10:26:49 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:26:49 GMT From: Alexander Leidinger Message-Id: <200509111026.j8BAQn4p040757@freefall.freebsd.org> To: mgove@comcast.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/56617: [sound] Hang on boot w/Neomagic audio on Dell Latitude LS X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:26:50 -0000 Synopsis: [sound] Hang on boot w/Neomagic audio on Dell Latitude LS State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:24:01 GMT 2005 State-Changed-Why: The line is still there, so it may still a problem on 5.[34] and -current. A test of -current would be much appreciated. If it is still a problem, do you see any ill effects by removing that line? What's the output of "pciconf -v -l" (only the neomagic entry is interesting). http://www.freebsd.org/cgi/query-pr.cgi?pr=56617 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:28:16 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA3DD16A42F; Sun, 11 Sep 2005 10:28:16 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64E6443D46; Sun, 11 Sep 2005 10:28:16 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BASGIM040814; Sun, 11 Sep 2005 10:28:16 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BASGT7040810; Sun, 11 Sep 2005 10:28:16 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:28:16 GMT From: Alexander Leidinger Message-Id: <200509111028.j8BASGT7040810@freefall.freebsd.org> To: jabrown@caida.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/57487: [sound] [patch] Sound stops working on my Thinkpad 560X after suspend/resume X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:28:16 -0000 Synopsis: [sound] [patch] Sound stops working on my Thinkpad 560X after suspend/resume State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:27:56 GMT 2005 State-Changed-Why: Is this still an issue on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=57487 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:30:05 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51AB416A420; Sun, 11 Sep 2005 10:30:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C78F643D62; Sun, 11 Sep 2005 10:30:04 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAU4Rr040873; Sun, 11 Sep 2005 10:30:04 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAU4vi040869; Sun, 11 Sep 2005 10:30:04 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:30:04 GMT From: Alexander Leidinger Message-Id: <200509111030.j8BAU4vi040869@freefall.freebsd.org> To: amsaha@rice.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/59098: [sound] Dell Dimension 8300 integrated SoundMAX not working in FreeBSD 5.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:30:05 -0000 Synopsis: [sound] Dell Dimension 8300 integrated SoundMAX not working in FreeBSD 5.1 State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:29:02 GMT 2005 State-Changed-Why: Closed, since there's no feedback after more than a year. http://www.freebsd.org/cgi/query-pr.cgi?pr=59098 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:31:07 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A895816A420; Sun, 11 Sep 2005 10:31:07 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD5D43D46; Sun, 11 Sep 2005 10:31:07 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAV7fr042002; Sun, 11 Sep 2005 10:31:07 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAV7if041998; Sun, 11 Sep 2005 10:31:07 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:31:07 GMT From: Alexander Leidinger Message-Id: <200509111031.j8BAV7if041998@freefall.freebsd.org> To: lenaig@wanadoo.fr, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/62519: [sound] Intel ICH4 (82801DB) sound card does not work on laptop X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:31:07 -0000 Synopsis: [sound] Intel ICH4 (82801DB) sound card does not work on laptop State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:30:48 GMT 2005 State-Changed-Why: Is this still an issue on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=62519 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:32:32 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 604D316A420; Sun, 11 Sep 2005 10:32:32 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCE7F43D58; Sun, 11 Sep 2005 10:32:31 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAWVUa042052; Sun, 11 Sep 2005 10:32:31 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAWVGc042048; Sun, 11 Sep 2005 10:32:31 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:32:31 GMT From: Alexander Leidinger Message-Id: <200509111032.j8BAWVGc042048@freefall.freebsd.org> To: lanjoe9@prodigy.net.mx, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/64879: [sound] [hang] 4.9 freezes when I try to get the ICH3 compatible sound card working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:32:32 -0000 Synopsis: [sound] [hang] 4.9 freezes when I try to get the ICH3 compatible sound card working State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:32:08 GMT 2005 State-Changed-Why: Is this still a problem on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=64879 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:34:13 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0597516A41F; Sun, 11 Sep 2005 10:34:13 +0000 (GMT) (envelope-from jesper@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9C2A43D45; Sun, 11 Sep 2005 10:34:12 +0000 (GMT) (envelope-from jesper@FreeBSD.org) Received: from freefall.freebsd.org (jesper@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAYCvB042137; Sun, 11 Sep 2005 10:34:12 GMT (envelope-from jesper@freefall.freebsd.org) Received: (from jesper@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAYC9B042133; Sun, 11 Sep 2005 10:34:12 GMT (envelope-from jesper) Date: Sun, 11 Sep 2005 10:34:12 GMT From: Jesper Skriver Message-Id: <200509111034.j8BAYC9B042133@freefall.freebsd.org> To: jesper@FreeBSD.org, jesper@FreeBSD.org, jesper@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/27694: [sound] Panic in csa(4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:34:13 -0000 Synopsis: [sound] Panic in csa(4) State-Changed-From-To: feedback->open State-Changed-By: jesper State-Changed-When: Sun Sep 11 10:33:47 GMT 2005 State-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=27694 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:34:49 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD00516A420; Sun, 11 Sep 2005 10:34:49 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 640A943D48; Sun, 11 Sep 2005 10:34:49 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAYnqd042181; Sun, 11 Sep 2005 10:34:49 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAYmIk042177; Sun, 11 Sep 2005 10:34:48 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:34:48 GMT From: Alexander Leidinger Message-Id: <200509111034.j8BAYmIk042177@freefall.freebsd.org> To: huko8@volja.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/72112: [sound] sound problems with builtin sound chip X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:34:49 -0000 Synopsis: [sound] sound problems with builtin sound chip State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:33:27 GMT 2005 State-Changed-Why: - misfiled category - this is not a bugreport, it's a help request Please see the fine handbook how to get this working. http://www.freebsd.org/cgi/query-pr.cgi?pr=72112 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:35:08 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D01FE16A41F; Sun, 11 Sep 2005 10:35:08 +0000 (GMT) (envelope-from jesper@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 333B143D55; Sun, 11 Sep 2005 10:35:08 +0000 (GMT) (envelope-from jesper@FreeBSD.org) Received: from freefall.freebsd.org (jesper@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAZ8sf042202; Sun, 11 Sep 2005 10:35:08 GMT (envelope-from jesper@freefall.freebsd.org) Received: (from jesper@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAZ8i4042198; Sun, 11 Sep 2005 10:35:08 GMT (envelope-from jesper) Date: Sun, 11 Sep 2005 10:35:08 GMT From: Jesper Skriver Message-Id: <200509111035.j8BAZ8i4042198@freefall.freebsd.org> To: jesper@FreeBSD.org, jesper@FreeBSD.org, jesper@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/27694: [sound] Panic in csa(4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:35:09 -0000 Synopsis: [sound] Panic in csa(4) State-Changed-From-To: open->closed State-Changed-By: jesper State-Changed-When: Sun Sep 11 10:34:17 GMT 2005 State-Changed-Why: I no longer have access to the hardware where the problem was found, so I have no way of knowing if the problem is fixed. Closing the PR, if others still see the problem on 5-STABLE, please re-open with updated information. http://www.freebsd.org/cgi/query-pr.cgi?pr=27694 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:37:28 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E6B916A41F; Sun, 11 Sep 2005 10:37:28 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED32843D45; Sun, 11 Sep 2005 10:37:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAbRZb042256; Sun, 11 Sep 2005 10:37:27 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAbRtt042252; Sun, 11 Sep 2005 10:37:27 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:37:27 GMT From: Alexander Leidinger Message-Id: <200509111037.j8BAbRtt042252@freefall.freebsd.org> To: catlord17@yahoo.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/72439: [sound] Sound not functioning for VIA_8233 chipset from kernel or loaded from file. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:37:28 -0000 Synopsis: [sound] Sound not functioning for VIA_8233 chipset from kernel or loaded from file. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:35:49 GMT 2005 State-Changed-Why: Moved to correct category. Do you still see this problem with 5.3-release or 5.4/-current? If yes, please provide the output "pciconf -v -l", "dmesg | grep pcm" and "cat /dev/sndstat". http://www.freebsd.org/cgi/query-pr.cgi?pr=72439 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:38:43 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13CD016A420; Sun, 11 Sep 2005 10:38:43 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B284643D45; Sun, 11 Sep 2005 10:38:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAcgIY042310; Sun, 11 Sep 2005 10:38:42 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAcgE0042306; Sun, 11 Sep 2005 10:38:42 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:38:42 GMT From: Alexander Leidinger Message-Id: <200509111038.j8BAcgE0042306@freefall.freebsd.org> To: hartmann@edda.physik.uni-mainz.de, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/72738: [sound] pcm0:play:0: play interrupt timeout, channel dead X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:38:43 -0000 Synopsis: [sound] pcm0:play:0: play interrupt timeout, channel dead State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:38:16 GMT 2005 State-Changed-Why: Does this problem still occour on 5.4 or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=72738 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:43:36 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E887B16A41F; Sun, 11 Sep 2005 10:43:36 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A799443D45; Sun, 11 Sep 2005 10:43:36 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAhaLi042506; Sun, 11 Sep 2005 10:43:36 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAhaTe042502; Sun, 11 Sep 2005 10:43:36 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:43:36 GMT From: Alexander Leidinger Message-Id: <200509111043.j8BAhaTe042502@freefall.freebsd.org> To: freebsd_my@ua.fm, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/73987: [sound] Nforce2 MB sound problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:43:37 -0000 Synopsis: [sound] Nforce2 MB sound problem State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:43:01 GMT 2005 State-Changed-Why: Any results with this patch? http://www.freebsd.org/cgi/query-pr.cgi?pr=73987 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:45:43 2005 Return-Path: X-Original-To: multimedia@freebsd.org 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 0C41416A41F for ; Sun, 11 Sep 2005 10:45:43 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7479C43D45 for ; Sun, 11 Sep 2005 10:45:41 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5EC88.dip.t-dialin.net [84.165.236.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j8BAYYi3044270 for ; Sun, 11 Sep 2005 12:34:47 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j8BAitZs023956 for ; Sun, 11 Sep 2005 12:44:55 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 11 Sep 2005 12:44:54 +0200 From: Alexander Leidinger To: multimedia@freebsd.org Message-ID: <20050911124454.6717a0ee@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 1.9.14 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Subject: Problems with NForce 2 MB's? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:45:43 -0000 Hi, does anyone has a problem with sound on NForce 2 mainboards? If yes, please have a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=73987 and report if Eric's patch http://people.freebsd.org/~anholt/ich.c-posting.diff helps. Bye, Alexander. -- I believe the technical term is "Oops!" http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:52:04 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1F1816A420; Sun, 11 Sep 2005 10:52:03 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD67543D48; Sun, 11 Sep 2005 10:52:03 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAq3kY042793; Sun, 11 Sep 2005 10:52:03 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAq3WR042789; Sun, 11 Sep 2005 10:52:03 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:52:03 GMT From: Alexander Leidinger Message-Id: <200509111052.j8BAq3WR042789@freefall.freebsd.org> To: hselasky@c2i.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/80974: [sound] SIMPLEX flag is not set properly in sound drivers X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:52:04 -0000 Synopsis: [sound] SIMPLEX flag is not set properly in sound drivers State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:51:26 GMT 2005 State-Changed-Why: Committed as part of a previous patch from Ariff. http://www.freebsd.org/cgi/query-pr.cgi?pr=80974 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:53:53 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5638616A420; Sun, 11 Sep 2005 10:53:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1391E43D48; Sun, 11 Sep 2005 10:53:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BArqRP042844; Sun, 11 Sep 2005 10:53:52 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BArq75042840; Sun, 11 Sep 2005 10:53:52 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:53:52 GMT From: Alexander Leidinger Message-Id: <200509111053.j8BArq75042840@freefall.freebsd.org> To: hselasky@c2i.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/80975: [patch] [sound] Missing PCI-ID (sound) ES1688 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:53:53 -0000 Synopsis: [patch] [sound] Missing PCI-ID (sound) ES1688 State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:53:16 GMT 2005 State-Changed-Why: Committed as part of a large patch from Ariff, sorry for the missing attribution in this commit. http://www.freebsd.org/cgi/query-pr.cgi?pr=80975 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 10:54:58 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FBED16A420; Sun, 11 Sep 2005 10:54:58 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EC9B43D45; Sun, 11 Sep 2005 10:54:58 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BAsvar042894; Sun, 11 Sep 2005 10:54:57 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BAsv5I042890; Sun, 11 Sep 2005 10:54:57 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 10:54:57 GMT From: Alexander Leidinger Message-Id: <200509111054.j8BAsv5I042890@freefall.freebsd.org> To: hselasky@c2i.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/80976: [patch] [sound] problems with an soundblaster-8 (original) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 10:54:58 -0000 Synopsis: [patch] [sound] problems with an soundblaster-8 (original) State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 10:54:47 GMT 2005 State-Changed-Why: Committed as part of a large patch from Ariff, sorry for the missing attribution in this commit. http://www.freebsd.org/cgi/query-pr.cgi?pr=80976 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:15:41 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7195F16A41F; Sun, 11 Sep 2005 11:15:41 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BB9C43D7E; Sun, 11 Sep 2005 11:15:38 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBFcHg047765; Sun, 11 Sep 2005 11:15:38 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBFc49047761; Sun, 11 Sep 2005 11:15:38 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:15:38 GMT From: Alexander Leidinger Message-Id: <200509111115.j8BBFc49047761@freefall.freebsd.org> To: netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: Subject: Re: kern/81000: [apic, !not! sound] Via 8235 sound card worked great with FreeBSD 5.3 but doesn't work with 5.4 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:15:41 -0000 Old Synopsis: [sound] Via 8235 sound card worked great with FreeBSD 5.3 but doesn't work with 5.4 New Synopsis: [apic, !not! sound] Via 8235 sound card worked great with FreeBSD 5.3 but doesn't work with 5.4 Responsible-Changed-From-To: freebsd-multimedia->freebsd-bugs Responsible-Changed-By: netchild Responsible-Changed-When: Sun Sep 11 11:13:24 GMT 2005 Responsible-Changed-Why: Back to -bugs (for the second time) since it seems to be a apic problem, not a problem which can/should be solved in the sound code. http://www.freebsd.org/cgi/query-pr.cgi?pr=81000 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:21:51 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF9CF16A41F; Sun, 11 Sep 2005 11:21:51 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8FBF43D58; Sun, 11 Sep 2005 11:21:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBLoQ4048015; Sun, 11 Sep 2005 11:21:50 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBLoqU048011; Sun, 11 Sep 2005 11:21:50 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:21:50 GMT From: Alexander Leidinger Message-Id: <200509111121.j8BBLoqU048011@freefall.freebsd.org> To: dushkin@dushkin.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/84829: [sound] SiS 7012 - slow and low pitched playback X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:21:52 -0000 Synopsis: [sound] SiS 7012 - slow and low pitched playback State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:21:39 GMT 2005 State-Changed-Why: Should be fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=84829 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:37:02 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7423F16A420; Sun, 11 Sep 2005 11:37:02 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B7943D4C; Sun, 11 Sep 2005 11:37:02 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBb2vd049557; Sun, 11 Sep 2005 11:37:02 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBb1Mp049553; Sun, 11 Sep 2005 11:37:01 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:37:01 GMT From: Alexander Leidinger Message-Id: <200509111137.j8BBb1Mp049553@freefall.freebsd.org> To: durian@cellport.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/17907: [sound] Audio record levels are too low X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:37:02 -0000 Synopsis: [sound] Audio record levels are too low State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:36:10 GMT 2005 State-Changed-Why: Closed, too much changes between 4.0 and now. Please open a new bug report if you still see problems with 5.[34] or -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=17907 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:41:42 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B71D716A41F; Sun, 11 Sep 2005 11:41:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C31143D45; Sun, 11 Sep 2005 11:41:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBfgVj049777; Sun, 11 Sep 2005 11:41:42 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBfg2c049773; Sun, 11 Sep 2005 11:41:42 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:41:42 GMT From: Alexander Leidinger Message-Id: <200509111141.j8BBfg2c049773@freefall.freebsd.org> To: jjm7570@cs.rit.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/18345: [sound] sbc / pcm not fully recognizing AWE64 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:41:42 -0000 Synopsis: [sound] sbc / pcm not fully recognizing AWE64 State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:40:09 GMT 2005 State-Changed-Why: Too much changes in 5.x. Please open a new PR with 5.x debugging info ("pciconf -v -l", ...) in case you still can reproduce it there. http://www.freebsd.org/cgi/query-pr.cgi?pr=18345 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:48:22 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C007616A41F; Sun, 11 Sep 2005 11:48:22 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76C0743D45; Sun, 11 Sep 2005 11:48:22 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBmMDg049878; Sun, 11 Sep 2005 11:48:22 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBmL6X049874; Sun, 11 Sep 2005 11:48:21 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:48:21 GMT From: Alexander Leidinger Message-Id: <200509111148.j8BBmL6X049874@freefall.freebsd.org> To: lars.koeller@uni-bielefeld.de, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/23520: [sound] sb0 old style audio support in 4.2-RELEASE broken! X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:48:22 -0000 Synopsis: [sound] sb0 old style audio support in 4.2-RELEASE broken! State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:48:04 GMT 2005 State-Changed-Why: Doesn't apply to the recent sound system anymore. http://www.freebsd.org/cgi/query-pr.cgi?pr=23520 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:51:50 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E794E16A420; Sun, 11 Sep 2005 11:51:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2BB243D45; Sun, 11 Sep 2005 11:51:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBpobw050113; Sun, 11 Sep 2005 11:51:50 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBpnIp050109; Sun, 11 Sep 2005 11:51:49 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:51:49 GMT From: Alexander Leidinger Message-Id: <200509111151.j8BBpnIp050109@freefall.freebsd.org> To: yury@black.cat.kazan.su, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/25386: [sound] Incorrect mixer registers (line & synth) in newpcm driver for CS4232 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:51:51 -0000 Synopsis: [sound] Incorrect mixer registers (line & synth) in newpcm driver for CS4232 State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:51:11 GMT 2005 State-Changed-Why: I assume this still applies to -current. What's the output of "pciconf -v -l", only the pcm part is interesting. http://www.freebsd.org/cgi/query-pr.cgi?pr=25386 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 11:53:07 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E7D416A420; Sun, 11 Sep 2005 11:53:07 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2B7843D46; Sun, 11 Sep 2005 11:53:06 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BBr696050161; Sun, 11 Sep 2005 11:53:06 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BBr6Gv050157; Sun, 11 Sep 2005 11:53:06 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 11:53:06 GMT From: Alexander Leidinger Message-Id: <200509111153.j8BBr6Gv050157@freefall.freebsd.org> To: nate@accountsupport.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/26454: [sound] mixer volume settings on Maestro-2E (Diamond Monster MX400) card do not reflect true volume range on card. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 11:53:07 -0000 Synopsis: [sound] mixer volume settings on Maestro-2E (Diamond Monster MX400) card do not reflect true volume range on card. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 11:52:45 GMT 2005 State-Changed-Why: Do you still see this problem on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=26454 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:43:13 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A4A216A420; Sun, 11 Sep 2005 12:43:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17C6943D46; Sun, 11 Sep 2005 12:43:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BChCvD056835; Sun, 11 Sep 2005 12:43:12 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BChCSt056831; Sun, 11 Sep 2005 12:43:12 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:43:12 GMT From: Alexander Leidinger Message-Id: <200509111243.j8BChCSt056831@freefall.freebsd.org> To: david@catwhisker.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/26854: [sound] [patch] Better fix for ESS Technology Maestro-2E hardware mute X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:43:13 -0000 Synopsis: [sound] [patch] Better fix for ESS Technology Maestro-2E hardware mute State-Changed-From-To: analyzed->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:42:50 GMT 2005 State-Changed-Why: This seems to be in the current sound code. http://www.freebsd.org/cgi/query-pr.cgi?pr=26854 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:47:11 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8229D16A458; Sun, 11 Sep 2005 12:47:11 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3696A43D46; Sun, 11 Sep 2005 12:47:11 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BClA4B056938; Sun, 11 Sep 2005 12:47:10 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCl95Q056934; Sun, 11 Sep 2005 12:47:09 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:47:09 GMT From: Alexander Leidinger Message-Id: <200509111247.j8BCl95Q056934@freefall.freebsd.org> To: b_schmidt@ohkk.dk, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/28980: [sound] Fujitsu/Siemens Lifebook E-6540 stalls when mounting root if Plug & play is disabled in BIOS, PnP needs to be disabled for soundcard to work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:47:12 -0000 Synopsis: [sound] Fujitsu/Siemens Lifebook E-6540 stalls when mounting root if Plug & play is disabled in BIOS, PnP needs to be disabled for soundcard to work. State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:44:03 GMT 2005 State-Changed-Why: The PnP code changed too much between 4.x and 5.[34]/-current. If you still have a problem please open a new bug report for the PnP subsystem (this isn't sound system related) with information about your system (dmesg, "pciconf -v -L"). http://www.freebsd.org/cgi/query-pr.cgi?pr=28980 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:49:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A55A016A420; Sun, 11 Sep 2005 12:49:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 646F943D45; Sun, 11 Sep 2005 12:49:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BCnj1R057018; Sun, 11 Sep 2005 12:49:45 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCnjCs057014; Sun, 11 Sep 2005 12:49:45 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:49:45 GMT From: Alexander Leidinger Message-Id: <200509111249.j8BCnjCs057014@freefall.freebsd.org> To: jabberw@mail.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/29067: [sound] Yamaha OPL3Sa2 pcm/pnp stops playing X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:49:45 -0000 Synopsis: [sound] Yamaha OPL3Sa2 pcm/pnp stops playing State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:49:17 GMT 2005 State-Changed-Why: Do you still see this with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=29067 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:50:44 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1CEA16A420; Sun, 11 Sep 2005 12:50:44 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F3C843D48; Sun, 11 Sep 2005 12:50:44 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BCoiTA057217; Sun, 11 Sep 2005 12:50:44 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCoi1s057213; Sun, 11 Sep 2005 12:50:44 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:50:44 GMT From: Alexander Leidinger Message-Id: <200509111250.j8BCoi1s057213@freefall.freebsd.org> To: jim@pingle.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/29312: [sound] Using mixer on pcm misbehaves with onboard AudioPCI ES1373-A X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:50:45 -0000 Synopsis: [sound] Using mixer on pcm misbehaves with onboard AudioPCI ES1373-A State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:50:28 GMT 2005 State-Changed-Why: Do you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=29312 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:53:40 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69FB716A420; Sun, 11 Sep 2005 12:53:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D0043D45; Sun, 11 Sep 2005 12:53:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BCrek4057273; Sun, 11 Sep 2005 12:53:40 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCrdYc057269; Sun, 11 Sep 2005 12:53:39 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:53:39 GMT From: Alexander Leidinger Message-Id: <200509111253.j8BCrdYc057269@freefall.freebsd.org> To: flbecker@ifrance.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/30461: [sound] no audio cd with cmi8330 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:53:40 -0000 Synopsis: [sound] no audio cd with cmi8330 State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:51:30 GMT 2005 State-Changed-Why: There's no digital extraction by default. Make sure your CD-ROM is connected to the internal audio input. If you instead are talking about a mixer problem, please open a new bug report with the output of "mixer", "pciconf -v -l" and "cat /dev/sndstat" on a 5.[34] or -current system. http://www.freebsd.org/cgi/query-pr.cgi?pr=30461 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:56:20 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3688A16A41F; Sun, 11 Sep 2005 12:56:20 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E716743D45; Sun, 11 Sep 2005 12:56:19 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BCuJW3057347; Sun, 11 Sep 2005 12:56:19 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCuJxq057343; Sun, 11 Sep 2005 12:56:19 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:56:19 GMT From: Alexander Leidinger Message-Id: <200509111256.j8BCuJxq057343@freefall.freebsd.org> To: gat@FreeBSD.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/30700: [sound] Applications cannot synchronize sound using pcm(4) driver X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:56:20 -0000 Synopsis: [sound] Applications cannot synchronize sound using pcm(4) driver State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:54:37 GMT 2005 State-Changed-Why: Current multimedia applications (like mplayer or xine) don't have a problem. In case this is still a problem with 5.[34] or -current, open a new bug report with the output of "pciconf -v -l" and "cat /dev/sndstat". http://www.freebsd.org/cgi/query-pr.cgi?pr=30700 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 12:58:09 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97BB216A41F; Sun, 11 Sep 2005 12:58:09 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 527C443D45; Sun, 11 Sep 2005 12:58:09 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BCw9CD057402; Sun, 11 Sep 2005 12:58:09 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BCw8s4057398; Sun, 11 Sep 2005 12:58:08 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 12:58:08 GMT From: Alexander Leidinger Message-Id: <200509111258.j8BCw8s4057398@freefall.freebsd.org> To: iwaki@bc.niigata-u.ac.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 12:58:09 -0000 Synopsis: [sound] newpcm does not play back the tail of sound State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 12:56:29 GMT 2005 State-Changed-Why: Is this still a problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=31398 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:02:18 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3EE016A420; Sun, 11 Sep 2005 13:02:18 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9344543D46; Sun, 11 Sep 2005 13:02:18 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD2IYL057666; Sun, 11 Sep 2005 13:02:18 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD2Ipm057662; Sun, 11 Sep 2005 13:02:18 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:02:18 GMT From: Alexander Leidinger Message-Id: <200509111302.j8BD2Ipm057662@freefall.freebsd.org> To: skye@isilon.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/31521: [sound] pcm0 plays too fast on Intel 82801BA (ICH2) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:02:19 -0000 Synopsis: [sound] pcm0 plays too fast on Intel 82801BA (ICH2) State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:01:55 GMT 2005 State-Changed-Why: Do you still see this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=31521 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:05:02 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35BB516A420; Sun, 11 Sep 2005 13:05:02 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5E8E43D45; Sun, 11 Sep 2005 13:05:01 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD51wE057731; Sun, 11 Sep 2005 13:05:01 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD5122057727; Sun, 11 Sep 2005 13:05:01 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:05:01 GMT From: Alexander Leidinger Message-Id: <200509111305.j8BD5122057727@freefall.freebsd.org> To: john@phobia.ms, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33013: [sound] mixer does not have treble/bass for Soundblaster Live! 5.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:05:02 -0000 Synopsis: [sound] mixer does not have treble/bass for Soundblaster Live! 5.1 State-Changed-From-To: suspended->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:03:35 GMT 2005 State-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=33013 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:06:21 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDE4516A420; Sun, 11 Sep 2005 13:06:21 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D3DA43D46; Sun, 11 Sep 2005 13:06:21 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD6LTi062145; Sun, 11 Sep 2005 13:06:21 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD6JDD062141; Sun, 11 Sep 2005 13:06:19 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:06:19 GMT From: Alexander Leidinger Message-Id: <200509111306.j8BD6JDD062141@freefall.freebsd.org> To: dp@penix.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33097: [sound] Crystal 4237b mixer problems X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:06:21 -0000 Synopsis: [sound] Crystal 4237b mixer problems State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:05:50 GMT 2005 State-Changed-Why: Is this still a problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=33097 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:07:27 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B188E16A420; Sun, 11 Sep 2005 13:07:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C19B43D48; Sun, 11 Sep 2005 13:07:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD7Rlc062201; Sun, 11 Sep 2005 13:07:27 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD7Qnh062197; Sun, 11 Sep 2005 13:07:26 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:07:26 GMT From: Alexander Leidinger Message-Id: <200509111307.j8BD7Qnh062197@freefall.freebsd.org> To: thomas@cuivre.fr.eu.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33707: [sound] ICH (82801AA) cannot be used for mono recording X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:07:27 -0000 Synopsis: [sound] ICH (82801AA) cannot be used for mono recording State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:07:08 GMT 2005 State-Changed-Why: This should be fixed in a recent -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=33707 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:08:33 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AF8A16A420; Sun, 11 Sep 2005 13:08:33 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB12B43D4C; Sun, 11 Sep 2005 13:08:32 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD8WZ7062249; Sun, 11 Sep 2005 13:08:32 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD8Wat062245; Sun, 11 Sep 2005 13:08:32 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:08:32 GMT From: Alexander Leidinger Message-Id: <200509111308.j8BD8Wat062245@freefall.freebsd.org> To: wesley@bmrc.berkeley.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/34854: [sound] /src/sys/dev/sound doesn't work correctly, post Aug 2001 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:08:33 -0000 Synopsis: [sound] /src/sys/dev/sound doesn't work correctly, post Aug 2001 State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:08:15 GMT 2005 State-Changed-Why: Is this still a problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=34854 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:09:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1933816A420; Sun, 11 Sep 2005 13:09:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D537F43D6E; Sun, 11 Sep 2005 13:09:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BD9eXI062298; Sun, 11 Sep 2005 13:09:40 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BD9eTQ062294; Sun, 11 Sep 2005 13:09:40 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:09:40 GMT From: Alexander Leidinger Message-Id: <200509111309.j8BD9eTQ062294@freefall.freebsd.org> To: william.ward@ericsson.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/34942: [sound] Attempt to play -> "pcm0: play interrupt timeout, channel dead" X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:09:45 -0000 Synopsis: [sound] Attempt to play -> "pcm0: play interrupt timeout, channel dead" State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:09:10 GMT 2005 State-Changed-Why: Is this still a problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=34942 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:11:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 729C016A420; Sun, 11 Sep 2005 13:11:45 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7696443D45; Sun, 11 Sep 2005 13:11:44 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDBiox062481; Sun, 11 Sep 2005 13:11:44 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDBios062477; Sun, 11 Sep 2005 13:11:44 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:11:44 GMT From: Alexander Leidinger Message-Id: <200509111311.j8BDBios062477@freefall.freebsd.org> To: jago@telefragged.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/37482: [sound] Weird behaviour under relatively slow load, skipping audio and choppy video playback. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:11:45 -0000 Synopsis: [sound] Weird behaviour under relatively slow load, skipping audio and choppy video playback. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:11:23 GMT 2005 State-Changed-Why: Do you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=37482 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:17:52 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DABD716A41F; Sun, 11 Sep 2005 13:17:52 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EA6B43D46; Sun, 11 Sep 2005 13:17:52 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDHqFI062632; Sun, 11 Sep 2005 13:17:52 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDHoN4062626; Sun, 11 Sep 2005 13:17:50 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:17:50 GMT From: Alexander Leidinger Message-Id: <200509111317.j8BDHoN4062626@freefall.freebsd.org> To: larson@paix.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/37657: [sound] /dev/dsp and /dev/audio skip the first 3200 - 3600 samples X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:17:53 -0000 Synopsis: [sound] /dev/dsp and /dev/audio skip the first 3200 - 3600 samples State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:17:26 GMT 2005 State-Changed-Why: Is this still a problem in a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=37657 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:21:07 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A50016A41F; Sun, 11 Sep 2005 13:21:07 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4324243D45; Sun, 11 Sep 2005 13:19:57 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDJv4e062692; Sun, 11 Sep 2005 13:19:57 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDIlCt062677; Sun, 11 Sep 2005 13:18:47 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:18:47 GMT From: Alexander Leidinger Message-Id: <200509111318.j8BDIlCt062677@freefall.freebsd.org> To: bill@twwells.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/38794: [sound] ESS Solo driver truncates output X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:21:07 -0000 Synopsis: [sound] ESS Solo driver truncates output State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:18:24 GMT 2005 State-Changed-Why: This is supposed to be fixed in -current (was a generic sound driver problem). http://www.freebsd.org/cgi/query-pr.cgi?pr=38794 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:21:13 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9AAF16A420; Sun, 11 Sep 2005 13:21:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5CA843D48; Sun, 11 Sep 2005 13:21:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDLDbc062851; Sun, 11 Sep 2005 13:21:13 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDLDpg062847; Sun, 11 Sep 2005 13:21:13 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:21:13 GMT From: Alexander Leidinger Message-Id: <200509111321.j8BDLDpg062847@freefall.freebsd.org> To: arlankfo@141.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/38967: [sound] 4/22/02 pcm driver merge appears to break several audio apps. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:21:14 -0000 Synopsis: [sound] 4/22/02 pcm driver merge appears to break several audio apps. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:20:50 GMT 2005 State-Changed-Why: Do you still have this problem on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=38967 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:36:25 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89A9E16A41F; Sun, 11 Sep 2005 13:36:25 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44E2443D45; Sun, 11 Sep 2005 13:36:25 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDaPgc064717; Sun, 11 Sep 2005 13:36:25 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDaMaA064713; Sun, 11 Sep 2005 13:36:22 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:36:22 GMT From: Alexander Leidinger Message-Id: <200509111336.j8BDaMaA064713@freefall.freebsd.org> To: kojak@oakhill.demon.nl, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/40711: [sound] CT5880-C sometimes fails to output sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:36:25 -0000 Synopsis: [sound] CT5880-C sometimes fails to output sound State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:36:01 GMT 2005 State-Changed-Why: This is supposed to be fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=40711 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:37:16 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68E2116A420; Sun, 11 Sep 2005 13:37:16 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 247D543D45; Sun, 11 Sep 2005 13:37:16 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDbGWa064771; Sun, 11 Sep 2005 13:37:16 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDbFSr064767; Sun, 11 Sep 2005 13:37:15 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:37:15 GMT From: Alexander Leidinger Message-Id: <200509111337.j8BDbFSr064767@freefall.freebsd.org> To: morganw@chemikals.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/40927: [sound] Acer Labs M5451 dies with pcm:play:0 play interrupt timeout, channel dead X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:37:16 -0000 Synopsis: [sound] Acer Labs M5451 dies with pcm:play:0 play interrupt timeout, channel dead State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:36:48 GMT 2005 State-Changed-Why: Do you still see this problem with 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=40927 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:38:18 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5546616A41F; Sun, 11 Sep 2005 13:38:18 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB3A43D48; Sun, 11 Sep 2005 13:38:17 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDcHsP064817; Sun, 11 Sep 2005 13:38:17 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDcHaQ064813; Sun, 11 Sep 2005 13:38:17 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:38:17 GMT From: Alexander Leidinger Message-Id: <200509111338.j8BDcHaQ064813@freefall.freebsd.org> To: tdraney@vt.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/41490: [sound] C-Media 8738 sound card static X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:38:18 -0000 Synopsis: [sound] C-Media 8738 sound card static State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:37:56 GMT 2005 State-Changed-Why: Do you still see this with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=41490 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:39:13 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 951B216A420; Sun, 11 Sep 2005 13:39:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5331D43D48; Sun, 11 Sep 2005 13:39:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDdDIa064865; Sun, 11 Sep 2005 13:39:13 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDdDRG064861; Sun, 11 Sep 2005 13:39:13 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:39:13 GMT From: Alexander Leidinger Message-Id: <200509111339.j8BDdDRG064861@freefall.freebsd.org> To: warnerw@icsi.berkeley.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/41743: [sound] No sound from SiS630s controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:39:13 -0000 Synopsis: [sound] No sound from SiS630s controller State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:38:51 GMT 2005 State-Changed-Why: Do you still see this with 5.[34] or a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=41743 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:40:41 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C386B16A41F; Sun, 11 Sep 2005 13:40:41 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F81143D46; Sun, 11 Sep 2005 13:40:41 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDefBR065049; Sun, 11 Sep 2005 13:40:41 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDefH1065045; Sun, 11 Sep 2005 13:40:41 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:40:41 GMT From: Alexander Leidinger Message-Id: <200509111340.j8BDefH1065045@freefall.freebsd.org> To: absinthe@pobox.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/41966: [sound] audio/play: sblive, can cause "Device busy" condition X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:40:41 -0000 Synopsis: [sound] audio/play: sblive, can cause "Device busy" condition State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:40:22 GMT 2005 State-Changed-Why: Do you still see this problem on 5.[34] or -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=41966 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:41:30 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E46BC16A420; Sun, 11 Sep 2005 13:41:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1A8C43D45; Sun, 11 Sep 2005 13:41:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDfU1f065096; Sun, 11 Sep 2005 13:41:30 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDfUit065092; Sun, 11 Sep 2005 13:41:30 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:41:30 GMT From: Alexander Leidinger Message-Id: <200509111341.j8BDfUit065092@freefall.freebsd.org> To: fracture@allusion.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/42564: [sound] record bug with emu10k1 driver X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:41:31 -0000 Synopsis: [sound] record bug with emu10k1 driver State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:41:13 GMT 2005 State-Changed-Why: Do you still see this with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=42564 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:42:22 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C0A516A420; Sun, 11 Sep 2005 13:42:22 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2D0443D48; Sun, 11 Sep 2005 13:42:21 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDgLBc065149; Sun, 11 Sep 2005 13:42:21 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDgLtA065145; Sun, 11 Sep 2005 13:42:21 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:42:21 GMT From: Alexander Leidinger Message-Id: <200509111342.j8BDgLtA065145@freefall.freebsd.org> To: kirill@solaris.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/42638: [sound] CS4326/4327 (MSS) buggy output playing 11025 x N Hz sound via /dev/dsp X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:42:22 -0000 Synopsis: [sound] CS4326/4327 (MSS) buggy output playing 11025 x N Hz sound via /dev/dsp State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:42:04 GMT 2005 State-Changed-Why: Do you still see this with a recent -curent? http://www.freebsd.org/cgi/query-pr.cgi?pr=42638 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:43:40 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48D9E16A420; Sun, 11 Sep 2005 13:43:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B8A43D45; Sun, 11 Sep 2005 13:43:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDhdFc065208; Sun, 11 Sep 2005 13:43:39 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDhdVi065204; Sun, 11 Sep 2005 13:43:39 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:43:39 GMT From: Alexander Leidinger Message-Id: <200509111343.j8BDhdVi065204@freefall.freebsd.org> To: kevin.vanmaren@unisys.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/44512: [sound] pcm driver generates static half the time [4.7] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:43:40 -0000 Synopsis: [sound] pcm driver generates static half the time [4.7] State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:43:25 GMT 2005 State-Changed-Why: Do you still see this with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=44512 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:49:55 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99C4016A420; Sun, 11 Sep 2005 13:49:55 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 553BD43D49; Sun, 11 Sep 2005 13:49:55 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDntem065456; Sun, 11 Sep 2005 13:49:55 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDnsD2065452; Sun, 11 Sep 2005 13:49:54 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:49:54 GMT From: Alexander Leidinger Message-Id: <200509111349.j8BDnsD2065452@freefall.freebsd.org> To: CQG00620@nifty.ne.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/45679: [sound] [patch] Cannot record except 8bit-mono with CS4231A & newpcm (half-duplex mode) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:49:55 -0000 Synopsis: [sound] [patch] Cannot record except 8bit-mono with CS4231A & newpcm (half-duplex mode) State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:49:44 GMT 2005 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=45679 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 13:59:34 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DADA16A420; Sun, 11 Sep 2005 13:59:34 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCD7643D46; Sun, 11 Sep 2005 13:59:33 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BDxXlY065753; Sun, 11 Sep 2005 13:59:33 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BDxXw4065749; Sun, 11 Sep 2005 13:59:33 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 13:59:33 GMT From: Alexander Leidinger Message-Id: <200509111359.j8BDxXw4065749@freefall.freebsd.org> To: CQG00620@nifty.ne.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/45682: [sound] [patch] Sometime failed to record/play with CS4231A & newpcm X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 13:59:34 -0000 Synopsis: [sound] [patch] Sometime failed to record/play with CS4231A & newpcm State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 13:59:19 GMT 2005 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=45682 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:01:59 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A59EE16A420; Sun, 11 Sep 2005 14:01:59 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C893743D66; Sun, 11 Sep 2005 14:01:54 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BE1rCZ066008; Sun, 11 Sep 2005 14:01:53 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BE1rVB066004; Sun, 11 Sep 2005 14:01:53 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:01:53 GMT From: Alexander Leidinger Message-Id: <200509111401.j8BE1rVB066004@freefall.freebsd.org> To: root@w00t.internode.com.au, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/46250: [sound] yamaha DS-1E sound driver not working correctly on SONY VAIO PCG-31F1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:01:59 -0000 Synopsis: [sound] yamaha DS-1E sound driver not working correctly on SONY VAIO PCG-31F1 State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:01:36 GMT 2005 State-Changed-Why: Do you still see this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=46250 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:03:40 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C57116A420; Sun, 11 Sep 2005 14:03:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0A2F43D45; Sun, 11 Sep 2005 14:03:39 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BE3dfA066070; Sun, 11 Sep 2005 14:03:39 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BE3c5q066066; Sun, 11 Sep 2005 14:03:39 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:03:39 GMT From: Alexander Leidinger Message-Id: <200509111403.j8BE3c5q066066@freefall.freebsd.org> To: Eugene.Grosbein@grosbein.pp.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/46736: [sound] ISA audio CS4232 (HP Omnibook 5000C) work only once X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:03:40 -0000 Synopsis: [sound] ISA audio CS4232 (HP Omnibook 5000C) work only once State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:03:21 GMT 2005 State-Changed-Why: Do you still see this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=46736 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:15:39 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7774116A420; Sun, 11 Sep 2005 14:15:39 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3182043D46; Sun, 11 Sep 2005 14:15:39 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BEFddi070766; Sun, 11 Sep 2005 14:15:39 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BEFcbS070762; Sun, 11 Sep 2005 14:15:38 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:15:38 GMT From: Alexander Leidinger Message-Id: <200509111415.j8BEFcbS070762@freefall.freebsd.org> To: amistry@am-productions.biz, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/47029: [sound] Static and popping with Hercules GameTheatre XP [5.2] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:15:39 -0000 Synopsis: [sound] Static and popping with Hercules GameTheatre XP [5.2] State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:15:26 GMT 2005 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=47029 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:17:20 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5834916A420; Sun, 11 Sep 2005 14:17:20 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14B6443D49; Sun, 11 Sep 2005 14:17:20 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BEHJuf070815; Sun, 11 Sep 2005 14:17:19 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BEHJ73070811; Sun, 11 Sep 2005 14:17:19 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:17:19 GMT From: Alexander Leidinger Message-Id: <200509111417.j8BEHJ73070811@freefall.freebsd.org> To: fifteen@inext.hu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/47352: [sound] pcm/ac'97, dsp device busy X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:17:20 -0000 Synopsis: [sound] pcm/ac'97, dsp device busy State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:16:55 GMT 2005 State-Changed-Why: Do you still have this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=47352 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:18:30 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA2BF16A41F; Sun, 11 Sep 2005 14:18:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78AF743D49; Sun, 11 Sep 2005 14:18:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BEIUuk070863; Sun, 11 Sep 2005 14:18:30 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BEIUrv070859; Sun, 11 Sep 2005 14:18:30 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:18:30 GMT From: Alexander Leidinger Message-Id: <200509111418.j8BEIUrv070859@freefall.freebsd.org> To: jylefort@brutele.be, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:18:30 -0000 Synopsis: [sound] pcm audio driver hogs /dev/dsp?.? State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:18:06 GMT 2005 State-Changed-Why: Do you still have this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=48338 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:19:53 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B6816A420; Sun, 11 Sep 2005 14:19:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E726043D45; Sun, 11 Sep 2005 14:19:52 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BEJqRN070927; Sun, 11 Sep 2005 14:19:52 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BEJqXh070923; Sun, 11 Sep 2005 14:19:52 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:19:52 GMT From: Alexander Leidinger Message-Id: <200509111419.j8BEJqXh070923@freefall.freebsd.org> To: lvd@mndmttr.nl, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/49037: [sound] [patch] ESS Maestro chip misdetected as 'chip2' X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:19:53 -0000 Synopsis: [sound] [patch] ESS Maestro chip misdetected as 'chip2' State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:19:38 GMT 2005 State-Changed-Why: Do you still have this problem with a recent -current? http://www.freebsd.org/cgi/query-pr.cgi?pr=49037 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 14:35:19 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9763116A420; Sun, 11 Sep 2005 14:35:19 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5408E43D45; Sun, 11 Sep 2005 14:35:19 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BEZJ0L072617; Sun, 11 Sep 2005 14:35:19 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BEZJWh072613; Sun, 11 Sep 2005 14:35:19 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 14:35:19 GMT From: Alexander Leidinger Message-Id: <200509111435.j8BEZJWh072613@freefall.freebsd.org> To: faber@lunabase.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/31445: [sound] [patch] cat sound.au > /dev/audio fails for sounds < 4KB X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 14:35:19 -0000 Synopsis: [sound] [patch] cat sound.au > /dev/audio fails for sounds < 4KB State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 14:35:05 GMT 2005 State-Changed-Why: This is supposed to be fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=31445 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 15:40:12 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9DA016A41F for ; Sun, 11 Sep 2005 15:40:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79BF143D45 for ; Sun, 11 Sep 2005 15:40:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BFeCDO079485 for ; Sun, 11 Sep 2005 15:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BFeCMJ079484; Sun, 11 Sep 2005 15:40:12 GMT (envelope-from gnats) Date: Sun, 11 Sep 2005 15:40:12 GMT Message-Id: <200509111540.j8BFeCMJ079484@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Jean-Yves Lefort Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jean-Yves Lefort List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 15:40:12 -0000 The following reply was made to PR kern/48338; it has been noted by GNATS. From: Jean-Yves Lefort To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? Date: Sun, 11 Sep 2005 17:37:33 +0200 --Signature=_Sun__11_Sep_2005_17_37_33_+0200_mHpYMj+.thMAtyev Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yes: $ while :; do play -d /dev/dsp0.1 somesound.wav & done ... ^C $ play -d /dev/dsp0.1 somesound.wav sox: Can't open output file '/dev/dsp0.1': Device busy $ fstat | grep dsp $ --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Sun__11_Sep_2005_17_37_33_+0200_mHpYMj+.thMAtyev Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDJE89yzD7UaO4AGoRAlzQAJ40DNbBi3q11V2LxzIEpPAvxGnI1wCfdq6H 0sLz2bObZjNrxz8U/7sh6Zw= =YLSk -----END PGP SIGNATURE----- --Signature=_Sun__11_Sep_2005_17_37_33_+0200_mHpYMj+.thMAtyev-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 16:00:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A47916A41F for ; Sun, 11 Sep 2005 16:00:45 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA7043D58 for ; Sun, 11 Sep 2005 16:00:43 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BG0h6w079941 for ; Sun, 11 Sep 2005 16:00:43 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BG0hqv079940; Sun, 11 Sep 2005 16:00:43 GMT (envelope-from gnats) Date: Sun, 11 Sep 2005 16:00:43 GMT Message-Id: <200509111600.j8BG0hqv079940@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Jean-Yves Lefort Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jean-Yves Lefort List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 16:00:45 -0000 The following reply was made to PR kern/48338; it has been noted by GNATS. From: Jean-Yves Lefort To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? Date: Sun, 11 Sep 2005 17:53:20 +0200 --Signature=_Sun__11_Sep_2005_17_53_20_+0200_xHqtIZNKXld3tY6w Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I forgot to mention that I'm using 5.4-RELEASE, not a recent -current. --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Sun__11_Sep_2005_17_53_20_+0200_xHqtIZNKXld3tY6w Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDJFLwyzD7UaO4AGoRAuRoAJwMbiVGPH82qcLjjw+sDvxxldqLGwCfajFA jVDfg/H8d5bjMZSbm3RlfC8= =xitU -----END PGP SIGNATURE----- --Signature=_Sun__11_Sep_2005_17_53_20_+0200_xHqtIZNKXld3tY6w-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 16:20:12 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C03E16A41F for ; Sun, 11 Sep 2005 16:20:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3980443D46 for ; Sun, 11 Sep 2005 16:20:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BGKCwB084944 for ; Sun, 11 Sep 2005 16:20:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BGKCDC084943; Sun, 11 Sep 2005 16:20:12 GMT (envelope-from gnats) Date: Sun, 11 Sep 2005 16:20:12 GMT Message-Id: <200509111620.j8BGKCDC084943@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Ariff Abdullah Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ariff Abdullah List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 16:20:12 -0000 The following reply was made to PR kern/48338; it has been noted by GNATS. From: Ariff Abdullah To: Jean-Yves Lefort Cc: bug-followup@FreeBSD.org Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? Date: Mon, 12 Sep 2005 00:16:12 +0800 On Sun, 11 Sep 2005 16:00:43 GMT Jean-Yves Lefort wrote: > The following reply was made to PR kern/48338; it has been noted by > GNATS. > > From: Jean-Yves Lefort > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? > Date: Sun, 11 Sep 2005 17:53:20 +0200 > > > I forgot to mention that I'm using 5.4-RELEASE, not a recent > -current. > Even after applying http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050825_035.diff ? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 16:40:18 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C985216A41F for ; Sun, 11 Sep 2005 16:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72D5143D45 for ; Sun, 11 Sep 2005 16:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BGeDUa086705 for ; Sun, 11 Sep 2005 16:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BGeDML086704; Sun, 11 Sep 2005 16:40:13 GMT (envelope-from gnats) Date: Sun, 11 Sep 2005 16:40:13 GMT Message-Id: <200509111640.j8BGeDML086704@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Mario Doria Cc: Subject: Re: kern/42173: [sound] Sony VAIO FXA 53 (or FXA 679 in Mexico) hangs in sound driver on boot X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mario Doria List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 16:40:18 -0000 The following reply was made to PR kern/42173; it has been noted by GNATS. From: Mario Doria To: bug-followup@freebsd.org, madd@tecdigital.net Cc: Subject: Re: kern/42173: [sound] Sony VAIO FXA 53 (or FXA 679 in Mexico) hangs in sound driver on boot Date: Sun, 11 Sep 2005 11:35:14 -0500 I do not have the machine anymore, I cannot test this again. Sorry, Mario From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:00:22 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org 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 2486B16A41F; Sun, 11 Sep 2005 17:00:22 +0000 (GMT) (envelope-from hsu@wlansystems.com) Received: from mail.bbnetworks.net (mail.bbnetworks.net [212.16.96.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7355543D45; Sun, 11 Sep 2005 17:00:20 +0000 (GMT) (envelope-from hsu@wlansystems.com) Received: from [127.0.0.1] (mail.bbnetworks.net [212.16.96.5]) by mail.bbnetworks.net (8.13.4/8.12.6) with ESMTP id j8BH09rt098048; Sun, 11 Sep 2005 20:00:09 +0300 (EEST) (envelope-from hsu@wlansystems.com) Message-ID: <43246299.1000909@wlansystems.com> Date: Sun, 11 Sep 2005 20:00:09 +0300 From: Heikki Suonsivu Organization: Wireless LAN Systems Ltd User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <200509110955.j8B9titu035228@freefall.freebsd.org> In-Reply-To: <200509110955.j8B9titu035228@freefall.freebsd.org> X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/mixed; boundary="------------060306010701090605060108" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hsu@bbnetworks.net, freebsd-multimedia@FreeBSD.org Subject: Re: kern/39260: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:00:22 -0000 This is a multi-part message in MIME format. --------------060306010701090605060108 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Alexander Leidinger wrote: > Synopsis: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 > > State-Changed-From-To: open->feedback > State-Changed-By: netchild > State-Changed-When: Sun Sep 11 09:54:50 GMT 2005 > State-Changed-Why: > Does this still apply to 5.[34] or -current? It still applied to 5.* from a sup a month ago. Locks up solid like before. I have not tried 6.*. I can test it if I can get hold of a bootable cd with neomagic driver in, however, it seems to be the same driver in both 5.* and 6, and there has been no real changes for ages. I might have at some point been able to get sound work by telling some very old version of FreeBSD that the sound card is something else, probably soundblaster, however I have not been able to find the kernel configuration for that setup. That was probably at least 4 years ago. That would probably mean that the problem is neomagic driver specific. I would prefer to test with 5.* environment, the computer is installed in my car and the access to it is a bit complicated, in particular getting bootable cd drive in a wedge installed, it does not know how to boot from USB drives. --------------060306010701090605060108-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:30:46 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 848CE16A420; Sun, 11 Sep 2005 17:30:46 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4178843D46; Sun, 11 Sep 2005 17:30:46 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BHUkW0093679; Sun, 11 Sep 2005 17:30:46 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BHUkdr093675; Sun, 11 Sep 2005 17:30:46 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 17:30:46 GMT From: Alexander Leidinger Message-Id: <200509111730.j8BHUkdr093675@freefall.freebsd.org> To: mgove@comcast.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/56617: [sound] Hang on boot w/Neomagic audio on Dell Latitude LS X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:30:46 -0000 Synopsis: [sound] Hang on boot w/Neomagic audio on Dell Latitude LS State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 17:30:30 GMT 2005 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=56617 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:31:23 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E0BA16A420; Sun, 11 Sep 2005 17:31:23 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D999043D45; Sun, 11 Sep 2005 17:31:22 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BHVM6b093941; Sun, 11 Sep 2005 17:31:22 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BHVMJx093937; Sun, 11 Sep 2005 17:31:22 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 17:31:22 GMT From: Alexander Leidinger Message-Id: <200509111731.j8BHVMJx093937@freefall.freebsd.org> To: sho@sfc.wide.ad.jp, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/29465: [sound] Can't probe NeoMagic 256AX audio chip. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:31:23 -0000 Synopsis: [sound] Can't probe NeoMagic 256AX audio chip. State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 17:31:08 GMT 2005 State-Changed-Why: Fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=29465 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:31:48 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B2B916A420; Sun, 11 Sep 2005 17:31:48 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B76CF43D45; Sun, 11 Sep 2005 17:31:47 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BHVlhQ093988; Sun, 11 Sep 2005 17:31:47 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BHVlXm093984; Sun, 11 Sep 2005 17:31:47 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 17:31:47 GMT From: Alexander Leidinger Message-Id: <200509111731.j8BHVlXm093984@freefall.freebsd.org> To: hsu@bbnetworks.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/39260: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:31:48 -0000 Synopsis: [sound] neomagic: pcm0 locks on boot, Compaq Presario 1920 State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 17:31:31 GMT 2005 State-Changed-Why: Fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=39260 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:32:05 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE6BF16A420; Sun, 11 Sep 2005 17:32:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 876CF43D45; Sun, 11 Sep 2005 17:32:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BHW5Xn094032; Sun, 11 Sep 2005 17:32:05 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BHW5LH094028; Sun, 11 Sep 2005 17:32:05 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 17:32:05 GMT From: Alexander Leidinger Message-Id: <200509111732.j8BHW5LH094028@freefall.freebsd.org> To: geecsrus@yahoo.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/40574: [sound] NeoMagic soundcard detection on Gateway Solo 3300 locks up FreeBSD 4.4/4.6-RELEASE kernel X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:32:06 -0000 Synopsis: [sound] NeoMagic soundcard detection on Gateway Solo 3300 locks up FreeBSD 4.4/4.6-RELEASE kernel State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 17:31:53 GMT 2005 State-Changed-Why: Closed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=40574 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 17:33:03 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DDD516A453; Sun, 11 Sep 2005 17:33:03 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7050643D5A; Sun, 11 Sep 2005 17:33:02 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BHX2bW094079; Sun, 11 Sep 2005 17:33:02 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BHX2uT094075; Sun, 11 Sep 2005 17:33:02 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 17:33:02 GMT From: Alexander Leidinger Message-Id: <200509111733.j8BHX2uT094075@freefall.freebsd.org> To: molly@starline.ee, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/68225: [sound] trouble with sound on Dell Latitude LS [5.2.1] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 17:33:03 -0000 Synopsis: [sound] trouble with sound on Dell Latitude LS [5.2.1] State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 17:32:14 GMT 2005 State-Changed-Why: Fixed on -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=68225 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 18:57:53 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 330FD16A420; Sun, 11 Sep 2005 18:57:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E410A43D45; Sun, 11 Sep 2005 18:57:52 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BIvqYv001609; Sun, 11 Sep 2005 18:57:52 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BIvqXE001605; Sun, 11 Sep 2005 18:57:52 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 18:57:52 GMT From: Alexander Leidinger Message-Id: <200509111857.j8BIvqXE001605@freefall.freebsd.org> To: natedac@kscable.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/25910: [sound] Kernel sound driver may die if a program crashes (workaround) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 18:57:53 -0000 Synopsis: [sound] Kernel sound driver may die if a program crashes (workaround) State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 18:57:04 GMT 2005 State-Changed-Why: Originator address bounces (invalid recipient). If someone has this problem too, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=25910 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 18:58:54 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5396816A420; Sun, 11 Sep 2005 18:58:54 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC23343D53; Sun, 11 Sep 2005 18:58:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BIwrlo001655; Sun, 11 Sep 2005 18:58:53 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BIwqtX001651; Sun, 11 Sep 2005 18:58:52 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 18:58:52 GMT From: Alexander Leidinger Message-Id: <200509111858.j8BIwqtX001651@freefall.freebsd.org> To: vovan@hosix.ntu-kpi.kiev.ua, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/26035: [sound] [hang] system hangs when playing mp3 on PCI Maestro-1 (es1948f) soundcard (using (pcm(4)) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 18:58:54 -0000 Synopsis: [sound] [hang] system hangs when playing mp3 on PCI Maestro-1 (es1948f) soundcard (using (pcm(4)) State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 18:58:09 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=26035 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 18:59:29 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAE9C16A421; Sun, 11 Sep 2005 18:59:29 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C3C643D49; Sun, 11 Sep 2005 18:59:29 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BIxT3a001701; Sun, 11 Sep 2005 18:59:29 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BIxSo9001697; Sun, 11 Sep 2005 18:59:28 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 18:59:28 GMT From: Alexander Leidinger Message-Id: <200509111859.j8BIxSo9001697@freefall.freebsd.org> To: qaz99@pacbell.net, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/35615: [sound] [hang] ES1978 Maestro 2E sound card locks up machine X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 18:59:29 -0000 Synopsis: [sound] [hang] ES1978 Maestro 2E sound card locks up machine State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 18:59:07 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=35615 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:00:12 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F89416A420; Sun, 11 Sep 2005 19:00:12 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9573A43D5E; Sun, 11 Sep 2005 19:00:11 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ0BT4001761; Sun, 11 Sep 2005 19:00:11 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ0Bkm001757; Sun, 11 Sep 2005 19:00:11 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:00:11 GMT From: Alexander Leidinger Message-Id: <200509111900.j8BJ0Bkm001757@freefall.freebsd.org> To: dp@penix.org, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33097: [sound] Crystal 4237b mixer problems X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:00:12 -0000 Synopsis: [sound] Crystal 4237b mixer problems State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 18:59:43 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=33097 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:00:31 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6105316A420; Sun, 11 Sep 2005 19:00:31 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1DE543D49; Sun, 11 Sep 2005 19:00:29 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ0T4J001806; Sun, 11 Sep 2005 19:00:29 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ0Tkn001802; Sun, 11 Sep 2005 19:00:29 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:00:29 GMT From: Alexander Leidinger Message-Id: <200509111900.j8BJ0Tkn001802@freefall.freebsd.org> To: jago@telefragged.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/37482: [sound] Weird behaviour under relatively slow load, skipping audio and choppy video playback. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:00:31 -0000 Synopsis: [sound] Weird behaviour under relatively slow load, skipping audio and choppy video playback. State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:00:16 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=37482 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:01:01 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 425CB16A420; Sun, 11 Sep 2005 19:01:01 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3AD943D46; Sun, 11 Sep 2005 19:01:00 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ10vd001931; Sun, 11 Sep 2005 19:01:00 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ10fN001927; Sun, 11 Sep 2005 19:01:00 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:01:00 GMT From: Alexander Leidinger Message-Id: <200509111901.j8BJ10fN001927@freefall.freebsd.org> To: arlankfo@141.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/38967: [sound] 4/22/02 pcm driver merge appears to break several audio apps. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:01:01 -0000 Synopsis: [sound] 4/22/02 pcm driver merge appears to break several audio apps. State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:00:44 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=38967 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:01:27 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D234516A420; Sun, 11 Sep 2005 19:01:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 764F243D46; Sun, 11 Sep 2005 19:01:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ1RSY002010; Sun, 11 Sep 2005 19:01:27 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ1R0W002006; Sun, 11 Sep 2005 19:01:27 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:01:27 GMT From: Alexander Leidinger Message-Id: <200509111901.j8BJ1R0W002006@freefall.freebsd.org> To: wesley@bmrc.berkeley.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/34854: [sound] /src/sys/dev/sound doesn't work correctly, post Aug 2001 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:01:28 -0000 Synopsis: [sound] /src/sys/dev/sound doesn't work correctly, post Aug 2001 State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:01:14 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=34854 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:01:58 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E215116A420; Sun, 11 Sep 2005 19:01:58 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F78143D45; Sun, 11 Sep 2005 19:01:58 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ1wXN002088; Sun, 11 Sep 2005 19:01:58 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ1wr1002084; Sun, 11 Sep 2005 19:01:58 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:01:58 GMT From: Alexander Leidinger Message-Id: <200509111901.j8BJ1wr1002084@freefall.freebsd.org> To: absinthe@pobox.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/41966: [sound] audio/play: sblive, can cause "Device busy" condition X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:01:59 -0000 Synopsis: [sound] audio/play: sblive, can cause "Device busy" condition State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:01:42 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=41966 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:02:56 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1F5616A420; Sun, 11 Sep 2005 19:02:56 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DE4A43D45; Sun, 11 Sep 2005 19:02:56 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ2uIj002151; Sun, 11 Sep 2005 19:02:56 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ2uV4002147; Sun, 11 Sep 2005 19:02:56 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:02:56 GMT From: Alexander Leidinger Message-Id: <200509111902.j8BJ2uV4002147@freefall.freebsd.org> To: kevin.vanmaren@unisys.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/44512: [sound] pcm driver generates static half the time [4.7] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:02:57 -0000 Synopsis: [sound] pcm driver generates static half the time [4.7] State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:02:21 GMT 2005 State-Changed-Why: Originator address bounces (no reason given, just a failure notice). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=44512 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:03:26 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B9E716A420; Sun, 11 Sep 2005 19:03:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27F6243D46; Sun, 11 Sep 2005 19:03:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ3Qre002197; Sun, 11 Sep 2005 19:03:26 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ3PAP002193; Sun, 11 Sep 2005 19:03:25 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:03:25 GMT From: Alexander Leidinger Message-Id: <200509111903.j8BJ3PAP002193@freefall.freebsd.org> To: root@w00t.internode.com.au, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/46250: [sound] yamaha DS-1E sound driver not working correctly on SONY VAIO PCG-31F1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:03:26 -0000 Synopsis: [sound] yamaha DS-1E sound driver not working correctly on SONY VAIO PCG-31F1 State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:03:14 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=46250 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:04:42 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0801116A420; Sun, 11 Sep 2005 19:04:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B81D343D46; Sun, 11 Sep 2005 19:04:41 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ4fj0002244; Sun, 11 Sep 2005 19:04:41 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ4fPZ002240; Sun, 11 Sep 2005 19:04:41 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:04:41 GMT From: Alexander Leidinger Message-Id: <200509111904.j8BJ4fPZ002240@freefall.freebsd.org> To: Eugene.Grosbein@grosbein.pp.ru, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/46736: [sound] ISA audio CS4232 (HP Omnibook 5000C) work only once X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:04:42 -0000 Synopsis: [sound] ISA audio CS4232 (HP Omnibook 5000C) work only once State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:03:47 GMT 2005 State-Changed-Why: Originator address bounces (unknown user). If someone has the same problem, please open a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=46736 From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 11 19:05:31 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 281FB16A420; Sun, 11 Sep 2005 19:05:31 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EBA43D45; Sun, 11 Sep 2005 19:05:30 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8BJ5Uac006679; Sun, 11 Sep 2005 19:05:30 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8BJ5USL006675; Sun, 11 Sep 2005 19:05:30 GMT (envelope-from netchild) Date: Sun, 11 Sep 2005 19:05:30 GMT From: Alexander Leidinger Message-Id: <200509111905.j8BJ5USL006675@freefall.freebsd.org> To: lvd@mndmttr.nl, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/49037: [sound] [patch] ESS Maestro chip misdetected as 'chip2' X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:05:31 -0000 Synopsis: [sound] [patch] ESS Maestro chip misdetected as 'chip2' State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sun Sep 11 19:04:49 GMT 2005 State-Changed-Why: Problem is fixed. http://www.freebsd.org/cgi/query-pr.cgi?pr=49037 From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 08:14:01 2005 Return-Path: X-Original-To: multimedia@freebsd.org 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 9610216A41F for ; Mon, 12 Sep 2005 08:14:01 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74C4A43D46 for ; Mon, 12 Sep 2005 08:13:59 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C6C6.dip.t-dialin.net [84.165.198.198]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j8C82baR055604 for ; Mon, 12 Sep 2005 10:02:52 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j8C8D9Ka012795 for ; Mon, 12 Sep 2005 10:13:09 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Mon, 12 Sep 2005 10:13:08 +0200 Message-ID: <20050912101308.wn0nfqo5cwc8ogc0@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 12 Sep 2005 10:13:08 +0200 From: Alexander Leidinger To: multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: Subject: sound broken with INVARIANTS, fix comming X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 08:14:01 -0000 Hi, in case you want to use -current as of yesterday or newer: beware, in case you have INVARIANTS turned on it will trigger a reboot. The workaround is to not turn on INVARIANTS until a fix is committed (probably in the evening when I'm back home). Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Newlan's Truism: An "acceptable" level of unemployment means that the government economist to whom it is acceptable still has a job. From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 09:02:48 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 0044D16A41F; Mon, 12 Sep 2005 09:02:47 +0000 (GMT) (envelope-from petr@petrovich.com.ua) Received: from lsrv.iatp.kiev.ua (lsrv.iatp.kiev.ua [194.44.225.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAB6A43D49; Mon, 12 Sep 2005 09:02:46 +0000 (GMT) (envelope-from petr@petrovich.com.ua) Received: from office.irex.kiev.ua (office.irex.kiev.ua [194.44.225.162]) by lsrv.iatp.kiev.ua (8.13.1/8.12.9) with ESMTP id j8C92Vpt097147; Mon, 12 Sep 2005 12:02:32 +0300 (EEST) (envelope-from petr@petrovich.com.ua) Received: office.irex.kiev.ua (petr@petrovich.com.ua) by office.irex.kiev.ua (8.13.3/8.13.1) with ESMTP id j8C92SnA044204; Mon, 12 Sep 2005 12:02:31 +0300 (EEST) (envelope-from petr@petrovich.com.ua) From: Serge Negodyuck To: Alexander Leidinger Date: Mon, 12 Sep 2005 12:02:26 +0300 User-Agent: KMail/1.8.2 References: <200509110951.j8B9pgLw035032@freefall.freebsd.org> In-Reply-To: <200509110951.j8B9pgLw035032@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509121202.27704.petr@petrovich.com.ua> X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/33532: [sound] Playing audio on some soundcards with pcm driver may hang machine. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 09:02:48 -0000 On Sunday 11 September 2005 12:51, Alexander Leidinger wrote: > Synopsis: [sound] Playing audio on some soundcards with pcm driver may hang > machine. > > State-Changed-From-To: open->feedback > State-Changed-By: netchild > State-Changed-When: Sun Sep 11 09:51:19 GMT 2005 > State-Changed-Why: > Do you still have this problem with 5.[34] or -current? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=33532 No, the problem disappeared somewhere in 4.7 - 4.9. Sorry I cannot tell more exact date. Anyway I do not have problems with sound integrated into this motherboard on 5.4. From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 09:10:07 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 962BA16A41F for ; Mon, 12 Sep 2005 09:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6461D43D45 for ; Mon, 12 Sep 2005 09:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8C9A7mu014588 for ; Mon, 12 Sep 2005 09:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8C9A77v014587; Mon, 12 Sep 2005 09:10:07 GMT (envelope-from gnats) Date: Mon, 12 Sep 2005 09:10:07 GMT Message-Id: <200509120910.j8C9A77v014587@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Serge Negodyuck Cc: Subject: Re: kern/33532: [sound] Playing audio on some soundcards with pcm driver may hang machine. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Serge Negodyuck List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 09:10:07 -0000 The following reply was made to PR kern/33532; it has been noted by GNATS. From: Serge Negodyuck To: Alexander Leidinger Cc: freebsd-multimedia@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/33532: [sound] Playing audio on some soundcards with pcm driver may hang machine. Date: Mon, 12 Sep 2005 12:02:26 +0300 On Sunday 11 September 2005 12:51, Alexander Leidinger wrote: > Synopsis: [sound] Playing audio on some soundcards with pcm driver may hang > machine. > > State-Changed-From-To: open->feedback > State-Changed-By: netchild > State-Changed-When: Sun Sep 11 09:51:19 GMT 2005 > State-Changed-Why: > Do you still have this problem with 5.[34] or -current? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=33532 No, the problem disappeared somewhere in 4.7 - 4.9. Sorry I cannot tell more exact date. Anyway I do not have problems with sound integrated into this motherboard on 5.4. From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 11:02:07 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 120DF16A422 for ; Mon, 12 Sep 2005 11:02:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C31E743D46 for ; Mon, 12 Sep 2005 11:02:06 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CB26HD025496 for ; Mon, 12 Sep 2005 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CB25AS025490 for freebsd-multimedia@freebsd.org; Mon, 12 Sep 2005 11:02:05 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 12 Sep 2005 11:02:05 GMT Message-Id: <200509121102.j8CB25AS025490@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 11:02:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/01/04] kern/33532 multimedia [sound] Playing audio on some soundcards f [2002/02/26] kern/35351 multimedia [sound] emu10k1: no posibility to record f [2002/07/02] kern/40122 multimedia [sound] Device pcm stopps booting Kernel f [2002/08/29] kern/42173 multimedia [sound] Sony VAIO FXA 53 (or FXA 679 in M f [2003/04/23] kern/51308 multimedia [sound] Creative SB32 doesn't work under f [2003/04/24] kern/51338 multimedia [sound] [hang] system hangs randomly beca f [2003/07/21] kern/54705 multimedia [sound] codec timeout during read of regi f [2003/10/02] kern/57487 multimedia [sound] [patch] Sound stops working on my f [2004/02/08] kern/62519 multimedia [sound] Intel ICH4 (82801DB) sound card d f [2004/03/29] kern/64879 multimedia [sound] [hang] 4.9 freezes when I try to f [2004/10/08] kern/72439 multimedia [sound] Sound not functioning for VIA_823 f [2004/10/15] kern/72738 multimedia [sound] pcm0:play:0: play interrupt timeo f [2004/11/16] kern/73987 multimedia [sound] Nforce2 MB sound problem o [2004/12/31] kern/75687 multimedia [patch] [sound] No sound on PC which is i o [2005/04/14] kern/79905 multimedia [sound] sis7018 sound module problem f [2005/04/17] kern/80041 multimedia [sound] snd_via8233 does not support VIA8 o [2005/05/17] kern/81146 multimedia [sound] Sound isn't working AT ALL for Si o [2005/06/08] kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work 18 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/30] kern/20297 multimedia [sound] [patch] Joystick is not enabled w f [2001/02/26] kern/25386 multimedia [sound] Incorrect mixer registers (line & f [2001/04/09] kern/26454 multimedia [sound] mixer volume settings on Maestro- f [2001/07/18] kern/29067 multimedia [sound] Yamaha OPL3Sa2 pcm/pnp stops play f [2001/07/30] kern/29312 multimedia [sound] Using mixer on pcm misbehaves wit f [2001/10/21] kern/31398 multimedia [sound] newpcm does not play back the tai f [2001/10/27] kern/31521 multimedia [sound] pcm0 plays too fast on Intel 8280 f [2002/02/14] kern/34942 multimedia [sound] Attempt to play -> "pcm0: play in o [2002/04/30] kern/37600 multimedia [sound] [partial patch] t4dwave drive doe f [2002/05/02] kern/37657 multimedia [sound] /dev/dsp and /dev/audio skip the o [2002/07/03] kern/40132 multimedia [sound] [patch] enabling the joystick int f [2002/07/23] kern/40927 multimedia [sound] Acer Labs M5451 dies with pcm:pla f [2002/08/09] kern/41490 multimedia [sound] C-Media 8738 sound card static f [2002/08/17] kern/41743 multimedia [sound] No sound from SiS630s controller f [2002/09/08] kern/42564 multimedia [sound] record bug with emu10k1 driver f [2002/09/10] kern/42638 multimedia [sound] CS4326/4327 (MSS) buggy output pl f [2003/01/20] kern/47243 multimedia [sound] Onboard CMedia CMI8738 playback n f [2003/01/22] kern/47352 multimedia [sound] pcm/ac'97, dsp device busy f [2003/02/16] kern/48338 multimedia [sound] pcm audio driver hogs /dev/dsp?.? o [2003/04/18] kern/51145 multimedia [sound] Audio Slows during Heavy I/O o [2003/06/17] kern/53417 multimedia [sound] Bad Recordings on AC97 onboard au o [2003/07/03] kern/54049 multimedia [sound] Sound driver reports device busy o [2003/07/03] kern/54078 multimedia [sound] Sound Plays ~10% Slow [4.8] o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI o [2003/12/30] kern/60737 multimedia [sound] Sound card Turtle Beach Santa Cru o [2003/12/31] kern/60761 multimedia [sound] pcm performance on emu10k1 driver o [2004/02/15] kern/62862 multimedia [sound] [patch] fix pcm vchans related cr o [2004/02/22] kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestr o [2004/03/10] kern/64040 multimedia [sound] crackling sound on 5.2.1-RELEASE o [2004/05/09] kern/66422 multimedia [sound] [patch] no sound on modern Sony V o [2004/05/14] kern/66642 multimedia [sound] pcm0: play: 0: play interrupt tim o [2004/06/19] kern/68122 multimedia [sound] Device busy (/dev/dsp)- insane, n o [2004/06/30] kern/68515 multimedia [sound] sound card noise (ES1938, 5.0) o [2004/07/04] kern/68665 multimedia [sound] pcm doesn't detect Realtek ac97 o a [2004/07/19] kern/69283 multimedia [sound] Via 8233 driver records at half s s [2004/08/23] kern/70852 multimedia [sound] via82xx PCM driver does not enabl o [2004/09/30] kern/72218 multimedia [sound] audio recording broken with emu10 o [2004/10/01] kern/72221 multimedia [sound] emu10k1 stereo channels are rever o [2004/10/19] kern/72887 multimedia [sound] emu10k1: sound lag o [2004/10/22] kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound near o [2004/10/25] kern/73098 multimedia [sound] Scan rate of sound card shifts wh f [2004/12/09] kern/74893 multimedia [patch] [sound] Channels of USB audio can o [2004/12/20] kern/75316 multimedia [patch] [sound] Enable to select a record o [2005/01/06] kern/75894 multimedia [sound] AD1981 not probing (shuttle ST62K o [2005/01/08] kern/75969 multimedia [patch] [sound] Support for Sigmatel STAC o [2005/01/31] kern/76918 multimedia [sound] ATI AD1981 AC'97 Audio Controller o [2005/04/01] kern/79427 multimedia [sound] No sound on Compaq Armada 100S la o [2005/04/03] kern/79498 multimedia [sound] sndfile-play (and many other play o [2005/04/08] kern/79678 multimedia [sound] sound works except recording from o [2005/04/20] kern/80147 multimedia [patch] [panic] with the vibra16x when tr o [2005/04/20] kern/80149 multimedia problems with an soundblaster-8 (original o [2005/04/20] kern/80151 multimedia [patch] [sound] Missing ESS ES1688 PCI-ID o [2005/04/20] kern/80152 multimedia [patch] [sound] SIMPLEX flag is not set p o [2005/04/22] kern/80234 multimedia [patch] [sound] add entry for Analog Devi o [2005/04/29] kern/80465 multimedia [sound] pcm0:record:0: record interrupt t o [2005/05/05] kern/80632 multimedia pcm driver missing support for CMI8738 au o [2005/05/09] kern/80824 multimedia [sound] kldunload can't unload sound.ko o [2005/05/14] kern/81013 multimedia [patch] Intel ICH3 sound chip reverts to o [2005/05/17] kern/81170 multimedia [sound] /dev/mixer misbehavior with enson o [2005/05/28] kern/81599 multimedia [sound] Via VT1612A Audio not working wel o [2005/07/29] kern/84311 multimedia [sound] 82801FB/FR/FW/FRW Intel High Defi o [2005/08/02] kern/84471 multimedia [sound][patch] no sound ICH4 (Analog Devi o [2005/08/03] kern/84507 multimedia [sound] fm801: Not every card supports va o [2005/09/11] kern/85964 multimedia [sound] Can't play 24 bit audio (Audigy 2 64 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 18:34:44 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE3DD16A421; Mon, 12 Sep 2005 18:34:44 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E16B743D4C; Mon, 12 Sep 2005 18:34:40 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CIYenp087256; Mon, 12 Sep 2005 18:34:40 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CIYd63087252; Mon, 12 Sep 2005 18:34:39 GMT (envelope-from netchild) Date: Mon, 12 Sep 2005 18:34:39 GMT From: Alexander Leidinger Message-Id: <200509121834.j8CIYd63087252@freefall.freebsd.org> To: tdraney@vt.edu, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/41490: [sound] C-Media 8738 sound card static X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 18:34:45 -0000 Synopsis: [sound] C-Media 8738 sound card static State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon Sep 12 18:34:27 GMT 2005 State-Changed-Why: Fixed already. http://www.freebsd.org/cgi/query-pr.cgi?pr=41490 From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 18:35:28 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B07A216A420; Mon, 12 Sep 2005 18:35:28 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62E4F43D5E; Mon, 12 Sep 2005 18:35:13 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CIZ9Sf087302; Mon, 12 Sep 2005 18:35:09 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CIZ8rG087298; Mon, 12 Sep 2005 18:35:08 GMT (envelope-from netchild) Date: Mon, 12 Sep 2005 18:35:08 GMT From: Alexander Leidinger Message-Id: <200509121835.j8CIZ8rG087298@freefall.freebsd.org> To: petr@petrovich.com.ua, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/33532: [sound] Playing audio on some soundcards with pcm driver may hang machine. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 18:35:28 -0000 Synopsis: [sound] Playing audio on some soundcards with pcm driver may hang machine. State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon Sep 12 18:34:53 GMT 2005 State-Changed-Why: Fixed already. http://www.freebsd.org/cgi/query-pr.cgi?pr=33532 From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 18:35:54 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEFF816A420; Mon, 12 Sep 2005 18:35:54 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78DC143D45; Mon, 12 Sep 2005 18:35:54 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CIZs8L087357; Mon, 12 Sep 2005 18:35:54 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CIZr8q087353; Mon, 12 Sep 2005 18:35:54 GMT (envelope-from netchild) Date: Mon, 12 Sep 2005 18:35:54 GMT From: Alexander Leidinger Message-Id: <200509121835.j8CIZr8q087353@freefall.freebsd.org> To: william.ward@ericsson.com, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/34942: [sound] Attempt to play -> "pcm0: play interrupt timeout, channel dead" X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 18:35:54 -0000 Synopsis: [sound] Attempt to play -> "pcm0: play interrupt timeout, channel dead" State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon Sep 12 18:35:25 GMT 2005 State-Changed-Why: Closed upon request by originator. http://www.freebsd.org/cgi/query-pr.cgi?pr=34942 From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 18:38:43 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7551B16A420; Mon, 12 Sep 2005 18:38:43 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12CF543D6A; Mon, 12 Sep 2005 18:38:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CIcfWA087442; Mon, 12 Sep 2005 18:38:41 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CIcfFQ087438; Mon, 12 Sep 2005 18:38:41 GMT (envelope-from netchild) Date: Mon, 12 Sep 2005 18:38:41 GMT From: Alexander Leidinger Message-Id: <200509121838.j8CIcfFQ087438@freefall.freebsd.org> To: jylefort@brutele.be, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 18:38:43 -0000 Synopsis: [sound] pcm audio driver hogs /dev/dsp?.? State-Changed-From-To: feedback->open State-Changed-By: netchild State-Changed-When: Mon Sep 12 18:38:03 GMT 2005 State-Changed-Why: Feedback received, it's still a problem, so back to "open". http://www.freebsd.org/cgi/query-pr.cgi?pr=48338 From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 23:29:25 2005 Return-Path: X-Original-To: multimedia@freebsd.org 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 CD8AC16A422 for ; Mon, 12 Sep 2005 23:29:25 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAC2343D45 for ; Mon, 12 Sep 2005 23:29:25 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 8A6491A4D83; Mon, 12 Sep 2005 16:29:25 -0700 (PDT) Date: Mon, 12 Sep 2005 16:29:25 -0700 From: Alfred Perlstein To: multimedia@freebsd.org Message-ID: <20050912232925.GM91162@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: suggested sound card for freebsd US. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 23:29:26 -0000 Can anyone point me at an online store where I can get a sound card that FreeBSD 6.x supports decently? A pointer to a particular model would be mucho helpful! Looking for something simple, nothing insane. thank you! -- - Alfred Perlstein From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 23:57:56 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 D53B916A41F for ; Mon, 12 Sep 2005 23:57:56 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C71143D45 for ; Mon, 12 Sep 2005 23:57:55 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 5B3906CC35; Tue, 13 Sep 2005 08:05:50 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44372-06; Tue, 13 Sep 2005 08:05:49 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id AE7436CC32; Tue, 13 Sep 2005 08:05:48 +0800 (MYT) Date: Tue, 13 Sep 2005 07:58:35 +0800 From: Ariff Abdullah To: freebsd-multimedia@freebsd.org Message-Id: <20050913075835.5f055747.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: Subject: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 23:57:57 -0000 As promised (last week?), here is soft volume mixer controller to control pcm volume. This is rather a long Lost Technology rather than a new feature because FEEDER_VOLUME already defined/existed as old as I can remember (only the implementation part missing, thus, a Lost Technology, bleh..). For -CURRENT/HEAD (make sure your src up to date with recent commit): http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_HEAD_20050913_036softvol.diff For RELENG_5: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050913_036softvol.diff Target audience: 1) AC97 CMI9738(?), CMI9739(?), CMI9761 (these codecs come without hardware/codec pcm volume controller although the register responded during probing). 2) usbaudio without pcm volume controller. 3) Anything. Tell me. Other than the above, this probably need special treatment. Note on giving feedback: Please include (before / after applying patch):- 1) dmesg | grep pcm 2) output of /usr/sbin/mixer 3) pciconf -lv (only those multimedia/audio part) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 12 20:40:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 B45F716A41F for ; Mon, 12 Sep 2005 20:40:17 +0000 (GMT) (envelope-from aghafoor@insightbb.com) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AAB343D45 for ; Mon, 12 Sep 2005 20:40:17 +0000 (GMT) (envelope-from aghafoor@insightbb.com) Received: from Adil (12-208-114-223.client.insightbb.com[12.208.114.223]) by sccimhc92.asp.att.net (sccimhc92) with SMTP id <20050912204016i9200qltp9e>; Mon, 12 Sep 2005 20:40:16 +0000 Message-ID: <000401c5b7e4$da0c41b0$6601a8c0@Adil> From: "Adil Ghafoor" To: Date: Mon, 12 Sep 2005 15:56:20 -0600 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailman-Approved-At: Tue, 13 Sep 2005 11:30:07 +0000 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problems running VLC X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 20:40:17 -0000 Hi there, I am having a problem with VLC. The video is fine and I can also hear the audio but there is some static in the background and everything is very loud for some reason. Thank you, Adil From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 12:50:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 6EE5D16A41F for ; Tue, 13 Sep 2005 12:50:50 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF1E43D46 for ; Tue, 13 Sep 2005 12:50:48 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C5BB.dip.t-dialin.net [84.165.197.187]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j8DCcpQI067176; Tue, 13 Sep 2005 14:39:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j8DCnbUP058089; Tue, 13 Sep 2005 14:49:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Tue, 13 Sep 2005 14:49:37 +0200 Message-ID: <20050913144937.7dx71yej280ks8g4@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 13 Sep 2005 14:49:37 +0200 From: Alexander Leidinger To: Adil Ghafoor References: <000401c5b7e4$da0c41b0$6601a8c0@Adil> In-Reply-To: <000401c5b7e4$da0c41b0$6601a8c0@Adil> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: Problems running VLC X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 12:50:50 -0000 Adil Ghafoor wrote: > I am having a problem with VLC. The video is fine and I can also > hear the audio but there is some static in the background and everything > is very loud for some reason. If this only happens with VLC you should talk with the VLC developers. If it also is a problem with other sound apps: what's the version of FreeBSD you are using, which soundcard do you have ("cat /etc/sndstat", "pciconf -v -l" (only the pcm part), "uname -a")? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Look out! Behind you! From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 14:42:58 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 E99D016A41F for ; Tue, 13 Sep 2005 14:42:58 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68AD743D46 for ; Tue, 13 Sep 2005 14:42:58 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id D933E6CC41; Tue, 13 Sep 2005 22:50:53 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 49430-01; Tue, 13 Sep 2005 22:50:51 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3C98E6CC3D; Tue, 13 Sep 2005 22:50:49 +0800 (MYT) Date: Tue, 13 Sep 2005 22:43:35 +0800 From: Ariff Abdullah To: ales.rom@kabelnet.net Message-Id: <20050913224335.2880d503.skywizard@MyBSD.org.my> In-Reply-To: <4326BD34.4090106@kabelnet.net> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <4326BD34.4090106@kabelnet.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 14:42:59 -0000 On Tue, 13 Sep 2005 13:51:16 +0200 ales.rom@kabelnet.net wrote: > Ariff Abdullah wrote: > > As promised (last week?), here is soft volume mixer controller to > > control pcm volume. This is rather a long Lost Technology rather > > than a new feature because FEEDER_VOLUME already defined/existed as > > old as I can remember (only the implementation part missing, thus, a > > Lost Technology, bleh..). > > > > For -CURRENT/HEAD (make sure your src up to date with recent > > commit): > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_HEAD_20050913_036softvol.diff > > > > For RELENG_5: > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050913_036softvol.diff > > > > Target audience: > > 1) AC97 CMI9738(?), CMI9739(?), CMI9761 (these codecs come without > > hardware/codec pcm volume controller although the register > > responded during probing). > > 2) usbaudio without pcm volume controller. > > 3) Anything. Tell me. Other than the above, this probably need > > special > > treatment. > > > > Note on giving feedback: Please include (before / after applying > > patch):- > > 1) dmesg | grep pcm > > 2) output of /usr/sbin/mixer > > 3) pciconf -lv (only those multimedia/audio part) > > > > > Great! I will try it as soon I get back to my VIA chipset box. > > .. and don't forget to CC to multimedia@ as well, especially for the result :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 18:49:53 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 2690016A421 for ; Tue, 13 Sep 2005 18:49:53 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF10843D6B for ; Tue, 13 Sep 2005 18:49:46 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IMR00BRJR2UZW80@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 13 Sep 2005 20:52:06 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IMR00I9XR484JB0@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 13 Sep 2005 20:52:57 +0200 (CEST) Date: Tue, 13 Sep 2005 20:49:44 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20050806185659.025b5238@it.buh.tecnik93.com> To: freebsd-multimedia@freebsd.org Message-id: <20050913204944.122b5722.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20050806185659.025b5238@it.buh.tecnik93.com> Cc: Subject: Re: WIP: multimedia/XdTV port X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 18:49:53 -0000 On Sat, 06 Aug 2005 18:56:59 +0300 Ion-Mihai Tetcu wrote: > What can you do to help: > - test the port and send me feedback; I'm just upgrading from 5-STABLE well it compiles on FreeBSD 5.4-stable / amd64: tingo@kg-quiet$ uname -a FreeBSD kg-quiet.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #5: Fri Sep 2 15:14:54 CEST 2005 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 with the following options: root@kg-quiet# make showconfig ===> The following configuration options are set for xdtv-2.2.0: MMX=off "Enable MMX features" OPTIMIZED=off "You're risk: guess CPU and gcc optimization" Xaw3D=on "use Xaw3D" neXtaw=on "use neXtaw" Mowitz=on "use Mowitz" X11EXT=on "use X11 extentions (DGA,VidMode,DPMS)" Xvideo=on "use the Xvideo extention" LIRC=on "Use lirc remote control" FFMPEG=on "FFMPEG for capturing" FFMPEG_DEVEL=off "FFMPEG dev version for capturing" XVID=on "enable XviD divx codec" LAME=on "enable lame audio compression" ZVBI=on "enables zvbi" XVTV=on "enables Xvideo TV-card driver" XINERAMA=on "enable xinerama extension" PIXMAPS=on "enables pixmaps" NLS=off "natural language support" DEBUG=off "debug symbols in binary" NXTVEPG=off "support for tv prgram schedules" (I had to turn NXTVEPG off, as it isn't supported on amd64). I don't (yet) have a bktr TV-card in this machine, so I can't test it properly. When started, it display the following: tingo@kg-quiet$ xdtv This is xdtv 2.2.0 running on FreeBSD/amd64 (5.4-STABLE). filename = /home/tingo/.xdtv/xdtvrc xdtv_v4l-conf: not found xdtv_v4l-conf had some trouble, trying to continue anyway wmhooks: netwm detected wmhooks: netwm state above supported wmhooks: netwm fullscreen supported wmhooks: gnome detected dcop: not found DGA: server=2.0, include=2.0 VidMode: server=2.2, include=2.2 available video mode(s): 1280x1024 1024x768 1280x1024 1280x1024 1280x960 1280x960 2x864 1024x768 1024x768 1024x768 960x720 928x696 896x672 832x624 800x600 800x600 800 0 800x600 800x600 800x600 800x600 800x600 700x525 700x525 640x512 640x512 640x512 64 80 640x480 640x480 640x480 640x480 640x480 720x400 640x400 576x432 640x350 512x384 5 384 512x384 512x384 416x312 400x300 400x300 400x300 400x300 400x300 320x240 320x240 x240 320x240 360x200 320x200 320x175 Selected XvImage adaptor with yuyv support: NV Video Blitter on port 65 (grabdisplay No XvVideo port available. X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (XVideo) Minor opcode of failed request: 13 () Serial number of failed request: 1046 Current serial number in output stream: 1047 and then quits. For all I know, this can be perfectly normal when there is no TV card in the machine Oh, and xdtv_wizard looks for it's config file in the wrong place: tingo@kg-quiet$ xdtv_wizard xdtv_wizard: cannot open /usr/local/xdtv_wizard-en.conf: No such file or directory -- Yours, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 19:06:45 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 4859B16A41F for ; Tue, 13 Sep 2005 19:06:45 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D91043D45 for ; Tue, 13 Sep 2005 19:06:42 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 5503 invoked from network); 13 Sep 2005 19:06:19 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 13 Sep 2005 19:06:19 -0000 Received: (qmail 25513 invoked by uid 89); 13 Sep 2005 19:06:15 -0000 Received: from unknown (HELO buh.cameradicommercio.ro) (82.76.1.117) by 0 with SMTP; 13 Sep 2005 19:06:15 -0000 Received: from buh.cameradicommercio.ro (localhost [127.0.0.1]) by buh.cameradicommercio.ro (Postfix) with ESMTP id 3439A60C1; Tue, 13 Sep 2005 22:06:14 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (it.buh.cameradicommercio.ro [192.168.0.10]) by buh.cameradicommercio.ro (Postfix) with ESMTP; Tue, 13 Sep 2005 22:06:14 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with ESMTP id 1348A8E; Tue, 13 Sep 2005 22:06:13 +0300 (EEST) Date: Tue, 13 Sep 2005 22:06:12 +0300 From: Ion-Mihai Tetcu To: Torfinn Ingolfsen Message-ID: <20050913220612.36256c0a@it.buh.cameradicommercio.ro> In-Reply-To: <20050913204944.122b5722.torfinn.ingolfsen@broadpark.no> References: <20050806185659.025b5238@it.buh.tecnik93.com> <20050913204944.122b5722.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed-Claws 1.9.14 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AV-Checked: on buh by ClamAV using ClamSMTP Cc: freebsd-multimedia@freebsd.org Subject: Re: WIP: multimedia/XdTV port X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 19:06:45 -0000 On Tue, 13 Sep 2005 20:49:44 +0200 Torfinn Ingolfsen wrote: > On Sat, 06 Aug 2005 18:56:59 +0300 > Ion-Mihai Tetcu wrote: > > > What can you do to help: > > - test the port and send me feedback; I'm just upgrading from 5-STABLE > > well it compiles on FreeBSD 5.4-stable / amd64: > tingo@kg-quiet$ uname -a > FreeBSD kg-quiet.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #5: Fri Sep 2 > 15:14:54 CEST 2005 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET > amd64 > > with the following options: [ ... ] > I don't (yet) have a bktr TV-card in this machine, so I can't test it > properly. > > When started, it display the following: [ ... ] Yup, it looks all right. > Oh, and xdtv_wizard looks for it's config file in the wrong place: > tingo@kg-quiet$ xdtv_wizard > xdtv_wizard: cannot open /usr/local/xdtv_wizard-en.conf: No such file or > directory Yes, it's my fault, I think. Thanks for your report. Unfortunately I didn't have time to finish the work on this (and I doubt I'll have until the end of the month). -- IOnut Unregistered ;) FreeBSD "user" From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 20:09:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8420A16A428 for ; Tue, 13 Sep 2005 20:09:25 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1589943D48 for ; Tue, 13 Sep 2005 20:09:24 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IMR00CK5UREFI30@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 13 Sep 2005 22:11:38 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IMR00I8CUSSCG40@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 13 Sep 2005 22:12:29 +0200 (CEST) Date: Tue, 13 Sep 2005 22:09:16 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH To: freebsd-multimedia@freebsd.org Message-id: <20050913220916.7a4bab88.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: saa7134 driver compiles under FreeBSD/amd64 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 20:09:25 -0000 Hi, just a quick note: the saa7134 driver from http://download.purpe.com/ (release 14) compiles fine under FreeBSD 5.4-stable / amd64: tingo@kg-quiet$ uname -a FreeBSD kg-quiet.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #5: Fri Sep 2 15:14:54 CEST 2005 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 The saa7134 TV card isn't in that machine yet (its in another machine), so I can't test if it works yet. -- Yours, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 20:34:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 31BF116A41F for ; Tue, 13 Sep 2005 20:34:36 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7238843D48 for ; Tue, 13 Sep 2005 20:34:35 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-07-z2.arcor-online.net (mail-in-07-z2.arcor-online.net [151.189.8.19]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 53A6742A17; Tue, 13 Sep 2005 22:34:34 +0200 (CEST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-07-z2.arcor-online.net (Postfix) with ESMTP id A6760160A79; Tue, 13 Sep 2005 22:34:35 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-142-209.arcor-ip.net [84.61.142.209]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id D15BA69553; Tue, 13 Sep 2005 22:34:33 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8DKYQ9C001866 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 13 Sep 2005 22:34:26 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Tue, 13 Sep 2005 22:34:23 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> In-Reply-To: <20050913075835.5f055747.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?iso-8859-1?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?iso-8859-1?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: Ariff Abdullah Subject: Re: As promised: Soft volume mixer controller (doesn't work for me) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 20:34:36 -0000 On Tuesday, 13. September 2005 01:58, Ariff Abdullah wrote: > Note on giving feedback: Please include (before / after applying > patch):- Before: PCM volume control is binary - 0 is silent, everything else is full volume. pcm0: port 0xe800-0xe83f,0xec00-0xecff irq 17 at device 31.5 on pci0 pcm0: Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer speaker is currently set to 0:0 Mixer line is currently set to 0:0 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 11:11 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 0:0 Recording source: line pcm0@pci0:31:5: class=0x040100 card=0x49611849 chip=0x24458086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = '82801BA/BAM (ICH2/ICH2-M) AC'97 Audio Controller' class = multimedia subclass = audio After: Complete silence, regardless of mixer setting. pcm0: port 0xe800-0xe83f,0xec00-0xecff irq 17 at device 31.5 on pci0 pcm0: Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer speaker is currently set to 0:0 Mixer line is currently set to 0:0 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 11:11 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 0:0 pcm0@pci0:31:5: class=0x040100 card=0x49611849 chip=0x24458086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = '82801BA/BAM (ICH2/ICH2-M) AC'97 Audio Controller' class = multimedia subclass = audio -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 21:03:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 5A14316A41F; Tue, 13 Sep 2005 21:03:50 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C758943D48; Tue, 13 Sep 2005 21:03:49 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9D0E26CC2A; Wed, 14 Sep 2005 05:11:47 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55594-08; Wed, 14 Sep 2005 05:11:45 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 99F226CC29; Wed, 14 Sep 2005 05:11:43 +0800 (MYT) Date: Wed, 14 Sep 2005 05:04:22 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914050422.39b2aa04.skywizard@MyBSD.org.my> In-Reply-To: <200509132234.25656.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509132234.25656.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller (doesn't work for me) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:03:50 -0000 On Tue, 13 Sep 2005 22:34:23 +0200 Michael Nottebrock wrote: > On Tuesday, 13. September 2005 01:58, Ariff Abdullah wrote: > > > Note on giving feedback: Please include (before / after applying > > patch):- > > Before: PCM volume control is binary - 0 is silent, everything else is > full volume. > > pcm0: port 0xe800-0xe83f,0xec00-0xecff irq 17 > at device 31.5 on pci0 > pcm0: > > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Mixer speaker is currently set to 0:0 > Mixer line is currently set to 0:0 > Mixer mic is currently set to 0:0 > Mixer cd is currently set to 0:0 > Mixer rec is currently set to 11:11 > Mixer ogain is currently set to 50:50 > Mixer line1 is currently set to 0:0 > Mixer phin is currently set to 0:0 > Mixer phout is currently set to 0:0 > Mixer video is currently set to 0:0 > Recording source: line > > pcm0@pci0:31:5: class=0x040100 card=0x49611849 chip=0x24458086 > rev=0x05 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801BA/BAM (ICH2/ICH2-M) AC'97 Audio Controller' > class = multimedia > subclass = audio > > After: Complete silence, regardless of mixer setting. > > pcm0: port 0xe800-0xe83f,0xec00-0xecff irq 17 > at device 31.5 on pci0 > pcm0: > > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Mixer speaker is currently set to 0:0 > Mixer line is currently set to 0:0 > Mixer mic is currently set to 0:0 > Mixer cd is currently set to 0:0 > Mixer rec is currently set to 11:11 > Mixer ogain is currently set to 50:50 > Mixer line1 is currently set to 0:0 > Mixer phin is currently set to 0:0 > Mixer phout is currently set to 0:0 > Mixer video is currently set to 0:0 > > pcm0@pci0:31:5: class=0x040100 card=0x49611849 chip=0x24458086 > rev=0x05 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801BA/BAM (ICH2/ICH2-M) AC'97 Audio Controller' > class = multimedia > subclass = audio > > (sorry, I need uname -a as well..) How about applying this one: --- ac97.c.diff BEGIN --- --- sys/dev/sound/pcm/ac97.c.orig Wed Sep 14 04:54:36 2005 +++ sys/dev/sound/pcm/ac97.c Wed Sep 14 05:00:10 2005 @@ -556,17 +556,25 @@ #endif switch (codec->id) { case 0x434d4941: /* CMI9738 */ + ac97_wrcd(codec, AC97_MIX_PCM, 0x8000); + break; case 0x434d4961: /* CMI9739 */ + ac97_wrcd(codec, AC97_MIX_MASTER, 0x8000); + ac97_wrcd(codec, AC97_MIX_PCM, 0x8000); + break; case 0x434d4983: /* CMI9761 */ - bzero(&codec->mix[SOUND_MIXER_PCM], - sizeof(codec->mix[SOUND_MIXER_PCM])); - codec->flags |= AC97_F_SOFTVOL; - if (d) - d->flags |= SD_F_SOFTVOL; + ac97_wrcd(codec, AC97_MIX_MASTER, 0x8808); + ac97_wrcd(codec, AC97_MIX_PCM, 0x8808); break; default: + return; break; } + bzero(&codec->mix[SOUND_MIXER_PCM], + sizeof(codec->mix[SOUND_MIXER_PCM])); + codec->flags |= AC97_F_SOFTVOL; + if (d) + d->flags |= SD_F_SOFTVOL; } static const char* --- ac97.c.diff END --- -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 21:09:31 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 B6CA216A41F for ; Tue, 13 Sep 2005 21:09:31 +0000 (GMT) (envelope-from al@e-lake.net) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EBC043D46 for ; Tue, 13 Sep 2005 21:09:30 +0000 (GMT) (envelope-from al@e-lake.net) Received: from [192.168.1.13] (really [199.126.215.45]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050913210930.YFRH2438.priv-edtnes51.telusplanet.net@[192.168.1.13]> for ; Tue, 13 Sep 2005 15:09:30 -0600 Message-ID: <4326EB71.8050805@e-lake.net> Date: Tue, 13 Sep 2005 15:08:33 +0000 From: "A.R." User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050910) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Audio playback problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:09:31 -0000 FreeBSD 6.0 Beta3 Hi, thanks for looking. I am having trouble getting my audio fully working. Some movies will work with Xine/Mplayer. I dont think its the players that are my problem. Anyways, none of my MP3s will work, and I think its a codec problem perhaps. The one thing I did notice was that in # dmesg, I recieved the following line; uaudio: This device can't play in rate=44100. Thats what I normally get after trying to listen to a MP3 in XMMS. I should note that the audio plugin XMMS is using is OSS, its the only one in the list. Also, I am using an external USB soundcard, I am using the uaudio drivers. If you need any information, please let me know. This is really a make or break thing for FreeBSD for me. As my desktop, Im going to need music :) Thanks for any help, Al From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 21:18:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 D584816A41F; Tue, 13 Sep 2005 21:18:26 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 581A743D45; Tue, 13 Sep 2005 21:18:26 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 7F5746CC2A; Wed, 14 Sep 2005 05:26:25 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55540-10; Wed, 14 Sep 2005 05:26:24 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E0FE86CC26; Wed, 14 Sep 2005 05:26:23 +0800 (MYT) Date: Wed, 14 Sep 2005 05:19:04 +0800 From: Ariff Abdullah To: lofi@freebsd.org Message-Id: <20050914051904.2548778b.skywizard@MyBSD.org.my> In-Reply-To: <20050914050422.39b2aa04.skywizard@MyBSD.org.my> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509132234.25656.lofi@freebsd.org> <20050914050422.39b2aa04.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller (doesn't work for me) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:18:27 -0000 On Wed, 14 Sep 2005 05:04:22 +0800 Ariff Abdullah wrote: > + bzero(&codec->mix[SOUND_MIXER_PCM], > + sizeof(codec->mix[SOUND_MIXER_PCM])); > + codec->flags |= AC97_F_SOFTVOL; > + if (d) > + d->flags |= SD_F_SOFTVOL; > } > > static const char* > > --- ac97.c.diff END --- > > > -- > Ahh.. sorry.. that was bogus.. use this one instead: --- ac97.c.diff BEGIN --- --- sys/dev/sound/pcm/ac97.c.orig Wed Sep 14 04:54:36 2005 +++ sys/dev/sound/pcm/ac97.c Wed Sep 14 05:15:13 2005 @@ -558,15 +558,17 @@ case 0x434d4941: /* CMI9738 */ case 0x434d4961: /* CMI9739 */ case 0x434d4983: /* CMI9761 */ + ac97_wrcd(codec, AC97_MIX_PCM, 0); bzero(&codec->mix[SOUND_MIXER_PCM], sizeof(codec->mix[SOUND_MIXER_PCM])); - codec->flags |= AC97_F_SOFTVOL; - if (d) - d->flags |= SD_F_SOFTVOL; break; default: + return; break; } + codec->flags |= AC97_F_SOFTVOL; + if (d) + d->flags |= SD_F_SOFTVOL; } static const char* --- ac97.c.diff END --- -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 21:29:22 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 5961716A41F for ; Tue, 13 Sep 2005 21:29:22 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C1F43D45 for ; Tue, 13 Sep 2005 21:29:21 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-09-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 344CB86B2B; Tue, 13 Sep 2005 23:29:20 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id 24A78752D2; Tue, 13 Sep 2005 23:29:20 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-142-209.arcor-ip.net [84.61.142.209]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id C23CC790C4; Tue, 13 Sep 2005 23:29:19 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8DLTG1D002483 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 13 Sep 2005 23:29:17 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: Ariff Abdullah Date: Tue, 13 Sep 2005 23:29:11 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509132234.25656.lofi@freebsd.org> <20050914050422.39b2aa04.skywizard@MyBSD.org.my> In-Reply-To: <20050914050422.39b2aa04.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller (doesn't work for me) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:29:22 -0000 --nextPart2466542.TARlZBdh7L Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday, 13. September 2005 23:04, Ariff Abdullah wrote: > (sorry, I need uname -a as well..) =46reeBSD kiste 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 13 18:38:46 CEST = 2005 =20 root@kiste:/usr/obj/usr/src/sys/KISTE-UP i386 > How about applying this one: > > --- ac97.c.diff BEGIN --- > > [...] In addition to the other patch I suppose? =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart2466542.TARlZBdh7L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDJ0SsXhc68WspdLARAqSOAJ4pxu9FJwG4xuHQ4CpQIzC13PXSLQCfUToz ED89CBHn6HG+yXbbWGBNVd0= =twjF -----END PGP SIGNATURE----- --nextPart2466542.TARlZBdh7L-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 21:34:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 7F60816A41F; Tue, 13 Sep 2005 21:34:17 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1C3243D5F; Tue, 13 Sep 2005 21:34:16 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0B18C6CC30; Wed, 14 Sep 2005 05:42:12 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55986-03; Wed, 14 Sep 2005 05:42:10 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C75596CC2D; Wed, 14 Sep 2005 05:42:08 +0800 (MYT) Date: Wed, 14 Sep 2005 05:34:43 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914053443.5c0de364.skywizard@MyBSD.org.my> In-Reply-To: <200509132329.16105.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509132234.25656.lofi@freebsd.org> <20050914050422.39b2aa04.skywizard@MyBSD.org.my> <200509132329.16105.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller (doesn't work for me) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:34:17 -0000 On Tue, 13 Sep 2005 23:29:11 +0200 Michael Nottebrock wrote: > On Tuesday, 13. September 2005 23:04, Ariff Abdullah wrote: > > > (sorry, I need uname -a as well..) > > FreeBSD kiste 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 13 18:38:46 > CEST 2005 root@kiste:/usr/obj/usr/src/sys/KISTE-UP i386 > > > How about applying this one: > > > > --- ac97.c.diff BEGIN --- > > > > [...] > > In addition to the other patch I suppose? > Yes (don't revert anything), and use the second one (the first one is bogus, accidentally muting everything). Sorry. Here (again) --- ac97.c.diff BEGIN --- --- sys/dev/sound/pcm/ac97.c.orig Wed Sep 14 04:54:36 2005 +++ sys/dev/sound/pcm/ac97.c Wed Sep 14 05:15:13 2005 @@ -558,15 +558,17 @@ case 0x434d4941: /* CMI9738 */ case 0x434d4961: /* CMI9739 */ case 0x434d4983: /* CMI9761 */ + ac97_wrcd(codec, AC97_MIX_PCM, 0); bzero(&codec->mix[SOUND_MIXER_PCM], sizeof(codec->mix[SOUND_MIXER_PCM])); - codec->flags |= AC97_F_SOFTVOL; - if (d) - d->flags |= SD_F_SOFTVOL; break; default: + return; break; } + codec->flags |= AC97_F_SOFTVOL; + if (d) + d->flags |= SD_F_SOFTVOL; } static const char* --- ac97.c.diff END --- -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 13 23:28:13 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 9BDC616A41F for ; Tue, 13 Sep 2005 23:28:13 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AD7E43D45 for ; Tue, 13 Sep 2005 23:28:13 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 232B86CC40 for ; Wed, 14 Sep 2005 07:36:11 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55986-07 for ; Wed, 14 Sep 2005 07:36:10 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 260DF6CC3D for ; Wed, 14 Sep 2005 07:36:09 +0800 (MYT) Date: Wed, 14 Sep 2005 07:28:50 +0800 From: Ariff Abdullah To: freebsd-multimedia@freebsd.org Message-Id: <20050914072850.6d4fb63b.skywizard@MyBSD.org.my> In-Reply-To: <20050913075835.5f055747.skywizard@MyBSD.org.my> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 23:28:13 -0000 On Tue, 13 Sep 2005 07:58:35 +0800 Ariff Abdullah wrote: > As promised (last week?), here is soft volume mixer controller to > control pcm volume. This is rather a long Lost Technology rather than > a new feature because FEEDER_VOLUME already defined/existed as old as > I can remember (only the implementation part missing, thus, a Lost > Technology, bleh..). > > For -CURRENT/HEAD (make sure your src up to date with recent commit): > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_HEAD_20050913_036softvol.diff > > For RELENG_5: > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050913_036softvol.diff > > Target audience: > 1) AC97 CMI9738(?), CMI9739(?), CMI9761 (these codecs come without > hardware/codec pcm volume controller although the register > responded during probing). > 2) usbaudio without pcm volume controller. > 3) Anything. Tell me. Other than the above, this probably need special > treatment. > > Note on giving feedback: Please include (before / after applying > patch):- > 1) dmesg | grep pcm > 2) output of /usr/sbin/mixer > 3) pciconf -lv (only those multimedia/audio part) > I forgot to mention that I need the output of uname -a as well. > I've uploaded latest revision (037softvol), fix for few silly mistake. Use that instead: For RELENG_5: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050914_037softvol.diff For -CURRENT/HEAD: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_HEAD_20050914_037softvol.diff -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 00:05:10 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8998016A41F for ; Wed, 14 Sep 2005 00:05:10 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68E2143D48 for ; Wed, 14 Sep 2005 00:05:07 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id E708977D50 for ; Wed, 14 Sep 2005 02:05:05 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id D127010C72D for ; Wed, 14 Sep 2005 02:05:02 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-142-209.arcor-ip.net [84.61.142.209]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 9061A77D50 for ; Wed, 14 Sep 2005 02:05:05 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8E04xMA004564 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 14 Sep 2005 02:05:00 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Wed, 14 Sep 2005 02:04:54 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <20050914072850.6d4fb63b.skywizard@MyBSD.org.my> In-Reply-To: <20050914072850.6d4fb63b.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 00:05:10 -0000 --nextPart1801072.cWpUBBTUeh Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday, 14. September 2005 01:28, Ariff Abdullah wrote: > I've uploaded latest revision (037softvol), fix for few silly mistake. > Use that instead: That one works for me. Thanks, it's cool having a an actual working volume= =20 control again after all this time. :-) =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1801072.cWpUBBTUeh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDJ2kqXhc68WspdLARAkAbAKCpemaVxxSxDvTred2pHrqEPE3qsACfe4Qt cKFvTB2RoY/dB+rLglM7bpk= =1Rfq -----END PGP SIGNATURE----- --nextPart1801072.cWpUBBTUeh-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 00:21:43 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8711416A41F; Wed, 14 Sep 2005 00:21:43 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2FB343D48; Wed, 14 Sep 2005 00:21:42 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 38D926CC2B; Wed, 14 Sep 2005 08:29:41 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56520-02; Wed, 14 Sep 2005 08:29:40 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 6AEC76CC26; Wed, 14 Sep 2005 08:29:39 +0800 (MYT) Date: Wed, 14 Sep 2005 08:22:21 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914082221.6e1336cd.skywizard@MyBSD.org.my> In-Reply-To: <200509140204.58998.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <20050914072850.6d4fb63b.skywizard@MyBSD.org.my> <200509140204.58998.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 00:21:43 -0000 On Wed, 14 Sep 2005 02:04:54 +0200 Michael Nottebrock wrote: > On Wednesday, 14. September 2005 01:28, Ariff Abdullah wrote: > > > I've uploaded latest revision (037softvol), fix for few silly > > mistake. Use that instead: > > That one works for me. Thanks, it's cool having a an actual working > volume control again after all this time. :-) > Great! Thanks for the feedback :) The search for Lost Technology continues.. especially for those with uaudio. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 01:59:38 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 DBC6916A41F for ; Wed, 14 Sep 2005 01:59:38 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 203BD43D45 for ; Wed, 14 Sep 2005 01:59:37 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id CA7A643739; Wed, 14 Sep 2005 03:59:36 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id C387C12032; Wed, 14 Sep 2005 03:59:36 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-131-092.arcor-ip.net [84.61.131.92]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 6BC4B7806F; Wed, 14 Sep 2005 03:59:36 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8E1xYW5005904 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 14 Sep 2005 03:59:35 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: Ariff Abdullah Date: Wed, 14 Sep 2005 03:59:27 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509140204.58998.lofi@freebsd.org> <20050914082221.6e1336cd.skywizard@MyBSD.org.my> In-Reply-To: <20050914082221.6e1336cd.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 01:59:39 -0000 --nextPart1807039.oyc8n8zDcv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday, 14. September 2005 02:22, Ariff Abdullah wrote: > Michael Nottebrock wrote: > > > That one works for me. Thanks, it's cool having a an actual working > > volume control again after all this time. :-) > > Great! Thanks for the feedback :) I spoke too soon I'm afraid - with your patch applied, vchans are very brok= en=20 for me now. It seems like only one vchan works at any given time, trying to= =20 use other vchans concurrently while one of the other virtual devices is ope= n=20 fails in mysterious ways (some of the virtual devices are busy although the= y=20 are not opened by anything, others can be opened but applications trying to= =20 use them just block). I also found these messages pcm0:virtual:0: play interrupt timeout, channel dead in dmesg after I had found out the above. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1807039.oyc8n8zDcv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDJ4QFXhc68WspdLARAi4iAKClVIYUuSwyk8GOxuA7N76wT2vF/QCeKb7w 3nfZMDOKKauz4K0Bifblnss= =IE+x -----END PGP SIGNATURE----- --nextPart1807039.oyc8n8zDcv-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 02:11:53 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 5A8E216A41F; Wed, 14 Sep 2005 02:11:53 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4196D43D49; Wed, 14 Sep 2005 02:11:49 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C659B6CC42; Wed, 14 Sep 2005 10:19:49 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57434-01; Wed, 14 Sep 2005 10:19:48 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 1D5076CC26; Wed, 14 Sep 2005 10:19:47 +0800 (MYT) Date: Wed, 14 Sep 2005 10:12:28 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914101228.4b688886.skywizard@MyBSD.org.my> In-Reply-To: <200509140359.33175.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509140204.58998.lofi@freebsd.org> <20050914082221.6e1336cd.skywizard@MyBSD.org.my> <200509140359.33175.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 02:11:53 -0000 On Wed, 14 Sep 2005 03:59:27 +0200 Michael Nottebrock wrote: > On Wednesday, 14. September 2005 02:22, Ariff Abdullah wrote: > > Michael Nottebrock wrote: > > > > > That one works for me. Thanks, it's cool having a an actual > > > working volume control again after all this time. :-) > > > > Great! Thanks for the feedback :) > > I spoke too soon I'm afraid - with your patch applied, vchans are very > broken for me now. It seems like only one vchan works at any given > time, trying to use other vchans concurrently while one of the other > virtual devices is open fails in mysterious ways (some of the virtual > devices are busy although they are not opened by anything, others can > be opened but applications trying to use them just block). > > I also found these messages > > pcm0:virtual:0: play interrupt timeout, channel dead > > in dmesg after I had found out the above. > Can you revisit sys/dev/sound/pcm/ac97.c, look for ac97_fix_volume(codec); , and comment or remove it? I just want to make sure it is the fault of feeder volume, not something else. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 06:35:33 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 D1E6816A41F for ; Wed, 14 Sep 2005 06:35:33 +0000 (GMT) (envelope-from billybongquist@hotmail.com) Received: from hotmail.com (bay107-f3.bay107.hotmail.com [64.4.51.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A078E43D45 for ; Wed, 14 Sep 2005 06:35:31 +0000 (GMT) (envelope-from billybongquist@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 13 Sep 2005 23:35:31 -0700 Message-ID: Received: from 64.4.51.220 by by107fd.bay107.hotmail.msn.com with HTTP; Wed, 14 Sep 2005 06:35:31 GMT X-Originating-IP: [64.4.51.220] X-Originating-Email: [billybongquist@hotmail.com] X-Sender: billybongquist@hotmail.com From: "Chris Bongquist" To: freebsd-multimedia@freebsd.org Date: Wed, 14 Sep 2005 01:35:31 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 14 Sep 2005 06:35:31.0506 (UTC) FILETIME=[80F6F120:01C5B8F6] Subject: Problems with sound. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 06:35:33 -0000 Hello, This is my first post to a list and i was wondering if anybody could help. I have loaded snd_solo.ko and i get this input from /dev/sndstat: FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x1800,0x1840,0x1850 irq 11 kld snd_solo (mixer only) and this output from "mixer": Mixer vol is currently set to 75:75 Mixer synth is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer line1 is currently set to 75:75 Recording source: mic i don't have a pcspeaker and i do hear a beep through my speakers when i backspace at the prompt. But when trying to listen to mp3s or watch movies i've copied onto my computer i don't get any sound. I've asked in help channels, and searched google but have not gotten any answers. Any help would be greatly appreciated. Thank you. _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 10:41:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 C299D16A41F for ; Wed, 14 Sep 2005 10:41:37 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05DB943D45 for ; Wed, 14 Sep 2005 10:41:32 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id AFA592D006; Wed, 14 Sep 2005 12:41:31 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id BC0AC18E0AE; Wed, 14 Sep 2005 12:41:31 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-131-092.arcor-ip.net [84.61.131.92]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 3B20B77C4B; Wed, 14 Sep 2005 12:41:31 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8EAfNoP016000 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 14 Sep 2005 12:41:29 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: Ariff Abdullah Date: Wed, 14 Sep 2005 12:41:20 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509140359.33175.lofi@freebsd.org> <20050914101228.4b688886.skywizard@MyBSD.org.my> In-Reply-To: <20050914101228.4b688886.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?iso-8859-1?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?iso-8859-1?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 10:41:38 -0000 On Wednesday, 14. September 2005 04:12, Ariff Abdullah wrote: > Can you revisit sys/dev/sound/pcm/ac97.c, look for > ac97_fix_volume(codec); , and comment or remove it? I just want to make > sure it is the fault of feeder volume, not something else. Yes, that makes vchans work again (and the pcm mixer is binary again, so I guess I commented out the right line, too). However, it seems I also found another bug related to vchans somewhere else in that patchset - and one in the current unpatched 5-STABLE: I have hw.snd.pcm0.vchans=4 set in /etc/sysctl.conf With an unpatched kernel (5-STABLE), this gives me: [lofi@kiste]:0:~ > ls -l /dev/dsp* crw-rw-rw- 1 root wheel 30, 3 14 Sep 12:31 /dev/dsp0.0 crw-rw-rw- 1 root wheel 30, 0x00010003 14 Sep 12:31 /dev/dsp0.1 crw-rw-rw- 1 root wheel 30, 0x00020003 14 Sep 12:31 /dev/dsp0.2 crw-rw-rw- 1 root wheel 30, 0x00030003 14 Sep 12:31 /dev/dsp0.3 crw-rw-rw- 1 root wheel 30, 0x00040003 14 Sep 12:31 /dev/dsp0.4 crw-rw-rw- 1 root wheel 30, 0x00050003 14 Sep 12:31 /dev/dsp0.5 crw-rw-rw- 1 root wheel 30, 5 14 Sep 12:29 /dev/dspW0.0 crw-rw-rw- 1 root wheel 30, 0x00010005 14 Sep 12:29 /dev/dspW0.1 crw-rw-rw- 1 root wheel 30, 0x00020005 14 Sep 12:29 /dev/dspW0.2 crw-rw-rw- 1 root wheel 30, 0x00030005 14 Sep 12:29 /dev/dspW0.3 crw-rw-rw- 1 root wheel 30, 0x00040005 14 Sep 12:29 /dev/dspW0.4 crw-rw-rw- 1 root wheel 30, 0x00050005 14 Sep 12:29 /dev/dspW0.5 crw-rw-rw- 1 root wheel 30, 0x0001000b 14 Sep 12:29 /dev/dspr0.1 i.e. six virtual devices rather then four. I have no idea if that has always been the case or not - I never bothered to actually cound the devices before, after the four I requested were there! :-) With a patched kernel however I get: [lofi@kiste]:0:~ > ls -l /dev/dsp* crw-rw-rw- 1 root wheel 30, 3 14 Sep 12:36 /dev/dsp0.0 crw-rw-rw- 1 root wheel 30, 0x00020003 14 Sep 12:36 /dev/dsp0.2 crw-rw-rw- 1 root wheel 30, 0x00030003 14 Sep 12:37 /dev/dsp0.3 crw-rw-rw- 1 root wheel 30, 0x00040003 14 Sep 12:36 /dev/dsp0.4 crw-rw-rw- 1 root wheel 30, 0x00050003 14 Sep 12:36 /dev/dsp0.5 crw-rw-rw- 1 root wheel 30, 0x00060003 14 Sep 12:36 /dev/dsp0.6 crw-rw-rw- 1 root wheel 30, 5 14 Sep 12:36 /dev/dspW0.0 crw-rw-rw- 1 root wheel 30, 0x00020005 14 Sep 12:36 /dev/dspW0.2 crw-rw-rw- 1 root wheel 30, 0x00030005 14 Sep 12:36 /dev/dspW0.3 crw-rw-rw- 1 root wheel 30, 0x00040005 14 Sep 12:36 /dev/dspW0.4 crw-rw-rw- 1 root wheel 30, 0x00050005 14 Sep 12:36 /dev/dspW0.5 crw-rw-rw- 1 root wheel 30, 0x00060005 14 Sep 12:36 /dev/dspW0.6 crw-rw-rw- 1 root wheel 30, 0x0002000b 14 Sep 12:36 /dev/dspr0.2 Note how /dev/dsp(W|r)0.1 are missing and instead I get /dev/dsp(W)0.6 and /dev/dspr0.2 ... -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 12:15:21 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 ED9FE16A41F; Wed, 14 Sep 2005 12:15:21 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2958F43D45; Wed, 14 Sep 2005 12:15:20 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9F0716CC26; Wed, 14 Sep 2005 20:23:21 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59078-09; Wed, 14 Sep 2005 20:23:20 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 992C66CC25; Wed, 14 Sep 2005 20:23:19 +0800 (MYT) Date: Wed, 14 Sep 2005 20:16:00 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914201600.383df2ce.skywizard@MyBSD.org.my> In-Reply-To: <200509141241.22914.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509140359.33175.lofi@freebsd.org> <20050914101228.4b688886.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 12:15:22 -0000 On Wed, 14 Sep 2005 12:41:20 +0200 Michael Nottebrock wrote: > On Wednesday, 14. September 2005 04:12, Ariff Abdullah wrote: > > > Can you revisit sys/dev/sound/pcm/ac97.c, look for > > ac97_fix_volume(codec); , and comment or remove it? I just want to > > make sure it is the fault of feeder volume, not something else. > > Yes, that makes vchans work again (and the pcm mixer is binary again, > so I guess I commented out the right line, too). > damn that feeder volume :) > However, it seems I also found another bug related to vchans somewhere > else in that patchset - and one in the current unpatched 5-STABLE: > > I have hw.snd.pcm0.vchans=4 set in /etc/sysctl.conf > > With an unpatched kernel (5-STABLE), this gives me: > > [lofi@kiste]:0:~ > ls -l /dev/dsp* > crw-rw-rw- 1 root wheel 30, 3 14 Sep 12:31 /dev/dsp0.0 > crw-rw-rw- 1 root wheel 30, 0x00010003 14 Sep 12:31 /dev/dsp0.1 > crw-rw-rw- 1 root wheel 30, 0x00020003 14 Sep 12:31 /dev/dsp0.2 > crw-rw-rw- 1 root wheel 30, 0x00030003 14 Sep 12:31 /dev/dsp0.3 > crw-rw-rw- 1 root wheel 30, 0x00040003 14 Sep 12:31 /dev/dsp0.4 > crw-rw-rw- 1 root wheel 30, 0x00050003 14 Sep 12:31 /dev/dsp0.5 > crw-rw-rw- 1 root wheel 30, 5 14 Sep 12:29 /dev/dspW0.0 > crw-rw-rw- 1 root wheel 30, 0x00010005 14 Sep 12:29 /dev/dspW0.1 > crw-rw-rw- 1 root wheel 30, 0x00020005 14 Sep 12:29 /dev/dspW0.2 > crw-rw-rw- 1 root wheel 30, 0x00030005 14 Sep 12:29 /dev/dspW0.3 > crw-rw-rw- 1 root wheel 30, 0x00040005 14 Sep 12:29 /dev/dspW0.4 > crw-rw-rw- 1 root wheel 30, 0x00050005 14 Sep 12:29 /dev/dspW0.5 > crw-rw-rw- 1 root wheel 30, 0x0001000b 14 Sep 12:29 /dev/dspr0.1 > > i.e. six virtual devices rather then four. I have no idea if that has > always been the case or not - I never bothered to actually cound the > devices before, after the four I requested were there! :-) > It has always been the case. It's not a bug (depend on bug definition): dsp0.0 = hardware channel dsp0.1 = master / parent channel (feeder_mix_s16) dsp0.2,3,4,5 = virtual channel Device naming / numbering is mega confusing, I'll address this in future. > With a patched kernel however I get: > > [lofi@kiste]:0:~ > ls -l /dev/dsp* > crw-rw-rw- 1 root wheel 30, 3 14 Sep 12:36 /dev/dsp0.0 > crw-rw-rw- 1 root wheel 30, 0x00020003 14 Sep 12:36 /dev/dsp0.2 > crw-rw-rw- 1 root wheel 30, 0x00030003 14 Sep 12:37 /dev/dsp0.3 > crw-rw-rw- 1 root wheel 30, 0x00040003 14 Sep 12:36 /dev/dsp0.4 > crw-rw-rw- 1 root wheel 30, 0x00050003 14 Sep 12:36 /dev/dsp0.5 > crw-rw-rw- 1 root wheel 30, 0x00060003 14 Sep 12:36 /dev/dsp0.6 > crw-rw-rw- 1 root wheel 30, 5 14 Sep 12:36 /dev/dspW0.0 > crw-rw-rw- 1 root wheel 30, 0x00020005 14 Sep 12:36 /dev/dspW0.2 > crw-rw-rw- 1 root wheel 30, 0x00030005 14 Sep 12:36 /dev/dspW0.3 > crw-rw-rw- 1 root wheel 30, 0x00040005 14 Sep 12:36 /dev/dspW0.4 > crw-rw-rw- 1 root wheel 30, 0x00050005 14 Sep 12:36 /dev/dspW0.5 > crw-rw-rw- 1 root wheel 30, 0x00060005 14 Sep 12:36 /dev/dspW0.6 > crw-rw-rw- 1 root wheel 30, 0x0002000b 14 Sep 12:36 /dev/dspr0.2 > > Note how /dev/dsp(W|r)0.1 are missing and instead I get /dev/dsp(W)0.6 > > and /dev/dspr0.2 ... > Same as above, only that the patched version increase the vchan robustness at the cost of more confusion :) Ok, back to our real problem. Can you uncomment / restore back ac97_fix_volume(codec); , and apply this: --- channel.c.diff BEGIN --- --- sys/dev/sound/pcm/channel.c.orig Wed Sep 14 19:47:43 2005 +++ sys/dev/sound/pcm/channel.c Wed Sep 14 19:48:04 2005 @@ -884,6 +884,7 @@ chn_lockdestroy(c); return ret; +#if 0 } else if (c->direction == PCMDIR_PLAY && c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && c->parentsnddev->mixer_dev) { @@ -899,6 +900,7 @@ CHN_LOCK(c); chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); CHN_UNLOCK(c); +#endif } return 0; @@ -1331,7 +1333,8 @@ c->feederflags &= ~(1 << FEEDER_VOLUME); if (c->direction == PCMDIR_PLAY && !(c->flags & (CHN_F_VIRTUAL|CHN_F_HAS_SLAVE)) && - c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL)) + c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && + c->parentsnddev->mixer_dev) c->feederflags |= 1 << FEEDER_VOLUME; flags = c->feederflags; fmtlist = chn_getcaps(c)->fmtlist; @@ -1396,6 +1399,17 @@ } sndbuf_setfmt(c->bufhard, hwfmt); + + if ((flags & (1 << FEEDER_VOLUME))) { + int vol = 100 | (100 << 8); + + CHN_UNLOCK(c); + if (mixer_ioctl(c->parentsnddev->mixer_dev, + MIXER_READ(SOUND_MIXER_PCM), (caddr_t)&vol, -1, NULL) != 0) + device_printf(c->dev, "Soft Volume: Failed to read default value\n"); + CHN_LOCK(c); + chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); + } return 0; } --- channel.c.diff END --- -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 12:34:04 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 094B516A43D; Wed, 14 Sep 2005 12:34:04 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AE1643D46; Wed, 14 Sep 2005 12:34:03 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 845806CC26; Wed, 14 Sep 2005 20:42:05 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59857-01; Wed, 14 Sep 2005 20:42:03 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9EA466CC22; Wed, 14 Sep 2005 20:42:03 +0800 (MYT) Date: Wed, 14 Sep 2005 20:34:45 +0800 From: Ariff Abdullah To: lofi@freebsd.org Message-Id: <20050914203445.2f8c1ae6.skywizard@MyBSD.org.my> In-Reply-To: <20050914201600.383df2ce.skywizard@MyBSD.org.my> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509140359.33175.lofi@freebsd.org> <20050914101228.4b688886.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 12:34:04 -0000 On Wed, 14 Sep 2005 20:16:00 +0800 Ariff Abdullah wrote: > + MIXER_READ(SOUND_MIXER_PCM), (caddr_t)&vol, -1, NULL) != > 0) > + device_printf(c->dev, "Soft Volume: Failed to read default > value\n"); > + CHN_LOCK(c); > + chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); > + } > > return 0; > } > > --- channel.c.diff END --- > > -- > Ooopsss... long lines was accidentaly wrapped. Again: --- channel.c.diff BEGIN --- --- sys/dev/sound/pcm/channel.c.orig Wed Sep 14 19:47:43 2005 +++ sys/dev/sound/pcm/channel.c Wed Sep 14 19:48:04 2005 @@ -884,6 +884,7 @@ chn_lockdestroy(c); return ret; +#if 0 } else if (c->direction == PCMDIR_PLAY && c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && c->parentsnddev->mixer_dev) { @@ -899,6 +900,7 @@ CHN_LOCK(c); chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); CHN_UNLOCK(c); +#endif } return 0; @@ -1331,7 +1333,8 @@ c->feederflags &= ~(1 << FEEDER_VOLUME); if (c->direction == PCMDIR_PLAY && !(c->flags & (CHN_F_VIRTUAL|CHN_F_HAS_SLAVE)) && - c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL)) + c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && + c->parentsnddev->mixer_dev) c->feederflags |= 1 << FEEDER_VOLUME; flags = c->feederflags; fmtlist = chn_getcaps(c)->fmtlist; @@ -1396,6 +1399,17 @@ } sndbuf_setfmt(c->bufhard, hwfmt); + + if ((flags & (1 << FEEDER_VOLUME))) { + int vol = 100 | (100 << 8); + + CHN_UNLOCK(c); + if (mixer_ioctl(c->parentsnddev->mixer_dev, + MIXER_READ(SOUND_MIXER_PCM), (caddr_t)&vol, -1, NULL) != 0) + device_printf(c->dev, "Soft Volume: Failed to read default value\n"); + CHN_LOCK(c); + chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); + } return 0; } --- channel.c.diff END --- -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 12:40:52 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 5318E16A41F for ; Wed, 14 Sep 2005 12:40:52 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B60343D45 for ; Wed, 14 Sep 2005 12:40:49 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-09-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 911B842F87; Wed, 14 Sep 2005 14:40:44 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id 7D5A2752C3; Wed, 14 Sep 2005 14:40:44 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-131-092.arcor-ip.net [84.61.131.92]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 142BD59D85; Wed, 14 Sep 2005 14:40:44 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8ECegs9017391 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 14 Sep 2005 14:40:42 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: Ariff Abdullah Date: Wed, 14 Sep 2005 14:40:39 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> In-Reply-To: <20050914201600.383df2ce.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 12:40:52 -0000 --nextPart3721780.Wzyi9TT0VD Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday, 14. September 2005 14:16, Ariff Abdullah wrote: > It has always been the case. It's not a bug (depend on bug definition): > dsp0.0 =3D hardware channel > dsp0.1 =3D master / parent channel (feeder_mix_s16) > dsp0.2,3,4,5 =3D virtual channel Oy. Good to know, that. > Ok, back to our real problem. Can you uncomment / restore back > ac97_fix_volume(codec); , and apply this: Can you please resend that as a proper attachment? Fiddling diffs out of a= =20 mail body is painful enough as it is, but this one also has wrapped lines .= =2E. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart3721780.Wzyi9TT0VD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDKBpJXhc68WspdLARAt7RAJ9+aZrYfoXmJ+pLTvHZTvhkxo7wqQCgovwX lXhGDUo7HhDtMYolCWqw7kY= =jQlw -----END PGP SIGNATURE----- --nextPart3721780.Wzyi9TT0VD-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 12:56:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8644016A41F; Wed, 14 Sep 2005 12:56:42 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED79D43D45; Wed, 14 Sep 2005 12:56:41 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E069C6CC27; Wed, 14 Sep 2005 21:04:43 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59857-02; Wed, 14 Sep 2005 21:04:41 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 656A86CC26; Wed, 14 Sep 2005 21:04:40 +0800 (MYT) Date: Wed, 14 Sep 2005 20:57:22 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914205722.017ff911.skywizard@MyBSD.org.my> In-Reply-To: <200509141440.41530.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141440.41530.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__14_Sep_2005_20_57_22_+0800_Y9p=P0re.Qxvs+09" X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 12:56:42 -0000 This is a multi-part message in MIME format. --Multipart=_Wed__14_Sep_2005_20_57_22_+0800_Y9p=P0re.Qxvs+09 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 14 Sep 2005 14:40:39 +0200 Michael Nottebrock wrote: > On Wednesday, 14. September 2005 14:16, Ariff Abdullah wrote: > > > It has always been the case. It's not a bug (depend on bug > > definition): dsp0.0 = hardware channel > > dsp0.1 = master / parent channel (feeder_mix_s16) > > dsp0.2,3,4,5 = virtual channel > > Oy. Good to know, that. > > > Ok, back to our real problem. Can you uncomment / restore back > > ac97_fix_volume(codec); , and apply this: > > Can you please resend that as a proper attachment? Fiddling diffs out > of a mail body is painful enough as it is, but this one also has > wrapped lines ... > Ok. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) --Multipart=_Wed__14_Sep_2005_20_57_22_+0800_Y9p=P0re.Qxvs+09 Content-Type: text/plain; name="channel.c.diff" Content-Disposition: attachment; filename="channel.c.diff" Content-Transfer-Encoding: quoted-printable --- sys/dev/sound/pcm/channel.c.orig Wed Sep 14 19:47:43 2005 +++ sys/dev/sound/pcm/channel.c Wed Sep 14 19:48:04 2005 @@ -884,6 +884,7 @@ chn_lockdestroy(c); =20 return ret; +#if 0 } else if (c->direction =3D=3D PCMDIR_PLAY && c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && c->parentsnddev->mixer_dev) { @@ -899,6 +900,7 @@ CHN_LOCK(c); chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); CHN_UNLOCK(c); +#endif } =20 return 0; @@ -1331,7 +1333,8 @@ c->feederflags &=3D ~(1 << FEEDER_VOLUME); if (c->direction =3D=3D PCMDIR_PLAY && !(c->flags & (CHN_F_VIRTUAL|CHN_F_HAS_SLAVE)) && - c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL)) + c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && + c->parentsnddev->mixer_dev) c->feederflags |=3D 1 << FEEDER_VOLUME; flags =3D c->feederflags; fmtlist =3D chn_getcaps(c)->fmtlist; @@ -1396,6 +1399,17 @@ } =20 sndbuf_setfmt(c->bufhard, hwfmt); + + if ((flags & (1 << FEEDER_VOLUME))) { + int vol =3D 100 | (100 << 8); + + CHN_UNLOCK(c); + if (mixer_ioctl(c->parentsnddev->mixer_dev, + MIXER_READ(SOUND_MIXER_PCM), (caddr_t)&vol, -1, NULL) !=3D 0) + device_printf(c->dev, "Soft Volume: Failed to read default value\n"); + CHN_LOCK(c); + chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); + } =20 return 0; } --Multipart=_Wed__14_Sep_2005_20_57_22_+0800_Y9p=P0re.Qxvs+09-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 14:18:12 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 74A4C16A41F for ; Wed, 14 Sep 2005 14:18:12 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF24143D45 for ; Wed, 14 Sep 2005 14:18:11 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 8C561791F9; Wed, 14 Sep 2005 16:18:10 +0200 (CEST) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 5F11510D4B5; Wed, 14 Sep 2005 16:18:07 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-131-092.arcor-ip.net [84.61.131.92]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 0463F8757E; Wed, 14 Sep 2005 16:18:09 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8EEI7Fv018611 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 14 Sep 2005 16:18:07 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: Ariff Abdullah Date: Wed, 14 Sep 2005 16:18:01 +0200 User-Agent: KMail/1.8.2 References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> In-Reply-To: <20050914201600.383df2ce.skywizard@MyBSD.org.my> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 14:18:12 -0000 --nextPart2373313.82TVACz65H Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday, 14. September 2005 14:16, Ariff Abdullah wrote: > > > Can you revisit sys/dev/sound/pcm/ac97.c, look for > > > ac97_fix_volume(codec); , and comment or remove it? I just want to > > > make sure it is the fault of feeder volume, not something else. > > > > Yes, that makes vchans work again (and the pcm mixer is binary again, > > so I guess I commented out the right line, too). > > damn that feeder volume :) > > Can you uncomment / restore back > ac97_fix_volume(codec); , and apply this: > > [...] With this extra bit applied, everything works as expected. Thanks! Cheers, =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart2373313.82TVACz65H Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDKDEeXhc68WspdLARAlvtAKCSjG3rscLz6hPBqp+/eq4hhNCL3wCaAp7t N6mHnXpfo4bEcWNvFuNPQ2A= =zhDb -----END PGP SIGNATURE----- --nextPart2373313.82TVACz65H-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 15:30:09 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 D92B416A41F; Wed, 14 Sep 2005 15:30:09 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B95743D4C; Wed, 14 Sep 2005 15:30:07 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 4F0296CC25; Wed, 14 Sep 2005 23:38:09 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69117-01; Wed, 14 Sep 2005 23:38:08 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C58936CC22; Wed, 14 Sep 2005 23:38:07 +0800 (MYT) Date: Wed, 14 Sep 2005 23:30:49 +0800 From: Ariff Abdullah To: Michael Nottebrock Message-Id: <20050914233049.70de9af6.skywizard@MyBSD.org.my> In-Reply-To: <200509141618.06677.lofi@freebsd.org> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 15:30:10 -0000 On Wed, 14 Sep 2005 16:18:01 +0200 Michael Nottebrock wrote: > > With this extra bit applied, everything works as expected. Thanks! > Great :). The entire patchset updated: For RELENG_5: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050914_038softvol.diff For -CURRENT/HEAD: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_HEAD_20050914_038softvol.diff -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 21:54:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 11B9516A41F for ; Wed, 14 Sep 2005 21:54:42 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxsf01.cluster1.charter.net (mxsf01.cluster1.charter.net [209.225.28.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE3E043D48 for ; Wed, 14 Sep 2005 21:54:40 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxip03a.cluster1.charter.net (mxip03a.cluster1.charter.net [209.225.28.133]) by mxsf01.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j8ELsdOk014155 for ; Wed, 14 Sep 2005 17:54:39 -0400 Received: from 68-114-28-99.dhcp.gwnt.ga.charter.com (HELO services.403forbidden.net) ([68.114.28.99]) by mxip03a.cluster1.charter.net with ESMTP; 14 Sep 2005 17:54:38 -0400 X-IronPort-AV: i="3.97,110,1125892800"; d="scan'208"; a="1392360006:sNHT17444268" Received: from atlantis.403forbidden.net (atlantis.403forbidden.net [10.0.0.10]) by services.403forbidden.net (8.13.1/8.13.1) with ESMTP id j8ELsxxL033371 for ; Wed, 14 Sep 2005 17:54:59 -0400 (EDT) (envelope-from steven@403forbidden.net) Date: Wed, 14 Sep 2005 17:54:41 -0400 (EDT) From: "Steven S." To: freebsd-multimedia@freebsd.org Message-ID: <20050914174543.L45764@atlantis.403forbidden.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: any hope for maestro support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 21:54:42 -0000 My original PR is now 1 1/2 years old (kern/63204) and still no luck of getting the maestro-2e (ES1978) to work. While you can load the sound driver and it "seems" to work the mixer has no options and you cannot get any output out of the speakers. FreeBSD 5.4-STABLE FreeBSD 5.4-STABLE #3: Wed Sep 14 15:28:56 EDT 2005 root@:/us r/obj/usr/src/sys/WIRED i386 agp0@pci0:0:0: class=0x060000 card=0x00011179 chip=0x71908086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x71918086 rev=0x03 hdr=0x01 5% vendor = 'Intel Corporation' device = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge' class = bridge subclass = PCI-PCI cbb0@pci0:2:0: class=0x060700 card=0x00011179 chip=0x060f1179 rev=0x05 hdr=0x02 vendor = 'Toshiba America Information Systems' device = 'ToPIC97 CardBus Controller' class = bridge subclass = PCI-CardBus cbb1@pci0:2:1: class=0x060700 card=0x00011179 chip=0x060f1179 rev=0x05 hdr=0x02 vendor = 'Toshiba America Information Systems' device = 'ToPIC97 CardBus Controller' class = bridge subclass = PCI-CardBus isab0@pci0:5:0: class=0x068000 card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge' class = bridge atapci0@pci0:5:1: class=0x010180 card=0x00000000 chip=0x71118086 rev=0x01 hdr=0 x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M IDE Controller' class = mass storage subclass = ATA none0@pci0:5:2: class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M USB Interface' class = serial bus subclass = USB none1@pci0:5:3: class=0x068000 card=0x00000000 chip=0x71138086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller' class = bridge none2@pci0:10:0: class=0x078000 card=0x00011179 chip=0x07011179 rev=0x23 hdr=0 x00 vendor = 'Toshiba America Information Systems' device = 'vt82c693 PCI Communication Device' class = simple comms pcm0@pci0:12:0: class=0x040100 card=0x00011179 chip=0x1978125d rev=0x10 hdr=0x00 vendor = 'ESS Technology' device = 'ES1978 Maestro-2E Audiodrive, ES1970 Canyon3D' class = multimedia subclass = audio none3@pci1:0:0: class=0x030000 card=0x00021179 chip=0x95251023 rev=0x49 hdr=0x00 vendor = 'Trident Microsystems' device = 'Cyber9525 Video Accelerator' class = display subclass = VGA Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-RELEASE #0: Wed Sep 14 00:15:21 EDT 2005 root@:/usr/obj/usr/src/sys/WIRED link_elf: symbol devclass_get_drivers undefined KLD file acpi.ko - could not finalize loading Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (399.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x66a Stepping = 10 Features=0x183f9ff real memory = 201195520 (191 MB) avail memory = 191410176 (182 MB) npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) cbb0: at device 2.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: at device 2.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 isab0: at device 5.0 on pci0 isa0: on isab0 atapci0: port 0xfe60-0xfe6f,0x376,0x170-0x177,0x3f6,0 x1f0-0x1f7 at device 5.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0xffe0-0xffff irq 11 at device 5.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 5.3 (no driver attached) pci0: at device 10.0 (no driver attached) pci0: at device 12.0 (no driver attached) orm0: at iomem 0xe4000-0xeffff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) ppc1: parallel port not found. Timecounter "TSC" frequency 399062900 Hz quality 800 Timecounters tick every 10.000 msec ad0: 38154MB [77520/16/63] at ata0-master UDMA33 acd0: DVDROM at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a ed1: at port 0x100-0x11f irq 11 functio n 0 config 16 on pccard0 ed1: Ethernet address: 00:e0:98:08:63:f8 ed1: if_start running deferred for Giant ed1: type DL10019 (16 bit) miibus0: on ed1 lxtphy0: on miibus0 lxtphy0: 100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, a uto Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...1 1 0 0 done No buffers busy after final sync Uptime: 3h37m57s Rebooting... Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #3: Wed Sep 14 15:28:56 EDT 2005 root@:/usr/obj/usr/src/sys/WIRED Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (399.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x66a Stepping = 10 Features=0x183f9ff real memory = 201195520 (191 MB) avail memory = 191406080 (182 MB) npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) can't fetch resources for \\_SB_.PCI0.FNC0.COM_ - AE_BAD_DATA can't fetch resources for \\_SB_.PCI0.FNC0.PRT1 - AE_BAD_DATA Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) cbb0: at device 2.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: at device 2.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 isab0: at device 5.0 on pci0 isa0: on isab0 atapci0: port 0xfe60-0xfe6f,0x376,0x170-0x177,0x3f6,0 x1f0-0x1f7 at device 5.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 5.2 (no driver attached) pci0: at device 5.3 (no driver attached) pci0: at device 10.0 (no driver attached) pci0: at device 12.0 (no driver attached) acpi_lid0: on acpi0 acpi_cmbat0: on acpi0 acpi_acad0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: parallel port not found. ppc0: parallel port not found. orm0: at iomem 0xe4000-0xeffff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 399064122 Hz quality 800 Timecounters tick every 10.000 msec ad0: 38154MB [77520/16/63] at ata0-master UDMA33 acd0: DVDROM at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a ed1: at port 0x100-0x11f irq 11 functio n 0 config 16 on pccard0 ed1: Ethernet address: 00:e0:98:08:63:f8 ed1: if_start running deferred for Giant ed1: type DL10019 (16 bit) miibus0: on ed1 lxtphy0: on miibus0 lxtphy0: 100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto when i load the driver.. pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 on pci0 pcm0: agg_rdcodec() RW_DONE timed out. pcm0: will perform cold reset. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: agg_wrcodec() PROGLESS timed out. pcm0: pcm0: agg_rdcodec() PROGLESS timed out. pcm0: agg_rdcodec() RW_DONE timed out. pcm0: ac97 codec reports dac not ready pcm0: agg_wrcodec() PROGLESS timed out. pcm0: agg_wrcodec() PROGLESS timed out. Id Refs Address Size Name 1 5 0xc0400000 36cf38 kernel 2 1 0xc076d000 7200 snd_maestro.ko 3 15 0xc0775000 58034 acpi.ko FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at I/O port 0xfc00 irq 11 kld snd_maestro (4p/0r/4v channels duplex default) From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 22:32:29 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 557C316A41F for ; Wed, 14 Sep 2005 22:32:29 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2E2143D49 for ; Wed, 14 Sep 2005 22:32:23 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so52528nzd for ; Wed, 14 Sep 2005 15:32:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:x-mailer:mime-version:content-type:content-transfer-encoding; b=CrZFsFomYrLlq83wePjJQPaEuRmgBQEAFq3baGD1PQIWEWc2OsM54OncfUYFWY+lmS3IBzim6GnWWes2BTq7tASO1zbHSla0Ux6oy5lwjMhYVSYIe5ZCtor6O/QTTpkk4yLQhHaf41jSHwYUj+LaJ3hCFJllBm8dQKu/GJxhhLA= Received: by 10.54.61.10 with SMTP id j10mr1261245wra; Wed, 14 Sep 2005 15:02:29 -0700 (PDT) Received: from insomnia.localnet.net ( [66.138.229.115]) by mx.gmail.com with ESMTP id 11sm93098wrl.2005.09.14.15.02.29; Wed, 14 Sep 2005 15:02:29 -0700 (PDT) Date: Wed, 14 Sep 2005 17:02:28 -0500 From: "Mike S." To: freebsd-multimedia@freebsd.org Message-Id: <20050914170228.328c571e.perlfu@gmail.com> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; amd64-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 22:32:29 -0000 I've been having hard locks that are seeming related to vchans. I can't manage to verify this with the logs, but judging by the fact that the locks only occur when two sounds are played together, and only some of the time at that. I'm going to guess that's the issue. Either way, I've been trying to use the patch found at, http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/, it's helped some, but hasn't entirely fixed the problem. When I tried to upgrade the patch to the newest version, I got this error.. /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c: In function `ac97_fix_volume': /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:571: error: `SD_F_SOFTVOL' undeclared (first use in this function) /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:571: error: (Each undeclared identifier is reported only once /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:571: error: for each function it appears in.) /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c: At top level: /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:576: error: redefinition of 'ac97_fix_volume' /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:544: error: previous definition of 'ac97_fix_volume' was here /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c: In function `ac97_fix_volume': /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:603: error: `SD_F_SOFTVOL' undeclared (first use in this function) /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c: In function `ac97_initmixer': /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:631: warning: unused variable `bit' /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:633: warning: unused variable `reg' /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c: At top level: /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c:544: warning: 'ac97_fix_volume' defined but not used *** Error code 1 Stop in /usr/src/sys/modules/sound/sound. *** Error code 1 Stop in /usr/src/sys/modules/sound. Also, my sound card is a VIA 8233. Any insight, or suggestions regarding how to fix the locks, and or get the patch working would be greatly appreciated. Thanks in advance. From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 14 22:58:52 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 31AE016A41F for ; Wed, 14 Sep 2005 22:58:52 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DEC943D53 for ; Wed, 14 Sep 2005 22:58:51 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id CD0FA6CC2C; Thu, 15 Sep 2005 07:06:54 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74615-05; Thu, 15 Sep 2005 07:06:52 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id A3FBD6CC2B; Thu, 15 Sep 2005 07:06:51 +0800 (MYT) Date: Thu, 15 Sep 2005 06:58:46 +0800 From: Ariff Abdullah To: "Mike S." Message-Id: <20050915065846.0732a58b.skywizard@MyBSD.org.my> In-Reply-To: <20050914170228.328c571e.perlfu@gmail.com> References: <20050914170228.328c571e.perlfu@gmail.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 22:58:52 -0000 On Wed, 14 Sep 2005 17:02:28 -0500 "Mike S." wrote: > I've been having hard locks that are seeming related to vchans. I > can't manage to verify this with the logs, but judging by the fact > that the locks only occur when two sounds are played together, and > only some of the time at that. I'm going to guess that's the > issue. Either way, I've been trying to use the patch found at, > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/, it's > helped some, but hasn't entirely fixed the problem. When I tried > to upgrade the patch to the newest version, I got this error.. > > [ .. ] > > > Also, my sound card is a VIA 8233. Any insight, or suggestions > regarding how to fix the locks, and or get the patch working would > be greatly appreciated. Thanks in advance. > Wow wow.. hold on a second.. 1) uname -a 2) full dmesg 3) pciconf -lv (only multimedia / audio part) 4) cat /dev/sndstat 5) You pick wrong patch, from wrong directory. You are not supposed to pick anything from '/incoming/' 6) Judging from those compiler error message, your source already messed up. You need a clean, pristine source to apply those patches. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 03:36:31 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 709C316A41F for ; Thu, 15 Sep 2005 03:36:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D239043D45 for ; Thu, 15 Sep 2005 03:36:30 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so141557nzd for ; Wed, 14 Sep 2005 20:36:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=uJcGOLQLH0Y797MxNTMLZ6siW9EYTraGMWZOKLVPo2YkhqOWc2UOZn1BhDqsGXJqf0PbPSX6bMzRWTTOPBaA4AZrcbtFulZrF3KWyvgMEM72McQfeHa5uS3jEluPpXAIau0yKZ+XTde8r4PgyGTLuatTrAiA5vY1VOR8P+XE23Q= Received: by 10.36.3.20 with SMTP id 20mr1427628nzc; Wed, 14 Sep 2005 20:36:30 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.211]) by mx.gmail.com with ESMTP id 17sm372439nzo.2005.09.14.20.36.27; Wed, 14 Sep 2005 20:36:28 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j8F3b3ln018315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Sep 2005 12:37:04 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j8F3awCm018314; Thu, 15 Sep 2005 12:36:58 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Thu, 15 Sep 2005 12:36:58 +0900 From: Pyun YongHyeon To: "Steven S." Message-ID: <20050915033658.GB17602@rndsoft.co.kr> References: <20050914174543.L45764@atlantis.403forbidden.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20050914174543.L45764@atlantis.403forbidden.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: any hope for maestro support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 03:36:31 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 14, 2005 at 05:54:41PM -0400, Steven S. wrote: > > My original PR is now 1 1/2 years old (kern/63204) and still no luck of > getting the maestro-2e (ES1978) to work. While you can load the sound > driver and it "seems" to work the mixer has no options and you cannot get > any output out of the speakers. > > [...] > when i load the driver.. > > pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 > on pci0 > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: will perform cold reset. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: > pcm0: agg_rdcodec() PROGLESS timed out. > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: ac97 codec reports dac not ready > pcm0: agg_wrcodec() PROGLESS timed out. > pcm0: agg_wrcodec() PROGLESS timed out. > > > Id Refs Address Size Name > 1 5 0xc0400000 36cf38 kernel > 2 1 0xc076d000 7200 snd_maestro.ko > 3 15 0xc0775000 58034 acpi.ko > > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at I/O port 0xfc00 irq 11 kld > snd_maestro (4p/0r/4v > channels duplex default) > Would you try attaced patch? I don't have the hardware so it's just guess work. -- Regards, Pyun YongHyeon --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="maestro.patch" --- sys/dev/sound/pci/maestro.c.orig Tue Mar 1 17:58:05 2005 +++ sys/dev/sound/pci/maestro.c Thu Sep 15 12:46:56 2005 @@ -227,7 +227,7 @@ static inline u_int16_t wc_rdchctl(struct agg_info*, int); static inline void wc_wrchctl(struct agg_info*, int, u_int16_t); -static inline void agg_stopclock(struct agg_info*, int part, int st); +static void agg_stopclock(struct agg_info*, int, int); static inline void agg_initcodec(struct agg_info*); static void agg_init(struct agg_info*); @@ -284,7 +284,7 @@ { int timo; - timo = msec * hz / 1000; + timo = ((msec) * hz + 999) / 1000; if (timo == 0) timo = 1; #ifdef USING_MUTEX @@ -345,16 +345,18 @@ static inline int agg_codec_wait4idle(struct agg_info *ess) { - unsigned t = 26; + int i, step, to; - while (AGG_RD(ess, PORT_CODEC_STAT, 1) & CODEC_STAT_MASK) { - if (--t == 0) - return EBUSY; - DELAY(2); /* 20.8us / 13 */ + to = 10000; /* 10ms */ + for (i = 0, step = 1; i < to; i += step) { + if ((AGG_RD(ess, PORT_CODEC_STAT, 1) & CODEC_STAT_MASK) == 0) + return (0); + step += step; + DELAY(step); } - return 0; -} + return (EBUSY); +} static inline int agg_rdcodec(struct agg_info *ess, int regno) @@ -562,7 +564,7 @@ /* -------------------------------------------------------------------- */ /* Power management */ -static inline void +static void agg_stopclock(struct agg_info *ess, int part, int st) { u_int32_t data; @@ -614,9 +616,9 @@ AGG_WR(ess, PORT_GPIO_MASK, 0xff6, 2); AGG_WR(ess, PORT_GPIO_DIR, data | 0x009, 2); AGG_WR(ess, PORT_GPIO_DATA, 0x000, 2); - DELAY(2); + DELAY(20); AGG_WR(ess, PORT_GPIO_DATA, 0x001, 2); - DELAY(1); + DELAY(20); AGG_WR(ess, PORT_GPIO_DATA, 0x009, 2); agg_sleep(ess, "agginicd", 500); AGG_WR(ess, PORT_GPIO_DIR, data, 2); --9amGYk9869ThD9tj-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 18:08:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 8E2D316A41F for ; Thu, 15 Sep 2005 18:08:25 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C16A43D49 for ; Thu, 15 Sep 2005 18:08:23 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([211.121.97.72]) by t-mta7.odn.ne.jp with ESMTP id <20050915180822249.KVSZ.2824.t-mta7.odn.ne.jp@mta7.odn.ne.jp>; Fri, 16 Sep 2005 03:08:22 +0900 Date: Fri, 16 Sep 2005 03:08:21 +0900 (JST) Message-Id: <20050916.030821.343192866.kazuhito@ph.noda.tus.ac.jp> To: torfinn.ingolfsen@broadpark.no From: Kazuhito HONDA In-Reply-To: Your message of "Fri, 26 Aug 2005 00:06:36 +0200". <20050826000636.545b6b8f.torfinn.ingolfsen@broadpark.no> References: <20050825195625.3661dd05.torfinn.ingolfsen@broadpark.no> <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: `Re: Sound patches and volume problems?' and `Re:"Audio Advantage Micro"' X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 18:08:25 -0000 Hello, I got "Audio Advantage Micro" and a USB device with the C-Media chip. I would check them on recent FreeBSD-stable. I put some WAV file into /dev/dsp or use xmms, and changed volume with `mixer' command on console. They had only one volume knob, `speaker'. On windows, They look like having other knobs, but they must be software volume knobs included OS. Because FreeBSD don't have any software volume knob included OS, volume of "Audio Advantage Micro" can't be controlled without `speaker' knob on FreeBSD. Though I could control volume with `speaker' knob, it had one problem. Reasonable range of the knob was very narrow for my ears, from 0 to 8 (full range of knob is 0 to 100). If I set the knob to 9 or above, volume was too loud. <20050825195625.3661dd05.torfinn.ingolfsen@broadpark.no> torfinn.ingolfsen@broadpark.no >> A friend of mine have bought this neat little USB Audio device, called >> "Audio Advantage Micro" made by Turtle Beach. <20050826000636.545b6b8f.torfinn.ingolfsen@broadpark.no> torfinn.ingolfsen@broadpark.no >> And now the device works when I select it in xmms. >> However, the volume is very loud, so loud that I fear that my headphones >> will break. This is even when I have turned down the volumen all I can >> in xmms. <20050828234613.3e8b063a.torfinn.ingolfsen@broadpark.no> torfinn.ingolfsen@broadpark.no >> However, there seems to be some problems with the volume controls... it >> seems like the volume is ... sort of relative now, not absolute. >> And when I adjust volume, equalizer settings etc, it seems lie the >> volume gets ... well, lost, and gets louder all the time, until finally >> I have to shut down xmms to save my speakers / headphones. >> >> The last device tested was a set of USB speakers from Jazz Speakers >> (model no. J1116U), and theyu have the same problem. XMMS can't control volumes of USB audio devices. I guess that some audio programs (e.g. realplayer) can't control, too. (These programs try to change `main' volume knob, but USB audio devices don't have `main' volume knob. MS-Windows may force an existing knob into `main' knob.) Some programs (e.g. mplayer) don't have this problem, because they have a software volume controller. >> I tried using the mixer in Xfce4 (xfce4-mixer), but it just says that >> mixer1 has a "Spkr" output. It's correct. It is an ordinal behavior. >> What tool should I use to control output volume of this thing? At least, volume can be controlled with `mixer' command. I expect that volume can be controlled with Xfce4-mixer. Indeed, I could control volume with xmsmixer. But C-Media chip has the narrow-range problem written above, so it is defficult to control volume with GUI. So I recommend that you use some programs with software volume controller, e.g. mplayer. Sincerely yours, Kazuhito HONDA From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 20:01:23 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 A95E516A41F for ; Thu, 15 Sep 2005 20:01:23 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A5943D45 for ; Thu, 15 Sep 2005 20:01:23 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: by zproxy.gmail.com with SMTP id n29so96271nzf for ; Thu, 15 Sep 2005 13:01:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=iR0PE+LVSiADlwPNbNFtFr17xFIHy9vbTlxua8pMBFFJHDhdh7zTPwN0vqQFX3zDJemdYQIz1DeUll1EzRsW8JA3jogZHdqt1+PtChUsC/kgZ5PWlVC2U4i6hn8V0ENNL+uPr1D9tj9GDCu/oxxqrEIJpMKmOpTxYEIUVbsB7jU= Received: by 10.54.119.7 with SMTP id r7mr563958wrc; Thu, 15 Sep 2005 13:01:22 -0700 (PDT) Received: from insomnia.localnet.net ( [67.66.247.164]) by mx.gmail.com with ESMTP id 35sm786301wra.2005.09.15.13.01.22; Thu, 15 Sep 2005 13:01:22 -0700 (PDT) Date: Thu, 15 Sep 2005 15:00:51 -0500 From: "Mike S." To: freebsd-multimedia@freebsd.org Message-Id: <20050915150051.7d31bd99.perlfu@gmail.com> In-Reply-To: <20050915065846.0732a58b.skywizard@MyBSD.org.my> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915065846.0732a58b.skywizard@MyBSD.org.my> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; amd64-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 20:01:23 -0000 On Thu, 15 Sep 2005 06:58:46 +0800 Ariff Abdullah wrote: > On Wed, 14 Sep 2005 17:02:28 -0500 > "Mike S." wrote: > > I've been having hard locks that are seeming related to vchans. I > > can't manage to verify this with the logs, but judging by the fact > > that the locks only occur when two sounds are played together, and > > only some of the time at that. I'm going to guess that's the > > issue. Either way, I've been trying to use the patch found at, > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/, it's > > helped some, but hasn't entirely fixed the problem. When I tried > > to upgrade the patch to the newest version, I got this error.. > > > > [ .. ] > > > > > > Also, my sound card is a VIA 8233. Any insight, or suggestions > > regarding how to fix the locks, and or get the patch working would > > be greatly appreciated. Thanks in advance. > > > Wow wow.. hold on a second.. > 1) uname -a > 2) full dmesg > 3) pciconf -lv (only multimedia / audio part) > 4) cat /dev/sndstat > 5) You pick wrong patch, from wrong directory. You are not supposed to > pick anything from '/incoming/' > 6) Judging from those compiler error message, your source already messed > up. You need a clean, pristine source to apply those patches. > > > -- > > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) uname -a: FreeBSD insomnia.localnet.net 5.4-STABLE FreeBSD 5.4-STABLE #3: Wed Sep 14 08:37:23 CDT 2005 perlfu@insomnia.localnet.net:/usr/obj/usr/src/sys/INSOMNIA amd64 dmesg (full): Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #3: Wed Sep 14 08:37:23 CDT 2005 perlfu@insomnia.localnet.net:/usr/obj/usr/src/sys/INSOMNIA Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3400+ (2400.11-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xfc0 Stepping = 0 Features=0x78bfbff AMD Features=0xe0500800 real memory = 2147418112 (2047 MB) avail memory = 2060546048 (1965 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xd0000000-0xd7ffffff at device 0.0 on p ci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pci1: at device 0.1 (no driver attached) atapci0: port 0xd800-0xd8ff,0xdc00-0xdc0f,0xe000-0 xe003,0xe400-0xe407,0xe800-0xe803,0xec00-0xec07 irq 20 at device 15.0 on pci0 ata2: channel #0 on atapci0 ata3: channel #1 on atapci0 atapci1: port 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f 6,0x1f0-0x1f7 at device 15.1 on pci0 ata0: channel #0 on atapci1 ata1: channel #1 on atapci1 uhci0: port 0xc800-0xc81f irq 21 at device 16.0 on p ci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xcc00-0xcc1f irq 21 at device 16.1 on p ci0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd000-0xd01f irq 21 at device 16.2 on p ci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xd400-0xd41f irq 21 at device 16.3 on p ci0 usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci0: at device 16.4 (no driver attached) isab0: at device 17.0 on pci0 isa0: on isab0 pcm0: port 0xc400-0xc4ff irq 22 at device 17.5 on pci0 pcm0: vr0: port 0xc000-0xc0ff mem 0xcfffbd00-0xcfff bdff irq 23 at device 18.0 on pci0 miibus0: on vr0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:11:09:cc:d1:83 fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 o n acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on ac pi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 orm0: at iomem 0xe0000-0xe0fff,0xd2000-0xd47ff,0xc0000-0xccfff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2400107993 Hz quality 800 Timecounters tick every 1.000 msec acd0: DVDR at ata0-master PIO4 acd1: DVDR at ata1-slave PIO4 ad4: 76293MB [155009/16/63] at ata2-master SATA150 cd0 at ata0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 16.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present Mounting root from ufs:/dev/ad4s1a pciconf -lv: pcm0@pci0:17:5: class=0x040100 card=0x00801462 chip=0x30591106 rev=0x60 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class = multimedia subclass = audio cat /dev/sndstat: FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xc400 irq 22 kld snd_via8233 (5p/1r/4v channels duplex default) Did not patch from /incoming, and also have rm'd the sound sources, and re-cvs'd a couple times to retry the patch since. From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 21:00:51 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 177F316A41F for ; Thu, 15 Sep 2005 21:00:51 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxsf30.cluster1.charter.net (mxsf30.cluster1.charter.net [209.225.28.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96CA343D4C for ; Thu, 15 Sep 2005 21:00:50 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxip16a.cluster1.charter.net (mxip16a.cluster1.charter.net [209.225.28.146]) by mxsf30.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j8FL0mdh017013 for ; Thu, 15 Sep 2005 17:00:49 -0400 Received: from 68-114-28-99.dhcp.gwnt.ga.charter.com (HELO services.403forbidden.net) (68.114.28.99) by mxip16a.cluster1.charter.net with ESMTP; 15 Sep 2005 17:00:47 -0400 X-IronPort-AV: i="3.97,114,1125892800"; d="scan'208"; a="1577464179:sNHT751238032" Received: from atlantis.403forbidden.net (atlantis.403forbidden.net [10.0.0.10]) by services.403forbidden.net (8.13.1/8.13.1) with ESMTP id j8FL0nsu042288; Thu, 15 Sep 2005 17:00:49 -0400 (EDT) (envelope-from steven@403forbidden.net) Date: Thu, 15 Sep 2005 17:00:44 -0400 (EDT) From: "Steven S." To: Pyun YongHyeon In-Reply-To: <20050915033658.GB17602@rndsoft.co.kr> Message-ID: <20050915165132.A45764@atlantis.403forbidden.net> References: <20050914174543.L45764@atlantis.403forbidden.net> <20050915033658.GB17602@rndsoft.co.kr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-multimedia@freebsd.org Subject: Re: any hope for maestro support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 21:00:51 -0000 what source tree is that from? the patch fails and going through it my maestro.c doesnt even come close to the patch. I cvsup'd RELENG_5. is this for 6x? On Thu, 15 Sep 2005, Pyun YongHyeon wrote: > > > Would you try attaced patch? > I don't have the hardware so it's just guess work. > > -- > Regards, > Pyun YongHyeon > From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 21:31:39 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 045D216A41F for ; Thu, 15 Sep 2005 21:31:39 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29CB843D45 for ; Thu, 15 Sep 2005 21:31:38 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 1937A59EF6; Thu, 15 Sep 2005 23:31:37 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 023B35A0; Thu, 15 Sep 2005 23:31:37 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-132-003.arcor-ip.net [84.61.132.3]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 6E0072DA1E; Thu, 15 Sep 2005 23:31:35 +0200 (CEST) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8FLVTFC049278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Sep 2005 23:31:30 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.4/8.13.1) with ESMTP id j8FLVTXP088036; Thu, 15 Sep 2005 23:31:29 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.4/8.13.1/Submit) id j8FLVO0L087999; Thu, 15 Sep 2005 23:31:24 +0200 (CEST) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Thu, 15 Sep 2005 23:31:17 +0200 User-Agent: KMail/1.8.2 References: <20050914170228.328c571e.perlfu@gmail.com> <20050915065846.0732a58b.skywizard@MyBSD.org.my> <20050915150051.7d31bd99.perlfu@gmail.com> In-Reply-To: <20050915150051.7d31bd99.perlfu@gmail.com> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: Ariff Abdullah Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 21:31:39 -0000 --nextPart2837013.U8p7UFFhmn Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday, 15. September 2005 22:00, Mike S. wrote: > Did not patch from /incoming, and also have rm'd the sound sources, a= nd > re-cvs'd a couple times to retry the patch since. I can confirm=20 http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050915_041= softvol.diff=20 doesn't compile (I didn't try it before - 20050913_036softvol +=20 channel.c.diff worked). =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart2837013.U8p7UFFhmn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDKegsXhc68WspdLARAitrAJ9aREapM0J0V+7fbkTIfRHNjPnvEQCfXY73 eGRXChDm3kbB42JTJlMMUpE= =Wyoa -----END PGP SIGNATURE----- --nextPart2837013.U8p7UFFhmn-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 22:36:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 DBFA116A41F; Thu, 15 Sep 2005 22:36:46 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6E6743D48; Thu, 15 Sep 2005 22:36:38 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 6A6446CC36; Fri, 16 Sep 2005 06:44:45 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 62050-01; Fri, 16 Sep 2005 06:44:44 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id EF9866CC32; Fri, 16 Sep 2005 06:44:35 +0800 (MYT) Date: Fri, 16 Sep 2005 06:36:31 +0800 From: Ariff Abdullah To: lofi@freebsd.org, perlfu@gmail.com Message-Id: <20050916063631.34e65dc3.skywizard@MyBSD.org.my> In-Reply-To: <200509152331.24060.lofi@freebsd.org> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915065846.0732a58b.skywizard@MyBSD.org.my> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Fri__16_Sep_2005_06_36_31_+0800_FNRSpxZB0VwFh.HR" X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 22:36:47 -0000 This is a multi-part message in MIME format. --Multipart=_Fri__16_Sep_2005_06_36_31_+0800_FNRSpxZB0VwFh.HR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 15 Sep 2005 23:31:17 +0200 Michael Nottebrock wrote: > On Thursday, 15. September 2005 22:00, Mike S. wrote: > > > Did not patch from /incoming, and also have rm'd the sound > > sources, and > > re-cvs'd a couple times to retry the patch since. > > I can confirm > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050915_041softvol.diff > > doesn't compile (I didn't try it before - 20050913_036softvol + > channel.c.diff worked). > Hmmm strange enough.. How about this attached diff. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) --Multipart=_Fri__16_Sep_2005_06_36_31_+0800_FNRSpxZB0VwFh.HR Content-Type: text/plain; name="new.diff" Content-Disposition: attachment; filename="new.diff" Content-Transfer-Encoding: 7bit --- sys/conf/files.orig Fri Sep 16 06:20:38 2005 +++ sys/conf/files Fri Sep 16 06:32:00 2005 @@ -738,8 +738,10 @@ dev/sound/pcm/feeder_if.m optional sound dev/sound/pcm/feeder_fmt.c optional sound dev/sound/pcm/feeder_rate.c optional sound +dev/sound/pcm/feeder_volume.c optional sound dev/sound/pcm/mixer.c optional sound dev/sound/pcm/mixer_if.m optional sound +dev/sound/pcm/slavechan.c optional sound dev/sound/pcm/sndstat.c optional sound dev/sound/pcm/sound.c optional sound dev/sound/pcm/vchan.c optional sound --- sys/sys/soundcard.h.orig Fri Sep 16 06:21:09 2005 +++ sys/sys/soundcard.h Fri Sep 16 06:32:00 2005 @@ -180,6 +180,10 @@ #define AFMT_S32_BE 0x00002000 /* Big endian signed 32-bit */ #define AFMT_U32_LE 0x00004000 /* Little endian unsigned 32-bit */ #define AFMT_U32_BE 0x00008000 /* Big endian unsigned 32-bit */ +#define AFMT_S24_LE 0x00010000 /* Little endian signed 24-bit */ +#define AFMT_S24_BE 0x00020000 /* Big endian signed 24-bit */ +#define AFMT_U24_LE 0x00040000 /* Little endian unsigned 24-bit */ +#define AFMT_U24_BE 0x00080000 /* Big endian unsigned 24-bit */ #define AFMT_STEREO 0x10000000 /* can do/want stereo */ --- sys/modules/sound/sound/Makefile.orig Fri Sep 16 06:22:57 2005 +++ sys/modules/sound/sound/Makefile Fri Sep 16 06:32:00 2005 @@ -8,8 +8,8 @@ SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h SRCS+= ac97_if.c channel_if.c feeder_if.c mixer_if.c SRCS+= ac97.c ac97_patch.c buffer.c channel.c dsp.c -SRCS+= fake.c feeder.c feeder_fmt.c feeder_rate.c -SRCS+= mixer.c sndstat.c sound.c vchan.c +SRCS+= fake.c feeder.c feeder_fmt.c feeder_rate.c feeder_volume.c +SRCS+= mixer.c slavechan.c sndstat.c sound.c vchan.c SRCS+= sndbuf_dma.c EXPORT_SYMS= YES # XXX evaluate --- sys/dev/sound/isa/ad1816.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/isa/ad1816.c Fri Sep 16 06:32:00 2005 @@ -138,12 +138,16 @@ } /* check for capture interupt */ if (sndbuf_runsz(ad1816->rch.buffer) && (c & AD1816_INTRCI)) { + ad1816_unlock(ad1816); chn_intr(ad1816->rch.channel); + ad1816_lock(ad1816); served |= AD1816_INTRCI; /* cp served */ } /* check for playback interupt */ if (sndbuf_runsz(ad1816->pch.buffer) && (c & AD1816_INTRPI)) { + ad1816_unlock(ad1816); chn_intr(ad1816->pch.channel); + ad1816_lock(ad1816); served |= AD1816_INTRPI; /* pb served */ } if (served == 0) { --- sys/dev/sound/isa/ess.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/isa/ess.c Fri Sep 16 06:32:00 2005 @@ -361,8 +361,11 @@ rirq = (src & sc->rch.hwch)? 1 : 0; if (pirq) { - if (sc->pch.run) + if (sc->pch.run) { + ess_unlock(sc); chn_intr(sc->pch.channel); + ess_lock(sc); + } if (sc->pch.stopping) { sc->pch.run = 0; sndbuf_dma(sc->pch.buffer, PCMTRIG_STOP); @@ -375,8 +378,11 @@ } if (rirq) { - if (sc->rch.run) + if (sc->rch.run) { + ess_unlock(sc); chn_intr(sc->rch.channel); + ess_lock(sc); + } if (sc->rch.stopping) { sc->rch.run = 0; sndbuf_dma(sc->rch.buffer, PCMTRIG_STOP); --- sys/dev/sound/isa/mss.c.orig Mon Feb 28 07:32:21 2005 +++ sys/dev/sound/isa/mss.c Fri Sep 16 06:32:00 2005 @@ -795,11 +795,15 @@ c &= ~served; if (sndbuf_runsz(mss->pch.buffer) && (c & 0x10)) { served |= 0x10; + mss_unlock(mss); chn_intr(mss->pch.channel); + mss_lock(mss); } if (sndbuf_runsz(mss->rch.buffer) && (c & 0x20)) { served |= 0x20; + mss_unlock(mss); chn_intr(mss->rch.channel); + mss_unlock(mss); } /* now ack the interrupt */ if (FULL_DUPLEX(mss)) ad_write(mss, 24, ~c); /* ack selectively */ @@ -1111,8 +1115,16 @@ return; } - if (sndbuf_runsz(mss->rch.buffer) && (mc11 & 8)) chn_intr(mss->rch.channel); - if (sndbuf_runsz(mss->pch.buffer) && (mc11 & 4)) chn_intr(mss->pch.channel); + if (sndbuf_runsz(mss->rch.buffer) && (mc11 & 8)) { + mss_unlock(mss); + chn_intr(mss->rch.channel); + mss_lock(mss); + } + if (sndbuf_runsz(mss->pch.buffer) && (mc11 & 4)) { + mss_unlock(mss); + chn_intr(mss->pch.channel); + mss_lock(mss); + } opti_wr(mss, 11, ~mc11); /* ack */ if (--loops) goto again; mss_unlock(mss); --- sys/dev/sound/isa/sb16.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/isa/sb16.c Fri Sep 16 06:32:00 2005 @@ -494,7 +494,7 @@ sb_intr(void *arg) { struct sb_info *sb = (struct sb_info *)arg; - int reason = 3, c; + int reason, c; /* * The Vibra16X has separate flags for 8 and 16 bit transfers, but @@ -570,8 +570,9 @@ sb_reset_dsp(sb); if (sb->bd_flags & BD_F_SB16X) { + /* full-duplex doesn't work! */ pprio = sb->pch.run? 1 : 0; - sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : NULL); + sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : sb->drq2); sb->pch.dch = pprio? 1 : 0; sndbuf_dmasetup(sb->rch.buffer, pprio? sb->drq2 : sb->drq1); sb->rch.dch = pprio? 2 : 1; --- sys/dev/sound/isa/sb8.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/isa/sb8.c Fri Sep 16 06:32:00 2005 @@ -475,11 +475,17 @@ struct sb_info *sb = (struct sb_info *)arg; sb_lock(sb); - if (sndbuf_runsz(sb->pch.buffer) > 0) + if (sndbuf_runsz(sb->pch.buffer) > 0) { + sb_unlock(sb); chn_intr(sb->pch.channel); + sb_lock(sb); + } - if (sndbuf_runsz(sb->rch.buffer) > 0) + if (sndbuf_runsz(sb->rch.buffer) > 0) { + sb_unlock(sb); chn_intr(sb->rch.channel); + sb_lock(sb); + } sb_rd(sb, DSP_DATA_AVAIL); /* int ack */ sb_unlock(sb); @@ -564,8 +570,16 @@ sb_lock(sb); if (sb->bd_flags & BD_F_HISPEED) sb_reset_dsp(sb); - else + else { +#if 0 + /* + * NOTE: DSP_CMD_DMAEXIT_8 does not work with old + * soundblaster. + */ sb_cmd(sb, DSP_CMD_DMAEXIT_8); +#endif + sb_reset_dsp(sb); + } if (play) sb_cmd(sb, DSP_CMD_SPKOFF); /* speaker off */ --- sys/dev/sound/isa/sbc.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/isa/sbc.c Fri Sep 16 06:32:00 2005 @@ -259,6 +259,7 @@ {0x81167316, "ESS ES1681"}, /* ESS1681 */ {0x02017316, "ESS ES1688"}, /* ESS1688 */ + {0x68097316, "ESS ES1688"}, /* ESS1688 */ {0x68187316, "ESS ES1868"}, /* ESS1868 */ {0x03007316, "ESS ES1869"}, /* ESS1869 */ {0x69187316, "ESS ES1869"}, /* ESS1869 */ --- sys/dev/sound/pci/als4000.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/pci/als4000.c Fri Sep 16 06:32:00 2005 @@ -75,6 +75,7 @@ struct resource *reg, *irq; int regid, irqid; void *ih; + struct mtx *lock; unsigned int bufsz; struct sc_chinfo pch, rch; @@ -90,7 +91,11 @@ 0 }; -static struct pcmchan_caps als_caps = { 4000, 48000, als_format, 0 }; +/* + * I don't believe this rotten soundcard can do 48k, really, + * trust me. + */ +static struct pcmchan_caps als_caps = { 4000, 44100, als_format, 0 }; /* ------------------------------------------------------------------------- */ /* Register Utilities */ @@ -199,6 +204,7 @@ struct sc_info *sc = devinfo; struct sc_chinfo *ch; + snd_mtxlock(sc->lock); if (dir == PCMDIR_PLAY) { ch = &sc->pch; ch->gcr_fifo_status = ALS_GCR_FIFO0_STATUS; @@ -213,9 +219,11 @@ ch->format = AFMT_U8; ch->speed = DSP_DEFAULT_SPEED; ch->buffer = b; - if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) != 0) { + snd_mtxunlock(sc->lock); + + if (sndbuf_alloc(ch->buffer, sc->parent_dmat, sc->bufsz) != 0) return NULL; - } + return ch; } @@ -574,7 +582,7 @@ alsmix_setrecsrc(struct snd_mixer *m, u_int32_t src) { struct sc_info *sc = mix_getdevinfo(m); - u_int32_t i, l, r; + u_int32_t i, l, r, mask; for (i = l = r = 0; i < SOUND_MIXER_NRDEVICES; i++) { if (src & (1 << i)) { @@ -583,8 +591,24 @@ } } - als_mix_wr(sc, SB16_IMASK_L, l); - als_mix_wr(sc, SB16_IMASK_R, r); + /* ALS mixer is really an SB16 mixer */ + + mask = 0; + + if (src & SOUND_MASK_MIC) + mask |= 0x01; + + if (src & SOUND_MASK_CD) + mask |= 0x06; + + if (src & SOUND_MASK_LINE) + mask |= 0x18; + + if (src & SOUND_MASK_SYNTH) + mask |= 0x60; + + als_mix_wr(sc, SB16_IMASK_L, l|mask); + als_mix_wr(sc, SB16_IMASK_R, r|mask); return src; } @@ -605,13 +629,20 @@ struct sc_info *sc = (struct sc_info *)p; u_int8_t intr, sb_status; + snd_mtxlock(sc->lock); intr = als_intr_rd(sc); - if (intr & 0x80) + if (intr & 0x80) { + snd_mtxunlock(sc->lock); chn_intr(sc->pch.channel); + snd_mtxlock(sc->lock); + } - if (intr & 0x40) + if (intr & 0x40) { + snd_mtxunlock(sc->lock); chn_intr(sc->rch.channel); + snd_mtxlock(sc->lock); + } /* ACK interrupt in PCI core */ als_intr_wr(sc, intr); @@ -627,6 +658,8 @@ als_ack_read(sc, ALS_MIDI_DATA); if (sb_status & ALS_IRQ_CR1E) als_ack_read(sc, ALS_CR1E_ACK_PORT); + + snd_mtxunlock(sc->lock); return; } @@ -708,6 +741,10 @@ bus_dma_tag_destroy(sc->parent_dmat); sc->parent_dmat = 0; } + if (sc->lock) { + snd_mtxfree(sc->lock); + sc->lock = NULL; + } } static int @@ -730,7 +767,7 @@ goto bad; } - if (bus_setup_intr(dev, sc->irq, INTR_TYPE_AV, als_intr, + if (snd_setup_intr(dev, sc->irq, INTR_MPSAFE, als_intr, sc, &sc->ih)) { device_printf(dev, "unable to setup interrupt\n"); goto bad; @@ -745,8 +782,8 @@ /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/sc->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &sc->parent_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &sc->parent_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -768,6 +805,7 @@ return ENXIO; } + sc->lock = snd_mtxcreate(device_get_nameunit(dev), "sound softc"); sc->dev = dev; data = pci_read_config(dev, PCIR_COMMAND, 2); @@ -862,6 +900,7 @@ { struct sc_info *sc = pcm_getdevinfo(dev); + if (als_init(sc) != 0) { device_printf(dev, "unable to reinitialize the card\n"); return ENXIO; @@ -879,6 +918,7 @@ if (sc->rch.dma_was_active) { als_capture_start(&sc->rch); } + return 0; } --- sys/dev/sound/pci/cmi.c.orig Sun Jan 30 09:00:03 2005 +++ sys/dev/sound/pci/cmi.c Fri Sep 16 06:32:00 2005 @@ -876,8 +876,8 @@ /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/sc->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, /*flags*/0, - /*lockfunc*/busdma_lock_mutex, - /*lockfunc*/&Giant, + /*lockfunc*/NULL, + /*lockfunc*/NULL, &sc->parent_dmat) != 0) { device_printf(dev, "cmi_attach: Unable to create dma tag\n"); goto bad; --- sys/dev/sound/pci/es137x.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pci/es137x.c Fri Sep 16 06:32:00 2005 @@ -61,9 +61,6 @@ SND_DECLARE_FILE("$FreeBSD: src/sys/dev/sound/pci/es137x.c,v 1.51.2.2 2005/01/30 01:00:04 imp Exp $"); -static int debug = 0; -SYSCTL_INT(_debug, OID_AUTO, es_debug, CTLFLAG_RW, &debug, 0, ""); - #define MEM_MAP_REG 0x14 /* PCI IDs of supported chips */ @@ -112,12 +109,14 @@ device_t dev; int num; + int spdif_en; unsigned int bufsz; /* Contents of board's registers */ u_long ctrl; u_long sctrl; struct es_chinfo pch, rch; + struct mtx *lock; }; /* -------------------------------------------------------------------- */ @@ -171,6 +170,38 @@ [SOUND_MIXER_OGAIN] = { 9, 0xf, 0x0, 0, 0x0000, 1 } }; +static u_int32_t +es_rd(struct es_info *es, int regno, int size) +{ + switch (size) { + case 1: + return bus_space_read_1(es->st, es->sh, regno); + case 2: + return bus_space_read_2(es->st, es->sh, regno); + case 4: + return bus_space_read_4(es->st, es->sh, regno); + default: + return 0xFFFFFFFF; + } +} + +static void +es_wr(struct es_info *es, int regno, u_int32_t data, int size) +{ + + switch (size) { + case 1: + bus_space_write_1(es->st, es->sh, regno, data); + break; + case 2: + bus_space_write_2(es->st, es->sh, regno, data); + break; + case 4: + bus_space_write_4(es->st, es->sh, regno, data); + break; + } +} + /* -------------------------------------------------------------------- */ /* The es1370 mixer interface */ @@ -244,17 +275,17 @@ static int es1370_wrcodec(struct es_info *es, u_char i, u_char data) { - int wait = 100; /* 100 msec timeout */ + u_int t; - do { - if ((bus_space_read_4(es->st, es->sh, ES1370_REG_STATUS) & + for (t = 0; t < 0x1000; t++) { + if ((es_rd(es, ES1370_REG_STATUS, 4) & STAT_CSTAT) == 0) { - bus_space_write_2(es->st, es->sh, ES1370_REG_CODEC, - ((u_short)i << CODEC_INDEX_SHIFT) | data); + es_wr(es, ES1370_REG_CODEC, + ((u_short)i << CODEC_INDEX_SHIFT) | data, 2); return 0; } - DELAY(1000); - } while (--wait); + DELAY(1); + } printf("pcm: es1370_wrcodec timed out\n"); return -1; } @@ -268,12 +299,14 @@ struct es_info *es = devinfo; struct es_chinfo *ch = (dir == PCMDIR_PLAY)? &es->pch : &es->rch; + snd_mtxlock(es->lock); ch->parent = es; ch->channel = c; ch->buffer = b; ch->bufsz = es->bufsz; ch->blksz = ch->bufsz / 2; ch->num = ch->parent->num++; + snd_mtxunlock(es->lock); if (sndbuf_alloc(ch->buffer, es->parent_dmat, ch->bufsz) != 0) return NULL; return ch; @@ -286,13 +319,13 @@ struct es_info *es = ch->parent; if (dir == PCMDIR_PLAY) { - bus_space_write_1(es->st, es->sh, ES1370_REG_MEMPAGE, ES1370_REG_DAC2_FRAMEADR >> 8); - bus_space_write_4(es->st, es->sh, ES1370_REG_DAC2_FRAMEADR & 0xff, sndbuf_getbufaddr(ch->buffer)); - bus_space_write_4(es->st, es->sh, ES1370_REG_DAC2_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1); + es_wr(es, ES1370_REG_MEMPAGE, ES1370_REG_DAC2_FRAMEADR >> 8, 1); + es_wr(es, ES1370_REG_DAC2_FRAMEADR & 0xff, sndbuf_getbufaddr(ch->buffer), 4); + es_wr(es, ES1370_REG_DAC2_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1, 4); } else { - bus_space_write_1(es->st, es->sh, ES1370_REG_MEMPAGE, ES1370_REG_ADC_FRAMEADR >> 8); - bus_space_write_4(es->st, es->sh, ES1370_REG_ADC_FRAMEADR & 0xff, sndbuf_getbufaddr(ch->buffer)); - bus_space_write_4(es->st, es->sh, ES1370_REG_ADC_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1); + es_wr(es, ES1370_REG_MEMPAGE, ES1370_REG_ADC_FRAMEADR >> 8, 1); + es_wr(es, ES1370_REG_ADC_FRAMEADR & 0xff, sndbuf_getbufaddr(ch->buffer), 4); + es_wr(es, ES1370_REG_ADC_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1, 4); } ch->dir = dir; return 0; @@ -313,7 +346,7 @@ if (format & AFMT_S16_LE) es->sctrl |= SCTRL_R1SEB; if (format & AFMT_STEREO) es->sctrl |= SCTRL_R1SMB; } - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); + es_wr(es, ES1370_REG_SERIAL_CONTROL, es->sctrl, 4); ch->fmt = format; return 0; } @@ -326,7 +359,7 @@ es->ctrl &= ~CTRL_PCLKDIV; es->ctrl |= DAC2_SRTODIV(speed) << CTRL_SH_PCLKDIV; - bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); /* rec/play speeds locked together - should indicate in flags */ return speed; /* XXX calc real speed */ } @@ -336,12 +369,16 @@ { struct es_chinfo *ch = data; struct es_info *es = ch->parent; + int i, delta; - if (ch->dir == PCMDIR_PLAY) { - return es1371_dac_rate(es, speed, 3 - ch->num); /* play */ - } else { - return es1371_adc_rate(es, speed, 1); /* record */ - } + if (ch->dir == PCMDIR_PLAY) + i = es1371_dac_rate(es, speed, 3 - ch->num); /* play */ + else + i = es1371_adc_rate(es, speed, 1); /* record */ + delta = (speed > i) ? speed - i : i - speed; + if (delta < 2) + return speed; + return i; } static int @@ -352,7 +389,6 @@ ch->blksz = blocksize; ch->bufsz = ch->blksz * 2; sndbuf_resize(ch->buffer, 2, ch->blksz); - return ch->blksz; } @@ -374,24 +410,24 @@ es->ctrl |= CTRL_DAC2_EN; es->sctrl &= ~(SCTRL_P2ENDINC | SCTRL_P2STINC | SCTRL_P2LOOPSEL | SCTRL_P2PAUSE | SCTRL_P2DACSEN); es->sctrl |= SCTRL_P2INTEN | (b << SCTRL_SH_P2ENDINC); - bus_space_write_4(es->st, es->sh, ES1370_REG_DAC2_SCOUNT, cnt); + es_wr(es, ES1370_REG_DAC2_SCOUNT, cnt, 4); /* start at beginning of buffer */ - bus_space_write_4(es->st, es->sh, ES1370_REG_MEMPAGE, ES1370_REG_DAC2_FRAMECNT >> 8); - bus_space_write_4(es->st, es->sh, ES1370_REG_DAC2_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1); + es_wr(es, ES1370_REG_MEMPAGE, ES1370_REG_DAC2_FRAMECNT >> 8, 4); + es_wr(es, ES1370_REG_DAC2_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1, 4); } else es->ctrl &= ~CTRL_DAC2_EN; } else { if (go == PCMTRIG_START) { es->ctrl |= CTRL_ADC_EN; es->sctrl &= ~SCTRL_R1LOOPSEL; es->sctrl |= SCTRL_R1INTEN; - bus_space_write_4(es->st, es->sh, ES1370_REG_ADC_SCOUNT, cnt); + es_wr(es, ES1370_REG_ADC_SCOUNT, cnt, 4); /* start at beginning of buffer */ - bus_space_write_4(es->st, es->sh, ES1370_REG_MEMPAGE, ES1370_REG_ADC_FRAMECNT >> 8); - bus_space_write_4(es->st, es->sh, ES1370_REG_ADC_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1); + es_wr(es, ES1370_REG_MEMPAGE, ES1370_REG_ADC_FRAMECNT >> 8, 4); + es_wr(es, ES1370_REG_ADC_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1, 4); } else es->ctrl &= ~CTRL_ADC_EN; } - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); - bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); + es_wr(es, ES1370_REG_SERIAL_CONTROL, es->sctrl, 4); + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); return 0; } @@ -406,9 +442,8 @@ reg = ES1370_REG_DAC2_FRAMECNT; else reg = ES1370_REG_ADC_FRAMECNT; - - bus_space_write_4(es->st, es->sh, ES1370_REG_MEMPAGE, reg >> 8); - cnt = bus_space_read_4(es->st, es->sh, reg & 0x000000ff) >> 16; + es_wr(es, ES1370_REG_MEMPAGE, reg >> 8, 4); + cnt = es_rd(es, reg & 0x000000ff, 4) >> 16; /* cnt is longwords */ return cnt << 2; } @@ -454,19 +489,25 @@ struct es_info *es = p; unsigned intsrc, sctrl; - intsrc = bus_space_read_4(es->st, es->sh, ES1370_REG_STATUS); - if ((intsrc & STAT_INTR) == 0) return; + snd_mtxlock(es->lock); + intsrc = es_rd(es, ES1370_REG_STATUS, 4); + if ((intsrc & STAT_INTR) == 0) { + snd_mtxunlock(es->lock); + return; + } sctrl = es->sctrl; if (intsrc & STAT_ADC) sctrl &= ~SCTRL_R1INTEN; if (intsrc & STAT_DAC1) sctrl &= ~SCTRL_P1INTEN; if (intsrc & STAT_DAC2) sctrl &= ~SCTRL_P2INTEN; - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, sctrl); - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); + es_wr(es, ES1370_REG_SERIAL_CONTROL, sctrl, 4); + es_wr(es, ES1370_REG_SERIAL_CONTROL, es->sctrl, 4); + snd_mtxunlock(es->lock); if (intsrc & STAT_ADC) chn_intr(es->rch.channel); - if (intsrc & STAT_DAC1); + if (intsrc & STAT_DAC1) + ; /* nothing */ if (intsrc & STAT_DAC2) chn_intr(es->pch.channel); } @@ -476,10 +517,10 @@ { es->ctrl = CTRL_CDC_EN | CTRL_SERR_DIS | (DAC2_SRTODIV(DSP_DEFAULT_SPEED) << CTRL_SH_PCLKDIV); - bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); es->sctrl = 0; - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); + es_wr(es, ES1370_REG_SERIAL_CONTROL, es->sctrl, 4); es1370_wrcodec(es, CODEC_RES_PD, 3);/* No RST, PD */ es1370_wrcodec(es, CODEC_CSEL, 0); /* CODEC ADC and CODEC DAC use @@ -495,37 +536,39 @@ int es1371_init(struct es_info *es, device_t dev) { + u_long cssr; int idx; int devid = pci_get_devid(dev); int revid = pci_get_revid(dev); - if (debug > 0) printf("es_init\n"); - es->num = 0; es->ctrl = 0; es->sctrl = 0; + cssr = 0; + if (devid == CT4730_PCI_ID) { + /* XXX amplifier hack? */ + es->ctrl |= (1 << 16); + } /* initialize the chips */ + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); + es_wr(es, ES1370_REG_SERIAL_CONTROL, es->sctrl, 4); + es_wr(es, ES1371_REG_LEGACY, 0, 4); if ((devid == ES1371_PCI_ID && revid == ES1371REV_ES1373_8) || (devid == ES1371_PCI_ID && revid == ES1371REV_CT5880_A) || (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_C) || (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_D) || - (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_E) || - (devid == CT4730_PCI_ID)) { - bus_space_write_4(es->st, es->sh, ES1370_REG_STATUS, 0x20000000); + (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_E)) { + cssr = 1 << 29; + es_wr(es, ES1370_REG_STATUS, cssr, 4); DELAY(20000); - if (debug > 0) device_printf(dev, "ac97 2.1 enabled\n"); - } else { /* pre ac97 2.1 card */ - bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); - if (debug > 0) device_printf(dev, "ac97 pre-2.1 enabled\n"); } - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); - bus_space_write_4(es->st, es->sh, ES1371_REG_LEGACY, 0); /* AC'97 warm reset to start the bitclk */ - bus_space_write_4(es->st, es->sh, ES1371_REG_LEGACY, es->ctrl | ES1371_SYNC_RES); + es_wr(es, ES1370_REG_CONTROL, es->ctrl | ES1371_SYNC_RES, 4); DELAY(2000); - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->ctrl); + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); + es1371_wait_src_ready(es); /* Init the sample rate converter */ - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, ES1371_DIS_SRC); + es_wr(es, ES1371_REG_SMPRATE, ES1371_DIS_SRC, 4); for (idx = 0; idx < 0x80; idx++) es1371_src_write(es, idx, 0); es1371_src_write(es, ES_SMPREG_DAC1 + ES_SMPREG_TRUNC_N, 16 << 4); @@ -547,7 +590,11 @@ * be stuck high, and I've found no way to rectify this other than * power cycle) */ - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, 0); + es1371_wait_src_ready(es); + es_wr(es, ES1371_REG_SMPRATE, 0, 4); + /* try to reset codec directly */ + es_wr(es, ES1371_REG_CODEC, 0, 4); + es_wr(es, ES1370_REG_STATUS, cssr, 4); return (0); } @@ -557,43 +604,34 @@ static int es1371_wrcd(kobj_t obj, void *s, int addr, u_int32_t data) { - int sl; - unsigned t, x; + unsigned t, x, orig; struct es_info *es = (struct es_info*)s; - if (debug > 0) printf("wrcodec addr 0x%x data 0x%x\n", addr, data); - for (t = 0; t < 0x1000; t++) - if (!(bus_space_read_4(es->st, es->sh,(ES1371_REG_CODEC & CODEC_WIP)))) + if (!es_rd(es, ES1371_REG_CODEC & CODEC_WIP, 4)) break; - sl = spltty(); /* save the current state for later */ - x = bus_space_read_4(es->st, es->sh, ES1371_REG_SMPRATE); + x = orig = es_rd(es, ES1371_REG_SMPRATE, 4); /* enable SRC state data in SRC mux */ - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, - (es1371_wait_src_ready(s) & - (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1))); + es_wr(es, ES1371_REG_SMPRATE, + (x & + (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1)) | + 0x00010000, 4); + /* busy wait */ + for (t = 0; t < 0x1000; t++) + if ((es_rd(es, ES1371_REG_SMPRATE, 4) & 0x00870000) == 0x00000000) + break; /* wait for a SAFE time to write addr/data and then do it, dammit */ for (t = 0; t < 0x1000; t++) - if ((bus_space_read_4(es->st, es->sh, ES1371_REG_SMPRATE) & 0x00070000) == 0x00010000) + if ((es_rd(es, ES1371_REG_SMPRATE, 4) & 0x00870000) == 0x00010000) break; - if (debug > 2) - printf("one b_s_w: 0x%lx 0x%x 0x%x\n", - rman_get_start(es->reg), ES1371_REG_CODEC, - ((addr << CODEC_POADD_SHIFT) & CODEC_POADD_MASK) | - ((data << CODEC_PODAT_SHIFT) & CODEC_PODAT_MASK)); - - bus_space_write_4(es->st, es->sh,ES1371_REG_CODEC, + es_wr(es, ES1371_REG_CODEC, ((addr << CODEC_POADD_SHIFT) & CODEC_POADD_MASK) | - ((data << CODEC_PODAT_SHIFT) & CODEC_PODAT_MASK)); + ((data << CODEC_PODAT_SHIFT) & CODEC_PODAT_MASK), 4); /* restore SRC reg */ es1371_wait_src_ready(s); - if (debug > 2) - printf("two b_s_w: 0x%lx 0x%x 0x%x\n", - rman_get_start(es->reg), ES1371_REG_SMPRATE, x); - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, x); - splx(sl); + es_wr(es, ES1371_REG_SMPRATE, orig, 4); return 0; } @@ -601,44 +639,42 @@ static int es1371_rdcd(kobj_t obj, void *s, int addr) { - int sl; - unsigned t, x = 0; + unsigned t, x = 0, orig; struct es_info *es = (struct es_info *)s; - if (debug > 0) printf("rdcodec addr 0x%x ... ", addr); - for (t = 0; t < 0x1000; t++) - if (!(x = bus_space_read_4(es->st, es->sh, ES1371_REG_CODEC) & CODEC_WIP)) + if (!(x = es_rd(es, ES1371_REG_CODEC, 4) & CODEC_WIP)) break; - if (debug > 0) printf("loop 1 t 0x%x x 0x%x ", t, x); - - sl = spltty(); /* save the current state for later */ - x = bus_space_read_4(es->st, es->sh, ES1371_REG_SMPRATE); + x = orig = es_rd(es, ES1371_REG_SMPRATE, 4); /* enable SRC state data in SRC mux */ - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, - (es1371_wait_src_ready(s) & - (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1))); + es_wr(es, ES1371_REG_SMPRATE, + (x & + (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1)) | + 0x00010000, 4); + /* busy wait */ + for (t = 0; t < 0x1000; t++) + if ((x = es_rd(es, ES1371_REG_SMPRATE, 4) & 0x00870000) == 0x00000000) + break; /* wait for a SAFE time to write addr/data and then do it, dammit */ - for (t = 0; t < 0x5000; t++) - if ((x = bus_space_read_4(es->st, es->sh, ES1371_REG_SMPRATE) & 0x00070000) == 0x00010000) + for (t = 0; t < 0x1000; t++) + if ((x = es_rd(es, ES1371_REG_SMPRATE, 4) & 0x00870000) == 0x00010000) break; - if (debug > 0) printf("loop 2 t 0x%x x 0x%x ", t, x); - bus_space_write_4(es->st, es->sh, ES1371_REG_CODEC, - ((addr << CODEC_POADD_SHIFT) & CODEC_POADD_MASK) | CODEC_PORD); + + es_wr(es, ES1371_REG_CODEC, + ((addr << CODEC_POADD_SHIFT) & CODEC_POADD_MASK) | + CODEC_PORD, 4); /* restore SRC reg */ es1371_wait_src_ready(s); - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, x); - - splx(sl); + es_wr(es, ES1371_REG_SMPRATE, orig, 4); /* now wait for the stinkin' data (RDY) */ for (t = 0; t < 0x1000; t++) - if ((x = bus_space_read_4(es->st, es->sh, ES1371_REG_CODEC)) & CODEC_RDY) + if ((x = es_rd(es, ES1371_REG_CODEC, 4)) & CODEC_RDY) break; - if (debug > 0) printf("loop 3 t 0x%x 0x%x ret 0x%x\n", t, x, ((x & CODEC_PIDAT_MASK) >> CODEC_PIDAT_SHIFT)); + return ((x & CODEC_PIDAT_MASK) >> CODEC_PIDAT_SHIFT); } @@ -659,19 +695,19 @@ r = es1371_wait_src_ready(es) & (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1); r |= ES1371_SRC_RAM_ADDRO(reg); - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE,r); + es_wr(es, ES1371_REG_SMPRATE, r, 4); return ES1371_SRC_RAM_DATAI(es1371_wait_src_ready(es)); } static void -es1371_src_write(struct es_info *es, u_short reg, u_short data){ +es1371_src_write(struct es_info *es, u_short reg, u_short data) +{ u_int r; r = es1371_wait_src_ready(es) & (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1); r |= ES1371_SRC_RAM_ADDRO(reg) | ES1371_SRC_RAM_DATAO(data); - /* printf("es1371_src_write 0x%x 0x%x\n",ES1371_REG_SMPRATE,r | ES1371_SRC_RAM_WE); */ - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, r | ES1371_SRC_RAM_WE); + es_wr(es, ES1371_REG_SMPRATE, r | ES1371_SRC_RAM_WE, 4); } static u_int @@ -721,12 +757,12 @@ dis = (set == 1)? ES1371_DIS_P2 : ES1371_DIS_P1; r = (es1371_wait_src_ready(es) & (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1)); - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, r); + es_wr(es, ES1371_REG_SMPRATE, r, 4); es1371_src_write(es, dac + ES_SMPREG_INT_REGS, (es1371_src_read(es, dac + ES_SMPREG_INT_REGS) & 0x00ff) | ((freq >> 5) & 0xfc00)); es1371_src_write(es, dac + ES_SMPREG_VFREQ_FRAC, freq & 0x7fff); r = (es1371_wait_src_ready(es) & (ES1371_DIS_SRC | dis | ES1371_DIS_R1)); - bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, r); + es_wr(es, ES1371_REG_SMPRATE, r, 4); } return result; } @@ -736,10 +772,10 @@ { u_int t, r; - for (t = 0; t < 500; t++) { - if (!((r = bus_space_read_4(es->st, es->sh, ES1371_REG_SMPRATE)) & ES1371_SRC_RAM_BUSY)) + for (t = 0; t < 0x1000; t++) { + if (!((r = es_rd(es, ES1371_REG_SMPRATE, 4)) & ES1371_SRC_RAM_BUSY)) return r; - DELAY(1000); + DELAY(1); } printf("es1371: wait src ready timeout 0x%x [0x%x]\n", ES1371_REG_SMPRATE, r); return 0; @@ -832,6 +868,107 @@ } } +#ifdef SND_DYNSYSCTL +static int +sysctl_es1371x_spdif_enable(SYSCTL_HANDLER_ARGS) +{ + struct es_info *es; + device_t dev; + int err, new_en, r; + + dev = oidp->oid_arg1; + es = pcm_getdevinfo(dev); + snd_mtxlock(es->lock); + new_en = es->spdif_en; + snd_mtxunlock(es->lock); + err = sysctl_handle_int(oidp, &new_en, sizeof(new_en), req); + + if (err || req->newptr == NULL) + return err; + if (new_en < 0 || new_en > 1) + return EINVAL; + + snd_mtxlock(es->lock); + es->spdif_en = new_en; + r = es_rd(es, ES1370_REG_STATUS, 4); + if (new_en) { + r |= ENABLE_SPDIF; + es->ctrl |= SPDIFEN_B; + es->ctrl |= RECEN_B; + } else { + r &= ~ENABLE_SPDIF; + es->ctrl &= ~SPDIFEN_B; + es->ctrl &= ~RECEN_B; + } + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); + es_wr(es, ES1370_REG_STATUS, r, 4); + snd_mtxunlock(es->lock); + return 0; +} + +static int +sysctl_es1371x_latency_timer(SYSCTL_HANDLER_ARGS) +{ + struct es_info *es; + device_t dev; + int err, val; + + dev = oidp->oid_arg1; + es = pcm_getdevinfo(dev); + snd_mtxlock(es->lock); + val = pci_read_config(dev, PCIR_LATTIMER, 1); + snd_mtxunlock(es->lock); + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + + if (err || req->newptr == NULL) + return err; + if (val < 0 || val > 255) + return EINVAL; + + snd_mtxlock(es->lock); + pci_write_config(dev, PCIR_LATTIMER, val, 1); + snd_mtxunlock(es->lock); + return 0; +} +#endif /* SND_DYNSYSCTL */ + +static void +es_init_sysctls(device_t dev) +{ +#ifdef SND_DYNSYSCTL + struct es_info *es; + int r, devid, revid; + + devid = pci_get_devid(dev); + revid = pci_get_revid(dev); + es = pcm_getdevinfo(dev); + if ((devid == ES1371_PCI_ID && revid == ES1371REV_ES1373_8) || + (devid == ES1371_PCI_ID && revid == ES1371REV_CT5880_A) || + (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_C) || + (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_D) || + (devid == CT5880_PCI_ID && revid == CT5880REV_CT5880_E)) { + r = es_rd(es, ES1370_REG_STATUS, 4); + es->spdif_en = (r & ENABLE_SPDIF) ? 1 : 0; + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), + SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "spdif_enabled", + CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), + sysctl_es1371x_spdif_enable, "I", + "Enable S/PDIF output on primary playback channel"); + } + if (resource_int_value(device_get_name(dev), + device_get_unit(dev), "latency_timer", &r) == 0 && + !(r < 0 || r > 255)) + pci_write_config(dev, PCIR_LATTIMER, r, 1); + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), + SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "latency_timer", + CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), + sysctl_es1371x_latency_timer, "I", + "PCI Latency Timer configuration"); +#endif /* SND_DYNSYSCTL */ +} + static int es_pci_attach(device_t dev) { @@ -841,12 +978,13 @@ char status[SND_STATUSLEN]; struct ac97_info *codec = 0; kobj_class_t ct = NULL; + int devid, revid; if ((es = malloc(sizeof *es, M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) { device_printf(dev, "cannot allocate softc\n"); return ENXIO; } - + es->lock = snd_mtxcreate(device_get_nameunit(dev), "sound softc"); es->dev = dev; mapped = 0; data = pci_read_config(dev, PCIR_COMMAND, 2); @@ -882,10 +1020,11 @@ es->bufsz = pcm_getbuffersize(dev, 4096, ES_DEFAULT_BUFSZ, 65536); - if (pci_get_devid(dev) == ES1371_PCI_ID || - pci_get_devid(dev) == ES1371_PCI_ID2 || - pci_get_devid(dev) == CT5880_PCI_ID || - pci_get_devid(dev) == CT4730_PCI_ID) { + devid = pci_get_devid(dev); + revid = pci_get_revid(dev); + + if (devid == ES1371_PCI_ID || devid == ES1371_PCI_ID2 || + devid == CT5880_PCI_ID || devid == CT4730_PCI_ID) { if(-1 == es1371_init(es, dev)) { device_printf(dev, "unable to initialize the card\n"); goto bad; @@ -897,7 +1036,7 @@ /* ac97_mixer.init = NULL; */ if (mixer_init(dev, ac97_getmixerclass(), codec)) goto bad; ct = &eschan1371_class; - } else if (pci_get_devid(dev) == ES1370_PCI_ID) { + } else if (devid == ES1370_PCI_ID) { if (-1 == es1370_init(es)) { device_printf(dev, "unable to initialize the card\n"); goto bad; @@ -909,7 +1048,7 @@ es->irqid = 0; es->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &es->irqid, RF_ACTIVE | RF_SHAREABLE); - if (!es->irq || snd_setup_intr(dev, es->irq, 0, es_intr, es, &es->ih)) { + if (!es->irq || snd_setup_intr(dev, es->irq, INTR_MPSAFE, es_intr, es, &es->ih)) { device_printf(dev, "unable to map interrupt\n"); goto bad; } @@ -919,8 +1058,8 @@ /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/es->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &es->parent_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &es->parent_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -932,16 +1071,18 @@ if (pcm_register(dev, es, 1, 1)) goto bad; pcm_addchan(dev, PCMDIR_REC, ct, es); pcm_addchan(dev, PCMDIR_PLAY, ct, es); + es_init_sysctls(dev); pcm_setstatus(dev, status); return 0; bad: - if (codec) ac97_destroy(codec); - if (es->reg) bus_release_resource(dev, es->regtype, es->regid, es->reg); + if (es->parent_dmat) bus_dma_tag_destroy(es->parent_dmat); if (es->ih) bus_teardown_intr(dev, es->irq, es->ih); if (es->irq) bus_release_resource(dev, SYS_RES_IRQ, es->irqid, es->irq); - if (es->parent_dmat) bus_dma_tag_destroy(es->parent_dmat); + if (codec) ac97_destroy(codec); + if (es->reg) bus_release_resource(dev, es->regtype, es->regid, es->reg); + if (es->lock) snd_mtxfree(es->lock); if (es) free(es, M_DEVBUF); return ENXIO; } @@ -953,14 +1094,14 @@ struct es_info *es; r = pcm_unregister(dev); - if (r) - return r; + if (r) return r; es = pcm_getdevinfo(dev); - bus_release_resource(dev, es->regtype, es->regid, es->reg); + bus_dma_tag_destroy(es->parent_dmat); bus_teardown_intr(dev, es->irq, es->ih); bus_release_resource(dev, SYS_RES_IRQ, es->irqid, es->irq); - bus_dma_tag_destroy(es->parent_dmat); + bus_release_resource(dev, es->regtype, es->regid, es->reg); + snd_mtxfree(es->lock); free(es, M_DEVBUF); return 0; --- sys/dev/sound/pci/es137x.h.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pci/es137x.h Fri Sep 16 06:32:00 2005 @@ -167,6 +167,17 @@ #define ES1371_SRC_RAM_DATAI(i) (((i)>>0)&0xffff) /* current value of the sample rate converter */ /* + * S/PDIF specific + */ + +/* Use ES1370_REG_CONTROL */ +#define RECEN_B 0x08000000 /* Used to control mixing of analog with digital data */ +#define SPDIFEN_B 0x04000000 /* Reset to switch digital output mux to "THRU" mode */ +/* Use ES1370_REG_STATUS */ +#define ENABLE_SPDIF 0x00040000 /* Used to enable the S/PDIF circuitry */ +#define TEST_SPDIF 0x00020000 /* Used to put the S/PDIF module in "test mode" */ + +/* * Sample rate converter addresses */ --- sys/dev/sound/pci/via8233.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pci/via8233.c Fri Sep 16 06:32:00 2005 @@ -100,12 +100,14 @@ struct ac97_info *codec; unsigned int bufsz; + int spdif_en, dxs_src; struct via_chinfo pch[NDXSCHANS + NMSGDCHANS]; struct via_chinfo rch[NWRCHANS]; struct via_dma_op *sgd_table; u_int16_t codec_caps; u_int16_t n_dxs_registered; + struct mtx *lock; }; static u_int32_t via_fmt[] = { @@ -119,6 +121,91 @@ static struct pcmchan_caps via_vracaps = { 4000, 48000, via_fmt, 0 }; static struct pcmchan_caps via_caps = { 48000, 48000, via_fmt, 0 }; +#ifdef SND_DYNSYSCTL +static int +sysctl_via8233_spdif_enable(SYSCTL_HANDLER_ARGS) +{ + struct via_info *via; + device_t dev; + int err, new_en, r; + + dev = oidp->oid_arg1; + via = pcm_getdevinfo(dev); + snd_mtxlock(via->lock); + new_en = via->spdif_en; + snd_mtxunlock(via->lock); + err = sysctl_handle_int(oidp, &new_en, sizeof(new_en), req); + + if (err || req->newptr == NULL) + return err; + if (new_en < 0 || new_en > 1) + return EINVAL; + + snd_mtxlock(via->lock); + via->spdif_en = new_en; + + r = pci_read_config(dev, VIA_PCI_SPDIF, 1) & ~VIA_SPDIF_EN; + if (new_en) + r |= VIA_SPDIF_EN; + pci_write_config(dev, VIA_PCI_SPDIF, r, 1); + snd_mtxunlock(via->lock); + + return 0; +} + +static int +sysctl_via8233_dxs_src(SYSCTL_HANDLER_ARGS) +{ + struct via_info *via; + device_t dev; + int err, val; + + dev = oidp->oid_arg1; + via = pcm_getdevinfo(dev); + snd_mtxlock(via->lock); + val = via->dxs_src; + snd_mtxunlock(via->lock); + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + + if (err || req->newptr == NULL) + return err; + if (val < 0 || val > 1) + return EINVAL; + + snd_mtxlock(via->lock); + via->dxs_src = val; + snd_mtxunlock(via->lock); + + return 0; +} +#endif /* SND_DYNSYSCTL */ + +static void +via_init_sysctls(device_t dev) +{ +#ifdef SND_DYNSYSCTL + struct via_info *via; + int r; + + via = pcm_getdevinfo(dev); + r = pci_read_config(dev, VIA_PCI_SPDIF, 1); + via->spdif_en = (r & VIA_SPDIF_EN) ? 1 : 0; + + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), + SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "spdif_enabled", + CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), + sysctl_via8233_spdif_enable, "I", + "Enable S/PDIF output on primary playback channel"); + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), + SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "via_dxs_src", + CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), + sysctl_via8233_dxs_src, "I", + "Enable VIA DXS Sample Rate Converter"); +#endif +} + static u_int32_t via_rd(struct via_info *via, int regno, int size) { @@ -253,7 +340,7 @@ { struct via_chinfo *ch = data; struct via_info *via = ch->parent; - + u_int32_t f = WR_FORMAT_STOP_INDEX; if (format & AFMT_STEREO) @@ -270,9 +357,10 @@ { struct via_chinfo *ch = data; struct via_info *via = ch->parent; + u_int32_t r, v; - u_int32_t r = ch->rbase + VIA8233_RP_DXS_RATEFMT; - u_int32_t v = via_rd(via, r, 4); + r = ch->rbase + VIA8233_RP_DXS_RATEFMT; + v = via_rd(via, r, 4); v &= ~(VIA8233_DXS_RATEFMT_STEREO | VIA8233_DXS_RATEFMT_16BIT); if (format & AFMT_STEREO) @@ -316,11 +404,10 @@ struct via_chinfo *ch = data; struct via_info *via = ch->parent; - u_int32_t spd = 48000; - if (via->codec_caps & AC97_EXTCAP_VRA) { - spd = ac97_setrate(via->codec, AC97_REGEXT_LADCRATE, speed); - } - return spd; + if (via->codec_caps & AC97_EXTCAP_VRA) + return ac97_setrate(via->codec, AC97_REGEXT_LADCRATE, speed); + + return 48000; } static int @@ -328,9 +415,10 @@ { struct via_chinfo *ch = data; struct via_info *via = ch->parent; + u_int32_t r, v; - u_int32_t r = ch->rbase + VIA8233_RP_DXS_RATEFMT; - u_int32_t v = via_rd(via, r, 4) & ~VIA8233_DXS_RATEFMT_48K; + r = ch->rbase + VIA8233_RP_DXS_RATEFMT; + v = via_rd(via, r, 4) & ~VIA8233_DXS_RATEFMT_48K; /* Careful to avoid overflow (divide by 48 per vt8233c docs) */ @@ -362,7 +450,7 @@ struct via_info *via = ch->parent; /* Controlled by ac97 registers */ - if (via->codec_caps & AC97_EXTCAP_VRA) + if (via->codec_caps & AC97_EXTCAP_VRA) return &via_vracaps; return &via_caps; } @@ -370,7 +458,17 @@ static struct pcmchan_caps * via8233dxs_getcaps(kobj_t obj, void *data) { - /* Controlled by onboard registers */ + struct via_chinfo *ch = data; + struct via_info *via = ch->parent; + + /* + * Controlled by onboard registers + * + * Apparently, few boards can do DXS sample rate + * conversion. + */ + if (via->dxs_src) + return &via_vracaps; return &via_caps; } @@ -381,7 +479,7 @@ struct via_info *via = ch->parent; /* Controlled by ac97 registers */ - if (via->codec_caps & AC97_EXTCAP_VRA) + if (via->codec_caps & AC97_EXTCAP_VRA) return &via_vracaps; return &via_caps; } @@ -393,6 +491,7 @@ via8233chan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) { struct via_chinfo *ch = data; + sndbuf_resize(ch->buffer, SEGS_PER_CHAN, blocksize); ch->blksz = sndbuf_getblksz(ch->buffer); return ch->blksz; @@ -403,11 +502,13 @@ { struct via_chinfo *ch = data; struct via_info *via = ch->parent; + u_int32_t v, index, count; + int ptr; - u_int32_t v = via_rd(via, ch->rbase + VIA_RP_CURRENT_COUNT, 4); - u_int32_t index = v >> 24; /* Last completed buffer */ - u_int32_t count = v & 0x00ffffff; /* Bytes remaining */ - int ptr = (index + 1) * ch->blksz - count; + v = via_rd(via, ch->rbase + VIA_RP_CURRENT_COUNT, 4); + index = v >> 24; /* Last completed buffer */ + count = v & 0x00ffffff; /* Bytes remaining */ + ptr = (index + 1) * ch->blksz - count; ptr %= SEGS_PER_CHAN * ch->blksz; /* Wrap to available space */ return ptr; @@ -439,6 +540,7 @@ struct via_info *via = devinfo; struct via_chinfo *ch = &via->rch[c->num]; + snd_mtxlock(via->lock); ch->parent = via; ch->channel = c; ch->buffer = b; @@ -446,11 +548,15 @@ ch->rbase = VIA_WR_BASE(c->num); via_wr(via, ch->rbase + VIA_WR_RP_SGD_FORMAT, WR_FIFO_ENABLE, 1); + snd_mtxunlock(via->lock); if (sndbuf_alloc(ch->buffer, via->parent_dmat, via->bufsz) != 0) return NULL; + + snd_mtxlock(via->lock); via8233chan_sgdinit(via, ch, c->num); via8233chan_reset(via, ch); + snd_mtxunlock(via->lock); return ch; } @@ -462,6 +568,7 @@ struct via_info *via = devinfo; struct via_chinfo *ch = &via->pch[c->num]; + snd_mtxlock(via->lock); ch->parent = via; ch->channel = c; ch->buffer = b; @@ -474,11 +581,15 @@ */ ch->rbase = VIA_DXS_BASE(NDXSCHANS - 1 - via->n_dxs_registered); via->n_dxs_registered++; + snd_mtxunlock(via->lock); if (sndbuf_alloc(ch->buffer, via->parent_dmat, via->bufsz) != 0) return NULL; + + snd_mtxlock(via->lock); via8233chan_sgdinit(via, ch, NWRCHANS + c->num); via8233chan_reset(via, ch); + snd_mtxunlock(via->lock); return ch; } @@ -490,16 +601,21 @@ struct via_info *via = devinfo; struct via_chinfo *ch = &via->pch[c->num]; + snd_mtxlock(via->lock); ch->parent = via; ch->channel = c; ch->buffer = b; ch->dir = dir; ch->rbase = VIA_MC_SGD_STATUS; + snd_mtxunlock(via->lock); if (sndbuf_alloc(ch->buffer, via->parent_dmat, via->bufsz) != 0) return NULL; + + snd_mtxlock(via->lock); via8233chan_sgdinit(via, ch, NWRCHANS + c->num); via8233chan_reset(via, ch); + snd_mtxunlock(via->lock); return ch; } @@ -590,16 +706,19 @@ int i, stat; /* Poll playback channels */ + snd_mtxlock(via->lock); for (i = 0; i < NDXSCHANS + NMSGDCHANS; i++) { if (via->pch[i].rbase == 0) continue; stat = via->pch[i].rbase + VIA_RP_STATUS; if (via_rd(via, stat, 1) & SGD_STATUS_INTR) { via_wr(via, stat, SGD_STATUS_INTR, 1); + snd_mtxunlock(via->lock); chn_intr(via->pch[i].channel); + snd_mtxlock(via->lock); } } - + /* Poll record channels */ for (i = 0; i < NWRCHANS; i++) { if (via->rch[i].rbase == 0) @@ -607,9 +726,12 @@ stat = via->rch[i].rbase + VIA_RP_STATUS; if (via_rd(via, stat, 1) & SGD_STATUS_INTR) { via_wr(via, stat, SGD_STATUS_INTR, 1); + snd_mtxunlock(via->lock); chn_intr(via->rch[i].channel); + snd_mtxlock(via->lock); } } + snd_mtxunlock(via->lock); } /* @@ -710,65 +832,22 @@ return ENXIO; } -#ifdef SND_DYNSYSCTL -static int via8233_spdif_en; - -static int -sysctl_via8233_spdif_enable(SYSCTL_HANDLER_ARGS) -{ - device_t dev; - int err, new_en, r; - - new_en = via8233_spdif_en; - err = sysctl_handle_int(oidp, &new_en, sizeof(new_en), req); - if (err || req->newptr == NULL) - return err; - - if (new_en < 0 || new_en > 1) - return EINVAL; - via8233_spdif_en = new_en; - - dev = oidp->oid_arg1; - r = pci_read_config(dev, VIA_PCI_SPDIF, 1) & ~VIA_SPDIF_EN; - if (new_en) - r |= VIA_SPDIF_EN; - pci_write_config(dev, VIA_PCI_SPDIF, r, 1); - return 0; -} -#endif /* SND_DYNSYSCTL */ - -static void -via_init_sysctls(device_t dev) -{ -#ifdef SND_DYNSYSCTL - int r; - - r = pci_read_config(dev, VIA_PCI_SPDIF, 1); - via8233_spdif_en = (r & VIA_SPDIF_EN) ? 1 : 0; - - SYSCTL_ADD_PROC(snd_sysctl_tree(dev), - SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), - OID_AUTO, "spdif_enabled", - CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), - sysctl_via8233_spdif_enable, "I", - "Enable S/PDIF output on primary playback channel"); -#endif -} - static int via_attach(device_t dev) { struct via_info *via = 0; char status[SND_STATUSLEN]; + int i, via_dxs_disabled, via_dxs_src, via_dxs_chnum, via_sgd_chnum; if ((via = malloc(sizeof *via, M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) { device_printf(dev, "cannot allocate softc\n"); return ENXIO; } + via->lock = snd_mtxcreate(device_get_nameunit(dev), "sound softc"); pci_set_powerstate(dev, PCI_POWERSTATE_D0); pci_enable_busmaster(dev); - + via->regid = PCIR_BAR(0); via->reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &via->regid, RF_ACTIVE); @@ -785,7 +864,7 @@ via->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &via->irqid, RF_ACTIVE | RF_SHAREABLE); if (!via->irq || - snd_setup_intr(dev, via->irq, 0, via_intr, via, &via->ih)) { + snd_setup_intr(dev, via->irq, INTR_MPSAFE, via_intr, via, &via->ih)) { device_printf(dev, "unable to map interrupt\n"); goto bad; } @@ -796,8 +875,8 @@ /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/via->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &via->parent_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &via->parent_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -813,8 +892,8 @@ /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/NSEGS * sizeof(struct via_dma_op), /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &via->sgd_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &via->sgd_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -850,28 +929,71 @@ snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld %s", rman_get_start(via->reg), rman_get_start(via->irq),PCM_KLDSTRING(snd_via8233)); - /* Register */ + /* + * Decide whether DXS had to be disabled or not + */ if (pci_get_revid(dev) == VIA8233_REV_ID_8233A) { - if (pcm_register(dev, via, NMSGDCHANS, 1)) goto bad; /* * DXS channel is disabled. Reports from multiple users * that it plays at half-speed. Do not see this behaviour * on available 8233C or when emulating 8233A register set * on 8233C (either with or without ac97 VRA). - pcm_addchan(dev, PCMDIR_PLAY, &via8233dxs_class, via); */ - pcm_addchan(dev, PCMDIR_PLAY, &via8233msgd_class, via); - pcm_addchan(dev, PCMDIR_REC, &via8233wr_class, via); + via_dxs_disabled = 1; + } else if (resource_int_value(device_get_name(dev), + device_get_unit(dev), "via_dxs_disabled", + &via_dxs_disabled) == 0) + via_dxs_disabled = (via_dxs_disabled > 0) ? 1 : 0; + else + via_dxs_disabled = 0; + + if (via_dxs_disabled) { + via_dxs_chnum = 0; + via_sgd_chnum = 1; } else { - int i; - if (pcm_register(dev, via, NMSGDCHANS + NDXSCHANS, NWRCHANS)) goto bad; - for (i = 0; i < NDXSCHANS; i++) - pcm_addchan(dev, PCMDIR_PLAY, &via8233dxs_class, via); - pcm_addchan(dev, PCMDIR_PLAY, &via8233msgd_class, via); - for (i = 0; i < NWRCHANS; i++) - pcm_addchan(dev, PCMDIR_REC, &via8233wr_class, via); + if (resource_int_value(device_get_name(dev), + device_get_unit(dev), "via_dxs_channels", + &via_dxs_chnum) != 0) + via_dxs_chnum = NDXSCHANS; + if (resource_int_value(device_get_name(dev), + device_get_unit(dev), "via_sgd_channels", + &via_sgd_chnum) != 0) + via_sgd_chnum = NMSGDCHANS; + } + if (via_dxs_chnum > NDXSCHANS) + via_dxs_chnum = NDXSCHANS; + else if (via_dxs_chnum < 0) + via_dxs_chnum = 0; + if (via_sgd_chnum > NMSGDCHANS) + via_sgd_chnum = NMSGDCHANS; + else if (via_sgd_chnum < 0) + via_sgd_chnum = 0; + if (via_dxs_chnum + via_sgd_chnum < 1) { + /* Minimalist ? */ + via_dxs_chnum = 1; + via_sgd_chnum = 0; + } + if (via_dxs_chnum > 0 && resource_int_value(device_get_name(dev), + device_get_unit(dev), "via_dxs_src", + &via_dxs_src) == 0) + via->dxs_src = (via_dxs_src > 0) ? 1 : 0; + else + via->dxs_src = 0; + /* Register */ + if (pcm_register(dev, via, via_dxs_chnum + via_sgd_chnum, NWRCHANS)) + goto bad; + for (i = 0; i < via_dxs_chnum; i++) + pcm_addchan(dev, PCMDIR_PLAY, &via8233dxs_class, via); + for (i = 0; i < via_sgd_chnum; i++) + pcm_addchan(dev, PCMDIR_PLAY, &via8233msgd_class, via); + for (i = 0; i < NWRCHANS; i++) + pcm_addchan(dev, PCMDIR_REC, &via8233wr_class, via); + if (via_dxs_chnum > 0) via_init_sysctls(dev); - } + device_printf(dev, "\n", + (via_dxs_chnum > 0) ? "En" : "Dis", + (via->dxs_src) ? "(SRC)" : "", + via_dxs_chnum, via_sgd_chnum, NWRCHANS); pcm_setstatus(dev, status); @@ -884,6 +1006,7 @@ if (via->parent_dmat) bus_dma_tag_destroy(via->parent_dmat); if (via->sgd_dmamap) bus_dmamap_unload(via->sgd_dmat, via->sgd_dmamap); if (via->sgd_dmat) bus_dma_tag_destroy(via->sgd_dmat); + if (via->lock) snd_mtxfree(via->lock); if (via) free(via, M_DEVBUF); return ENXIO; } @@ -904,6 +1027,7 @@ bus_dma_tag_destroy(via->parent_dmat); bus_dmamap_unload(via->sgd_dmat, via->sgd_dmamap); bus_dma_tag_destroy(via->sgd_dmat); + snd_mtxfree(via->lock); free(via, M_DEVBUF); return 0; } --- sys/dev/sound/pci/via82c686.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pci/via82c686.c Fri Sep 16 06:32:00 2005 @@ -86,6 +86,7 @@ struct via_chinfo pch, rch; struct via_dma_op *sgd_table; u_int16_t codec_caps; + struct mtx *lock; }; static u_int32_t via_fmt[] = { @@ -244,6 +245,7 @@ struct via_info *via = devinfo; struct via_chinfo *ch; + snd_mtxlock(via->lock); if (dir == PCMDIR_PLAY) { ch = &via->pch; ch->base = VIA_PLAY_DMAOPS_BASE; @@ -266,9 +268,11 @@ ch->channel = c; ch->buffer = b; ch->dir = dir; + snd_mtxunlock(via->lock); if (sndbuf_alloc(ch->buffer, via->parent_dmat, via->bufsz) != 0) return NULL; + return ch; } @@ -417,22 +421,25 @@ via_intr(void *p) { struct via_info *via = p; - int st; /* DEB(printf("viachan_intr\n")); */ /* Read channel */ - st = via_rd(via, VIA_PLAY_STAT, 1); - if (st & VIA_RPSTAT_INTR) { + snd_mtxlock(via->lock); + if (via_rd(via, VIA_PLAY_STAT, 1) & VIA_RPSTAT_INTR) { via_wr(via, VIA_PLAY_STAT, VIA_RPSTAT_INTR, 1); + snd_mtxunlock(via->lock); chn_intr(via->pch.channel); + snd_mtxlock(via->lock); } /* Write channel */ - st = via_rd(via, VIA_RECORD_STAT, 1); - if (st & VIA_RPSTAT_INTR) { + if (via_rd(via, VIA_RECORD_STAT, 1) & VIA_RPSTAT_INTR) { via_wr(via, VIA_RECORD_STAT, VIA_RPSTAT_INTR, 1); + snd_mtxunlock(via->lock); chn_intr(via->rch.channel); + return; } + snd_mtxunlock(via->lock); } /* @@ -468,6 +475,7 @@ device_printf(dev, "cannot allocate softc\n"); return ENXIO; } + via->lock = snd_mtxcreate(device_get_nameunit(dev), "sound softc"); /* Get resources */ data = pci_read_config(dev, PCIR_COMMAND, 2); @@ -521,7 +529,7 @@ via->irqid = 0; via->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &via->irqid, RF_ACTIVE | RF_SHAREABLE); - if (!via->irq || snd_setup_intr(dev, via->irq, 0, via_intr, via, &via->ih)) { + if (!via->irq || snd_setup_intr(dev, via->irq, INTR_MPSAFE, via_intr, via, &via->ih)) { device_printf(dev, "unable to map interrupt\n"); goto bad; } @@ -546,8 +554,8 @@ /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/via->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &via->parent_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &via->parent_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -563,8 +571,8 @@ /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/NSEGS * sizeof(struct via_dma_op), /*nsegments*/1, /*maxsegz*/0x3ffff, - /*flags*/0, /*lockfunc*/busdma_lock_mutex, - /*lockarg*/&Giant, &via->sgd_dmat) != 0) { + /*flags*/0, /*lockfunc*/NULL, + /*lockarg*/NULL, &via->sgd_dmat) != 0) { device_printf(dev, "unable to create dma tag\n"); goto bad; } @@ -594,6 +602,7 @@ if (via->parent_dmat) bus_dma_tag_destroy(via->parent_dmat); if (via->sgd_dmamap) bus_dmamap_unload(via->sgd_dmat, via->sgd_dmamap); if (via->sgd_dmat) bus_dma_tag_destroy(via->sgd_dmat); + if (via->lock) snd_mtxfree(via->lock); if (via) free(via, M_DEVBUF); return ENXIO; } @@ -615,6 +624,7 @@ bus_dma_tag_destroy(via->parent_dmat); bus_dmamap_unload(via->sgd_dmat, via->sgd_dmamap); bus_dma_tag_destroy(via->sgd_dmat); + snd_mtxfree(via->lock); free(via, M_DEVBUF); return 0; } --- sys/dev/sound/pcm/ac97.c.orig Sun May 1 22:31:06 2005 +++ sys/dev/sound/pcm/ac97.c Fri Sep 16 06:32:00 2005 @@ -118,6 +118,11 @@ { 0x57454300, "Winbond" }, { 0x574d4c00, "Wolfson" }, { 0x594d4800, "Yamaha" }, + /* + * XXX This is a fluke, really! The real vendor + * should be SigmaTel, not this! This should be + * removed someday! + */ { 0x01408300, "Creative" }, { 0x00000000, NULL } }; @@ -158,6 +163,7 @@ { 0x43525960, 0x07, 0, "CS4291A", 0 }, { 0x434d4961, 0x00, 0, "CMI9739", 0 }, { 0x434d4941, 0x00, 0, "CMI9738", 0 }, + { 0x434d4983, 0x00, 0, "CMI9761", 0 }, { 0x43585421, 0x00, 0, "HSD11246", 0 }, { 0x43585428, 0x07, 0, "CX20468", 0 }, { 0x44543000, 0x00, 0, "DT0398", 0 }, @@ -211,6 +217,11 @@ { 0x594d4800, 0x00, 0, "YMF743", 0 }, { 0x594d4802, 0x00, 0, "YMF752", 0 }, { 0x594d4803, 0x00, 0, "YMF753", 0 }, + /* + * XXX This is a fluke, really! The real codec + * should be STAC9704, not this! This should be + * removed someday! + */ { 0x01408384, 0x00, 0, "EV1938", 0 }, { 0, 0, 0, NULL, 0 } }; @@ -283,6 +294,21 @@ u_int16_t ac97_rdcd(struct ac97_info *codec, int reg) { + if (codec->flags & AC97_F_RDCD_BUG) { + u_int16_t i[2], j = 100; + + i[0] = AC97_READ(codec->methods, codec->devinfo, reg); + i[1] = AC97_READ(codec->methods, codec->devinfo, reg); + while (i[0] != i[1] && j) + i[j-- & 1] = AC97_READ(codec->methods, codec->devinfo, reg); +#if 0 + if (j < 100) { + device_printf(codec->dev, "%s(): Inconsistent register value at" + " 0x%08x (retry: %d)\n", __func__, reg, 100 - j); + } +#endif + return i[!(j & 1)]; + } return AC97_READ(codec->methods, codec->devinfo, reg); } @@ -452,14 +478,16 @@ */ snd_mtxlock(codec->lock); if (e->mask) { - int cur = ac97_rdcd(codec, e->reg); + int cur = ac97_rdcd(codec, reg); val |= cur & ~(mask); } ac97_wrcd(codec, reg, val); snd_mtxunlock(codec->lock); return left | (right << 8); } else { - /* printf("ac97_setmixer: reg=%d, bits=%d, enable=%d\n", e->reg, e->bits, e->enable); */ +#if 0 + printf("ac97_setmixer: reg=%d, bits=%d, enable=%d\n", e->reg, e->bits, e->enable); +#endif return -1; } } @@ -511,6 +539,38 @@ } } +static void +ac97_fix_volume(struct ac97_info *codec) +{ + struct snddev_info *d = device_get_softc(codec->dev); + +#if 0 + /* XXX For the sake of debugging purposes */ + ac97_wrcd(codec, AC97_MIX_PCM, 0); + bzero(&codec->mix[SOUND_MIXER_PCM], + sizeof(codec->mix[SOUND_MIXER_PCM])); + codec->flags |= AC97_F_SOFTVOL; + if (d) + d->flags |= SD_F_SOFTVOL; + return; +#endif + switch (codec->id) { + case 0x434d4941: /* CMI9738 */ + case 0x434d4961: /* CMI9739 */ + case 0x434d4983: /* CMI9761 */ + ac97_wrcd(codec, AC97_MIX_PCM, 0); + bzero(&codec->mix[SOUND_MIXER_PCM], + sizeof(codec->mix[SOUND_MIXER_PCM])); + break; + default: + return; + break; + } + codec->flags |= AC97_F_SOFTVOL; + if (d) + d->flags |= SD_F_SOFTVOL; +} + static const char* ac97_hw_desc(u_int32_t id, const char* vname, const char* cname, char* buf) { @@ -536,8 +596,9 @@ const char *cname, *vname; char desc[80]; u_int8_t model, step; - unsigned i, j, k, old; + unsigned i, j, k, bit, old; u_int32_t id; + int reg; snd_mtxlock(codec->lock); codec->count = AC97_INIT(codec->methods, codec->devinfo); @@ -552,6 +613,16 @@ ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); i = ac97_rdcd(codec, AC97_REG_RESET); + j = ac97_rdcd(codec, AC97_REG_RESET); + /* + * Let see if this codec can return consistent value. + * If not, turn on aggressive read workaround + * (STAC9704 comes in mind). + */ + if (i != j) { + codec->flags |= AC97_F_RDCD_BUG; + i = ac97_rdcd(codec, AC97_REG_RESET); + } codec->caps = i & 0x03ff; codec->se = (i & 0x7c00) >> 10; @@ -605,27 +676,75 @@ } ac97_fix_auxout(codec); ac97_fix_tone(codec); + ac97_fix_volume(codec); if (codec_patch) codec_patch(codec); for (i = 0; i < 32; i++) { k = codec->noext? codec->mix[i].enable : 1; - if (k && (codec->mix[i].reg > 0)) { - old = ac97_rdcd(codec, codec->mix[i].reg); - ac97_wrcd(codec, codec->mix[i].reg, 0x3f); - j = ac97_rdcd(codec, codec->mix[i].reg); - ac97_wrcd(codec, codec->mix[i].reg, old); - codec->mix[i].enable = (j != 0 && j != old)? 1 : 0; - for (k = 1; j & (1 << k); k++); - codec->mix[i].bits = j? k - codec->mix[i].ofs : 0; + reg = codec->mix[i].reg; + if (reg < 0) + reg = -reg; + if (k && reg) { + j = old = ac97_rdcd(codec, reg); + /* + * Test for mute bit (except for AC97_MIX_TONE, + * where we simply assume it as available). + */ + if (codec->mix[i].mute) { + ac97_wrcd(codec, reg, j | 0x8000); + j = ac97_rdcd(codec, reg); + } else + j |= 0x8000; + if ((j & 0x8000)) { + /* + * Test whether the control width should be + * 4, 5 or 6 bit. For 5bit register, we should + * test it whether it's really 5 or 6bit. Leave + * 4bit register alone, because sometimes an + * attempt to write past 4th bit may cause + * incorrect result especially for AC97_MIX_BEEP + * (ac97 2.3). + */ + bit = codec->mix[i].bits; + if (bit == 5) + bit++; + j = ((1 << bit) - 1) << codec->mix[i].ofs; + ac97_wrcd(codec, reg, + j | (codec->mix[i].mute ? 0x8000 : 0)); + k = ac97_rdcd(codec, reg) & j; + k >>= codec->mix[i].ofs; + if (reg == AC97_MIX_TONE && + ((k & 0x0001) == 0x0000)) + k >>= 1; + for (j = 0; k >> j; j++) + ; + if (j != 0) { +#if 0 + device_printf(codec->dev, "%2d: [ac97_rdcd() = %d] [Testbit = %d] %d -> %d\n", + i, k, bit, codec->mix[i].bits, j); +#endif + codec->mix[i].enable = 1; + codec->mix[i].bits = j; + } else + codec->mix[i].enable = 0; + } else + codec->mix[i].enable = 0; + ac97_wrcd(codec, reg, old); } - /* printf("mixch %d, en=%d, b=%d\n", i, codec->mix[i].enable, codec->mix[i].bits); */ +#if 0 + printf("mixch %d, en=%d, b=%d\n", i, codec->mix[i].enable, codec->mix[i].bits); +#endif } device_printf(codec->dev, "<%s>\n", ac97_hw_desc(codec->id, vname, cname, desc)); if (bootverbose) { + if (codec->flags & AC97_F_RDCD_BUG) + device_printf(codec->dev, "Buggy AC97 Codec: aggressive ac97_rdcd() workaround enabled\n"); + if (codec->flags & AC97_F_SOFTVOL) + device_printf(codec->dev, "Soft PCM volume\n"); device_printf(codec->dev, "Codec features "); for (i = j = 0; i < 10; i++) if (codec->caps & (1 << i)) @@ -645,8 +764,16 @@ } } - if ((ac97_rdcd(codec, AC97_REG_POWER) & 2) == 0) - device_printf(codec->dev, "ac97 codec reports dac not ready\n"); + i = 0; + while ((ac97_rdcd(codec, AC97_REG_POWER) & 2) == 0) { + if (++i == 100) { + device_printf(codec->dev, "ac97 codec reports dac not ready\n"); + break; + } + DELAY(1000); + } + if (bootverbose) + device_printf(codec->dev, "ac97 codec dac ready count: %d\n", i); snd_mtxunlock(codec->lock); return 0; } --- sys/dev/sound/pcm/ac97.h.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pcm/ac97.h Fri Sep 16 06:32:00 2005 @@ -81,6 +81,8 @@ #define AC97_REG_ID2 0x7e #define AC97_F_EAPD_INV 0x00000001 +#define AC97_F_RDCD_BUG 0x00000002 +#define AC97_F_SOFTVOL 0x00000004 #define AC97_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj)) #define AC97_CREATE(dev, devinfo, cls) ac97_create(dev, devinfo, &cls ## _class) --- sys/dev/sound/pcm/buffer.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pcm/buffer.c Fri Sep 16 06:32:00 2005 @@ -286,8 +286,12 @@ b->fmt = fmt; b->bps = 1; b->bps <<= (b->fmt & AFMT_STEREO)? 1 : 0; - b->bps <<= (b->fmt & AFMT_16BIT)? 1 : 0; - b->bps <<= (b->fmt & AFMT_32BIT)? 2 : 0; + if (b->fmt & AFMT_16BIT) + b->bps <<= 1; + else if (b->fmt & AFMT_24BIT) + b->bps *= 3; + else if (b->fmt & AFMT_32BIT) + b->bps <<= 2; return 0; } --- sys/dev/sound/pcm/channel.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pcm/channel.c Fri Sep 16 06:32:00 2005 @@ -79,6 +79,9 @@ case PCMDIR_VIRTUAL: c->lock = snd_mtxcreate(c->name, "pcm virtual play channel"); break; + case PCMDIR_SLAVE: + c->lock = snd_mtxcreate(c->name, "pcm slave play channel"); + break; case 0: c->lock = snd_mtxcreate(c->name, "pcm fake channel"); break; @@ -105,7 +108,9 @@ return (sndbuf_getblocks(bs) > sndbuf_getprevblocks(bs))? 1 : 0; } else { amt = (c->direction == PCMDIR_PLAY)? sndbuf_getfree(bs) : sndbuf_getready(bs); +#if 0 lim = (c->flags & CHN_F_HAS_SIZE)? sndbuf_getblksz(bs) : 1; +#endif lim = 1; return (amt >= lim)? 1 : 0; } @@ -206,7 +211,8 @@ CHN_LOCKASSERT(c); KASSERT(c->direction == PCMDIR_PLAY, ("chn_wrupdate on bad channel")); - if ((c->flags & (CHN_F_MAPPED | CHN_F_VIRTUAL)) || !(c->flags & CHN_F_TRIGGERED)) + if ((c->flags & (CHN_F_MAPPED | CHN_F_VIRTUAL | CHN_F_SLAVE)) || + !(c->flags & CHN_F_TRIGGERED)) return; chn_dmaupdate(c); ret = chn_wrfeed(c); @@ -225,11 +231,13 @@ unsigned int ret, amt; CHN_LOCKASSERT(c); -/* DEB( +#if 0 + DEB( if (c->flags & CHN_F_CLOSING) { sndbuf_dump(b, "b", 0x02); sndbuf_dump(bs, "bs", 0x02); - }) */ + }) +#endif if (c->flags & CHN_F_MAPPED) sndbuf_acquire(bs, NULL, sndbuf_getfree(bs)); @@ -238,10 +246,30 @@ KASSERT(amt <= sndbuf_getsize(bs), ("%s(%s): amt %d > source size %d, flags 0x%x", __func__, c->name, amt, sndbuf_getsize(bs), c->flags)); - if (sndbuf_getready(bs) < amt) - c->xruns++; - ret = (amt > 0)? sndbuf_feed(bs, b, c, c->feeder, amt) : ENOSPC; + if (SLIST_EMPTY(&c->children)) { + /* + * Hardware channel + */ + if (sndbuf_getready(bs) < amt) + c->xruns++; + ret = (amt > 0) ? sndbuf_feed(bs, b, c, c->feeder, amt) : ENOSPC; + } else { + /* + * vchan / slave + */ + if (amt > 0) { + ret = sndbuf_feed(bs, b, c, c->feeder, amt); + /* + * Possible vchan / slave xruns. There should be no empty + * space left in buffer. + */ + if (sndbuf_getfree(b) > 0) + c->xruns++; + } else + ret = ENOSPC; + } + if (ret == 0 && sndbuf_getfree(b) < amt) chn_wakeup(c); @@ -357,6 +385,11 @@ struct snd_dbuf *b = c->bufhard; CHN_LOCKASSERT(c); +#if 0 + static uint32_t kk = 0; + printf("%u: dumping %d bytes\n", ++kk, cnt); +#endif + c->xruns++; sndbuf_setxrun(b, sndbuf_getxrun(b) + cnt); return sndbuf_dispose(b, NULL, cnt); } @@ -379,11 +412,16 @@ sndbuf_dump(bs, "bs", 0x02); }) +#if 0 amt = sndbuf_getready(b); if (sndbuf_getfree(bs) < amt) { c->xruns++; amt = sndbuf_getfree(bs); } +#endif + amt = sndbuf_getfree(bs); + if (amt < sndbuf_getready(b)) + c->xruns++; ret = (amt > 0)? sndbuf_feed(b, bs, c, c->feeder, amt) : 0; amt = sndbuf_getready(b); @@ -533,10 +571,12 @@ * fed at the first irq. */ if (c->direction == PCMDIR_PLAY) { + /* + * Reduce pops during playback startup. + */ + sndbuf_fillsilence(b); if (SLIST_EMPTY(&c->children)) chn_wrfeed(c); - else - sndbuf_fillsilence(b); } sndbuf_setrun(b, 1); c->xruns = 0; @@ -637,7 +677,7 @@ /* kill the channel */ chn_trigger(c, PCMTRIG_ABORT); sndbuf_setrun(b, 0); - if (!(c->flags & CHN_F_VIRTUAL)) + if (!(c->flags & (CHN_F_VIRTUAL | CHN_F_SLAVE))) chn_dmaupdate(c); missing = sndbuf_getready(bs) + sndbuf_getready(b); @@ -733,18 +773,24 @@ r = CHANNEL_RESET(c->methods, c->devinfo); if (fmt != 0) { +#if 0 hwspd = DSP_DEFAULT_SPEED; /* only do this on a record channel until feederbuilder works */ if (c->direction == PCMDIR_REC) RANGE(hwspd, chn_getcaps(c)->minspeed, chn_getcaps(c)->maxspeed); c->speed = hwspd; +#endif + hwspd = chn_getcaps(c)->minspeed; + c->speed = hwspd; if (r == 0) r = chn_setformat(c, fmt); if (r == 0) r = chn_setspeed(c, hwspd); +#if 0 if (r == 0) r = chn_setvolume(c, 100, 100); +#endif } if (r == 0) r = chn_setblocksize(c, 0, 0); @@ -807,7 +853,7 @@ goto out; ret = ENOMEM; - if ((sndbuf_getsize(b) == 0) && ((c->flags & CHN_F_VIRTUAL) == 0)) + if ((sndbuf_getsize(b) == 0) && ((c->flags & (CHN_F_VIRTUAL | CHN_F_SLAVE)) == 0)) goto out; ret = chn_setdir(c, direction); @@ -880,7 +926,15 @@ { CHN_LOCKASSERT(c); /* should add a feeder for volume changing if channel returns -1 */ - c->volume = (left << 8) | right; + if (left > 100) + left = 100; + if (left < 0) + left = 0; + if (right > 100) + right = 100; + if (right < 0) + right = 0; + c->volume = left | (right << 8); return 0; } @@ -912,7 +966,10 @@ delta = -delta; c->feederflags &= ~(1 << FEEDER_RATE); - if (delta > 500) + /* + * Used to be 500. It was too big! + */ + if (delta > 25) c->feederflags |= 1 << FEEDER_RATE; else sndbuf_setspd(bs, sndbuf_getspd(b)); @@ -945,6 +1002,11 @@ r = FEEDER_SET(f, FEEDRATE_DST, sndbuf_getspd(x)); DEB(printf("feeder_set(FEEDRATE_DST, %d) = %d\n", sndbuf_getspd(x), r)); out: + if (!r) + r = CHANNEL_SETFORMAT(c->methods, c->devinfo, + sndbuf_getfmt(b)); + if (!r) + sndbuf_setfmt(bs, c->format); DEB(printf("setspeed done, r = %d\n", r)); return r; } else @@ -1050,6 +1112,10 @@ } reqblksz = blksz; + if (reqblksz < sndbuf_getbps(bs)) + reqblksz = sndbuf_getbps(bs); + if (reqblksz % sndbuf_getbps(bs)) + reqblksz -= reqblksz % sndbuf_getbps(bs); /* adjust for different hw format/speed */ irqhz = (sndbuf_getbps(bs) * sndbuf_getspd(bs)) / blksz; @@ -1113,6 +1179,24 @@ blksz, maxsize, blkcnt)); out: c->flags &= ~CHN_F_SETBLOCKSIZE; +#if 0 + if (1) { + static uint32_t kk = 0; + printf("%u: b %d/%d/%d : (%d)%d/0x%0x | bs %d/%d/%d : (%d)%d/0x%0x\n", ++kk, + sndbuf_getsize(b), sndbuf_getblksz(b), sndbuf_getblkcnt(b), + sndbuf_getbps(b), + sndbuf_getspd(b), sndbuf_getfmt(b), + sndbuf_getsize(bs), sndbuf_getblksz(bs), sndbuf_getblkcnt(bs), + sndbuf_getbps(bs), + sndbuf_getspd(bs), sndbuf_getfmt(bs)); + if (sndbuf_getsize(b) % sndbuf_getbps(b) || + sndbuf_getblksz(b) % sndbuf_getbps(b) || + sndbuf_getsize(bs) % sndbuf_getbps(bs) || + sndbuf_getblksz(b) % sndbuf_getbps(b)) { + printf("%u: bps/blksz alignment screwed!\n", kk); + } + } +#endif return ret; } @@ -1166,7 +1250,9 @@ /* report software-supported formats */ if (report_soft_formats) - fmts |= AFMT_MU_LAW|AFMT_A_LAW|AFMT_U16_LE|AFMT_U16_BE| + fmts |= AFMT_MU_LAW|AFMT_A_LAW|AFMT_U32_LE|AFMT_U32_BE| + AFMT_S32_LE|AFMT_S32_BE|AFMT_U24_LE|AFMT_U24_BE| + AFMT_S24_LE|AFMT_S24_BE|AFMT_U16_LE|AFMT_U16_BE| AFMT_S16_LE|AFMT_S16_BE|AFMT_U8|AFMT_S8; return fmts; @@ -1177,7 +1263,7 @@ { struct feeder_class *fc; struct pcm_feederdesc desc; - u_int32_t tmp[2], type, flags, hwfmt; + u_int32_t tmp[2], type, flags, hwfmt, *fmtlist; int err; CHN_LOCKASSERT(c); @@ -1198,25 +1284,43 @@ } c->feeder->desc->out = c->format; } else { - desc.type = FEEDER_MIXER; - desc.in = 0; + if (c->flags & CHN_F_HAS_SLAVE) { + desc.type = FEEDER_SLAVE; + desc.in = c->format; + } else if (c->flags & CHN_F_HAS_VCHAN) { + desc.type = FEEDER_MIXER; + desc.in = 0; + } else { + DEB(printf("can't decide which feeder type to use!\n")); + return EOPNOTSUPP; + } desc.out = c->format; desc.flags = 0; fc = feeder_getclass(&desc); if (fc == NULL) { - DEB(printf("can't find vchan feeder\n")); + DEB(printf("can't find %s feeder\n", + desc.type == FEEDER_MIXER ? "vchan" : "slave")); return EOPNOTSUPP; } err = chn_addfeeder(c, fc, &desc); if (err) { - DEB(printf("can't add vchan feeder, err %d\n", err)); + DEB(printf("can't add %s feeder, err %d\n", + desc.type == FEEDER_MIXER ? "vchan" : "slave", + err)); return err; } } + c->feederflags &= ~(1 << FEEDER_VOLUME); + if (c->direction == PCMDIR_PLAY && + !(c->flags & (CHN_F_VIRTUAL|CHN_F_HAS_SLAVE)) && + c->parentsnddev && (c->parentsnddev->flags & SD_F_SOFTVOL) && + c->parentsnddev->mixer_dev) + c->feederflags |= 1 << FEEDER_VOLUME; flags = c->feederflags; + fmtlist = chn_getcaps(c)->fmtlist; DEB(printf("feederflags %x\n", flags)); @@ -1235,7 +1339,9 @@ return EOPNOTSUPP; } - if (c->feeder->desc->out != fc->desc->in) { + if ((type == FEEDER_RATE && + !fmtvalid(fc->desc->in, fmtlist)) + || c->feeder->desc->out != fc->desc->in) { DEB(printf("build fmtchain from 0x%x to 0x%x: ", c->feeder->desc->out, fc->desc->in)); tmp[0] = fc->desc->in; tmp[1] = 0; @@ -1257,30 +1363,41 @@ } } - if (fmtvalid(c->feeder->desc->out, chn_getcaps(c)->fmtlist)) { + if (fmtvalid(c->feeder->desc->out, fmtlist) + && !(c->direction == PCMDIR_REC && + c->format != c->feeder->desc->out)) hwfmt = c->feeder->desc->out; - } else { + else { if (c->direction == PCMDIR_REC) { tmp[0] = c->format; tmp[1] = 0; hwfmt = chn_fmtchain(c, tmp); - } else { -#if 0 - u_int32_t *x = chn_getcaps(c)->fmtlist; - printf("acceptable formats for %s:\n", c->name); - while (*x) { - printf("[0x%8x] ", *x); - x++; - } -#endif - hwfmt = chn_fmtchain(c, chn_getcaps(c)->fmtlist); - } + } else + hwfmt = chn_fmtchain(c, fmtlist); } - if (hwfmt == 0) + if (hwfmt == 0 || !fmtvalid(hwfmt, fmtlist)) { + DEB(printf("Invalid hardware format: 0x%x\n", hwfmt)); return ENODEV; + } sndbuf_setfmt(c->bufhard, hwfmt); + + if ((flags & (1 << FEEDER_VOLUME))) { + int vol = 100 | (100 << 8); + + CHN_UNLOCK(c); + /* + * XXX This is ugly! The way mixer subs being so secretive + * about its own internals force us to use this silly + * monkey trick. + */ + if (mixer_ioctl(c->parentsnddev->mixer_dev, + MIXER_READ(SOUND_MIXER_PCM), (caddr_t)&vol, -1, NULL) != 0) + device_printf(c->dev, "Soft Volume: Failed to read default value\n"); + CHN_LOCK(c); + chn_setvolume(c, vol & 0x7f, (vol >> 8) & 0x7f); + } return 0; } --- sys/dev/sound/pcm/channel.h.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pcm/channel.h Fri Sep 16 06:32:00 2005 @@ -114,6 +114,7 @@ int fmtvalid(u_int32_t fmt, u_int32_t *fmtlist); +#define PCMDIR_SLAVE 3 #define PCMDIR_VIRTUAL 2 #define PCMDIR_PLAY 1 #define PCMDIR_REC -1 @@ -137,10 +138,15 @@ #define CHN_F_DEAD 0x00020000 #define CHN_F_BADSETTING 0x00040000 #define CHN_F_SETBLOCKSIZE 0x00080000 +#define CHN_F_HAS_VCHAN 0x00100000 +#define CHN_F_HAS_SLAVE 0x00200000 #define CHN_F_VIRTUAL 0x10000000 /* not backed by hardware */ +#define CHN_F_SLAVE 0x20000000 /* not backed by hardware */ -#define CHN_F_RESET (CHN_F_BUSY | CHN_F_DEAD | CHN_F_VIRTUAL) +#define CHN_F_RESET (CHN_F_BUSY | CHN_F_DEAD | \ + CHN_F_HAS_VCHAN | CHN_F_HAS_SLAVE | \ + CHN_F_VIRTUAL | CHN_F_SLAVE) #define CHN_N_RATE 0x00000001 #define CHN_N_FORMAT 0x00000002 --- sys/dev/sound/pcm/dsp.c.orig Sun Jan 30 09:00:04 2005 +++ sys/dev/sound/pcm/dsp.c Fri Sep 16 06:32:00 2005 @@ -242,13 +242,13 @@ */ if (flags & FREAD) { /* open for read */ + pcm_unlock(d); if (devtype == SND_DEV_DSPREC) rdch = pcm_chnalloc(d, PCMDIR_REC, td->td_proc->p_pid, PCMCHAN(i_dev)); else rdch = pcm_chnalloc(d, PCMDIR_REC, td->td_proc->p_pid, -1); if (!rdch) { /* no channel available, exit */ - pcm_unlock(d); splx(s); return EBUSY; } @@ -256,11 +256,11 @@ if (chn_reset(rdch, fmt)) { pcm_chnrelease(rdch); i_dev->si_drv1 = NULL; - pcm_unlock(d); splx(s); return ENODEV; } + pcm_lock(d); if (flags & O_NONBLOCK) rdch->flags |= CHN_F_NBIO; pcm_chnref(rdch, 1); @@ -273,6 +273,7 @@ if (flags & FWRITE) { /* open for write */ + pcm_unlock(d); wrch = pcm_chnalloc(d, PCMDIR_PLAY, td->td_proc->p_pid, -1); error = 0; @@ -281,6 +282,7 @@ else if (chn_reset(wrch, fmt)) error = ENODEV; + pcm_lock(d); if (error != 0) { if (wrch) { /* @@ -328,7 +330,6 @@ s = spltty(); d = dsp_get_info(i_dev); - pcm_lock(d); rdch = i_dev->si_drv1; wrch = i_dev->si_drv2; @@ -350,6 +351,8 @@ */ if ((rdch || wrch) && refs == 0) { + pcm_lock(d); + if (pcm_getfakechan(d)) pcm_getfakechan(d)->flags = 0; @@ -381,8 +384,7 @@ chn_reset(wrch, 0); pcm_chnrelease(wrch); } - } else - pcm_unlock(d); + } splx(s); return 0; } @@ -943,7 +945,16 @@ case SOUND_PCM_READ_BITS: chn = wrch ? wrch : rdch; CHN_LOCK(chn); - *arg_i = (chn->format & AFMT_16BIT) ? 16 : 8; + if (chn->format & AFMT_8BIT) + *arg_i = 8; + else if (chn->format & AFMT_16BIT) + *arg_i = 16; + else if (chn->format & AFMT_24BIT) + *arg_i = 24; + else if (chn->format & AFMT_32BIT) + *arg_i = 32; + else + ret = EINVAL; CHN_UNLOCK(chn); break; @@ -1175,6 +1186,7 @@ if ((pdev->si_drv1 == NULL) && (pdev->si_drv2 == NULL)) { *dev = pdev; + dev_ref(*dev); return; } } --- sys/dev/sound/pcm/fake.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/fake.c Fri Sep 16 06:32:00 2005 @@ -29,6 +29,10 @@ SND_DECLARE_FILE("$FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.13.4.1 2005/01/30 01:00:05 imp Exp $"); static u_int32_t fk_fmt[] = { + AFMT_MU_LAW, + AFMT_STEREO | AFMT_MU_LAW, + AFMT_A_LAW, + AFMT_STEREO | AFMT_A_LAW, AFMT_U8, AFMT_STEREO | AFMT_U8, AFMT_S8, @@ -41,6 +45,22 @@ AFMT_STEREO | AFMT_S16_BE, AFMT_U16_BE, AFMT_STEREO | AFMT_U16_BE, + AFMT_S24_LE, + AFMT_STEREO | AFMT_S24_LE, + AFMT_U24_LE, + AFMT_STEREO | AFMT_U24_LE, + AFMT_S24_BE, + AFMT_STEREO | AFMT_S24_BE, + AFMT_U24_BE, + AFMT_STEREO | AFMT_U24_BE, + AFMT_S32_LE, + AFMT_STEREO | AFMT_S32_LE, + AFMT_U32_LE, + AFMT_STEREO | AFMT_U32_LE, + AFMT_S32_BE, + AFMT_STEREO | AFMT_S32_BE, + AFMT_U32_BE, + AFMT_STEREO | AFMT_U32_BE, 0 }; static struct pcmchan_caps fk_caps = {0, 1000000, fk_fmt, 0}; @@ -120,6 +140,12 @@ c = malloc(sizeof(*c), M_DEVBUF, M_WAITOK); c->methods = kobj_create(&fkchan_class, M_DEVBUF, M_WAITOK); c->parentsnddev = d; + /* + * Fake channel is such a blessing in disguise. Using this, + * we can keep track prefered virtual channel speed without + * querying kernel hint repetitively (see vchan_create / vchan.c). + */ + c->speed = 0; snprintf(c->name, CHN_NAMELEN, "%s:fake", device_get_nameunit(dev)); return c; --- sys/dev/sound/pcm/feeder.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/feeder.c Fri Sep 16 06:32:00 2005 @@ -320,7 +320,10 @@ i = 0; best = 0; bestmax = 100; - while (from[i] != 0) { + while (from[i] != 0) + i++; + while (i > 0) { + i--; c->feeder->desc->out = from[i]; try = NULL; max = 0; @@ -338,7 +341,6 @@ try = try->source; feeder_destroy(del); } - i++; } if (best == 0) return 0; @@ -371,7 +373,16 @@ printf("%s [%d]\n", try->class->name, try->desc->idx); #endif - return (c->direction == PCMDIR_REC)? best : c->feeder->desc->out; + if (c->direction == PCMDIR_REC) { + try = c->feeder; + while (try != NULL) { + if (try->desc->type == FEEDER_ROOT) + return try->desc->out; + try = try->source; + } + return best; + } else + return c->feeder->desc->out; } void --- sys/dev/sound/pcm/feeder.h.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/feeder.h Fri Sep 16 06:32:00 2005 @@ -72,10 +72,11 @@ #define FEEDER_ROOT 1 #define FEEDER_FMT 2 -#define FEEDER_MIXER 3 -#define FEEDER_RATE 4 -#define FEEDER_FILTER 5 -#define FEEDER_VOLUME 6 +#define FEEDER_SLAVE 3 +#define FEEDER_MIXER 4 +#define FEEDER_RATE 5 +#define FEEDER_FILTER 6 +#define FEEDER_VOLUME 7 #define FEEDER_LAST FEEDER_VOLUME #define FEEDRATE_SRC 1 --- sys/dev/sound/pcm/feeder_fmt.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/feeder_fmt.c Fri Sep 16 06:32:00 2005 @@ -1,5 +1,6 @@ /*- * Copyright (c) 1999 Cameron Grant + * Copyright (c) 2005 Ariff Abdullah * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -22,54 +23,107 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * *New* and rewritten soft format converter, supporting 24/32bit pcm data, + * simplified and optimized. + * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * This new implementation is fully dedicated in memory of Cameron Grant, * + * the creator of magnificent, highly addictive feeder infrastructure. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * */ #include - #include "feeder_if.h" -SND_DECLARE_FILE("$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.13.4.1 2005/01/30 01:00:05 imp Exp $"); +SND_DECLARE_FILE("$FreeBSD$"); MALLOC_DEFINE(M_FMTFEEDER, "fmtfeed", "pcm format feeder"); #define FEEDBUFSZ 8192 +#define FEEDBUF24SZ 8190 -static unsigned char ulaw_to_u8[] = { - 3, 7, 11, 15, 19, 23, 27, 31, - 35, 39, 43, 47, 51, 55, 59, 63, - 66, 68, 70, 72, 74, 76, 78, 80, - 82, 84, 86, 88, 90, 92, 94, 96, - 98, 99, 100, 101, 102, 103, 104, 105, - 106, 107, 108, 109, 110, 111, 112, 113, - 113, 114, 114, 115, 115, 116, 116, 117, - 117, 118, 118, 119, 119, 120, 120, 121, - 121, 121, 122, 122, 122, 122, 123, 123, - 123, 123, 124, 124, 124, 124, 125, 125, - 125, 125, 125, 125, 126, 126, 126, 126, - 126, 126, 126, 126, 127, 127, 127, 127, - 127, 127, 127, 127, 127, 127, 127, 127, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 253, 249, 245, 241, 237, 233, 229, 225, - 221, 217, 213, 209, 205, 201, 197, 193, - 190, 188, 186, 184, 182, 180, 178, 176, - 174, 172, 170, 168, 166, 164, 162, 160, - 158, 157, 156, 155, 154, 153, 152, 151, - 150, 149, 148, 147, 146, 145, 144, 143, - 143, 142, 142, 141, 141, 140, 140, 139, - 139, 138, 138, 137, 137, 136, 136, 135, - 135, 135, 134, 134, 134, 134, 133, 133, - 133, 133, 132, 132, 132, 132, 131, 131, - 131, 131, 131, 131, 130, 130, 130, 130, - 130, 130, 130, 130, 129, 129, 129, 129, - 129, 129, 129, 129, 129, 129, 129, 129, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, +#define FMT_TRACE(x...) /* printf(x) */ +#define FMT_TEST(x, y...) /* if (x) FMT_TRACE(y) */ +#define FMT_ALIGNBYTE(x) /* x */ + +/* + * Sign inverted ulaw/alaw -> 8 table + */ +static uint8_t ulaw_to_s8_tbl[] = { + 131, 135, 139, 143, 147, 151, 155, 159, + 163, 167, 171, 175, 179, 183, 187, 191, + 194, 196, 198, 200, 202, 204, 206, 208, + 210, 212, 214, 216, 218, 220, 222, 224, + 226, 227, 228, 229, 230, 231, 232, 233, + 234, 235, 236, 237, 238, 239, 240, 241, + 241, 242, 242, 243, 243, 244, 244, 245, + 245, 246, 246, 247, 247, 248, 248, 249, + 249, 249, 250, 250, 250, 250, 251, 251, + 251, 251, 252, 252, 252, 252, 253, 253, + 253, 253, 253, 253, 254, 254, 254, 254, + 254, 254, 254, 254, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 125, 121, 117, 113, 109, 105, 101, 97, + 93, 89, 85, 81, 77, 73, 69, 65, + 62, 60, 58, 56, 54, 52, 50, 48, + 46, 44, 42, 40, 38, 36, 34, 32, + 30, 29, 28, 27, 26, 25, 24, 23, + 22, 21, 20, 19, 18, 17, 16, 15, + 15, 14, 14, 13, 13, 12, 12, 11, + 11, 10, 10, 9, 9, 8, 8, 7, + 7, 7, 6, 6, 6, 6, 5, 5, + 5, 5, 4, 4, 4, 4, 3, 3, + 3, 3, 3, 3, 2, 2, 2, 2, + 2, 2, 2, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, +}; + +static uint8_t alaw_to_s8_tbl[] = { + 236, 237, 234, 235, 240, 241, 238, 239, + 228, 229, 226, 227, 232, 233, 230, 231, + 246, 246, 245, 245, 248, 248, 247, 247, + 242, 242, 241, 241, 244, 244, 243, 243, + 171, 175, 163, 167, 187, 191, 179, 183, + 139, 143, 131, 135, 155, 159, 147, 151, + 214, 216, 210, 212, 222, 224, 218, 220, + 198, 200, 194, 196, 206, 208, 202, 204, + 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 251, 251, 251, 251, 252, 252, 252, 252, + 249, 249, 249, 249, 250, 250, 250, 250, + 254, 254, 254, 254, 254, 254, 254, 254, + 253, 253, 253, 253, 253, 253, 253, 253, + 20, 19, 22, 21, 16, 15, 18, 17, + 28, 27, 30, 29, 24, 23, 26, 25, + 10, 10, 11, 11, 8, 8, 9, 9, + 14, 14, 15, 15, 12, 12, 13, 13, + 85, 81, 93, 89, 69, 65, 77, 73, + 117, 113, 125, 121, 101, 97, 109, 105, + 42, 40, 46, 44, 34, 32, 38, 36, + 58, 56, 62, 60, 50, 48, 54, 52, + 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 5, 5, 5, 5, 4, 4, 4, 4, + 7, 7, 7, 7, 6, 6, 6, 6, + 2, 2, 2, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 3, 3, }; -static unsigned char u8_to_ulaw[] = { +static uint8_t u8_to_ulaw_tbl[] = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, @@ -104,119 +158,176 @@ 129, 129, 129, 129, 128, 128, 128, 128, }; -static unsigned char alaw_to_ulaw[] = { - 42, 43, 40, 41, 46, 47, 44, 45, - 34, 35, 32, 33, 38, 39, 36, 37, - 57, 58, 55, 56, 61, 62, 59, 60, - 49, 50, 48, 48, 53, 54, 51, 52, - 10, 11, 8, 9, 14, 15, 12, 13, - 2, 3, 0, 1, 6, 7, 4, 5, - 26, 27, 24, 25, 30, 31, 28, 29, - 18, 19, 16, 17, 22, 23, 20, 21, - 98, 99, 96, 97, 102, 103, 100, 101, - 93, 93, 92, 92, 95, 95, 94, 94, - 116, 118, 112, 114, 124, 126, 120, 122, - 106, 107, 104, 105, 110, 111, 108, 109, - 72, 73, 70, 71, 76, 77, 74, 75, - 64, 65, 63, 63, 68, 69, 66, 67, - 86, 87, 84, 85, 90, 91, 88, 89, - 79, 79, 78, 78, 82, 83, 80, 81, - 170, 171, 168, 169, 174, 175, 172, 173, - 162, 163, 160, 161, 166, 167, 164, 165, - 185, 186, 183, 184, 189, 190, 187, 188, - 177, 178, 176, 176, 181, 182, 179, 180, - 138, 139, 136, 137, 142, 143, 140, 141, - 130, 131, 128, 129, 134, 135, 132, 133, - 154, 155, 152, 153, 158, 159, 156, 157, - 146, 147, 144, 145, 150, 151, 148, 149, - 226, 227, 224, 225, 230, 231, 228, 229, - 221, 221, 220, 220, 223, 223, 222, 222, - 244, 246, 240, 242, 252, 254, 248, 250, - 234, 235, 232, 233, 238, 239, 236, 237, - 200, 201, 198, 199, 204, 205, 202, 203, - 192, 193, 191, 191, 196, 197, 194, 195, - 214, 215, 212, 213, 218, 219, 216, 217, - 207, 207, 206, 206, 210, 211, 208, 209, -}; - -static unsigned char ulaw_to_alaw[] = { - 42, 43, 40, 41, 46, 47, 44, 45, - 34, 35, 32, 33, 38, 39, 36, 37, - 58, 59, 56, 57, 62, 63, 60, 61, - 50, 51, 48, 49, 54, 55, 52, 53, - 10, 11, 8, 9, 14, 15, 12, 13, - 2, 3, 0, 1, 6, 7, 4, 5, - 27, 24, 25, 30, 31, 28, 29, 18, - 19, 16, 17, 22, 23, 20, 21, 106, - 104, 105, 110, 111, 108, 109, 98, 99, - 96, 97, 102, 103, 100, 101, 122, 120, - 126, 127, 124, 125, 114, 115, 112, 113, - 118, 119, 116, 117, 75, 73, 79, 77, - 66, 67, 64, 65, 70, 71, 68, 69, - 90, 91, 88, 89, 94, 95, 92, 93, - 82, 82, 83, 83, 80, 80, 81, 81, - 86, 86, 87, 87, 84, 84, 85, 85, - 170, 171, 168, 169, 174, 175, 172, 173, - 162, 163, 160, 161, 166, 167, 164, 165, - 186, 187, 184, 185, 190, 191, 188, 189, - 178, 179, 176, 177, 182, 183, 180, 181, - 138, 139, 136, 137, 142, 143, 140, 141, - 130, 131, 128, 129, 134, 135, 132, 133, - 155, 152, 153, 158, 159, 156, 157, 146, - 147, 144, 145, 150, 151, 148, 149, 234, - 232, 233, 238, 239, 236, 237, 226, 227, - 224, 225, 230, 231, 228, 229, 250, 248, - 254, 255, 252, 253, 242, 243, 240, 241, - 246, 247, 244, 245, 203, 201, 207, 205, - 194, 195, 192, 193, 198, 199, 196, 197, - 218, 219, 216, 217, 222, 223, 220, 221, - 210, 210, 211, 211, 208, 208, 209, 209, - 214, 214, 215, 215, 212, 212, 213, 213, +static uint8_t u8_to_alaw_tbl[] = { + 42, 42, 42, 42, 42, 43, 43, 43, + 43, 40, 40, 40, 40, 41, 41, 41, + 41, 46, 46, 46, 46, 47, 47, 47, + 47, 44, 44, 44, 44, 45, 45, 45, + 45, 34, 34, 34, 34, 35, 35, 35, + 35, 32, 32, 32, 32, 33, 33, 33, + 33, 38, 38, 38, 38, 39, 39, 39, + 39, 36, 36, 36, 36, 37, 37, 37, + 37, 58, 58, 59, 59, 56, 56, 57, + 57, 62, 62, 63, 63, 60, 60, 61, + 61, 50, 50, 51, 51, 48, 48, 49, + 49, 54, 54, 55, 55, 52, 52, 53, + 53, 10, 11, 8, 9, 14, 15, 12, + 13, 2, 3, 0, 1, 6, 7, 4, + 5, 24, 30, 28, 18, 16, 22, 20, + 106, 110, 98, 102, 122, 114, 75, 90, + 213, 197, 245, 253, 229, 225, 237, 233, + 149, 151, 145, 147, 157, 159, 153, 155, + 133, 132, 135, 134, 129, 128, 131, 130, + 141, 140, 143, 142, 137, 136, 139, 138, + 181, 181, 180, 180, 183, 183, 182, 182, + 177, 177, 176, 176, 179, 179, 178, 178, + 189, 189, 188, 188, 191, 191, 190, 190, + 185, 185, 184, 184, 187, 187, 186, 186, + 165, 165, 165, 165, 164, 164, 164, 164, + 167, 167, 167, 167, 166, 166, 166, 166, + 161, 161, 161, 161, 160, 160, 160, 160, + 163, 163, 163, 163, 162, 162, 162, 162, + 173, 173, 173, 173, 172, 172, 172, 172, + 175, 175, 175, 175, 174, 174, 174, 174, + 169, 169, 169, 169, 168, 168, 168, 168, + 171, 171, 171, 171, 170, 170, 170, 170, }; -/*****************************************************************************/ +static int +feed_table_u8(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int j, k = FEEDER_FEED(f->source, c, b, count, source); + uint8_t *tbl = (uint8_t *)f->data; + + j = k; + while (j > 0) { + j--; + b[j] = tbl[b[j]] ^ 0x80; + } + return k; +} static int -feed_8to16le(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_table_s16le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - int i, j, k; + int i, j, k = FEEDER_FEED(f->source, c, b, count >> 1, source); + uint8_t *tbl = (uint8_t *)f->data; + + i = k; + k <<= 1; + j = k; + while (i > 0) { + b[--j] = tbl[b[--i]]; + b[--j] = 0; + } + return k; +} + +static int +feed_table_xlaw(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int j, k = FEEDER_FEED(f->source, c, b, count, source); + uint8_t *tbl = (uint8_t *)f->data; - k = FEEDER_FEED(f->source, c, b, count / 2, source); - j = k - 1; - i = j * 2 + 1; - while (i > 0 && j >= 0) { - b[i--] = b[j--]; - b[i--] = 0; + j = k; + while (j > 0) { + j--; + b[j] = tbl[b[j]]; } - return k * 2; + return k; } -static struct pcm_feederdesc feeder_8to16le_desc[] = { - {FEEDER_FMT, AFMT_U8, AFMT_U16_LE, 0}, - {FEEDER_FMT, AFMT_U8 | AFMT_STEREO, AFMT_U16_LE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S8, AFMT_S16_LE, 0}, - {FEEDER_FMT, AFMT_S8 | AFMT_STEREO, AFMT_S16_LE | AFMT_STEREO, 0}, - {0}, +static struct pcm_feederdesc feeder_ulawtou8_desc[] = { + {FEEDER_FMT, AFMT_MU_LAW, AFMT_U8, 0}, + {FEEDER_FMT, AFMT_MU_LAW|AFMT_STEREO, AFMT_U8|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_8to16le_methods[] = { - KOBJMETHOD(feeder_feed, feed_8to16le), - { 0, 0 } +static kobj_method_t feeder_ulawtou8_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_u8), + {0, 0} }; -FEEDER_DECLARE(feeder_8to16le, 0, NULL); +FEEDER_DECLARE(feeder_ulawtou8, 0, ulaw_to_s8_tbl); + +static struct pcm_feederdesc feeder_alawtou8_desc[] = { + {FEEDER_FMT, AFMT_A_LAW, AFMT_U8, 0}, + {FEEDER_FMT, AFMT_A_LAW|AFMT_STEREO, AFMT_U8|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_alawtou8_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_u8), + {0, 0} +}; +FEEDER_DECLARE(feeder_alawtou8, 0, alaw_to_s8_tbl); + +static struct pcm_feederdesc feeder_ulawtos16le_desc[] = { + {FEEDER_FMT, AFMT_MU_LAW, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_MU_LAW|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_ulawtos16le_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_s16le), + {0, 0} +}; +FEEDER_DECLARE(feeder_ulawtos16le, 0, ulaw_to_s8_tbl); -/*****************************************************************************/ +static struct pcm_feederdesc feeder_alawtos16le_desc[] = { + {FEEDER_FMT, AFMT_A_LAW, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_A_LAW|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_alawtos16le_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_s16le), + {0, 0} +}; +FEEDER_DECLARE(feeder_alawtos16le, 0, alaw_to_s8_tbl); + +static struct pcm_feederdesc feeder_u8toulaw_desc[] = { + {FEEDER_FMT, AFMT_U8, AFMT_MU_LAW, 0}, + {FEEDER_FMT, AFMT_U8|AFMT_STEREO, AFMT_MU_LAW|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_u8toulaw_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_xlaw), + {0, 0} +}; +FEEDER_DECLARE(feeder_u8toulaw, 0, u8_to_ulaw_tbl); + +static struct pcm_feederdesc feeder_u8toalaw_desc[] = { + {FEEDER_FMT, AFMT_U8, AFMT_A_LAW, 0}, + {FEEDER_FMT, AFMT_U8|AFMT_STEREO, AFMT_A_LAW|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_u8toalaw_methods[] = { + KOBJMETHOD(feeder_feed, feed_table_xlaw), + {0, 0} +}; +FEEDER_DECLARE(feeder_u8toalaw, 0, u8_to_alaw_tbl); + +/* + * Conversion rules:- + * 1. BE -> LE + * 2. if fmt == u8 , u8 -> s8 (economical) + * 3. Xle -> 16le + * 4. if fmt != u8 && fmt == u16le , u16le -> s16le + * 4. s16le mono -> s16le stereo + * + * All conversion done in byte level to preserve endianess. + */ static int -feed_16to8_init(struct pcm_feeder *f) +feed_common_init(struct pcm_feeder *f) { - f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_NOWAIT | M_ZERO); + f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_NOWAIT|M_ZERO); if (f->data == NULL) return ENOMEM; return 0; } static int -feed_16to8_free(struct pcm_feeder *f) +feed_common_free(struct pcm_feeder *f) { if (f->data) free(f->data, M_FMTFEEDER); @@ -224,326 +335,572 @@ return 0; } +/* + * Bit conversion + */ static int -feed_16leto8(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_8to16le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - u_int32_t i = 0, toget = count * 2; - int j = 1, k; - - k = FEEDER_FEED(f->source, c, f->data, min(toget, FEEDBUFSZ), source); - while (j < k) { - b[i++] = ((u_int8_t *)f->data)[j]; - j += 2; + int i, j, k = FEEDER_FEED(f->source, c, b, count >> 1, source); + + i = k; + k <<= 1; + j = k; + while (i > 0) { + b[--j] = b[--i]; + b[--j] = 0; } - return i; + return k; } +static struct pcm_feederdesc feeder_8to16le_desc[] = { + {FEEDER_FMT, AFMT_U8, AFMT_U16_LE, 0}, + {FEEDER_FMT, AFMT_U8|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S8, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_S8|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_8to16le_methods[] = { + KOBJMETHOD(feeder_feed, feed_8to16le), + {0, 0} +}; +FEEDER_DECLARE(feeder_8to16le, 0, NULL); +static int +feed_16leto8(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j, k; + uint8_t *src = (uint8_t *)f->data; + + k = count << 1; + k = FEEDER_FEED(f->source, c, src, min(k, FEEDBUFSZ), source); + if (k < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~1); + i = k; + j = k >> 1; + while (i > 0) { + b[--j] = src[--i]; + i--; + } + return k >> 1; +} static struct pcm_feederdesc feeder_16leto8_desc[] = { {FEEDER_FMT, AFMT_U16_LE, AFMT_U8, 0}, - {FEEDER_FMT, AFMT_U16_LE | AFMT_STEREO, AFMT_U8 | AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_U8|AFMT_STEREO, 0}, {FEEDER_FMT, AFMT_S16_LE, AFMT_S8, 0}, - {FEEDER_FMT, AFMT_S16_LE | AFMT_STEREO, AFMT_S8 | AFMT_STEREO, 0}, - {0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_S8|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; static kobj_method_t feeder_16leto8_methods[] = { - KOBJMETHOD(feeder_init, feed_16to8_init), - KOBJMETHOD(feeder_free, feed_16to8_free), - KOBJMETHOD(feeder_feed, feed_16leto8), - { 0, 0 } + KOBJMETHOD(feeder_init, feed_common_init), + KOBJMETHOD(feeder_free, feed_common_free), + KOBJMETHOD(feeder_feed, feed_16leto8), + {0, 0} }; -FEEDER_DECLARE(feeder_16leto8, 1, NULL); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_16leto8, 0, NULL); static int -feed_monotostereo8(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_16leto24le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - int i, j, k = FEEDER_FEED(f->source, c, b, count / 2, source); + int i, j, k; - j = k - 1; - i = j * 2 + 1; - while (i > 0 && j >= 0) { - b[i--] = b[j]; - b[i--] = b[j]; - j--; + k = (count / 3) << 1; + k = FEEDER_FEED(f->source, c, b, k, source); + if (k < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~1); + i = k; + j = (k >> 1) * 3; + k = j; + while (i > 0) { + b[--j] = b[--i]; + b[--j] = b[--i]; + b[--j] = 0; } - return k * 2; + return k; } - -static struct pcm_feederdesc feeder_monotostereo8_desc[] = { - {FEEDER_FMT, AFMT_U8, AFMT_U8 | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S8, AFMT_S8 | AFMT_STEREO, 0}, - {0}, +static struct pcm_feederdesc feeder_16leto24le_desc[] = { + {FEEDER_FMT, AFMT_U16_LE, AFMT_U24_LE, 0}, + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_U24_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_LE, AFMT_S24_LE, 0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_S24_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_monotostereo8_methods[] = { - KOBJMETHOD(feeder_feed, feed_monotostereo8), - { 0, 0 } +static kobj_method_t feeder_16leto24le_methods[] = { + KOBJMETHOD(feeder_feed, feed_16leto24le), + {0, 0} }; -FEEDER_DECLARE(feeder_monotostereo8, 0, NULL); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_16leto24le, 0, NULL); static int -feed_monotostereo16(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_24leto16le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - int i, j, k = FEEDER_FEED(f->source, c, b, count / 2, source); - u_int8_t x, y; + int i, j, k; + uint8_t *src = (uint8_t *)f->data; - j = k - 1; - i = j * 2 + 1; - while (i >= 3 && j >= 1) { - x = b[j--]; - y = b[j--]; - b[i--] = x; - b[i--] = y; - b[i--] = x; - b[i--] = y; + k = (count * 3) >> 1; + k = FEEDER_FEED(f->source, c, src, min(k, FEEDBUF24SZ), source); + if (k < 3) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; } - return k * 2; + FMT_TEST(k % 3, "%s: Bytes not 24bit aligned.\n", __func__); + FMT_ALIGNBYTE(k -= k % 3); + i = (k / 3) << 1; + j = i; + while (i > 0) { + b[--i] = src[--k]; + b[--i] = src[--k]; + k--; + } + return j; } - -static struct pcm_feederdesc feeder_monotostereo16_desc[] = { - {FEEDER_FMT, AFMT_U16_LE, AFMT_U16_LE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S16_LE, AFMT_S16_LE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_U16_BE, AFMT_U16_BE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S16_BE, AFMT_S16_BE | AFMT_STEREO, 0}, - {0}, +static struct pcm_feederdesc feeder_24leto16le_desc[] = { + {FEEDER_FMT, AFMT_U24_LE, AFMT_U16_LE, 0}, + {FEEDER_FMT, AFMT_U24_LE|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S24_LE, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_S24_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_24leto16le_methods[] = { + KOBJMETHOD(feeder_init, feed_common_init), + KOBJMETHOD(feeder_free, feed_common_free), + KOBJMETHOD(feeder_feed, feed_24leto16le), + {0, 0} +}; +FEEDER_DECLARE(feeder_24leto16le, 1, NULL); + +static int +feed_16leto32le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j, k = FEEDER_FEED(f->source, c, b, count >> 1, source); + if (k < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~1); + i = k; + j = k << 1; + k = j; + while (i > 0) { + b[--j] = b[--i]; + b[--j] = b[--i]; + b[--j] = 0; + b[--j] = 0; + } + return k; +} +static struct pcm_feederdesc feeder_16leto32le_desc[] = { + {FEEDER_FMT, AFMT_U16_LE, AFMT_U32_LE, 0}, + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_U32_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_LE, AFMT_S32_LE, 0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_S32_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_monotostereo16_methods[] = { - KOBJMETHOD(feeder_feed, feed_monotostereo16), - { 0, 0 } +static kobj_method_t feeder_16leto32le_methods[] = { + KOBJMETHOD(feeder_feed, feed_16leto32le), + {0, 0} }; -FEEDER_DECLARE(feeder_monotostereo16, 0, NULL); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_16leto32le, 0, NULL); static int -feed_stereotomono8_init(struct pcm_feeder *f) +feed_32leto16le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_NOWAIT | M_ZERO); - if (f->data == NULL) - return ENOMEM; - return 0; -} + int i, j, k; + uint8_t *src = (uint8_t *)f->data; -static int -feed_stereotomono8_free(struct pcm_feeder *f) -{ - if (f->data) - free(f->data, M_FMTFEEDER); - f->data = NULL; - return 0; + k = count << 1; + k = FEEDER_FEED(f->source, c, src, min(k, FEEDBUFSZ), source); + if (k < 4) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 3, "%s: Bytes not 32bit aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~3); + i = k; + k >>= 1; + j = k; + while (i > 0) { + b[--j] = src[--i]; + b[--j] = src[--i]; + i -= 2; + } + return k; } +static struct pcm_feederdesc feeder_32leto16le_desc[] = { + {FEEDER_FMT, AFMT_U32_LE, AFMT_U16_LE, 0}, + {FEEDER_FMT, AFMT_U32_LE|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S32_LE, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_S32_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_32leto16le_methods[] = { + KOBJMETHOD(feeder_init, feed_common_init), + KOBJMETHOD(feeder_free, feed_common_free), + KOBJMETHOD(feeder_feed, feed_32leto16le), + {0, 0} +}; +FEEDER_DECLARE(feeder_32leto16le, 1, NULL); +/* + * Bit conversion end + */ +/* + * Channel conversion (mono -> stereo) + */ static int -feed_stereotomono8(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_monotostereo8(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - u_int32_t i = 0, toget = count * 2; - int j = 0, k; + int i, j, k = FEEDER_FEED(f->source, c, b, count >> 1, source); - k = FEEDER_FEED(f->source, c, f->data, min(toget, FEEDBUFSZ), source); - while (j < k) { - b[i++] = ((u_int8_t *)f->data)[j]; - j += 2; + i = k; + j = k << 1; + while (i > 0) { + b[--j] = b[--i]; + b[--j] = b[i]; } - return i; + return k << 1; } - -static struct pcm_feederdesc feeder_stereotomono8_desc[] = { - {FEEDER_FMT, AFMT_U8 | AFMT_STEREO, AFMT_U8, 0}, - {FEEDER_FMT, AFMT_S8 | AFMT_STEREO, AFMT_S8, 0}, - {0}, +static struct pcm_feederdesc feeder_monotostereo8_desc[] = { + {FEEDER_FMT, AFMT_U8, AFMT_U8|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S8, AFMT_S8|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_stereotomono8_methods[] = { - KOBJMETHOD(feeder_init, feed_stereotomono8_init), - KOBJMETHOD(feeder_free, feed_stereotomono8_free), - KOBJMETHOD(feeder_feed, feed_stereotomono8), - { 0, 0 } +static kobj_method_t feeder_monotostereo8_methods[] = { + KOBJMETHOD(feeder_feed, feed_monotostereo8), + {0, 0} }; -FEEDER_DECLARE(feeder_stereotomono8, 1, NULL); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_monotostereo8, 0, NULL); static int -feed_stereotomono16_init(struct pcm_feeder *f) +feed_monotostereo16(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_NOWAIT | M_ZERO); - if (f->data == NULL) - return ENOMEM; - return 0; -} + int i, j, k = FEEDER_FEED(f->source, c, b, count >> 1, source); + uint8_t l, m; -static int -feed_stereotomono16_free(struct pcm_feeder *f) -{ - if (f->data) - free(f->data, M_FMTFEEDER); - f->data = NULL; - return 0; + if (k < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~1); + i = k; + j = k << 1; + while (i > 0) { + l = b[--i]; + m = b[--i]; + b[--j] = l; + b[--j] = m; + b[--j] = l; + b[--j] = m; + } + return k << 1; } +static struct pcm_feederdesc feeder_monotostereo16_desc[] = { + {FEEDER_FMT, AFMT_U16_LE, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_LE, AFMT_S16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U16_BE, AFMT_U16_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_BE, AFMT_S16_BE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_monotostereo16_methods[] = { + KOBJMETHOD(feeder_feed, feed_monotostereo16), + {0, 0} +}; +FEEDER_DECLARE(feeder_monotostereo16, 0, NULL); +/* + * Channel conversion (mono -> stereo) end + */ +/* + * Channel conversion (stereo -> mono) + */ static int -feed_stereotomono16(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_stereotomono8(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - u_int32_t i = 0, toget = count * 2; - int j = 0, k; + int i, j, k; + uint8_t *src = (uint8_t *)f->data; - k = FEEDER_FEED(f->source, c, f->data, min(toget, FEEDBUFSZ), source); - while (j < k) { - b[i++] = ((u_int8_t *)f->data)[j]; - b[i++] = ((u_int8_t *)f->data)[j + 1]; - j += 4; + k = count << 1; + k = FEEDER_FEED(f->source, c, src, min(k, FEEDBUFSZ), source); + if (k < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; } - return i; + FMT_TEST(k & 1, "%s: Bytes not 8bit (stereo) aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~1); + i = k >> 1; + j = i; + while (i > 0) { + k--; + b[--i] = src[--k]; + } + return j; } - -static struct pcm_feederdesc feeder_stereotomono16_desc[] = { - {FEEDER_FMT, AFMT_U16_LE | AFMT_STEREO, AFMT_U16_LE, 0}, - {FEEDER_FMT, AFMT_S16_LE | AFMT_STEREO, AFMT_S16_LE, 0}, - {FEEDER_FMT, AFMT_U16_BE | AFMT_STEREO, AFMT_U16_BE, 0}, - {FEEDER_FMT, AFMT_S16_BE | AFMT_STEREO, AFMT_S16_BE, 0}, - {0}, +static struct pcm_feederdesc feeder_stereotomono8_desc[] = { + {FEEDER_FMT, AFMT_U8|AFMT_STEREO, AFMT_U8, 0}, + {FEEDER_FMT, AFMT_S8|AFMT_STEREO, AFMT_S8, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_stereotomono16_methods[] = { - KOBJMETHOD(feeder_init, feed_stereotomono16_init), - KOBJMETHOD(feeder_free, feed_stereotomono16_free), - KOBJMETHOD(feeder_feed, feed_stereotomono16), - { 0, 0 } +static kobj_method_t feeder_stereotomono8_methods[] = { + KOBJMETHOD(feeder_init, feed_common_init), + KOBJMETHOD(feeder_free, feed_common_free), + KOBJMETHOD(feeder_feed, feed_stereotomono8), + {0, 0} }; -FEEDER_DECLARE(feeder_stereotomono16, 1, NULL); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_stereotomono8, 0, NULL); static int -feed_endian(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_stereotomono16(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - u_int8_t t; - int i = 0, j = FEEDER_FEED(f->source, c, b, count, source); + int i, j, k; + uint8_t *src = (uint8_t *)f->data; - while (i < j) { - t = b[i]; - b[i] = b[i + 1]; - b[i + 1] = t; - i += 2; + k = count << 1; + k = FEEDER_FEED(f->source, c, src, min(k, FEEDBUFSZ), source); + if (k < 4) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + FMT_TEST(k & 3, "%s: Bytes not 16bit (stereo) aligned.\n", __func__); + FMT_ALIGNBYTE(k &= ~3); + i = k >> 1; + j = i; + while (i > 0) { + k -= 2; + b[--i] = src[--k]; + b[--i] = src[--k]; } - return i; + return j; } - -static struct pcm_feederdesc feeder_endian_desc[] = { - {FEEDER_FMT, AFMT_U16_LE, AFMT_U16_BE, 0}, - {FEEDER_FMT, AFMT_U16_LE | AFMT_STEREO, AFMT_U16_BE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S16_LE, AFMT_S16_BE, 0}, - {FEEDER_FMT, AFMT_S16_LE | AFMT_STEREO, AFMT_S16_BE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_U16_BE, AFMT_U16_LE, 0}, - {FEEDER_FMT, AFMT_U16_BE | AFMT_STEREO, AFMT_U16_LE | AFMT_STEREO, 0}, - {FEEDER_FMT, AFMT_S16_BE, AFMT_S16_LE, 0}, - {FEEDER_FMT, AFMT_S16_BE | AFMT_STEREO, AFMT_S16_LE | AFMT_STEREO, 0}, - {0}, -}; -static kobj_method_t feeder_endian_methods[] = { - KOBJMETHOD(feeder_feed, feed_endian), - { 0, 0 } +static struct pcm_feederdesc feeder_stereotomono16_desc[] = { + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_U16_LE, 0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_U16_BE|AFMT_STEREO, AFMT_U16_BE, 0}, + {FEEDER_FMT, AFMT_S16_BE|AFMT_STEREO, AFMT_S16_BE, 0}, + {0, 0, 0, 0}, }; -FEEDER_DECLARE(feeder_endian, 0, NULL); - -/*****************************************************************************/ +static kobj_method_t feeder_stereotomono16_methods[] = { + KOBJMETHOD(feeder_init, feed_common_init), + KOBJMETHOD(feeder_free, feed_common_free), + KOBJMETHOD(feeder_feed, feed_stereotomono16), + {0, 0} +}; +FEEDER_DECLARE(feeder_stereotomono16, 0, NULL); +/* + * Channel conversion (stereo -> mono) end + */ +/* + * Sign conversion + */ static int -feed_sign(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_sign8(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - int i = 0, j = FEEDER_FEED(f->source, c, b, count, source); - intptr_t ssz = (intptr_t)f->data, ofs = ssz - 1; + int i, j = FEEDER_FEED(f->source, c, b, count, source); - while (i < j) { - b[i + ofs] ^= 0x80; - i += ssz; - } - return i; + i = j; + while (i > 0) + b[--i] ^= 0x80; + return j; } - static struct pcm_feederdesc feeder_sign8_desc[] = { {FEEDER_FMT, AFMT_U8, AFMT_S8, 0}, - {FEEDER_FMT, AFMT_U8 | AFMT_STEREO, AFMT_S8 | AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U8|AFMT_STEREO, AFMT_S8|AFMT_STEREO, 0}, {FEEDER_FMT, AFMT_S8, AFMT_U8, 0}, - {FEEDER_FMT, AFMT_S8 | AFMT_STEREO, AFMT_U8 | AFMT_STEREO, 0}, - {0}, + {FEEDER_FMT, AFMT_S8|AFMT_STEREO, AFMT_U8|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; static kobj_method_t feeder_sign8_methods[] = { - KOBJMETHOD(feeder_feed, feed_sign), - { 0, 0 } + KOBJMETHOD(feeder_feed, feed_sign8), + {0, 0} }; -FEEDER_DECLARE(feeder_sign8, 0, (void *)1); +FEEDER_DECLARE(feeder_sign8, 0, NULL); + +static int +feed_sign16le(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j = FEEDER_FEED(f->source, c, b, count, source); + if (j < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, j); + return 0; + } + FMT_TEST(j & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(j &= ~1); + i = j; + while (i > 0) { + b[--i] ^= 0x80; + i--; + } + return j; +} static struct pcm_feederdesc feeder_sign16le_desc[] = { {FEEDER_FMT, AFMT_U16_LE, AFMT_S16_LE, 0}, - {FEEDER_FMT, AFMT_U16_LE | AFMT_STEREO, AFMT_S16_LE | AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, {FEEDER_FMT, AFMT_S16_LE, AFMT_U16_LE, 0}, - {FEEDER_FMT, AFMT_S16_LE | AFMT_STEREO, AFMT_U16_LE | AFMT_STEREO, 0}, - {0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; static kobj_method_t feeder_sign16le_methods[] = { - KOBJMETHOD(feeder_feed, feed_sign), - { 0, 0 } + KOBJMETHOD(feeder_feed, feed_sign16le), + {0, 0} }; -FEEDER_DECLARE(feeder_sign16le, -1, (void *)2); - -/*****************************************************************************/ +FEEDER_DECLARE(feeder_sign16le, 0, NULL); +/* + * Sign conversion end. + */ +/* + * Endian conversion. + */ static int -feed_table(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32_t count, void *source) +feed_endian16(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { - int i = 0, j = FEEDER_FEED(f->source, c, b, count, source); + int i, j = FEEDER_FEED(f->source, c, b, count, source); + uint8_t v; - while (i < j) { - b[i] = ((u_int8_t *)f->data)[b[i]]; - i++; + if (j < 2) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, j); + return 0; + } + FMT_TEST(j & 1, "%s: Bytes not 16bit aligned.\n", __func__); + FMT_ALIGNBYTE(j &= ~1); + i = j; + while (i > 0) { + v = b[--i]; + b[i] = b[i - 1]; + b[--i] = v; } - return i; + return j; } - -static struct pcm_feederdesc feeder_ulawtou8_desc[] = { - {FEEDER_FMT, AFMT_MU_LAW, AFMT_U8, 0}, - {FEEDER_FMT, AFMT_MU_LAW | AFMT_STEREO, AFMT_U8 | AFMT_STEREO, 0}, - {0}, -}; -static kobj_method_t feeder_ulawtou8_methods[] = { - KOBJMETHOD(feeder_feed, feed_table), - { 0, 0 } -}; -FEEDER_DECLARE(feeder_ulawtou8, 0, ulaw_to_u8); - -static struct pcm_feederdesc feeder_u8toulaw_desc[] = { - {FEEDER_FMT, AFMT_U8, AFMT_MU_LAW, 0}, - {FEEDER_FMT, AFMT_U8 | AFMT_STEREO, AFMT_MU_LAW | AFMT_STEREO, 0}, - {0}, -}; -static kobj_method_t feeder_u8toulaw_methods[] = { - KOBJMETHOD(feeder_feed, feed_table), - { 0, 0 } -}; -FEEDER_DECLARE(feeder_u8toulaw, 0, u8_to_ulaw); - -static struct pcm_feederdesc feeder_alawtoulaw_desc[] = { - {FEEDER_FMT, AFMT_A_LAW, AFMT_MU_LAW, 0}, - {FEEDER_FMT, AFMT_A_LAW | AFMT_STEREO, AFMT_MU_LAW | AFMT_STEREO, 0}, - {0}, -}; -static kobj_method_t feeder_alawtoulaw_methods[] = { - KOBJMETHOD(feeder_feed, feed_table), - { 0, 0 } -}; -FEEDER_DECLARE(feeder_alawtoulaw, 0, alaw_to_ulaw); - -static struct pcm_feederdesc feeder_ulawtoalaw_desc[] = { - {FEEDER_FMT, AFMT_MU_LAW, AFMT_A_LAW, 0}, - {FEEDER_FMT, AFMT_MU_LAW | AFMT_STEREO, AFMT_A_LAW | AFMT_STEREO, 0}, - {0}, +static struct pcm_feederdesc feeder_endian16_desc[] = { + {FEEDER_FMT, AFMT_U16_LE, AFMT_U16_BE, 0}, + {FEEDER_FMT, AFMT_U16_LE|AFMT_STEREO, AFMT_U16_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_LE, AFMT_S16_BE, 0}, + {FEEDER_FMT, AFMT_S16_LE|AFMT_STEREO, AFMT_S16_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U16_BE, AFMT_U16_LE, 0}, + {FEEDER_FMT, AFMT_U16_BE|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S16_BE, AFMT_S16_LE, 0}, + {FEEDER_FMT, AFMT_S16_BE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, }; -static kobj_method_t feeder_ulawtoalaw_methods[] = { - KOBJMETHOD(feeder_feed, feed_table), - { 0, 0 } +static kobj_method_t feeder_endian16_methods[] = { + KOBJMETHOD(feeder_feed, feed_endian16), + {0, 0} }; -FEEDER_DECLARE(feeder_ulawtoalaw, 0, ulaw_to_alaw); - +FEEDER_DECLARE(feeder_endian16, 0, NULL); +static int +feed_endian24(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j = FEEDER_FEED(f->source, c, b, count, source); + uint8_t v; + if (j < 3) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, j); + return 0; + } + FMT_TEST(j % 3, "%s: Bytes not 24bit aligned.\n", __func__); + FMT_ALIGNBYTE(j -= j % 3); + i = j; + while (i > 0) { + v = b[--i]; + b[i] = b[i - 2]; + b[i -= 2] = v; + } + return j; +} +static struct pcm_feederdesc feeder_endian24_desc[] = { + {FEEDER_FMT, AFMT_U24_LE, AFMT_U24_BE, 0}, + {FEEDER_FMT, AFMT_U24_LE|AFMT_STEREO, AFMT_U24_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S24_LE, AFMT_S24_BE, 0}, + {FEEDER_FMT, AFMT_S24_LE|AFMT_STEREO, AFMT_S24_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U24_BE, AFMT_U24_LE, 0}, + {FEEDER_FMT, AFMT_U24_BE|AFMT_STEREO, AFMT_U24_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S24_BE, AFMT_S24_LE, 0}, + {FEEDER_FMT, AFMT_S24_BE|AFMT_STEREO, AFMT_S24_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_endian24_methods[] = { + KOBJMETHOD(feeder_feed, feed_endian24), + {0, 0} +}; +FEEDER_DECLARE(feeder_endian24, 0, NULL); + +static int +feed_endian32(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j = FEEDER_FEED(f->source, c, b, count, source); + uint8_t l, m; + + if (j < 4) { + FMT_TRACE("%s: Not enough data (Got: %d bytes)\n", + __func__, j); + return 0; + } + FMT_TEST(j & 3, "%s: Bytes not 32bit aligned.\n", __func__); + FMT_ALIGNBYTE(j &= ~3); + i = j; + while (i > 0) { + l = b[--i]; + m = b[--i]; + b[i] = b[i - 1]; + b[i + 1] = b[i - 2]; + b[--i] = m; + b[--i] = l; + } + return j; +} +static struct pcm_feederdesc feeder_endian32_desc[] = { + {FEEDER_FMT, AFMT_U32_LE, AFMT_U32_BE, 0}, + {FEEDER_FMT, AFMT_U32_LE|AFMT_STEREO, AFMT_U32_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S32_LE, AFMT_S32_BE, 0}, + {FEEDER_FMT, AFMT_S32_LE|AFMT_STEREO, AFMT_S32_BE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_U32_BE, AFMT_U32_LE, 0}, + {FEEDER_FMT, AFMT_U32_BE|AFMT_STEREO, AFMT_U32_LE|AFMT_STEREO, 0}, + {FEEDER_FMT, AFMT_S32_BE, AFMT_S32_LE, 0}, + {FEEDER_FMT, AFMT_S32_BE|AFMT_STEREO, AFMT_S32_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_endian32_methods[] = { + KOBJMETHOD(feeder_feed, feed_endian32), + {0, 0} +}; +FEEDER_DECLARE(feeder_endian32, 0, NULL); +/* + * Endian conversion end + */ --- sys/dev/sound/pcm/feeder_rate.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/feeder_rate.c Fri Sep 16 06:32:00 2005 @@ -1,5 +1,7 @@ /*- + * Copyright (c) 1999 Cameron Grant * Copyright (c) 2003 Orion Hodson + * Copyright (c) 2005 Ariff Abdullah * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -23,7 +25,25 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * MAINTAINER: Orion Hodson + * 2005-06-11: + * ========== + * + * *New* and rewritten soft sample rate converter supporting arbitary sample + * rate, fine grained scalling/coefficients and unified up/down stereo + * converter. Most of disclaimers from orion's previous version also applied + * here, regarding with linear interpolation deficiencies, pre/post + * anti-aliasing filtering issues. This version comes with much simpler and + * tighter interface, although it works almost exactly like the older one. + * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * This new implementation is fully dedicated in memory of Cameron Grant, * + * the creator of magnificent, highly addictive feeder infrastructure. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * + * Orion's notes: + * ============= * * This rate conversion code uses linear interpolation without any * pre- or post- interpolation filtering to combat aliasing. This @@ -37,194 +57,423 @@ * with several portions based on whether _KERNEL is defined. It's a * little ugly, but exceedingly useful. The testsuite and its * revisions can be found at: - * http://people.freebsd.org/~orion/feedrate/ + * http://people.freebsd.org/~orion/files/feedrate/ * * Special thanks to Ken Marx for exposing flaws in the code and for * testing revisions. */ -#ifdef _KERNEL - #include #include "feeder_if.h" -SND_DECLARE_FILE("$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.10.6.1 2005/01/30 01:00:05 imp Exp $"); +SND_DECLARE_FILE("$FreeBSD$"); -#endif /* _KERNEL */ +#define RATE_ASSERT(x, y) /* KASSERT(x,y) */ +#define RATE_TRACE(x...) /* printf(x) */ MALLOC_DEFINE(M_RATEFEEDER, "ratefeed", "pcm rate feeder"); -#ifndef RATE_ASSERT -#define RATE_ASSERT(x, y) /* KASSERT(x) */ -#endif /* RATE_ASSERT */ - -#ifndef RATE_TRACE -#define RATE_TRACE(x...) /* printf(x) */ -#endif - -/*****************************************************************************/ - -/* The following coefficients are coupled. They are chosen to be - * guarantee calculable factors for the interpolation routine. They - * have been tested over the range of RATEMIN-RATEMAX Hz. Decreasing - * the granularity increases the required buffer size and affects the - * gain values at different points in the space. These values were - * found by running the test program with -p (probe) and some trial - * and error. - * - * ROUNDHZ the granularity of sample rates (fits n*11025 and n*8000). - * FEEDBUFSZ the amount of buffer space. - * MINGAIN the minimum acceptable gain in coefficients search. +#define FEEDBUFSZ 8192 +#define ROUNDHZ 25 +#define RATEMIN 4000 +/* 8000 * 138 or 11025 * 100 . This is insane, indeed! */ +#define RATEMAX 1102500 +#define MINGAIN 92 +#define MAXGAIN 96 + +#define FEEDRATE_CONVERT_64 0 +#define FEEDRATE_CONVERT_SCALE64 1 +#define FEEDRATE_CONVERT_SCALE32 2 +#define FEEDRATE_CONVERT_PLAIN 3 +#define FEEDRATE_CONVERT_FIXED 4 +#define FEEDRATE_CONVERT_OPTIMAL 5 +#define FEEDRATE_CONVERT_WORST 6 + +#define FEEDRATE_64_MAXROLL 32 +#define FEEDRATE_32_MAXROLL 16 + +struct feed_rate_info { + uint32_t src, dst; /* rounded source / destination rates */ + uint32_t rsrc, rdst; /* original source / destination rates */ + uint32_t gx, gy; /* interpolation / decimation ratio */ + uint32_t alpha; /* interpolation distance */ + uint32_t pos, bpos; /* current sample / buffer positions */ + uint32_t bufsz; /* total buffer size */ + int32_t scale, roll; /* scale / roll factor */ + int16_t *buffer; + uint32_t (*convert)(struct feed_rate_info *, int16_t *, uint32_t); +}; + +static uint32_t +feed_convert_64(struct feed_rate_info *, int16_t *, uint32_t); +static uint32_t +feed_convert_scale64(struct feed_rate_info *, int16_t *, uint32_t); +static uint32_t +feed_convert_scale32(struct feed_rate_info *, int16_t *, uint32_t); +static uint32_t +feed_convert_plain(struct feed_rate_info *, int16_t *, uint32_t); + +int feeder_rate_ratemin = RATEMIN; +int feeder_rate_ratemax = RATEMAX; +/* + * See 'Feeder Scaling Type' below.. */ -#define ROUNDHZ 25 -#define FEEDBUFSZ 8192 -#define MINGAIN 92 +static int feeder_rate_scaling = FEEDRATE_CONVERT_OPTIMAL; +static int feeder_rate_buffersize = FEEDBUFSZ & ~1; -#define RATEMIN 4000 -#define RATEMAX 48000 +/* + * sysctls.. I love sysctls.. + */ +TUNABLE_INT("hw.snd.feeder_rate_ratemin", &feeder_rate_ratemin); +TUNABLE_INT("hw.snd.feeder_rate_ratemax", &feeder_rate_ratemin); +TUNABLE_INT("hw.snd.feeder_rate_scaling", &feeder_rate_scaling); +TUNABLE_INT("hw.snd.feeder_rate_buffersize", &feeder_rate_buffersize); -struct feed_rate_info; +static int +sysctl_hw_snd_feeder_rate_ratemin(SYSCTL_HANDLER_ARGS) +{ + int err, val; -typedef int (*rate_convert_method)(struct feed_rate_info *, - uint32_t, uint32_t, int16_t *); + val = feeder_rate_ratemin; + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + if (val < 1 || val >= feeder_rate_ratemax) + err = EINVAL; + else + feeder_rate_ratemin = val; + return err; +} +SYSCTL_PROC(_hw_snd, OID_AUTO, feeder_rate_ratemin, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(int), sysctl_hw_snd_feeder_rate_ratemin, "I", ""); -static int -convert_stereo_up(struct feed_rate_info *info, - uint32_t src_ticks, uint32_t dst_ticks, int16_t *dst); +static int +sysctl_hw_snd_feeder_rate_ratemax(SYSCTL_HANDLER_ARGS) +{ + int err, val; + + val = feeder_rate_ratemax; + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + if (val <= feeder_rate_ratemin || val > 0x7fffff) + err = EINVAL; + else + feeder_rate_ratemax = val; + return err; +} +SYSCTL_PROC(_hw_snd, OID_AUTO, feeder_rate_ratemax, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(int), sysctl_hw_snd_feeder_rate_ratemax, "I", ""); static int -convert_stereo_down(struct feed_rate_info *info, - uint32_t src_ticks, uint32_t dst_ticks, int16_t *dst); +sysctl_hw_snd_feeder_rate_scaling(SYSCTL_HANDLER_ARGS) +{ + int err, val; -struct feed_rate_info { - uint32_t src, dst; /* source and destination rates */ - uint16_t buffer_ticks; /* number of available samples in buffer */ - uint16_t buffer_pos; /* next available sample in buffer */ - uint16_t rounds; /* maximum number of cycle rounds w buffer */ - uint16_t alpha; /* interpolation distance */ - uint16_t sscale; /* src clock scale */ - uint16_t dscale; /* dst clock scale */ - uint16_t mscale; /* scale factor to avoid divide per sample */ - uint16_t mroll; /* roll to again avoid divide per sample */ - uint16_t channels; /* 1 = mono, 2 = stereo */ + val = feeder_rate_scaling; + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + /* + * Feeder Scaling Type + * =================== + * + * 1. Plain 64bit (high precision) + * 2. 64bit scaling (high precision, CPU friendly, but can + * cause gain up/down). + * 3. 32bit scaling (somehow can cause hz roundup, gain + * up/down). + * 4. Plain copy (default if src == dst. Except if src == dst, + * this is the worst / silly conversion method!). + * + * Sysctl options:- + * + * 0 - Plain 64bit - no fallback. + * 1 - 64bit scaling - no fallback. + * 2 - 32bit scaling - no fallback. + * 3 - Plain copy - no fallback. + * 4 - Fixed rate. Means that, choose optimal conversion method + * without causing hz roundup. + * 32bit scaling (as long as hz roundup does not occur), + * 64bit scaling, Plain 64bit. + * 5 - Optimal / CPU friendly (DEFAULT). + * 32bit scaling, 64bit scaling, Plain 64bit + * 6 - Optimal to worst, no 64bit arithmetic involved. + * 32bit scaling, Plain copy. + */ + if (val < FEEDRATE_CONVERT_64 || val > FEEDRATE_CONVERT_WORST) + err = EINVAL; + else + feeder_rate_scaling = val; + return err; +} +SYSCTL_PROC(_hw_snd, OID_AUTO, feeder_rate_scaling, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(int), sysctl_hw_snd_feeder_rate_scaling, "I", ""); - rate_convert_method convert; - int16_t buffer[FEEDBUFSZ]; -}; +static int +sysctl_hw_snd_feeder_rate_buffersize(SYSCTL_HANDLER_ARGS) +{ + int err, val; -#define bytes_per_sample 2 -#define src_ticks_per_cycle(info) (info->dscale * info->rounds) -#define dst_ticks_per_cycle(info) (info->sscale * info->rounds) -#define bytes_per_tick(info) (info->channels * bytes_per_sample) -#define src_bytes_per_cycle(info) \ - (src_ticks_per_cycle(info) * bytes_per_tick(info)) -#define dst_bytes_per_cycle(info) \ - (dst_ticks_per_cycle(info) * bytes_per_tick(info)) + val = feeder_rate_buffersize; + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + /* + * Don't waste too much kernel space + */ + if (val < 2 || val > 65536) + err = EINVAL; + else + feeder_rate_buffersize = val & ~1; + return err; +} +SYSCTL_PROC(_hw_snd, OID_AUTO, feeder_rate_buffersize, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(int), sysctl_hw_snd_feeder_rate_buffersize, "I", ""); -static uint32_t -gcd(uint32_t x, uint32_t y) +static void +feed_speed_ratio(uint32_t x, uint32_t y, uint32_t *gx, uint32_t *gy) { - uint32_t w; + uint32_t w, src = x, dst = y; + while (y != 0) { w = x % y; x = y; y = w; } - return x; + *gx = src / x; + *gy = dst / x; +} + +static void +feed_scale_roll(uint32_t dst, int32_t *scale, int32_t *roll, int32_t max) +{ + int64_t k, tscale; + int32_t j, troll; + + *scale = *roll = -1; + for (j = MAXGAIN; j >= MINGAIN; j -= 3) { + for (troll = 0; troll < max; troll++) { + tscale = (1 << troll) / dst; + k = (tscale * dst * 100) >> troll; + if (k > j && k <= 100) { + *scale = tscale; + *roll = troll; + return; + } + } + } +} + +static int +feed_get_best_coef(uint32_t *src, uint32_t *dst, uint32_t *gx, uint32_t *gy, + int32_t *scale, int32_t *roll) +{ + uint32_t tsrc, tdst, sscale, dscale; + int32_t tscale, troll; + int i, j, hzmin, hzmax; + + *scale = *roll = -1; + for (i = 0; i < 2; i++) { + hzmin = (ROUNDHZ * i) + 1; + hzmax = hzmin + ROUNDHZ; + for (j = hzmin; j < hzmax; j++) { + tsrc = *src - (*src % j); + tdst = *dst; + if (tsrc < 1 || tdst < 1) + goto coef_failed; + feed_speed_ratio(tsrc, tdst, &sscale, &dscale); + feed_scale_roll(dscale, &tscale, &troll, + FEEDRATE_32_MAXROLL); + if (tscale != -1 && troll != -1) { + *src = tsrc; + *gx = sscale; + *gy = dscale; + *scale = tscale; + *roll = troll; + return j; + } + } + for (j = hzmin; j < hzmax; j++) { + tsrc = *src - (*src % j); + tdst = *dst - (*dst % j); + if (tsrc < 1 || tdst < 1) + goto coef_failed; + feed_speed_ratio(tsrc, tdst, &sscale, &dscale); + feed_scale_roll(dscale, &tscale, &troll, + FEEDRATE_32_MAXROLL); + if (tscale != -1 && troll != -1) { + *src = tsrc; + *dst = tdst; + *gx = sscale; + *gy = dscale; + *scale = tscale; + *roll = troll; + return j; + } + } + for (j = hzmin; j < hzmax; j++) { + tsrc = *src; + tdst = *dst - (*dst % j); + if (tsrc < 1 || tdst < 1) + goto coef_failed; + feed_speed_ratio(tsrc, tdst, &sscale, &dscale); + feed_scale_roll(dscale, &tscale, &troll, + FEEDRATE_32_MAXROLL); + if (tscale != -1 && troll != -1) { + *src = tsrc; + *dst = tdst; + *gx = sscale; + *gy = dscale; + *scale = tscale; + *roll = troll; + return j; + } + } + } +coef_failed: + feed_speed_ratio(*src, *dst, gx, gy); + feed_scale_roll(*gy, scale, roll, FEEDRATE_32_MAXROLL); + return 0; +} + +static void +feed_rate_reset(struct feed_rate_info *info) +{ + info->scale = -1; + info->roll = -1; + info->src = info->rsrc; + info->dst = info->rdst; + info->gx = 0; + info->gy = 0; } static int feed_rate_setup(struct pcm_feeder *f) { struct feed_rate_info *info = f->data; - uint32_t mscale, mroll, l, r, g; - - /* Beat sample rates down by greatest common divisor */ - g = gcd(info->src, info->dst); - info->sscale = info->dst / g; - info->dscale = info->src / g; + int r = 0; + info->pos = 2; + info->bpos = 4; info->alpha = 0; - info->buffer_ticks = 0; - info->buffer_pos = 0; - - /* Pick suitable conversion routine */ - if (info->src > info->dst) { - info->convert = convert_stereo_down; + feed_rate_reset(info); + if (info->src == info->dst) { + /* + * No conversion ever needed. Just do plain copy. + */ + info->convert = feed_convert_plain; + info->gx = 1; + info->gy = 1; } else { - info->convert = convert_stereo_up; - } - - /* - * Determine number of conversion rounds that will fit into - * buffer. NB Must set info->rounds to one before using - * src_ticks_per_cycle here since it used by src_ticks_per_cycle. - */ - info->rounds = 1; - r = (FEEDBUFSZ - bytes_per_tick(info)) / - (src_ticks_per_cycle(info) * bytes_per_tick(info)); - if (r == 0) { - RATE_TRACE("Insufficient buffer space for conversion %d -> %d " - "(%d < %d)\n", info->src, info->dst, FEEDBUFSZ, - src_ticks_per_cycle(info) * bytes_per_tick(info)); - return -1; + switch (feeder_rate_scaling) { + case FEEDRATE_CONVERT_64: + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + info->convert = feed_convert_64; + break; + case FEEDRATE_CONVERT_SCALE64: + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + feed_scale_roll(info->gy, &info->scale, + &info->roll, FEEDRATE_64_MAXROLL); + if (info->scale == -1 || info->roll == -1) + return -1; + info->convert = feed_convert_scale64; + break; + case FEEDRATE_CONVERT_SCALE32: + r = feed_get_best_coef(&info->src, &info->dst, + &info->gx, &info->gy, &info->scale, + &info->roll); + if (r == 0) + return -1; + info->convert = feed_convert_scale32; + break; + case FEEDRATE_CONVERT_PLAIN: + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + info->convert = feed_convert_plain; + break; + case FEEDRATE_CONVERT_FIXED: + r = feed_get_best_coef(&info->src, &info->dst, + &info->gx, &info->gy, &info->scale, + &info->roll); + if (r != 0 && info->src == info->rsrc && + info->dst == info->rdst) + info->convert = feed_convert_scale32; + else { + /* Fallback */ + feed_rate_reset(info); + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + feed_scale_roll(info->gy, &info->scale, + &info->roll, FEEDRATE_64_MAXROLL); + if (info->scale != -1 && info->roll != -1) + info->convert = feed_convert_scale64; + else + info->convert = feed_convert_64; + } + break; + case FEEDRATE_CONVERT_OPTIMAL: + r = feed_get_best_coef(&info->src, &info->dst, + &info->gx, &info->gy, &info->scale, + &info->roll); + if (r != 0) + info->convert = feed_convert_scale32; + else { + /* Fallback */ + feed_rate_reset(info); + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + feed_scale_roll(info->gy, &info->scale, + &info->roll, FEEDRATE_64_MAXROLL); + if (info->scale != -1 && info->roll != -1) + info->convert = feed_convert_scale64; + else + info->convert = feed_convert_64; + } + break; + case FEEDRATE_CONVERT_WORST: + r = feed_get_best_coef(&info->src, &info->dst, + &info->gx, &info->gy, &info->scale, + &info->roll); + if (r != 0) + info->convert = feed_convert_scale32; + else { + /* Fallback */ + feed_rate_reset(info); + feed_speed_ratio(info->src, info->dst, + &info->gx, &info->gy); + info->convert = feed_convert_plain; + } + break; + default: + return -1; + break; + } + /* No way! */ + if (info->gx == 0 || info->gy == 0) + return -1; + /* + * No need to interpolate/decimate, just do plain copy. + * This probably caused by Hz roundup. + */ + if (info->gx == info->gy) + info->convert = feed_convert_plain; } - info->rounds = r; - - /* - * Find scale and roll combination that allows us to trade - * costly divide operations in the main loop for multiply-rolls. - */ - for (l = 96; l >= MINGAIN; l -= 3) { - for (mroll = 0; mroll < 16; mroll ++) { - mscale = (1 << mroll) / info->sscale; - - r = (mscale * info->sscale * 100) >> mroll; - if (r > l && r <= 100) { - info->mscale = mscale; - info->mroll = mroll; - RATE_TRACE("Converting %d to %d with " - "mscale = %d and mroll = %d " - "(gain = %d / 100)\n", - info->src, info->dst, - info->mscale, info->mroll, r); - return 0; - } - } - } - - RATE_TRACE("Failed to find a converter within %d%% gain for " - "%d to %d.\n", l, info->src, info->dst); - - return -2; + return 0; } static int feed_rate_set(struct pcm_feeder *f, int what, int value) { struct feed_rate_info *info = f->data; - int rvalue; - - if (value < RATEMIN || value > RATEMAX) { + + if (value < feeder_rate_ratemin || value > feeder_rate_ratemax) return -1; - } - rvalue = (value / ROUNDHZ) * ROUNDHZ; - if (value - rvalue > ROUNDHZ / 2) { - rvalue += ROUNDHZ; - } - - switch(what) { - case FEEDRATE_SRC: - info->src = rvalue; - break; - case FEEDRATE_DST: - info->dst = rvalue; - break; - default: - return -1; + switch (what) { + case FEEDRATE_SRC: + info->rsrc = value; + break; + case FEEDRATE_DST: + info->rdst = value; + break; + default: + return -1; } - return feed_rate_setup(f); } @@ -233,13 +482,16 @@ { struct feed_rate_info *info = f->data; - switch(what) { - case FEEDRATE_SRC: - return info->src; - case FEEDRATE_DST: - return info->dst; - default: - return -1; + /* + * Return *real* src/dst rate. + */ + switch (what) { + case FEEDRATE_SRC: + return info->rsrc; + case FEEDRATE_DST: + return info->rdst; + default: + return -1; } return -1; } @@ -252,12 +504,20 @@ info = malloc(sizeof(*info), M_RATEFEEDER, M_NOWAIT | M_ZERO); if (info == NULL) return ENOMEM; - info->src = DSP_DEFAULT_SPEED; - info->dst = DSP_DEFAULT_SPEED; - info->channels = 2; - + /* + * bufsz = sample from last cycle + conversion space + */ + info->bufsz = 2 + feeder_rate_buffersize; + info->buffer = malloc(sizeof(*info->buffer) * info->bufsz, + M_RATEFEEDER, M_NOWAIT | M_ZERO); + if (info->buffer == NULL) { + free(info, M_RATEFEEDER); + return ENOMEM; + } + info->rsrc = DSP_DEFAULT_SPEED; + info->rdst = DSP_DEFAULT_SPEED; f->data = info; - return 0; + return feed_rate_setup(f); } static int @@ -266,211 +526,269 @@ struct feed_rate_info *info = f->data; if (info) { + if (info->buffer) + free(info->buffer, M_RATEFEEDER); free(info, M_RATEFEEDER); } f->data = NULL; return 0; } -static int -convert_stereo_up(struct feed_rate_info *info, - uint32_t src_ticks, - uint32_t dst_ticks, - int16_t *dst) +static uint32_t +feed_convert_64(struct feed_rate_info *info, int16_t *dst, uint32_t max) { - uint32_t max_dst_ticks; - int32_t alpha, dalpha, malpha, mroll, sp, dp, se, de, x, o; + int64_t x, alpha, distance; + uint32_t ret; + int32_t pos, bpos, gx, gy; int16_t *src; - - sp = info->buffer_pos * 2; - se = sp + src_ticks * 2; - - src = info->buffer; - alpha = info->alpha * info->mscale; - dalpha = info->dscale * info->mscale; /* Alpha increment */ - malpha = info->sscale * info->mscale; /* Maximum allowed alpha value */ - mroll = info->mroll; - /* - * For efficiency the main conversion loop should only depend on - * one variable. We use the state to work out the maximum number - * of output samples that are available and eliminate the checking of - * sp from the loop. + * Plain, straight forward 64bit arith. No bit-magic applied here. */ - max_dst_ticks = src_ticks * info->dst / info->src - alpha / dalpha; - if (max_dst_ticks < dst_ticks) { - dst_ticks = max_dst_ticks; + ret = 0; + alpha = info->alpha; + gx = info->gx; + gy = info->gy; + pos = info->pos; + bpos = info->bpos; + src = info->buffer; + for (;;) { + if (alpha < gx) { + alpha += gy; + pos += 2; + if (pos == bpos) + break; + } else { + alpha -= gx; + distance = gy - alpha; + x = (alpha * src[pos - 2]) + (distance * src[pos]); + dst[ret++] = x / gy; + x = (alpha * src[pos - 1]) + (distance * src[pos + 1]); + dst[ret++] = x / gy; + if (ret == max) + break; + } } + info->alpha = alpha; + info->pos = pos; + return ret; +} - dp = 0; - de = dst_ticks * 2; +static uint32_t +feed_convert_scale64(struct feed_rate_info *info, int16_t *dst, uint32_t max) +{ + int64_t x, alpha, distance; + uint32_t ret; + int32_t pos, bpos, gx, gy, roll; + int16_t *src; /* - * Unrolling this loop manually does not help much here because - * of the alpha, malpha comparison. + * 64bit scaling. */ - while (dp < de) { - o = malpha - alpha; - x = alpha * src[sp + 2] + o * src[sp]; - dst[dp++] = x >> mroll; - x = alpha * src[sp + 3] + o * src[sp + 1]; - dst[dp++] = x >> mroll; - alpha += dalpha; - if (alpha >= malpha) { - alpha -= malpha; - sp += 2; + ret = 0; + roll = info->roll; + alpha = info->alpha * info->scale; + gx = info->gx * info->scale; + gy = info->gy * info->scale; + pos = info->pos; + bpos = info->bpos; + src = info->buffer; + for (;;) { + if (alpha < gx) { + alpha += gy; + pos += 2; + if (pos == bpos) + break; + } else { + alpha -= gx; + distance = gy - alpha; + x = (alpha * src[pos - 2]) + (distance * src[pos]); + dst[ret++] = x >> roll; + x = (alpha * src[pos - 1]) + (distance * src[pos + 1]); + dst[ret++] = x >> roll; + if (ret == max) + break; } } - RATE_ASSERT(sp <= se, ("%s: Source overrun\n", __func__)); - - info->buffer_pos = sp / info->channels; - info->alpha = alpha / info->mscale; - - return dp / info->channels; + info->alpha = alpha / info->scale; + info->pos = pos; + return ret; } -static int -convert_stereo_down(struct feed_rate_info *info, - uint32_t src_ticks, - uint32_t dst_ticks, - int16_t *dst) +static uint32_t +feed_convert_scale32(struct feed_rate_info *info, int16_t *dst, uint32_t max) { - int32_t alpha, dalpha, malpha, mroll, sp, dp, se, de, x, o, m, - mdalpha, mstep; + uint32_t ret; + int32_t x, pos, bpos, gx, gy, alpha, roll, distance; int16_t *src; - - sp = info->buffer_pos * 2; - se = sp + src_ticks * 2; - + /* + * 32bit scaling. + */ + ret = 0; + roll = info->roll; + alpha = info->alpha * info->scale; + gx = info->gx * info->scale; + gy = info->gy * info->scale; + pos = info->pos; + bpos = info->bpos; src = info->buffer; - alpha = info->alpha * info->mscale; - dalpha = info->dscale * info->mscale; /* Alpha increment */ - malpha = info->sscale * info->mscale; /* Maximum allowed alpha value */ - mroll = info->mroll; - - dp = 0; - de = dst_ticks * 2; - - m = dalpha / malpha; - mstep = m * 2; - mdalpha = dalpha - m * malpha; + for (;;) { + if (alpha < gx) { + alpha += gy; + pos += 2; + if (pos == bpos) + break; + } else { + alpha -= gx; + distance = gy - alpha; + x = (alpha * src[pos - 2]) + (distance * src[pos]); + dst[ret++] = x >> roll; + x = (alpha * src[pos - 1]) + (distance * src[pos + 1]); + dst[ret++] = x >> roll; + if (ret == max) + break; + } + } + info->alpha = alpha / info->scale; + info->pos = pos; + return ret; +} +static uint32_t +feed_convert_plain(struct feed_rate_info *info, int16_t *dst, uint32_t max) +{ + uint32_t ret; + int32_t pos, bpos, gx, gy, alpha; + int16_t *src; /* - * TODO: eliminate sp or dp from this loop comparison for a few - * extra % performance. + * Plain copy. */ - while (sp < se && dp < de) { - o = malpha - alpha; - x = alpha * src[sp + 2] + o * src[sp]; - dst[dp++] = x >> mroll; - x = alpha * src[sp + 3] + o * src[sp + 1]; - dst[dp++] = x >> mroll; - - alpha += mdalpha; - sp += mstep; - if (alpha >= malpha) { - alpha -= malpha; - sp += 2; + ret = 0; + gx = info->gx; + gy = info->gy; + alpha = info->alpha; + pos = info->pos; + bpos = info->bpos; + src = info->buffer; + for (;;) { + if (alpha < gx) { + alpha += gy; + pos += 2; + if (pos == bpos) + break; + } else { + alpha -= gx; + dst[ret++] = src[pos]; + dst[ret++] = src[pos + 1]; + if (ret == max) + break; } } - - info->buffer_pos = sp / 2; - info->alpha = alpha / info->mscale; - - RATE_ASSERT(info->buffer_pos <= info->buffer_ticks, - ("%s: Source overrun\n", __func__)); - - return dp / 2; + info->pos = pos; + info->alpha = alpha; + return ret; } -static int -feed_rate(struct pcm_feeder *f, - struct pcm_channel *c, - uint8_t *b, - uint32_t count, - void *source) +static int32_t +feed_rate(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) { struct feed_rate_info *info = f->data; - - uint32_t done, s_ticks, d_ticks; - done = 0; - - RATE_ASSERT(info->channels == 2, - ("%s: channels (%d) != 2", __func__, info->channels)); - - while (done < count) { - /* Slurp in more data if input buffer is not full */ - while (info->buffer_ticks < src_ticks_per_cycle(info)) { - uint8_t *u8b; - int fetch; - fetch = src_bytes_per_cycle(info) - - info->buffer_ticks * bytes_per_tick(info); - u8b = (uint8_t*)info->buffer + - (info->buffer_ticks + 1) * - bytes_per_tick(info); - fetch = FEEDER_FEED(f->source, c, u8b, fetch, source); - RATE_ASSERT(fetch % bytes_per_tick(info) == 0, - ("%s: fetched unaligned bytes (%d)", - __func__, fetch)); - info->buffer_ticks += fetch / bytes_per_tick(info); - RATE_ASSERT(src_ticks_per_cycle(info) >= - info->buffer_ticks, - ("%s: buffer overfilled (%d > %d).", - __func__, info->buffer_ticks, - src_ticks_per_cycle(info))); - if (fetch == 0) + uint32_t i; + int32_t fetch, slot; + int16_t *dst = (int16_t *)b; + /* + * This loop has been optimized to generalize both up / down + * sampling without causing missing samples or excessive buffer + * feeding. + */ + RATE_ASSERT(count >= 4 && count % 4 == 0, + ("%s: Count size not byte integral\n", __func__)); + count >>= 1; + slot = (((info->gx * (count >> 1)) + info->gy - info->alpha - 1) / info->gy) << 1; + /* + * Optimize buffer feeding aggresively to ensure calculated slot + * can be fitted nicely into available buffer free space, hence + * avoiding multiple feeding. + */ + if (info->pos != 2 && info->bpos - info->pos == 2 && + info->bpos + slot > info->bufsz) { + /* + * Copy last unit sample and its previous to + * beginning of buffer. + */ + info->buffer[0] = info->buffer[info->pos - 2]; + info->buffer[1] = info->buffer[info->pos - 1]; + info->buffer[2] = info->buffer[info->pos]; + info->buffer[3] = info->buffer[info->pos + 1]; + info->pos = 2; + info->bpos = 4; + } + RATE_ASSERT(slot >= 0, ("%s: Negative Slot: %d\n", + __func__, slot)); + i = 0; + for (;;) { + for (;;) { + fetch = info->bufsz - info->bpos; + RATE_ASSERT(fetch >= 0, + ("%s: Buffer overrun: %d > %d\n", + __func__, info->bpos, info->bufsz)); + if (slot < fetch) + fetch = slot; + if (fetch > 0) { + RATE_ASSERT(fetch % 2 == 0, + ("%s: Fetch size not sample integral\n", + __func__)); + fetch = FEEDER_FEED(f->source, c, + (uint8_t *)(info->buffer + info->bpos), + fetch << 1, source); + if (fetch == 0) + break; + RATE_ASSERT(fetch % 4 == 0, + ("%s: Fetch size not byte integral\n", + __func__)); + fetch >>= 1; + info->bpos += fetch; + slot -= fetch; + RATE_ASSERT(slot >= 0, + ("%s: Negative Slot: %d\n", __func__ + slot)); + if (slot == 0) + break; + if (info->bpos == info->bufsz) + break; + } else break; } - - /* Find amount of input buffer data that should be processed */ - d_ticks = (count - done) / bytes_per_tick(info); - s_ticks = info->buffer_ticks - info->buffer_pos; - if (info->buffer_ticks != src_ticks_per_cycle(info)) { - if (s_ticks > 8) - s_ticks -= 8; - else - s_ticks = 0; - } - - d_ticks = info->convert(info, s_ticks, d_ticks, - (int16_t*)(b + done)); - if (d_ticks == 0) + if (info->pos == info->bpos) { + RATE_ASSERT(info->pos == 2, + ("%s: EOF while in progress\n", __func__)); break; - done += d_ticks * bytes_per_tick(info); - - RATE_ASSERT(info->buffer_pos <= info->buffer_ticks, - ("%s: buffer_ticks too big\n", __func__)); - RATE_ASSERT(info->buffer_ticks <= src_ticks_per_cycle(info), - ("too many ticks %d / %d\n", - info->buffer_ticks, src_ticks_per_cycle(info))); - RATE_TRACE("%s: ticks %5d / %d pos %d\n", __func__, - info->buffer_ticks, src_ticks_per_cycle(info), - info->buffer_pos); - - if (src_ticks_per_cycle(info) <= info->buffer_pos) { - /* End of cycle reached, copy last samples to start */ - uint8_t *u8b; - u8b = (uint8_t*)info->buffer; - bcopy(u8b + src_bytes_per_cycle(info), u8b, - bytes_per_tick(info)); - - RATE_ASSERT(info->alpha == 0, - ("%s: completed cycle with " - "alpha non-zero", __func__, info->alpha)); - - info->buffer_pos = 0; - info->buffer_ticks = 0; } + RATE_ASSERT(info->pos <= info->bpos, + ("%s: Buffer overrun: %d > %d\n", __func__, + info->pos, info->bpos)); + RATE_ASSERT(info->pos < info->bpos, + ("%s: Zero buffer!\n", __func__)); + RATE_ASSERT((info->bpos - info->pos) % 2 == 0, + ("%s: Buffer not sample integral\n", __func__)); + i += info->convert(info, dst + i, count - i); + RATE_ASSERT(info->pos <= info->bpos, + ("%s: Buffer overrun: %d > %d\n", + __func__, info->pos, info->bpos)); + if (info->pos == info->bpos) { + /* + * End of buffer cycle. Copy last unit sample + * to beginning of buffer so next cycle can + * interpolate using it. + */ + info->buffer[0] = info->buffer[info->pos - 2]; + info->buffer[1] = info->buffer[info->pos - 1]; + info->bpos = 2; + info->pos = 2; + } + if (i == count) + break; } - - RATE_ASSERT(count >= done, - ("%s: generated too many bytes of data (%d > %d).", - __func__, done, count)); - - if (done != count) { - RATE_TRACE("Only did %d of %d\n", done, count); - } - - return done; + return i << 1; } static struct pcm_feederdesc feeder_rate_desc[] = { @@ -486,4 +804,3 @@ {0, 0} }; FEEDER_DECLARE(feeder_rate, 2, NULL); - --- sys/dev/sound/pcm/feeder_volume.c.orig Thu Jan 1 07:30:00 1970 +++ sys/dev/sound/pcm/feeder_volume.c Fri Sep 16 06:32:00 2005 @@ -0,0 +1,75 @@ +/*- + * Copyright (c) 2005 Ariff Abdullah + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * feeder_volume, a long 'Lost Technology' rather than a new feature. + */ + +#include +#include "feeder_if.h" + +SND_DECLARE_FILE("$FreeBSD$"); + +static int +feed_volume_s16(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, j, k, vol[2]; + int16_t *buf; + + k = FEEDER_FEED(f->source, c, b, count & ~1, source); + if (k < 2) { + device_printf(c->dev, "%s: Not enough data (Got: %d bytes)\n", + __func__, k); + return 0; + } + if (k & 1) { + device_printf(c->dev, "%s: Bytes not 16bit aligned.\n", __func__); + k &= ~1; + } + i = k >> 1; + buf = (int16_t *)b; + vol[0] = c->volume & 0x7f; + vol[1] = (c->volume >> 8) & 0x7f; + while (i > 0) { + i--; + j = (vol[i & 1] * buf[i]) / 100; + if (j > 32767) + j = 32767; + if (j < -32768) + j = -32768; + buf[i] = j; + } + return k; +} + +static struct pcm_feederdesc feeder_volume_s16_desc[] = { + {FEEDER_VOLUME, AFMT_S16_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_volume_s16_methods[] = { + KOBJMETHOD(feeder_feed, feed_volume_s16), + {0, 0} +}; +FEEDER_DECLARE(feeder_volume_s16, 2, NULL); --- sys/dev/sound/pcm/mixer.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/mixer.c Fri Sep 16 06:32:00 2005 @@ -41,6 +41,7 @@ int hwvol_muted; int hwvol_mixer; int hwvol_step; + device_t dev; u_int32_t hwvol_mute_level; u_int32_t devs; u_int32_t recdevs; @@ -74,7 +75,7 @@ static struct cdevsw mixer_cdevsw = { .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, + .d_flags = D_TRACKCLOSE | D_NEEDGIANT, .d_open = mixer_open, .d_close = mixer_close, .d_ioctl = mixer_ioctl, @@ -113,6 +114,7 @@ static int mixer_set(struct snd_mixer *mixer, unsigned dev, unsigned lev) { + struct snddev_info *d; unsigned l, r; int v; @@ -122,9 +124,34 @@ l = min((lev & 0x00ff), 100); r = min(((lev & 0xff00) >> 8), 100); - v = MIXER_SET(mixer, dev, l, r); - if (v < 0) - return -1; + d = device_get_softc(mixer->dev); + if (dev == SOUND_MIXER_PCM && d && + (d->flags & SD_F_SOFTVOL)) { + struct snddev_channel *sce; + struct pcm_channel *ch; +#ifdef USING_MUTEX + int locked = (mixer->lock && mtx_owned((struct mtx *)(mixer->lock))) ? 1 : 0; + + if (locked) + snd_mtxunlock(mixer->lock); +#endif + SLIST_FOREACH(sce, &d->channels, link) { + ch = sce->channel; + CHN_LOCK(ch); + if (ch->direction == PCMDIR_PLAY && + (ch->feederflags & (1 << FEEDER_VOLUME))) + chn_setvolume(ch, l, r); + CHN_UNLOCK(ch); + } +#ifdef USING_MUTEX + if (locked) + snd_mtxlock(mixer->lock); +#endif + } else { + v = MIXER_SET(mixer, dev, l, r); + if (v < 0) + return -1; + } mixer->level[dev] = l | (r << 8); return 0; @@ -157,6 +184,9 @@ void mix_setdevs(struct snd_mixer *m, u_int32_t v) { + struct snddev_info *d = device_get_softc(m->dev); + if (d && (d->flags & SD_F_SOFTVOL)) + v |= SOUND_MASK_PCM; m->devs = v; } @@ -199,6 +229,7 @@ m->type = cls->name; m->devinfo = devinfo; m->busy = 0; + m->dev = dev; if (MIXER_INIT(m)) goto bad; @@ -442,7 +473,7 @@ int v = -1, j = cmd & 0xff; m = i_dev->si_drv1; - if (!m->busy) + if (mode != -1 && !m->busy) return EBADF; s = spltty(); @@ -495,8 +526,10 @@ return; if (strcmp(name, "mixer") == 0) { sd = devclass_get_softc(pcm_devclass, snd_unit); - if (sd != NULL) + if (sd != NULL) { *dev = sd->mixer_dev; + dev_ref(*dev); + } } } --- sys/dev/sound/pcm/slavechan.c.orig Thu Jan 1 07:30:00 1970 +++ sys/dev/sound/pcm/slavechan.c Fri Sep 16 06:32:00 2005 @@ -0,0 +1,381 @@ +/* + * Copyright (c) 2005 Ariff Abdullah + * All rights reserved. + * + * Derived from vchan.c + * + * Copyright (c) 2001 Cameron Grant + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * This new implementation is fully dedicated in memory of Cameron Grant, * + * the creator of magnificent, highly addictive feeder infrastructure. * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * + */ + +#include +#include +#include "feeder_if.h" + +SND_DECLARE_FILE("$FreeBSD$"); + +struct slaveinfo { + uint32_t spd, fmt, blksz, bps, run; + struct pcm_channel *channel, *parent; +}; + +static int +feed_slave(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + struct pcmchan_children *cce; + struct pcm_channel *ch; + int cnt = 0; + + cce = SLIST_FIRST(&c->children); + if (!cce || !cce->channel) + return 0; + ch = cce->channel; + CHN_LOCK(ch); + if (ch->flags & CHN_F_TRIGGERED) { + if (ch->flags & CHN_F_MAPPED) + sndbuf_acquire(ch->bufsoft, NULL, sndbuf_getfree(ch->bufsoft)); + cnt = FEEDER_FEED(ch->feeder, ch, b, count, ch->bufsoft); + } + CHN_UNLOCK(ch); + return cnt; +} + +static struct pcm_feederdesc feeder_slave_desc[] = { + {FEEDER_SLAVE, AFMT_U8, AFMT_U8, 0}, + {FEEDER_SLAVE, AFMT_U8|AFMT_STEREO, AFMT_U8|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S8, AFMT_S8, 0}, + {FEEDER_SLAVE, AFMT_S8|AFMT_STEREO, AFMT_S8|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_A_LAW, AFMT_A_LAW, 0}, + {FEEDER_SLAVE, AFMT_A_LAW|AFMT_STEREO, AFMT_A_LAW|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_MU_LAW, AFMT_MU_LAW, 0}, + {FEEDER_SLAVE, AFMT_MU_LAW|AFMT_STEREO, AFMT_MU_LAW|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U16_LE, AFMT_U16_LE, 0}, + {FEEDER_SLAVE, AFMT_U16_LE|AFMT_STEREO, AFMT_U16_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S16_LE, AFMT_S16_LE, 0}, + {FEEDER_SLAVE, AFMT_S16_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U16_BE, AFMT_U16_BE, 0}, + {FEEDER_SLAVE, AFMT_U16_BE|AFMT_STEREO, AFMT_U16_BE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S16_BE, AFMT_S16_BE, 0}, + {FEEDER_SLAVE, AFMT_S16_BE|AFMT_STEREO, AFMT_S16_BE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U24_LE, AFMT_U24_LE, 0}, + {FEEDER_SLAVE, AFMT_U24_LE|AFMT_STEREO, AFMT_U24_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S24_LE, AFMT_S24_LE, 0}, + {FEEDER_SLAVE, AFMT_S24_LE|AFMT_STEREO, AFMT_S24_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U24_BE, AFMT_U24_BE, 0}, + {FEEDER_SLAVE, AFMT_U24_BE|AFMT_STEREO, AFMT_U24_BE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S24_BE, AFMT_S24_BE, 0}, + {FEEDER_SLAVE, AFMT_S24_BE|AFMT_STEREO, AFMT_S24_BE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U32_LE, AFMT_U32_LE, 0}, + {FEEDER_SLAVE, AFMT_U32_LE|AFMT_STEREO, AFMT_U32_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S32_LE, AFMT_S32_LE, 0}, + {FEEDER_SLAVE, AFMT_S32_LE|AFMT_STEREO, AFMT_S32_LE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_U32_BE, AFMT_U32_BE, 0}, + {FEEDER_SLAVE, AFMT_U32_BE|AFMT_STEREO, AFMT_U32_BE|AFMT_STEREO, 0}, + {FEEDER_SLAVE, AFMT_S32_BE, AFMT_S32_BE, 0}, + {FEEDER_SLAVE, AFMT_S32_BE|AFMT_STEREO, AFMT_S32_BE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_slave_methods[] = { + KOBJMETHOD(feeder_feed, feed_slave), + {0, 0} +}; +FEEDER_DECLARE(feeder_slave, 2, NULL); + +static void * +slave_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, + struct pcm_channel *c, int dir) +{ + struct slaveinfo *ch; + struct pcm_channel *parent = devinfo; + + KASSERT(dir == PCMDIR_PLAY || + dir == PCMDIR_REC, ("slave_init: bad direction")); + ch = malloc(sizeof(*ch), M_DEVBUF, M_WAITOK|M_ZERO); + if (!ch) + return NULL; + ch->parent = parent; + ch->channel = c; + ch->fmt = AFMT_U8; + ch->spd = DSP_DEFAULT_SPEED; + ch->blksz = 2048; + c->flags |= CHN_F_SLAVE; + return ch; +} + +static int +slave_free(kobj_t obj, void *data) +{ + return 0; +} + +static int +slave_setformat(kobj_t obj, void *data, uint32_t format) +{ + struct slaveinfo *ch = data; + struct pcm_channel *parent = ch->parent; + struct pcm_channel *channel = ch->channel; + int r; + + CHN_UNLOCK(channel); + CHN_LOCK(parent); + r = CHANNEL_SETFORMAT(parent->methods, parent->devinfo, format); + if (r == 0) { + parent->format = format; + sndbuf_setfmt(parent->bufhard, format); + sndbuf_setfmt(parent->bufsoft, format); + } + CHN_UNLOCK(parent); + CHN_LOCK(channel); + if (r == 0) { + ch->fmt = format; + ch->bps = 1; + if (ch->fmt & AFMT_STEREO) + ch->bps <<= 1; + if (ch->fmt & AFMT_16BIT) + ch->bps <<= 1; + else if (ch->fmt & AFMT_24BIT) + ch->bps *= 3; + else if (ch->fmt & AFMT_32BIT) + ch->bps <<= 2; + sndbuf_setfmt(channel->bufsoft, format); + } + return r; +} + +static int +slave_setspeed(kobj_t obj, void *data, uint32_t speed) +{ + struct slaveinfo *ch = data; + struct pcm_channel *parent = ch->parent; + struct pcm_channel *channel = ch->channel; + int r, hwspd = speed; + + CHN_UNLOCK(channel); + CHN_LOCK(parent); + RANGE(hwspd, chn_getcaps(parent)->minspeed, chn_getcaps(parent)->maxspeed); + r = CHANNEL_SETSPEED(parent->methods, parent->devinfo, hwspd); + parent->speed = r; + sndbuf_setspd(parent->bufhard, r); + sndbuf_setspd(parent->bufsoft, r); + CHN_UNLOCK(parent); + CHN_LOCK(channel); + ch->spd = r; + return ch->spd; +} + +static int +slave_setblocksize(kobj_t obj, void *data, uint32_t blocksize) +{ + struct slaveinfo *ch = data; + struct pcm_channel *channel = ch->channel; + struct pcm_channel *parent = ch->parent; + int prate, crate; + + ch->blksz = blocksize; + sndbuf_setblksz(channel->bufhard, blocksize); + chn_notify(parent, CHN_N_BLOCKSIZE); + CHN_LOCK(parent); + crate = ch->spd * ch->bps; + prate = sndbuf_getspd(parent->bufhard) * sndbuf_getbps(parent->bufhard); + blocksize = sndbuf_getblksz(parent->bufhard); + CHN_UNLOCK(parent); + blocksize *= prate; + blocksize /= crate; + return blocksize; +} + +static int +slave_trigger(kobj_t obj, void *data, int go) +{ + struct slaveinfo *ch = data; + struct pcm_channel *parent = ch->parent; + struct pcm_channel *channel = ch->channel; + + if (go == PCMTRIG_EMLDMAWR || go == PCMTRIG_EMLDMARD) + return 0; + ch->run = (go == PCMTRIG_START) ? 1 : 0; + CHN_UNLOCK(channel); + chn_notify(parent, CHN_N_TRIGGER); + CHN_LOCK(channel); + return 0; +} + +static struct pcmchan_caps * +slave_getcaps(kobj_t obj, void *data) +{ + struct slaveinfo *ch = data; + struct pcm_channel *channel = ch->channel; + struct pcm_channel *parent = ch->parent; + struct pcmchan_caps *caps; + + CHN_UNLOCK(channel); + CHN_LOCK(parent); + caps = chn_getcaps(parent); + CHN_UNLOCK(parent); + CHN_LOCK(channel); + return caps; +} + +static kobj_method_t slave_methods[] = { + KOBJMETHOD(channel_init, slave_init), + KOBJMETHOD(channel_free, slave_free), + KOBJMETHOD(channel_setformat, slave_setformat), + KOBJMETHOD(channel_setspeed, slave_setspeed), + KOBJMETHOD(channel_setblocksize, slave_setblocksize), + KOBJMETHOD(channel_trigger, slave_trigger), + KOBJMETHOD(channel_getcaps, slave_getcaps), + {0, 0} +}; +CHANNEL_DECLARE(slave); + +int +slave_create(struct pcm_channel *parent) +{ + struct snddev_info *d = parent->parentsnddev; + struct pcmchan_children *pce; + struct pcm_channel *child; + struct pcmchan_caps *parent_caps; + int err; + + if (!(parent->flags & CHN_F_BUSY) || !SLIST_EMPTY(&parent->children)) + return EBUSY; + + parent_caps = chn_getcaps(parent); + if (parent_caps == NULL || parent_caps->fmtlist == NULL) + return EINVAL; + + CHN_UNLOCK(parent); + + pce = malloc(sizeof(*pce), M_DEVBUF, M_WAITOK | M_ZERO); + if (!pce) { + CHN_LOCK(parent); + return ENOMEM; + } + + child = pcm_chn_create(d, parent, &slave_class, PCMDIR_SLAVE, parent); + if (!child) { + free(pce, M_DEVBUF); + CHN_LOCK(parent); + return ENODEV; + } + pce->channel = child; + + err = pcm_chn_add(d, child); + if (err) { + pcm_chn_destroy(child); + free(pce, M_DEVBUF); + CHN_LOCK(parent); + return err; + } + + CHN_LOCK(parent); + SLIST_INSERT_HEAD(&parent->children, pce, link); + parent->flags |= CHN_F_HAS_SLAVE; + + err = chn_reset(parent, parent_caps->fmtlist[0]); + if (!err) + err = chn_setspeed(parent, parent_caps->minspeed); + if (err) { + SLIST_REMOVE(&parent->children, pce, pcmchan_children, link); + parent->flags &= ~CHN_F_HAS_SLAVE; + CHN_UNLOCK(parent); + free(pce, M_DEVBUF); + pcm_chn_remove(d, child); + pcm_chn_destroy(child); + CHN_LOCK(parent); + return err; + } + + return 0; +} + +int +slave_destroy(struct pcm_channel *c) +{ + struct pcm_channel *parent = c->parentchannel; + struct snddev_info *d = parent->parentsnddev; + struct pcmchan_children *pce; + struct snddev_channel *sce; + int err, last; + + CHN_LOCK(parent); + if (!(parent->flags & CHN_F_BUSY)) { + CHN_UNLOCK(parent); + return EBUSY; + } + if (SLIST_EMPTY(&parent->children)) { + CHN_UNLOCK(parent); + return EINVAL; + } + SLIST_FOREACH(pce, &parent->children, link) { + if (pce->channel == c) + goto gotchslave; + } + CHN_UNLOCK(parent); + return EINVAL; +gotchslave: + SLIST_FOREACH(sce, &d->channels, link) { + if (sce->channel == c) { + if (sce->dsp_devt) + destroy_dev(sce->dsp_devt); + if (sce->dspW_devt) + destroy_dev(sce->dspW_devt); + if (sce->audio_devt) + destroy_dev(sce->audio_devt); + if (sce->dspr_devt) + destroy_dev(sce->dspr_devt); + break; + } + } + SLIST_REMOVE(&parent->children, pce, pcmchan_children, link); + free(pce, M_DEVBUF); + + last = SLIST_EMPTY(&parent->children); + if (last) { + parent->flags &= ~CHN_F_BUSY; + parent->flags &= ~CHN_F_HAS_SLAVE; + } + err = pcm_chn_remove(d, c); + CHN_UNLOCK(parent); + if (!err) + err = pcm_chn_destroy(c); +#if 0 + if (!err && last) { + CHN_LOCK(parent); + chn_reset(parent, chn_getcaps(parent)->fmtlist[0]); + chn_setspeed(parent, chn_getcaps(parent)->minspeed); + CHN_UNLOCK(parent); + } +#endif + return err; +} --- sys/dev/sound/pcm/sndstat.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/sndstat.c Fri Sep 16 06:32:00 2005 @@ -196,6 +196,42 @@ } int +sndstat_acquire(void) +{ + intrmask_t s; + + s = spltty(); + sx_xlock(&sndstat_lock); + if (sndstat_isopen) { + sx_xunlock(&sndstat_lock); + splx(s); + return EBUSY; + } + sndstat_isopen = 1; + sx_xunlock(&sndstat_lock); + splx(s); + return 0; +} + +int +sndstat_release(void) +{ + intrmask_t s; + + s = spltty(); + sx_xlock(&sndstat_lock); + if (!sndstat_isopen) { + sx_xunlock(&sndstat_lock); + splx(s); + return EBADF; + } + sndstat_isopen = 0; + sx_xunlock(&sndstat_lock); + splx(s); + return 0; +} + +int sndstat_register(device_t dev, char *str, sndstat_handler handler) { intrmask_t s; @@ -369,16 +405,11 @@ sndstat_dev = 0; splx(s); + sx_xunlock(&sndstat_lock); sx_destroy(&sndstat_lock); return 0; } -int -sndstat_busy(void) -{ - return (sndstat_isopen); -} - static void sndstat_sysinit(void *p) { @@ -388,7 +419,10 @@ static void sndstat_sysuninit(void *p) { - sndstat_uninit(); + int error; + + error = sndstat_uninit(); + KASSERT(error == 0, ("%s: error = %d", __func__, error)); } SYSINIT(sndstat_sysinit, SI_SUB_DRIVERS, SI_ORDER_FIRST, sndstat_sysinit, NULL); --- sys/dev/sound/pcm/sound.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/sound.c Fri Sep 16 06:32:00 2005 @@ -46,6 +46,9 @@ int snd_maxautovchans = 0; TUNABLE_INT("hw.snd.maxautovchans", &snd_maxautovchans); +int snd_slave_enabled = 1; +TUNABLE_INT("hw.snd.slave_enabled", &snd_slave_enabled); + SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver"); static int sndstat_prepare_pcm(struct sbuf *s, device_t dev, int verbose); @@ -166,8 +169,6 @@ struct snddev_channel *sce; int err; - snd_mtxassert(d->lock); - /* scan for a free channel */ SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; @@ -189,7 +190,8 @@ SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; CHN_LOCK(c); - if (!SLIST_EMPTY(&c->children)) { + if ((c->flags & CHN_F_HAS_VCHAN) && + !SLIST_EMPTY(&c->children)) { err = vchan_create(c); CHN_UNLOCK(c); if (!err) @@ -246,44 +248,123 @@ static void pcm_setmaxautovchans(struct snddev_info *d, int num) { - struct pcm_channel *c; + struct pcm_channel *c, *ch; struct snddev_channel *sce; - int err, done; + int err, done, foundslave = 0; + /* + * XXX WOAH... NEED SUPER CLEANUP!!! + * Robust, yet confusing. Understanding these will + * cause your brain spinning like a Doki Doki Dynamo. + */ if (num > 0 && d->vchancount == 0) { + ch = NULL; + c = NULL; SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; CHN_LOCK(c); - if ((c->direction == PCMDIR_PLAY) && !(c->flags & CHN_F_BUSY)) { - c->flags |= CHN_F_BUSY; - err = vchan_create(c); - if (err) { - c->flags &= ~CHN_F_BUSY; - CHN_UNLOCK(c); - device_printf(d->dev, "vchan_create(%s) == %d\n", c->name, err); - } else - CHN_UNLOCK(c); - return; + if ((c->direction == PCMDIR_PLAY) && + !(c->flags & CHN_F_BUSY)) { + if (c->flags & CHN_F_SLAVE) + foundslave = 1; + ch = c; + c = ch->parentchannel; + break; } CHN_UNLOCK(c); } + if (ch != NULL && foundslave) { + CHN_UNLOCK(ch); + snd_mtxlock(d->lock); + err = slave_destroy(ch); + snd_mtxunlock(d->lock); + if (err || c == NULL) + ch = NULL; + else { + ch = c; + CHN_LOCK(ch); + } + } + if (ch != NULL) { + if (!(ch->flags & CHN_F_BUSY) && + SLIST_EMPTY(&ch->children)) { + ch->flags |= CHN_F_BUSY; + err = vchan_create(ch); + if (err) + ch->flags &= ~CHN_F_BUSY; + else { + CHN_UNLOCK(ch); + ch = NULL; + } + } else { + CHN_UNLOCK(ch); + ch = NULL; + } + } + if (ch != NULL) { + if (snd_slave_enabled && !(ch->flags & CHN_F_BUSY) && + SLIST_EMPTY(&ch->children)) { + ch->flags |= CHN_F_BUSY; + err = slave_create(ch); + if (err) + ch->flags &= ~CHN_F_BUSY; + } + CHN_UNLOCK(ch); + } + return; } if (num == 0 && d->vchancount > 0) { - done = 0; - while (!done) { - done = 1; + /* + * XXX Keep retrying... + */ + for (done = 0; done < 1024; done++) { + ch = NULL; SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; - if ((c->flags & CHN_F_VIRTUAL) && !(c->flags & CHN_F_BUSY)) { - done = 0; - snd_mtxlock(d->lock); - err = vchan_destroy(c); - snd_mtxunlock(d->lock); - if (err) - device_printf(d->dev, "vchan_destroy(%s) == %d\n", c->name, err); - break; /* restart */ + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + !(c->flags & CHN_F_BUSY) && + (c->flags & CHN_F_VIRTUAL)) { + ch = c; + break; + } + CHN_UNLOCK(c); + } + if (ch != NULL) { + CHN_UNLOCK(ch); + snd_mtxlock(d->lock); + err = vchan_destroy(ch); + if (err) + device_printf(d->dev, "vchan_destroy(%s) == %d\n", + ch->name, err); + snd_mtxunlock(d->lock); + } else + break; + } + for (done = 0; done < 1024; done++) { + ch = NULL; + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + !(c->flags & CHN_F_BUSY) && + c->parentchannel == NULL && + SLIST_EMPTY(&c->children)) { + ch = c; + break; } + CHN_UNLOCK(c); } + if (ch != NULL) { + if (snd_slave_enabled) { + ch->flags |= CHN_F_BUSY; + err = slave_create(ch); + if (err) + ch->flags &= ~CHN_F_BUSY; + } + CHN_UNLOCK(ch); + } else + break; } } } @@ -327,7 +408,11 @@ d = devclass_get_softc(pcm_devclass, i); if (!d) continue; - pcm_setmaxautovchans(d, v); + if (d->flags & SD_F_AUTOVCHAN) { + if (pcm_inprog(d, 1) == 1) + pcm_setmaxautovchans(d, v); + pcm_inprog(d, -1); + } } } snd_maxautovchans = v; @@ -337,6 +422,122 @@ SYSCTL_PROC(_hw_snd, OID_AUTO, maxautovchans, CTLTYPE_INT | CTLFLAG_RW, 0, sizeof(int), sysctl_hw_snd_maxautovchans, "I", ""); +static void +pcm_setslave(struct snddev_info *d, int enable) +{ + struct pcm_channel *c, *ch; + struct snddev_channel *sce; + int err, i; + + /* + * Be ruthless about consistencies. First, we traverse the list, + * scanning for busy channels. If there is a candidate with busy + * state, abort operation entirely. + */ + if (enable) { + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + c->parentchannel == NULL && + !(c->flags & CHN_F_HAS_VCHAN) && + (c->flags & CHN_F_BUSY)) { + CHN_UNLOCK(c); + return; + } + CHN_UNLOCK(c); + } + for (i = 0; i < 1024; i++) { + ch = NULL; + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + c->parentchannel == NULL && + !(c->flags & CHN_F_BUSY)) { + ch = c; + break; + } + CHN_UNLOCK(c); + } + if (ch == NULL) + break; + ch->flags |= CHN_F_BUSY; + err = slave_create(ch); + if (err) { + ch->flags &= ~CHN_F_BUSY; + device_printf(d->dev, "slave_create(%s) == %d\n", + ch->name, err); + } + CHN_UNLOCK(ch); + } + } else { + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + (c->flags & CHN_F_SLAVE) && + (c->flags & CHN_F_BUSY)) { + CHN_UNLOCK(c); + return; + } + CHN_UNLOCK(c); + } + for (i = 0; i < 1024; i++) { + ch = NULL; + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY && + (c->flags & CHN_F_SLAVE) && + !(c->flags & CHN_F_BUSY)) { + ch = c; + break; + } + CHN_UNLOCK(c); + } + if (ch == NULL) + break; + CHN_UNLOCK(ch); + snd_mtxlock(d->lock); + err = slave_destroy(ch); + snd_mtxunlock(d->lock); + if (err) + device_printf(d->dev, "slave_destroy(%s) == %d\n", + ch->name, err); + } + } +} + +static int +sysctl_hw_snd_slave_enabled(SYSCTL_HANDLER_ARGS) +{ + struct snddev_info *d; + int i, v, error; + + v = snd_slave_enabled; + error = sysctl_handle_int(oidp, &v, sizeof(v), req); + if (error == 0 && req->newptr != NULL) { + if (v < 0 || v > 1 || pcm_devclass == NULL) + return EINVAL; + for (i = 0; i < devclass_get_maxunit(pcm_devclass); i++) { + d = devclass_get_softc(pcm_devclass, i); + if (!d) + continue; + if ((v == 0 && d->slavecount > 0) || + (v == 1 && d->slavecount == 0)) { + if (pcm_inprog(d, 1) == 1) + pcm_setslave(d, v); + pcm_inprog(d, -1); + } + } + snd_slave_enabled = v; + } + return (error); +} +SYSCTL_PROC(_hw_snd, OID_AUTO, slave_enabled, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(int), sysctl_hw_snd_slave_enabled, "I", ""); + struct pcm_channel * pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, void *devinfo) { @@ -363,6 +564,12 @@ pnum = &d->vchancount; break; + case PCMDIR_SLAVE: + dirs = "slave"; + direction = PCMDIR_PLAY; + pnum = &d->slavecount; + break; + default: return NULL; } @@ -449,11 +656,45 @@ if (SLIST_EMPTY(&d->channels)) { SLIST_INSERT_HEAD(&d->channels, sce, link); } else { + /* + * Micro optimization, channel ordering: + * hw,slave,hw,slave,hw,slave,vch,vch,vch,rec + */ after = NULL; - SLIST_FOREACH(tmp, &d->channels, link) { - after = tmp; + if (ch->flags & CHN_F_VIRTUAL) { + /* virtual channel to the end */ + SLIST_FOREACH(tmp, &d->channels, link) { + if (tmp->channel->direction == PCMDIR_REC) + break; + after = tmp; + } + } else if (ch->flags & CHN_F_SLAVE) { + /* slave channel after parent channel */ + SLIST_FOREACH(tmp, &d->channels, link) { + if (tmp->channel == ch->parentchannel) { + after = tmp; + break; + } + } + } else { + if (ch->direction == PCMDIR_REC) { + SLIST_FOREACH(tmp, &d->channels, link) { + after = tmp; + } + } else { + SLIST_FOREACH(tmp, &d->channels, link) { + if (tmp->channel->direction == PCMDIR_REC) + break; + if (!(tmp->channel->flags & CHN_F_VIRTUAL)) + after = tmp; + } + } + } + if (after == NULL) { + SLIST_INSERT_HEAD(&d->channels, sce, link); + } else { + SLIST_INSERT_AFTER(after, sce, link); } - SLIST_INSERT_AFTER(after, sce, link); } snd_mtxunlock(d->lock); sce->dsp_devt= make_dev(&dsp_cdevsw, @@ -506,10 +747,15 @@ gotit: SLIST_REMOVE(&d->channels, sce, snddev_channel, link); - if (ch->direction == PCMDIR_REC) - d->reccount--; - else if (ch->flags & CHN_F_VIRTUAL) + /* + * Make room for future 'slave' record channel. + */ + if (ch->flags & CHN_F_VIRTUAL) d->vchancount--; + else if (ch->flags & CHN_F_SLAVE) + d->slavecount--; + else if (ch->direction == PCMDIR_REC) + d->reccount--; else d->playcount--; @@ -543,6 +789,7 @@ } CHN_LOCK(ch); + if (snd_maxautovchans > 0 && (d->flags & SD_F_AUTOVCHAN) && ch->direction == PCMDIR_PLAY && d->vchancount == 0) { ch->flags |= CHN_F_BUSY; @@ -553,6 +800,17 @@ device_printf(d->dev, "vchan_create(%s) == %d\n", ch->name, err); return err; } + } else if (snd_slave_enabled > 0 && ch->direction == PCMDIR_PLAY && + ch->parentchannel == NULL && + SLIST_EMPTY(&ch->children)) { + ch->flags |= CHN_F_BUSY; + err = slave_create(ch); + if (err) { + ch->flags &= ~CHN_F_BUSY; + CHN_UNLOCK(ch); + device_printf(d->dev, "slave_create(%s) == %d\n", ch->name, err); + return err; + } } CHN_UNLOCK(ch); @@ -654,17 +912,24 @@ d->lock = snd_mtxcreate(device_get_nameunit(dev), "sound cdev"); +#if 0 + /* + * d->flags should be cleared by the allocator of the softc. + * We cannot clear this field here because several devices set + * this flag before calling pcm_register(). + */ d->flags = 0; +#endif d->dev = dev; d->devinfo = devinfo; d->devcount = 0; d->reccount = 0; d->playcount = 0; + d->slavecount = 0; d->vchancount = 0; d->inprog = 0; SLIST_INIT(&d->channels); - SLIST_INIT(&d->channels); if (((numplay == 0) || (numrec == 0)) && (numplay != numrec)) d->flags |= SD_F_SIMPLEX; @@ -684,10 +949,10 @@ SYSCTL_ADD_INT(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), OID_AUTO, "buffersize", CTLFLAG_RD, &d->bufsz, 0, ""); #endif - if (numplay > 0) + if (numplay > 0) { vchan_initsys(dev); - if (numplay == 1) d->flags |= SD_F_AUTOVCHAN; + } sndstat_register(dev, d->status, sndstat_prepare_pcm); return 0; @@ -703,42 +968,47 @@ struct snddev_channel *sce; struct pcm_channel *ch; + if (sndstat_acquire() != 0) { + device_printf(dev, "unregister: sndstat busy\n"); + return EBUSY; + } + snd_mtxlock(d->lock); if (d->inprog) { device_printf(dev, "unregister: operation in progress\n"); snd_mtxunlock(d->lock); + sndstat_release(); return EBUSY; } - if (sndstat_busy() != 0) { - device_printf(dev, "unregister: sndstat busy\n"); - snd_mtxunlock(d->lock); - return EBUSY; - } - SLIST_FOREACH(sce, &d->channels, link) { ch = sce->channel; if (ch->refcount > 0) { device_printf(dev, "unregister: channel %s busy (pid %d)\n", ch->name, ch->pid); snd_mtxunlock(d->lock); + sndstat_release(); return EBUSY; } } - SLIST_FOREACH(sce, &d->channels, link) { - destroy_dev(sce->dsp_devt); - destroy_dev(sce->dspW_devt); - destroy_dev(sce->audio_devt); - if (sce->dspr_devt) - destroy_dev(sce->dspr_devt); - } - if (mixer_uninit(dev)) { device_printf(dev, "unregister: mixer busy\n"); snd_mtxunlock(d->lock); + sndstat_release(); return EBUSY; } + SLIST_FOREACH(sce, &d->channels, link) { + if (sce->dsp_devt) + destroy_dev(sce->dsp_devt); + if (sce->dspW_devt) + destroy_dev(sce->dspW_devt); + if (sce->audio_devt) + destroy_dev(sce->audio_devt); + if (sce->dspr_devt) + destroy_dev(sce->dspr_devt); + } + #ifdef SND_DYNSYSCTL d->sysctl_tree_top = NULL; sysctl_ctx_free(&d->sysctl_tree); @@ -749,9 +1019,10 @@ chn_kill(d->fakechan); fkchan_kill(d->fakechan); - sndstat_unregister(dev); snd_mtxunlock(d->lock); snd_mtxfree(d->lock); + sndstat_unregister(dev); + sndstat_release(); return 0; } @@ -786,7 +1057,8 @@ } else rc++; } - sbuf_printf(s, " (%dp/%dr/%dv channels%s%s)", d->playcount, d->reccount, d->vchancount, + sbuf_printf(s, " (%dp/%ds/%dr/%dv channels%s%s)", d->playcount, d->slavecount, + d->reccount, d->vchancount, (d->flags & SD_F_SIMPLEX)? "" : " duplex", #ifdef USING_DEVFS (device_get_unit(dev) == snd_unit)? " default" : "" @@ -820,11 +1092,19 @@ if (c->bufhard != NULL && c->bufsoft != NULL) { sbuf_printf(s, "interrupts %d, ", c->interrupts); if (c->direction == PCMDIR_REC) - sbuf_printf(s, "overruns %d, hfree %d, sfree %d", - c->xruns, sndbuf_getfree(c->bufhard), sndbuf_getfree(c->bufsoft)); + sbuf_printf(s, "overruns %d, hfree %d, sfree %d [b:%d/%d/%d|bs:%d/%d/%d]", + c->xruns, sndbuf_getfree(c->bufhard), sndbuf_getfree(c->bufsoft), + sndbuf_getsize(c->bufhard), sndbuf_getblksz(c->bufhard), + sndbuf_getblkcnt(c->bufhard), + sndbuf_getsize(c->bufsoft), sndbuf_getblksz(c->bufsoft), + sndbuf_getblkcnt(c->bufsoft)); else - sbuf_printf(s, "underruns %d, ready %d", - c->xruns, sndbuf_getready(c->bufsoft)); + sbuf_printf(s, "underruns %d, ready %d [b:%d/%d/%d|bs:%d/%d/%d]", + c->xruns, sndbuf_getready(c->bufsoft), + sndbuf_getsize(c->bufhard), sndbuf_getblksz(c->bufhard), + sndbuf_getblkcnt(c->bufhard), + sndbuf_getsize(c->bufsoft), sndbuf_getblksz(c->bufsoft), + sndbuf_getblkcnt(c->bufsoft)); sbuf_printf(s, "\n\t"); } @@ -839,7 +1119,8 @@ sbuf_printf(s, "(0x%08x -> 0x%08x)", f->desc->in, f->desc->out); if (f->desc->type == FEEDER_RATE) sbuf_printf(s, "(%d -> %d)", FEEDER_GET(f, FEEDRATE_SRC), FEEDER_GET(f, FEEDRATE_DST)); - if (f->desc->type == FEEDER_ROOT || f->desc->type == FEEDER_MIXER) + if (f->desc->type == FEEDER_ROOT || f->desc->type == FEEDER_MIXER || + f->desc->type == FEEDER_SLAVE || f->desc->type == FEEDER_VOLUME) sbuf_printf(s, "(0x%08x)", f->desc->out); sbuf_printf(s, " -> "); f = f->parent; @@ -862,26 +1143,32 @@ struct snddev_info *d; struct snddev_channel *sce; struct pcm_channel *c; - int err, newcnt, cnt, busy; - int x; + int err, newcnt, cnt; + /* + * XXX WOAH... NEED SUPER CLEANUP!!! + * Robust, yet confusing. Understanding these will + * cause your brain spinning like a Doki Doki Dynamo. + */ d = oidp->oid_arg1; - x = pcm_inprog(d, 1); - if (x != 1) { + if (!(d->flags & SD_F_AUTOVCHAN)) { pcm_inprog(d, -1); - return EINPROGRESS; + return EINVAL; } - busy = 0; cnt = 0; SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; CHN_LOCK(c); - if ((c->direction == PCMDIR_PLAY) && (c->flags & CHN_F_VIRTUAL)) { + if ((c->direction == PCMDIR_PLAY) && + (c->flags & CHN_F_VIRTUAL)) { cnt++; - if (c->flags & CHN_F_BUSY) - busy++; + if (req->newptr != NULL && c->flags & CHN_F_BUSY) { + /* Better safe than sorry */ + CHN_UNLOCK(c); + return EBUSY; + } } CHN_UNLOCK(c); } @@ -892,9 +1179,12 @@ if (err == 0 && req->newptr != NULL) { - if (newcnt < 0 || newcnt > SND_MAXVCHANS) { - pcm_inprog(d, -1); + if (newcnt < 0 || newcnt > SND_MAXVCHANS) return E2BIG; + + if (pcm_inprog(d, 1) != 1) { + pcm_inprog(d, -1); + return EINPROGRESS; } if (newcnt > cnt) { @@ -906,7 +1196,7 @@ if (c->direction != PCMDIR_PLAY) goto next; /* not a candidate if a virtual channel */ - if (c->flags & CHN_F_VIRTUAL) + if (c->flags & (CHN_F_VIRTUAL | CHN_F_SLAVE)) goto next; /* not a candidate if it's in use */ if (!(c->flags & CHN_F_BUSY) || @@ -927,28 +1217,51 @@ pcm_inprog(d, -1); return EBUSY; addok: - c->flags |= CHN_F_BUSY; + if (cnt == 0 && !SLIST_EMPTY(&c->children)) { + struct pcmchan_children *pce; + + pce = SLIST_FIRST(&c->children); + if (pce && pce->channel) { + CHN_UNLOCK(c); + CHN_LOCK(pce->channel); + if (pce->channel->flags & CHN_F_SLAVE) { + if (pce->channel->flags & CHN_F_BUSY) { + err = EBUSY; + CHN_UNLOCK(pce->channel); + } else { + CHN_UNLOCK(pce->channel); + snd_mtxlock(d->lock); + err = slave_destroy(pce->channel); + snd_mtxunlock(d->lock); + } + } else + CHN_UNLOCK(pce->channel); + CHN_LOCK(c); + } + } + if (SLIST_EMPTY(&c->children)) + c->flags |= CHN_F_BUSY; while (err == 0 && newcnt > cnt) { err = vchan_create(c); if (err == 0) cnt++; } - if (SLIST_EMPTY(&c->children)) - c->flags &= ~CHN_F_BUSY; + if (snd_slave_enabled && SLIST_EMPTY(&c->children)) { + err = slave_create(c); + if (err) + c->flags &= ~CHN_F_BUSY; + } CHN_UNLOCK(c); } else if (newcnt < cnt) { - if (busy > newcnt) { - printf("cnt %d, newcnt %d, busy %d\n", cnt, newcnt, busy); - pcm_inprog(d, -1); - return EBUSY; - } + struct pcm_channel *ch = NULL; snd_mtxlock(d->lock); while (err == 0 && newcnt < cnt) { SLIST_FOREACH(sce, &d->channels, link) { c = sce->channel; CHN_LOCK(c); - if ((c->flags & (CHN_F_BUSY | CHN_F_VIRTUAL)) == CHN_F_VIRTUAL) + if (c->direction == PCMDIR_PLAY && + (c->flags & (CHN_F_BUSY | CHN_F_VIRTUAL)) == CHN_F_VIRTUAL) goto remok; CHN_UNLOCK(c); @@ -957,30 +1270,41 @@ pcm_inprog(d, -1); return EINVAL; remok: + if (ch == NULL) + ch = c->parentchannel; CHN_UNLOCK(c); err = vchan_destroy(c); if (err == 0) cnt--; } snd_mtxunlock(d->lock); + if (ch != NULL && snd_slave_enabled && + SLIST_EMPTY(&ch->children)) { + CHN_LOCK(ch); + ch->flags |= CHN_F_BUSY; + err = slave_create(ch); + if (err) + ch->flags &= ~CHN_F_BUSY; + CHN_UNLOCK(ch); + } } + pcm_inprog(d, -1); } - pcm_inprog(d, -1); return err; } #endif /************************************************************************/ -#if notyet static int sound_modevent(module_t mod, int type, void *data) { +#if 0 return (midi_modevent(mod, type, data)); +#else + return 0; +#endif } DEV_MODULE(sound, sound_modevent, NULL); -#else -DEV_MODULE(sound, NULL, NULL); -#endif /* notyet */ MODULE_VERSION(sound, SOUND_MODVER); --- sys/dev/sound/pcm/sound.h.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/sound.h Fri Sep 16 06:32:00 2005 @@ -130,7 +130,8 @@ #define PCMMKMINOR(u, d, c) ((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f)) #define SD_F_SIMPLEX 0x00000001 -#define SD_F_AUTOVCHAN 0x00000002 +#define SD_F_AUTOVCHAN 0x00000002 +#define SD_F_SOFTVOL 0x00000004 #define SD_F_PRIO_RD 0x10000000 #define SD_F_PRIO_WR 0x20000000 #define SD_F_PRIO_SET (SD_F_PRIO_RD | SD_F_PRIO_WR) @@ -144,16 +145,19 @@ /* make figuring out what a format is easier. got AFMT_STEREO already */ #define AFMT_32BIT (AFMT_S32_LE | AFMT_S32_BE | AFMT_U32_LE | AFMT_U32_BE) +#define AFMT_24BIT (AFMT_S24_LE | AFMT_S24_BE | AFMT_U24_LE | AFMT_U24_BE) #define AFMT_16BIT (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE) -#define AFMT_8BIT (AFMT_U8 | AFMT_S8) -#define AFMT_SIGNED (AFMT_S16_LE | AFMT_S16_BE | AFMT_S8) -#define AFMT_BIGENDIAN (AFMT_S16_BE | AFMT_U16_BE) +#define AFMT_8BIT (AFMT_MU_LAW | AFMT_A_LAW | AFMT_U8 | AFMT_S8) +#define AFMT_SIGNED (AFMT_S32_LE | AFMT_S32_BE | AFMT_S24_LE | AFMT_S24_BE | \ + AFMT_S16_LE | AFMT_S16_BE | AFMT_S8) +#define AFMT_BIGENDIAN (AFMT_S32_BE | AFMT_U32_BE | AFMT_S24_BE | AFMT_U24_BE | \ + AFMT_S16_BE | AFMT_U16_BE) struct pcm_channel *fkchan_setup(device_t dev); int fkchan_kill(struct pcm_channel *c); /* - * Major nuber for the sound driver. + * Major number for the sound driver. */ #define SND_CDEV_MAJOR 30 @@ -240,11 +244,12 @@ int sysctl_hw_snd_vchans(SYSCTL_HANDLER_ARGS); typedef int (*sndstat_handler)(struct sbuf *s, device_t dev, int verbose); +int sndstat_acquire(void); +int sndstat_release(void); int sndstat_register(device_t dev, char *str, sndstat_handler handler); int sndstat_registerfile(char *str); int sndstat_unregister(device_t dev); int sndstat_unregisterfile(char *str); -int sndstat_busy(void); #define SND_DECLARE_FILE(version) \ _SND_DECLARE_FILE(__LINE__, version) @@ -286,7 +291,7 @@ struct snddev_info { SLIST_HEAD(, snddev_channel) channels; struct pcm_channel *fakechan; - unsigned devcount, playcount, reccount, vchancount; + unsigned devcount, playcount, reccount, slavecount, vchancount; unsigned flags; int inprog; unsigned int bufsz; --- sys/dev/sound/pcm/vchan.c.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/vchan.c Fri Sep 16 06:32:00 2005 @@ -30,6 +30,14 @@ SND_DECLARE_FILE("$FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.16.2.1 2005/01/30 01:00:05 imp Exp $"); +/* + * Default speed + */ +#define VCHAN_DEFAULT_SPEED 48000 + +extern int feeder_rate_ratemin; +extern int feeder_rate_ratemax; + struct vchinfo { u_int32_t spd, fmt, blksz, bps, run; struct pcm_channel *channel, *parent; @@ -74,13 +82,21 @@ struct snd_dbuf *src = source; struct pcmchan_children *cce; struct pcm_channel *ch; + uint32_t sz; int16_t *tmp, *dst; - unsigned int cnt; + unsigned int cnt, rcnt = 0; + #if 0 if (sndbuf_getsize(src) < count) panic("feed_vchan_s16(%s): tmp buffer size %d < count %d, flags = 0x%x", c->name, sndbuf_getsize(src), count, c->flags); + #endif + sz = sndbuf_getsize(src); + if (sz < count) + count = sz; count &= ~1; + if (count < 2) + return 0; bzero(b, count); /* @@ -99,12 +115,14 @@ if (ch->flags & CHN_F_MAPPED) sndbuf_acquire(ch->bufsoft, NULL, sndbuf_getfree(ch->bufsoft)); cnt = FEEDER_FEED(ch->feeder, ch, (u_int8_t *)tmp, count, ch->bufsoft); - vchan_mix_s16(dst, tmp, cnt / 2); + vchan_mix_s16(dst, tmp, cnt >> 1); + if (cnt > rcnt) + rcnt = cnt; } CHN_UNLOCK(ch); } - return count; + return rcnt & ~1; } static struct pcm_feederdesc feeder_vchan_s16_desc[] = { @@ -127,6 +145,8 @@ KASSERT(dir == PCMDIR_PLAY, ("vchan_init: bad direction")); ch = malloc(sizeof(*ch), M_DEVBUF, M_WAITOK | M_ZERO); + if (!ch) + return NULL; ch->parent = parent; ch->channel = c; ch->fmt = AFMT_U8; @@ -154,11 +174,16 @@ ch->fmt = format; ch->bps = 1; ch->bps <<= (ch->fmt & AFMT_STEREO)? 1 : 0; - ch->bps <<= (ch->fmt & AFMT_16BIT)? 1 : 0; - ch->bps <<= (ch->fmt & AFMT_32BIT)? 2 : 0; + if (ch->fmt & AFMT_16BIT) + ch->bps <<= 1; + else if (ch->fmt & AFMT_24BIT) + ch->bps *= 3; + else if (ch->fmt & AFMT_32BIT) + ch->bps <<= 2; CHN_UNLOCK(channel); chn_notify(parent, CHN_N_FORMAT); CHN_LOCK(channel); + sndbuf_setfmt(channel->bufsoft, format); return 0; } @@ -180,12 +205,14 @@ vchan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) { struct vchinfo *ch = data; + struct pcm_channel *channel = ch->channel; struct pcm_channel *parent = ch->parent; /* struct pcm_channel *channel = ch->channel; */ int prate, crate; ch->blksz = blocksize; /* CHN_UNLOCK(channel); */ + sndbuf_setblksz(channel->bufhard, blocksize); chn_notify(parent, CHN_N_BLOCKSIZE); CHN_LOCK(parent); /* CHN_LOCK(channel); */ @@ -243,6 +270,81 @@ }; CHANNEL_DECLARE(vchan); +/* + * On the fly vchan rate settings + */ +#ifdef SND_DYNSYSCTL +static int +sysctl_hw_snd_vchanrate(SYSCTL_HANDLER_ARGS) +{ + struct snddev_info *d; + struct snddev_channel *sce; + struct pcm_channel *c, *ch = NULL, *fake; + struct pcmchan_caps *caps; + int err = 0; + int newspd = 0; + + d = oidp->oid_arg1; + if (!(d->flags & SD_F_AUTOVCHAN) || d->vchancount < 1) + return EINVAL; + SLIST_FOREACH(sce, &d->channels, link) { + c = sce->channel; + CHN_LOCK(c); + if (c->direction == PCMDIR_PLAY) { + if (c->flags & CHN_F_VIRTUAL) { + if (req->newptr != NULL && + (c->flags & CHN_F_BUSY)) { + CHN_UNLOCK(c); + return EBUSY; + } + if (ch == NULL) + ch = c->parentchannel; + } + } + CHN_UNLOCK(c); + } + if (ch != NULL) { + CHN_LOCK(ch); + newspd = ch->speed; + CHN_UNLOCK(ch); + } + err = sysctl_handle_int(oidp, &newspd, sizeof(newspd), req); + if (err == 0 && req->newptr != NULL) { + if (ch == NULL || newspd < 1 || + newspd < feeder_rate_ratemin || + newspd > feeder_rate_ratemax) + return EINVAL; + if (pcm_inprog(d, 1) != 1) { + pcm_inprog(d, -1); + return EINPROGRESS; + } + CHN_LOCK(ch); + caps = chn_getcaps(ch); + if (caps == NULL || newspd < caps->minspeed || + newspd > caps->maxspeed) { + CHN_UNLOCK(ch); + pcm_inprog(d, -1); + return EINVAL; + } + if (newspd != ch->speed) { + err = chn_setspeed(ch, newspd); + CHN_UNLOCK(ch); + if (err == 0) { + fake = pcm_getfakechan(d); + if (fake != NULL) { + CHN_LOCK(fake); + fake->speed = newspd; + CHN_UNLOCK(fake); + } + } + } else + CHN_UNLOCK(ch); + pcm_inprog(d, -1); + } + return err; +} +#endif + /* virtual channel interface */ int @@ -250,10 +352,15 @@ { struct snddev_info *d = parent->parentsnddev; struct pcmchan_children *pce; - struct pcm_channel *child; - int err, first; + struct pcm_channel *child, *fake; + struct pcmchan_caps *parent_caps; + int err, first, speed = 0; - CHN_UNLOCK(parent); + if (!(parent->flags & CHN_F_BUSY)) + return EBUSY; + + + CHN_UNLOCK(parent); pce = malloc(sizeof(*pce), M_DEVBUF, M_WAITOK | M_ZERO); if (!pce) { @@ -268,16 +375,7 @@ CHN_LOCK(parent); return ENODEV; } - - CHN_LOCK(parent); - if (!(parent->flags & CHN_F_BUSY)) - return EBUSY; - - first = SLIST_EMPTY(&parent->children); - /* add us to our parent channel's children */ pce->channel = child; - SLIST_INSERT_HEAD(&parent->children, pce, link); - CHN_UNLOCK(parent); /* add us to our grandparent's channel list */ /* @@ -287,20 +385,103 @@ if (err) { pcm_chn_destroy(child); free(pce, M_DEVBUF); + CHN_LOCK(parent); + return err; } CHN_LOCK(parent); - /* XXX gross ugly hack, murder death kill */ - if (first && !err) { - err = chn_reset(parent, AFMT_STEREO | AFMT_S16_LE); - if (err) - printf("chn_reset: %d\n", err); - err = chn_setspeed(parent, 44100); - if (err) - printf("chn_setspeed: %d\n", err); + /* add us to our parent channel's children */ + first = SLIST_EMPTY(&parent->children); + SLIST_INSERT_HEAD(&parent->children, pce, link); + parent->flags |= CHN_F_HAS_VCHAN; + + if (first) { + parent_caps = chn_getcaps(parent); + if (parent_caps == NULL) + err = EINVAL; + + if (!err) + err = chn_reset(parent, AFMT_STEREO | AFMT_S16_LE); + + if (!err) { + fake = pcm_getfakechan(d); + if (fake != NULL) { + /* + * Avoid querying kernel hint, use saved value + * from fake channel. + */ + CHN_UNLOCK(parent); + CHN_LOCK(fake); + speed = fake->speed; + CHN_UNLOCK(fake); + CHN_LOCK(parent); + } + + /* + * This is very sad. Few soundcards advertised as being + * able to do (insanely) higher/lower speed, but in + * reality, they simply can't. At least, we give user chance + * to set sane value via kernel hints or sysctl. + */ + if (speed < 1) { + int r; + CHN_UNLOCK(parent); + r = resource_int_value(device_get_name(parent->dev), + device_get_unit(parent->dev), + "vchanrate", &speed); + CHN_LOCK(parent); + if (r != 0) + speed = VCHAN_DEFAULT_SPEED; + } + + /* + * Limit speed based on driver caps. + * This is supposed to help fixed rate, non-VRA + * AC97 cards, but.. (see below) + */ + if (speed < parent_caps->minspeed) + speed = parent_caps->minspeed; + if (speed > parent_caps->maxspeed) + speed = parent_caps->maxspeed; + + /* + * We still need to limit the speed between + * feeder_rate_ratemin <-> feeder_rate_ratemax. This is + * just an escape goat if all of the above failed + * miserably. + */ + if (speed < feeder_rate_ratemin) + speed = feeder_rate_ratemin; + if (speed > feeder_rate_ratemax) + speed = feeder_rate_ratemax; + + err = chn_setspeed(parent, speed); + + if (!err && fake != NULL) { + /* + * Save new value to fake channel. + */ + CHN_UNLOCK(parent); + CHN_LOCK(fake); + fake->speed = speed; + CHN_UNLOCK(fake); + CHN_LOCK(parent); + } + } + + if (err) { + SLIST_REMOVE(&parent->children, pce, pcmchan_children, link); + parent->flags &= ~CHN_F_HAS_VCHAN; + CHN_UNLOCK(parent); + free(pce, M_DEVBUF); + pcm_chn_remove(d, child); + pcm_chn_destroy(child); + CHN_LOCK(parent); + return err; + } } - return err; + return 0; } int @@ -309,6 +490,7 @@ struct pcm_channel *parent = c->parentchannel; struct snddev_info *d = parent->parentsnddev; struct pcmchan_children *pce; + struct snddev_channel *sce; int err, last; CHN_LOCK(parent); @@ -329,21 +511,44 @@ CHN_UNLOCK(parent); return EINVAL; gotch: + SLIST_FOREACH(sce, &d->channels, link) { + if (sce->channel == c) { + if (sce->dsp_devt) + destroy_dev(sce->dsp_devt); + if (sce->dspW_devt) + destroy_dev(sce->dspW_devt); + if (sce->audio_devt) + destroy_dev(sce->audio_devt); + if (sce->dspr_devt) + destroy_dev(sce->dspr_devt); + break; + } + } SLIST_REMOVE(&parent->children, pce, pcmchan_children, link); free(pce, M_DEVBUF); last = SLIST_EMPTY(&parent->children); - if (last) + if (last) { parent->flags &= ~CHN_F_BUSY; + parent->flags &= ~CHN_F_HAS_VCHAN; + } /* remove us from our grandparent's channel list */ err = pcm_chn_remove(d, c); - if (err) - return err; CHN_UNLOCK(parent); /* destroy ourselves */ - err = pcm_chn_destroy(c); + if (!err) + err = pcm_chn_destroy(c); + +#if 0 + if (!err && last) { + CHN_LOCK(parent); + chn_reset(parent, chn_getcaps(parent)->fmtlist[0]); + chn_setspeed(parent, chn_getcaps(parent)->minspeed); + CHN_UNLOCK(parent); + } +#endif return err; } @@ -358,9 +563,10 @@ SYSCTL_ADD_PROC(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), OID_AUTO, "vchans", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d), sysctl_hw_snd_vchans, "I", ""); + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "vchanrate", CTLTYPE_INT | CTLFLAG_RW, d, sizeof(d), + sysctl_hw_snd_vchanrate, "I", ""); #endif return 0; } - - --- sys/dev/sound/pcm/vchan.h.orig Sun Jan 30 09:00:05 2005 +++ sys/dev/sound/pcm/vchan.h Fri Sep 16 06:32:00 2005 @@ -29,5 +29,5 @@ int vchan_create(struct pcm_channel *parent); int vchan_destroy(struct pcm_channel *c); int vchan_initsys(device_t dev); - - +int slave_create(struct pcm_channel *parent); +int slave_destroy(struct pcm_channel *c); --- sys/dev/sound/usb/uaudio.c.orig Fri Apr 15 12:15:24 2005 +++ sys/dev/sound/usb/uaudio.c Fri Sep 16 06:32:00 2005 @@ -4130,10 +4130,10 @@ if (mc->ctl == type) { if (mc->nchan == 2) { /* set Right */ - uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*256)/100); + uaudio_ctl_set(sc, SET_CUR, mc, 1, (int)(right*255)/100); } /* set Left or Mono */ - uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*256)/100); + uaudio_ctl_set(sc, SET_CUR, mc, 0, (int)(left*255)/100); } } return; --- sys/dev/sound/usb/uaudio_pcm.c.orig Wed Apr 20 14:43:41 2005 +++ sys/dev/sound/usb/uaudio_pcm.c Fri Sep 16 06:32:00 2005 @@ -237,11 +237,20 @@ { u_int32_t mask; device_t pa_dev; + struct snddev_info *d; struct ua_info *ua = mix_getdevinfo(m); pa_dev = device_get_parent(ua->sc_dev); + d = device_get_softc(ua->sc_dev); mask = uaudio_query_mix_info(pa_dev); + if (d && !(mask & SOUND_MIXER_PCM)) { + /* + * Emulate missing pcm mixer controller + * through FEEDER_VOLUME + */ + d->flags |= SD_F_SOFTVOL; + } mix_setdevs(m, mask); mask = uaudio_query_recsrc_info(pa_dev); --- share/man/man4/snd_es137x.4.orig Fri Sep 16 06:25:19 2005 +++ share/man/man4/snd_es137x.4 Fri Sep 16 06:32:00 2005 @@ -39,6 +39,23 @@ bridge driver allows the generic audio driver .Xr sound 4 to attach to the Ensoniq 137x audio cards. +.Ss Runtime Configuration +The following +.Xr sysctl 8 +variables are available in addition to those available to all +.Xr sound 4 +devices: +.Bl -tag -width ".Va hw.snd.pcm%d.latency_timer" -offset indent +.It Va hw.snd.pcm%d.latency_timer +Controls the PCI latency timer setting. +Increasing this value will solve most popping and crackling issues +(especially on VIA motherboards). +.It Va hw.snd.pcm%d.spdif_enabled +Enables S/PDIF output on the primary playback channel. +This +.Xr sysctl 8 +variable is available only if the device is known to support S/PDIF output. +.El .Sh HARDWARE The .Nm @@ -59,3 +76,4 @@ .An "Russell Cattelan" Aq cattelan@thebarn.com .An "Cameron Grant" Aq cg@FreeBSD.org .An "Joachim Kuebart" +.An "Jonathan Noack" Aq noackjr@alumni.rice.edu --Multipart=_Fri__16_Sep_2005_06_36_31_+0800_FNRSpxZB0VwFh.HR-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 23:09:41 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 EB70F16A420 for ; Thu, 15 Sep 2005 23:09:40 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id D880143D45 for ; Thu, 15 Sep 2005 23:09:39 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 9858A87A53 for ; Fri, 16 Sep 2005 01:09:38 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 8F591123DE for ; Fri, 16 Sep 2005 01:09:38 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-132-003.arcor-ip.net [84.61.132.3]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 193E459A42 for ; Fri, 16 Sep 2005 01:09:38 +0200 (CEST) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8FN9WYI050378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Sep 2005 01:09:32 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.4/8.13.1) with ESMTP id j8FN9V9f014636 for ; Fri, 16 Sep 2005 01:09:31 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.4/8.13.1/Submit) id j8FN9UKQ014635 for freebsd-multimedia@freebsd.org; Fri, 16 Sep 2005 01:09:30 +0200 (CEST) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Fri, 16 Sep 2005 01:09:26 +0200 User-Agent: KMail/1.8.2 References: <20050914170228.328c571e.perlfu@gmail.com> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> In-Reply-To: <200509152331.24060.lofi@freebsd.org> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 23:09:41 -0000 --nextPart51280948.PmM5RAS96t Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday, 15. September 2005 23:31, Michael Nottebrock wrote: > On Thursday, 15. September 2005 22:00, Mike S. wrote: > > Did not patch from /incoming, and also have rm'd the sound sources, > > and re-cvs'd a couple times to retry the patch since. > > I can confirm > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050915_0= 41 >softvol.diff doesn't compile (I didn't try it before - 20050913_036softvol= + > channel.c.diff worked). =46alse alarm. rm -r /usr/src/sys/dev/sound sys/modules/sound=20 sys/sys/soundcard.h /usr/obj, cvsup'ing and then reapplying the patch took= =20 care of the errors.=20 It seems patch does funky things when it creates a new file (feeder_volume.= c)=20 and there's already an .orig file from a previous application of the patch = in=20 place. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart51280948.PmM5RAS96t Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDKf8qXhc68WspdLARAvRUAJ9+nqjxQ8FvmLHEgHOdu+gCbDaYWwCgp+58 QYaAwdef65OFYZ9hCCFJHhk= =B3+5 -----END PGP SIGNATURE----- --nextPart51280948.PmM5RAS96t-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 15 23:31:33 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 D04F516A41F; Thu, 15 Sep 2005 23:31:33 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F87443D46; Thu, 15 Sep 2005 23:31:33 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 577406CC2E; Fri, 16 Sep 2005 07:39:40 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 62050-03; Fri, 16 Sep 2005 07:39:39 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 18ECB6CC2C; Fri, 16 Sep 2005 07:39:38 +0800 (MYT) Date: Fri, 16 Sep 2005 07:31:34 +0800 From: Ariff Abdullah To: lofi@freebsd.org, perlfu@gmail.com Message-Id: <20050916073134.38ed20b1.skywizard@MyBSD.org.my> In-Reply-To: <200509160109.30482.lofi@freebsd.org> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> <200509160109.30482.lofi@freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 23:31:33 -0000 On Fri, 16 Sep 2005 01:09:26 +0200 Michael Nottebrock wrote: > On Thursday, 15. September 2005 23:31, Michael Nottebrock wrote: > > On Thursday, 15. September 2005 22:00, Mike S. wrote: > > > Did not patch from /incoming, and also have rm'd the sound > > > sources, > > > and re-cvs'd a couple times to retry the patch since. > > > > I can confirm > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050915_041 > >softvol.diff doesn't compile (I didn't try it before - > >20050913_036softvol + > > channel.c.diff worked). > > False alarm. rm -r /usr/src/sys/dev/sound sys/modules/sound > sys/sys/soundcard.h /usr/obj, cvsup'ing and then reapplying the patch > took care of the errors. > > It seems patch does funky things when it creates a new file > (feeder_volume.c) and there's already an .orig file from a previous > application of the patch in place. > I've created tarball for the entire sound driver (RELENG_5). Those who might prefer that can use that instead of diff. http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050916_042.tar.gz tar -zxf snd_RELENG_5_20050916_042.tar.gz -C /usr -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 16 00:10:16 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C17D16A41F for ; Fri, 16 Sep 2005 00:10:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB88843D53 for ; Fri, 16 Sep 2005 00:10:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8G0AF5R005722 for ; Fri, 16 Sep 2005 00:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8G0AFeg005721; Fri, 16 Sep 2005 00:10:15 GMT (envelope-from gnats) Date: Fri, 16 Sep 2005 00:10:15 GMT Message-Id: <200509160010.j8G0AFeg005721@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Ariff Abdullah Cc: Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ariff Abdullah List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 00:10:16 -0000 The following reply was made to PR kern/48338; it has been noted by GNATS. From: Ariff Abdullah To: bug-followup@FreeBSD.org Cc: jylefort@brutele.be, netchild@FreeBSD.org Subject: Re: kern/48338: [sound] pcm audio driver hogs /dev/dsp?.? Date: Fri, 16 Sep 2005 08:06:36 +0800 On Mon, 12 Sep 2005 18:38:41 GMT Alexander Leidinger wrote: > Synopsis: [sound] pcm audio driver hogs /dev/dsp?.? > > State-Changed-From-To: feedback->open > State-Changed-By: netchild > State-Changed-When: Mon Sep 12 18:38:03 GMT 2005 > State-Changed-Why: > Feedback received, it's still a problem, so back to "open". > I cannot reproduce this, but then again, my src is no longer a pristine RELENG_5. First of all, using /dev/dsp0. is discourage, because that means you're locking it to certain virtual channel. Since: # Note: you're sending this to background that will keep it running # even after ctrl+c $ while : ; do play -d /dev/dsp0.1 somefile & ; done ^C $ play -d /dev/dsp0.1 somefile In this case, trying to use already occupied dsp device will obviously fail (device busy). Use /dev/dsp instead for dynamic channel allocation. I would suggest you to try first those proposed patch (for RELENG_5). Most of the fixes already commited to HEAD. http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ If the problem still persist (even after applying it), could you please tell us what soundcard you have, pciconf -lv, sysctl hw.snd, cat /dev/sndstat , anything that might be related. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 16 07:52:33 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B821C16A41F; Fri, 16 Sep 2005 07:52:33 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B43643D46; Fri, 16 Sep 2005 07:52:33 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8G7qXVU067941; Fri, 16 Sep 2005 07:52:33 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8G7qX4x067937; Fri, 16 Sep 2005 07:52:33 GMT (envelope-from linimon) Date: Fri, 16 Sep 2005 07:52:33 GMT From: Mark Linimon Message-Id: <200509160752.j8G7qX4x067937@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/79912: [sound] sound broken for 2 VIA chipsets: interrupt storm X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 07:52:33 -0000 Synopsis: [sound] sound broken for 2 VIA chipsets: interrupt storm Responsible-Changed-From-To: freebsd-i386->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Fri Sep 16 07:52:17 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=79912 From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 05:42:53 2005 Return-Path: X-Original-To: multimedia@freebsd.org 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 60E1216A41F for ; Sat, 17 Sep 2005 05:42:53 +0000 (GMT) (envelope-from jos@catnook.com) Received: from w250.z064001178.sjc-ca.dsl.cnc.net (209-204-181-78.dsl.static.sonic.net [209.204.181.78]) by mx1.FreeBSD.org (Postfix) with SMTP id E666D43D45 for ; Sat, 17 Sep 2005 05:42:52 +0000 (GMT) (envelope-from jos@catnook.com) Received: (qmail 94650 invoked by uid 1000); 17 Sep 2005 05:44:21 -0000 Date: Fri, 16 Sep 2005 22:43:59 -0701 From: Jos Backus To: multimedia@freebsd.org Message-ID: <20050917054421.GA93917@lizzy.catnook.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Cc: Subject: Curious sound playback slowdown X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jos@catnook.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 05:42:53 -0000 lizzy:~% uname -a FreeBSD lizzy.catnook.local 7.0-CURRENT FreeBSD 7.0-CURRENT #52: Fri Sep 16 03:22:12 PDT 2005 root@lizzy.catnook.local:/usr/obj/usr/src/sys/LIZZY i386 lizzy:~% cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xa400 irq 14 kld snd_es137x (1p/1r/2v channels duplex default) lizzy:~% sysctl -a hw.snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.feeder_rate_buffersize: 8192 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_ratemin: 4000 hw.snd.verbose: 1 hw.snd.maxautovchans: 3 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 2 hw.snd.pcm0.vchanrate: 48000 hw.snd.pcm0.latency_timer: 32 lizzy:~% The problem: I have noticed for some time that occasionally, when visiting certain websites, the sound notifications in KDE "slow down" from a particular point in time on. After some trial and error I have been able to narrow down the conditions under which this happens predictably: The steps to reproduce the issue on my system are: - Start playing an .mp3 with `splay song.mp3'; - Start `firefox http://www.tomshardware.com' Once the page starts to load a slowdown of the playback speed can be observed abruptly. A key requirement is that the site has Flash content and that the Flash6 (haven't tried 7) player is configured in /etc/libmap.conf. When the Flash6 entries are removed from /etc/libmap.conf the problem doesn't occur. Some more info: lizzy:~% splay song.mp3 & lizzy:~% ktrace -di firefox http://www.tomshardware.com [Notice sound slowdown upon page load. Quit firefox.] lizzy:~% kdump | grep NAMI | grep dev 92219 sh NAMI "/dev/null" 92230 sh NAMI "/dev/null" 92231 firefox-bin NAMI "/dev/mixer" 92231 firefox-bin NAMI "/dev/mixer1" 92231 firefox-bin NAMI "/dev/dsp" 92231 firefox-bin NAMI "/dev/mixer" 92231 firefox-bin NAMI "/dev/mixer1" lizzy:~% Relevant ktrace info around open of /dev/dsp: 92231 firefox-bin CALL stat(0x29e3b090,0xbfbf6c08) 92231 firefox-bin NAMI "/tmp/.esd/socket" 92231 firefox-bin RET stat -1 errno 2 No such file or directory 92231 firefox-bin CALL open(0x8c9d050,0x6,0xbfbf6c70) 92231 firefox-bin NAMI "/dev/dsp" 92231 firefox-bin RET open 19/0x13 92231 firefox-bin CALL fcntl(0x13,0x4,0) 92231 firefox-bin RET fcntl 0 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SETFMT,0xbfbf6ca4) 92231 firefox-bin RET ioctl 0 92231 firefox-bin CALL gettimeofday(0xbf8fde58,0) 92231 firefox-bin RET gettimeofday 0 92231 firefox-bin CALL recvfrom(0x17,0x8c89004,0x1000,0,0,0) 92231 firefox-bin GIO fd 23 read 290 bytes "116\r 302 Found

Found

The document has moved here\ .

\r 0\r \r " 92231 firefox-bin RET recvfrom 290/0x122 92231 firefox-bin CALL write(0x7,0x28339e4d,0x1) 92231 firefox-bin GIO fd 7 wrote 1 byte "8" 92231 firefox-bin RET write 1 92231 firefox-bin CALL poll(0xbf8fdce0,0x1,0xffffffff) 92231 firefox-bin RET poll 1 92231 firefox-bin CALL read(0x6,0xbf8fdb20,0x400) 92231 firefox-bin GIO fd 6 read 1 byte "8" 92231 firefox-bin RET read 1 92231 firefox-bin CALL gettimeofday(0xbf8fddf8,0) 92231 firefox-bin RET gettimeofday 0 92231 firefox-bin CALL recvfrom(0x17,0xbf8fdd9f,0x1,0x2,0,0) 92231 firefox-bin RET recvfrom -1 errno 35 Resource temporarily unavailable 92231 firefox-bin CALL poll(0xbf8fdce0,0x1,0xffffffff) 92231 firefox-bin RET fork 0 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0) 92231 firefox-bin RET ioctl 0 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc) 92231 firefox-bin RET ioctl 0 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) 92231 firefox-bin RET ioctl 0 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04) 92231 firefox-bin RET ioctl 0 92231 firefox-bin CALL fcntl(0x13,0x4,0) 92231 firefox-bin RET fcntl 0 92231 firefox-bin CALL close(0x13) As can be seen in the kdump, several ioctls() are performed on /dev/dsp. Of course it's very hard to tell whether these ioctls() happen at the time the slowdown starts, i.e. whether there is a correlation between the two events. Has anybody else perhaps seen this? -- Jos Backus jos at catnook.com From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 08:20:33 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 4240116A41F for ; Sat, 17 Sep 2005 08:20:33 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B500343D45 for ; Sat, 17 Sep 2005 08:20:30 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 99F1A6CC23; Sat, 17 Sep 2005 16:28:38 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73239-03; Sat, 17 Sep 2005 16:28:37 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9C6046CC22; Sat, 17 Sep 2005 16:28:35 +0800 (MYT) Date: Sat, 17 Sep 2005 16:20:25 +0800 From: Ariff Abdullah To: "Mike S." Message-Id: <20050917162025.143954a6.skywizard@MyBSD.org.my> In-Reply-To: <20050916234218.12c427d5.perlfu@gmail.com> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> <200509160109.30482.lofi@freebsd.org> <20050916073134.38ed20b1.skywizard@MyBSD.org.my> <20050916234218.12c427d5.perlfu@gmail.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 08:20:33 -0000 On Fri, 16 Sep 2005 23:42:18 -0500 "Mike S." wrote: > [..] > > I cleaned out all my sound stuff, recvs'd, and applied the patch > you posted recently, and although I haven't gotten a single hard > lock yet, I can no longer get multiple sounds at once, I'm guessing > I'm incapable of using vchans somehow. Any input? > I need the output of cat /dev/sndstat after applying the patch, possibly with hw.snd.verbose=2 . -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 16:05:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 878FB16A41F for ; Sat, 17 Sep 2005 16:05:50 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id F100743D49 for ; Sat, 17 Sep 2005 16:05:49 +0000 (GMT) (envelope-from perlfu@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so253514nzk for ; Sat, 17 Sep 2005 09:05:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=BiOk/regsyhMjU7dK3D4sgIcu1m+raJs/DAqBloqepUDiixmdksxPugWL5MZ9zTPMWOVY6/3vgrQD7wf8wOAbVqxJGBu2IDP2nt9Qi2xnPdK+s3rfD/lVrtNaKjofTvYeZRFN3JbDlvtBCfDCR40UtqF7/JMcH+qyphiVNg9K9o= Received: by 10.54.10.71 with SMTP id 71mr214918wrj; Sat, 17 Sep 2005 09:05:49 -0700 (PDT) Received: from insomnia.localnet.net ( [66.142.197.120]) by mx.gmail.com with ESMTP id 26sm500809wrl.2005.09.17.09.05.48; Sat, 17 Sep 2005 09:05:48 -0700 (PDT) Date: Sat, 17 Sep 2005 11:05:45 -0500 From: "Mike S." To: freebsd-multimedia@freebsd.org Message-Id: <20050917110545.0d1935ab.perlfu@gmail.com> In-Reply-To: <20050917162025.143954a6.skywizard@MyBSD.org.my> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> <200509160109.30482.lofi@freebsd.org> <20050916073134.38ed20b1.skywizard@MyBSD.org.my> <20050916234218.12c427d5.perlfu@gmail.com> <20050917162025.143954a6.skywizard@MyBSD.org.my> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; amd64-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 16:05:50 -0000 On Sat, 17 Sep 2005 16:20:25 +0800 Ariff Abdullah wrote: > On Fri, 16 Sep 2005 23:42:18 -0500 > "Mike S." wrote: > > [..] > > > > I cleaned out all my sound stuff, recvs'd, and applied the patch > > you posted recently, and although I haven't gotten a single hard > > lock yet, I can no longer get multiple sounds at once, I'm guessing > > I'm incapable of using vchans somehow. Any input? > > > I need the output of cat /dev/sndstat after applying the patch, possibly > with hw.snd.verbose=2 . > > > -- > > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xc400 irq 22 kld snd_via8233 (5p/1r/4v channels duplex default) [pcm0:play:0]: spd 44100/48000, fmt 0x10000010, flags 0x00001000, 0x0000 0010 interrupts 0, underruns 0, ready 0 {userland} -> feeder_vchan_s16(0x10000010) -> feeder_rate(44100 -> 48000 ) -> {hardware} [pcm0:play:1]: spd 44100/48000, fmt 0x10000010, flags 0x00003030, 0x0000 0010, pid 14575 interrupts 31045, underruns 2, ready 131072 {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware} [pcm0:play:2]: spd 44100/48000, fmt 0x10000010, flags 0x00000000, 0x0000 0010 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware} [pcm0:play:3]: spd 22050/48000, fmt 0x00000020/0x10000010, flags 0x00000 000, 0x00000010 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000020) -> feeder_endian(0x00000020 -> 0x0 0000010) -> feeder_monotostereo16(0x00000010 -> 0x10000010) -> feeder_rate(22050 -> 48000) -> {hardware} [pcm0:play:4]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x000 00000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:record:0]: spd 44100/48000, fmt 0x10000010, flags 0x00000000, 0x00 000010 interrupts 0, overruns 0, hfree 4096, sfree 131072 {hardware} -> feeder_root(0x10000010) -> feeder_rate(48000 -> 44100) -> {userland} pcm0:play:0[pcm0:virtual:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x1 0000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:1]: spd 0, fmt 0x00000000/0x00000008, flags 0x1 0000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x1 0000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x1 0000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 16:59:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 E8A3416A420 for ; Sat, 17 Sep 2005 16:59:47 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE4B43D4C for ; Sat, 17 Sep 2005 16:59:43 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 894506CC2E; Sun, 18 Sep 2005 01:07:57 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74294-07; Sun, 18 Sep 2005 01:07:55 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 7A4996CC25; Sun, 18 Sep 2005 01:07:54 +0800 (MYT) Date: Sun, 18 Sep 2005 00:59:43 +0800 From: Ariff Abdullah To: "Mike S." Message-Id: <20050918005943.5dd098e6.skywizard@MyBSD.org.my> In-Reply-To: <20050917110545.0d1935ab.perlfu@gmail.com> References: <20050914170228.328c571e.perlfu@gmail.com> <20050915150051.7d31bd99.perlfu@gmail.com> <200509152331.24060.lofi@freebsd.org> <200509160109.30482.lofi@freebsd.org> <20050916073134.38ed20b1.skywizard@MyBSD.org.my> <20050916234218.12c427d5.perlfu@gmail.com> <20050917162025.143954a6.skywizard@MyBSD.org.my> <20050917110545.0d1935ab.perlfu@gmail.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Vchan/Sound/patch hard locks... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 16:59:48 -0000 On Sat, 17 Sep 2005 11:05:45 -0500 "Mike S." wrote: > On Sat, 17 Sep 2005 16:20:25 +0800 > Ariff Abdullah wrote: > > > On Fri, 16 Sep 2005 23:42:18 -0500 > > "Mike S." wrote: > > > [..] > > > > > > I cleaned out all my sound stuff, recvs'd, and applied the > > > patch you posted recently, and although I haven't gotten a > > > single hard lock yet, I can no longer get multiple sounds at > > > once, I'm guessing I'm incapable of using vchans somehow. Any > > > input? > > > > > I need the output of cat /dev/sndstat after applying the patch, > > possibly with hw.snd.verbose=2 . > > > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xc400 irq 22 kld snd_via8233 (5p/1r/4v > channels duplex > default) I don't think the patch was applied properly. http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050916_043softvol.diff get a clean, *real clean* RELENG_5 sources, than do cd /usr/src && patch -p0 < snd_RELENG_5_20050916_043softvol.diff There are few (6) conditions need to be tested: DXS --- 1) No vchans. hw.snd.pcm0.vchans=0 , hw.snd.maxautovchans=0 2) auto vchans. hw.snd.maxautovchans=10 , hw.snd.pcm0.vchans=1 3) fixed vchans. hw.snd.maxautovchans=10 , hw.snd.pcm0.vchans=10 DXS disabled ------------ Make sure /boot/device.hints contains hint.pcm.0.via_dxs_disabled="1", and reboot 4) No vchans. (same with 1) 5) auto vchans. (same with 2) 6) fixed vchans. (same with 3) Do the test for all those conditions, and tell me any success/failure for each of it. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 21:02:01 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 CB91F16A41F for ; Sat, 17 Sep 2005 21:02:01 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from mta1.siol.net (mta1.siol.net [193.189.160.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id E842143D46 for ; Sat, 17 Sep 2005 21:01:59 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20050917210158.EOQS17218.mta1.siol.net@edge1.siol.net> for ; Sat, 17 Sep 2005 23:01:58 +0200 Received: from [192.168.1.102] (really [193.77.234.1]) by edge1.siol.net with ESMTP id <20050917210157.ESNS14516.edge1.siol.net@[192.168.1.102]> for ; Sat, 17 Sep 2005 23:01:57 +0200 Message-ID: <432C8444.4060300@kabelnet.net> Date: Sat, 17 Sep 2005 23:01:56 +0200 From: Ales User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: As promised: Soft volume control mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 21:02:01 -0000 Hi all. I can confirm that after applying snd_RELENG_5_20050916_043softvol.diff volume and balance control works as expected. Thanks! uname -a FreeBSD romcek.FreeBSD 5.4-RELEASE-p7 FreeBSD 5.4-RELEASE-p7 #1: Sat Sep 17 20:00:40 CEST 2005 romcek@romcek.FreeBSD:/usr/obj/usr/src/sys/GENERIC i386 dmesg | grep pcm pcm0: port 0xc400-0xc4ff irq 22 at device 17.5 on pci0 pcm0: pcm0: mixer Mixer vol is currently set to 62:62 Mixer pcm is currently set to 58:58 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer line1 is currently set to 75:75 Recording source: mic / pciconf -lv/ pcm0@pci0:17:5: class=0x040100 card=0x97611849 chip=0x30591106 rev=0x60 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class = multimedia subclass = audio From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 17 21:18:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 6DDF816A41F for ; Sat, 17 Sep 2005 21:18:26 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE76843D48 for ; Sat, 17 Sep 2005 21:18:22 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 04F066CC2E; Sun, 18 Sep 2005 05:26:37 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (tomoyo.MyBSD.org.my [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 75454-05; Sun, 18 Sep 2005 05:26:35 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id B7CBE6CC2D; Sun, 18 Sep 2005 05:26:35 +0800 (MYT) Date: Sun, 18 Sep 2005 05:18:24 +0800 From: Ariff Abdullah To: Ales Message-Id: <20050918051824.635a6ff8.skywizard@MyBSD.org.my> In-Reply-To: <432C8444.4060300@kabelnet.net> References: <432C8444.4060300@kabelnet.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume control mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 21:18:26 -0000 On Sat, 17 Sep 2005 23:01:56 +0200 Ales wrote: > Hi all. > > I can confirm that after applying > snd_RELENG_5_20050916_043softvol.diff volume and balance control > works as expected. > > Thanks! > Great! Thanks for that :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)