Bug 14372

Summary: The audio ioctl SNDCTL_DSP_SETFMT affects the stereo setting
Product: Base System Reporter: pantzer <pantzer>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description pantzer 1999-10-17 16:10:01 UTC
splay plays mp3 at low speed. The problem is that it tries to set stereo 
but gets mono.

SNDCTL_DSP_SETFMT now resets the AFMT_STERO bit. This was not the case in earlier kernels (from 990901 for example)

How-To-Repeat: 
Run splay.
Comment 1 ken 1999-11-06 21:18:57 UTC
pantzer@ludd.luth.se wrote...
> 
> >Number:         14372
> >Category:       i386
> >Synopsis:       The audio ioctl SNDCTL_DSP_SETFMT affects the stereo setting
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Sun Oct 17 08:10:01 PDT 1999
> >Closed-Date:
> >Last-Modified:
> >Originator:     Mattias Pantzare
> >Release:        FreeBSD 4.0-CURRENT i386
> >Organization:
> >Environment:
> 
> FreeBSD-current from 991017.
> Soundcad supported by pcm.
> 
> >Description:
> 
> splay plays mp3 at low speed. The problem is that it tries to set stereo 
> but gets mono.
> 
> SNDCTL_DSP_SETFMT now resets the AFMT_STERO bit. This was not the case in earlier kernels (from 990901 for example)
> 

For the record, this fixes a problem I had with my GUS PnP Pro and
pcmplay(1), which comes with tosha.  It set stereo before setting the
format, and the result was what sounded like low speed.

Ken
-- 
Kenneth Merry
ken@kdm.org
Comment 2 tanimura freebsd_committer freebsd_triage 1999-11-07 04:27:14 UTC
State Changed
From-To: open->closed

Fixed in rev 1.6(with a monor change).