Bug 20340

Summary: SNDCTL_DSP_GETODELAY on pcm device is incorrectly implemented.
Product: Base System Reporter: shirai <shirai>
Component: kernAssignee: cg
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description shirai 2000-08-01 13:00:01 UTC
According to OSS Programmer's Guide (http://www.opensound.com/pguide/),
SNDCTL_DSP_GETODELAY returns the number of unplayed bytes in the
kernel buffer. It means the length of ready areas (rl). But, in
the latest implement, this call returns the total bytes played
already. It is certainly mis-implement.

Fix: The following patch will be effective:
How-To-Repeat: Use any audio applications which use SNDCTL_DSP_GETODELAY.
e.g. TiMidity++ (>= 3.5.1)
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-01 13:09:02 UTC
Responsible Changed
From-To: freebsd-bugs->cg

Over to the pcm maintainer.
Comment 2 cg freebsd_committer freebsd_triage 2001-03-27 07:11:08 UTC
State Changed
From-To: open->closed

fixed