Date: Fri, 04 Nov 2005 11:47:48 -0700 (MST) From: Warner Losh <imp@bsdimp.com> To: skywizard@MyBSD.org.my Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness Message-ID: <20051104.114748.71117327.imp@bsdimp.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> "M. Warner Losh" <imp@bsdimp.com> wrote:
> > In message: <20051104161811.4ca68aac.skywizard@MyBSD.org.my>
> > Ariff Abdullah <skywizard@MyBSD.org.my> writes:
> > : On Fri, 04 Nov 2005 00:08:42 -0700 (MST)
> > : "M. Warner Losh" <imp@bsdimp.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051104.114748.71117327.imp>
