Skip to contentSkip to conversation

: OSS emulation on 'snd-via82xx' & nonblocking write to /dev/dsp

ALSA - driver 0000443 [email protected] 1 participant 1 message Aug 26, 2004

lore
Share & tools
lore
#0 lore raw

A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000443
======================================================================
Reported By: serge
Assigned To:
======================================================================

Project:                    ALSA - driver
Bug ID:                     443
Category:                   CORE OSS - pcm
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             08-15-2004 12:19 CEST
Last Modified:              08-26-2004 19:54 CEST

======================================================================
Summary: OSS emulation on 'snd-via82xx' & nonblocking write to /dev/dsp
Description:
When you open '/dev/dsp' in nonblocking mode (O_NONBLOCK) and write too much data to it, it seems that write operation always returns success and pretends that all data was written. But calls to ioctl(oss_fd, SNDCTL_DSP_GETOSPACE, &bufinfo) start returning weird information. Test program that reproduces the bug is attached.
======================================================================

----------------------------------------------------------------------
serge - 08-26-2004 19:54 CEST
----------------------------------------------------------------------
Just tested and reproduced the same problem on 'snd-intel8x0' (nforce2 chipset), so this is not 'snd-via82xx' specific (KT133A chipset). Please anybody replace the summary of this bug with 'OSS emulation & nonblocking write to /dev/dsp'.

Bug History
Date Modified Username Field Change
======================================================================

08-15-04 12:19 serge          New Bug                                      
08-15-04 12:19 serge          File Added: oss-bug.cpp                      
08-15-04 12:26 serge          Bug Monitored: serge                         
08-26-04 19:54 serge          Bugnote Added: 0001635                       

======================================================================

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285