Skip site navigation (1)Skip section navigation (2)
Date:      3 Apr 2001 00:28:28 -0000
From:      davidt@yadt.co.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/26304: pcm only plays left channel in FreeBSD 4.3-RC
Message-ID:  <20010403002828.1599.qmail@gattaca.yadt.co.uk>

next in thread | raw e-mail | index | archive | help

>Number:         26304
>Category:       kern
>Synopsis:       pcm only plays left channel in FreeBSD 4.3-RC
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 17:30:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Taylor
>Release:        FreeBSD 4.3-RC i386
>Organization:
>Environment:
System: FreeBSD gattaca.yadt.co.uk 4.3-RC FreeBSD 4.3-RC #9: Tue Apr 3 01:08:15 BST 2001 davidt@gattaca.yadt.co.uk:/usr/obj/usr/src/sys/GATTACA i386

Soundcard: Soundblaster Live! 256 Value (or something similar),
pcm0: <Creative EMU10K1> port 0x10a0-0x10bf irq 10 at device 14.0 on pci0

>Description:

Under FreeBSD 4.3-BETA as of ~4th March, everything worked fine, however,
when I cvsuped to 4.3-RC as of today (late 2nd April), I noticed xmms was
only playing through the left speaker.

CD's, etc, still played properly, but if I attempted to move the balance to
the right speaker, nothing played at all, because all the sound was being
sent to the right channel, but.. vanishing somewhere..

I'm not sure how many people are going to be hit by this problem,
but it'd be really nice if this was fixed before 4.3-RELEASE...

>How-To-Repeat:
	cvsup.. play something.. note lack of sound from right speaker.
	I'm assuming it's a problem specific to my soundcard,
	or someone would have noticed it earlier....
>Fix:

I narrowed the problem down to an MFC in dev/sound/pcm around 4 weeks ago,
and eventually managed to discover that the problem went away again if I
reverted this single hunk of that MFC..

(although, presumably, this also reintroduces whatever problem that MFC was
 attempting to fix)

As for a real fix... I'll leave that to someone who has a clue about the pcm
driver :)

===================================================================
RCS file: /home/ncvs/src/sys/dev/sound/pcm/dsp.c,v
retrieving revision 1.15.2.6
retrieving revision 1.15.2.7
diff -u -p -r1.15.2.6 -r1.15.2.7
--- src/sys/dev/sound/pcm/dsp.c 2001/02/03 01:29:11     1.15.2.6
+++ src/sys/dev/sound/pcm/dsp.c 2001/03/14 15:18:58     1.15.2.7
@@ -82,6 +82,8 @@ dsp_open(snddev_info *d, int chan, int o
        if (chan >= d->chancount) return ENODEV;
        if ((d->flags & SD_F_SIMPLEX) && (d->ref[chan] > 0)) return EBUSY;
+       if (d->atype[chan] != 0 && d->atype[chan] != devtype) return EBUSY;
+
        rdch = d->arec[chan];
        wrch = d->aplay[chan];
        if (oflags & FREAD) {
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010403002828.1599.qmail>