From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 18:50:46 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 3A72516A41F for ; Fri, 4 Nov 2005 18:50:46 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBACA43D46 for ; Fri, 4 Nov 2005 18:50:45 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jA4IlmIc029138; Fri, 4 Nov 2005 11:47:48 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Nov 2005 11:47:48 -0700 (MST) Message-Id: <20051104.114748.71117327.imp@bsdimp.com> To: skywizard@MyBSD.org.my From: Warner Losh In-Reply-To: <20051105023834.5da2a41b.skywizard@MyBSD.org.my> References: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> <20051104.085348.89043521.imp@bsdimp.com> <20051105023834.5da2a41b.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 04 Nov 2005 11:47:48 -0700 (MST) Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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, 04 Nov 2005 18:50:46 -0000 > "M. Warner Losh" wrote: > > In message: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> > > Ariff Abdullah writes: > > : On Fri, 04 Nov 2005 00:08:42 -0700 (MST) > > : "M. Warner Losh" wrote: > > : > I recently upgraded my only sony 505TS. > > : >From .. to .. ? > > : > Upgraded from what (FreeBSD?) version to what (I guess it is > -CURRENT)? current from 'a while' ago. I no longer have the old kernel to know what exact version it was. > > : > Sound stopped working. > > : > xmms gives an error that the operation isn't supported by my > > device. : > I > > : > wonder what this means? From looking at the open to /dev/dsp, > > it : > appears that the channel reset isn't succeeding. > What makes you think channel reset isn't succeeding? Any other error > or diagnostic messages from syslog/console? Nope. What makes me think this is purely code inspection for the operation not supported by device: if (flags & FREAD) { ... /* got a channel, already locked for us */ if (chn_reset(rdch, fmt)) { pcm_chnrelease(rdch); i_dev->si_drv1 = NULL; return ENODEV; } ... } if (flags & FWRITE) { /* open for write */ ... if (!wrch) error = EBUSY; /* XXX Right return code? */ else if (chn_reset(wrch, fmt)) error = ENODEV; ... > Perhaps /dev/dsp has been acquired by something else (since your > vchans disabled). fstat | grep dsp. How about enabling vchans? % fstat | grep dps % Why are my vchans disabled, what does that mean and what can I do about it? Warner