Update of /cvsroot/alsa/alsa-kernel/core/oss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15560/alsa-kernel/core/oss
Modified Files: pcm_oss.c Log Message: don't return negative byte count from GET[IO]PTR ioctl Index: pcm_oss.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -r1.68 -r1.69 --- pcm_oss.c 26 Apr 2004 07:31:22 -0000 1.68 +++ pcm_oss.c 4 May 2004 13:02:02 -0000 1.69 @@ -1516,14 +1516,14 @@ runtime->oss.prev_hw_ptr_interrupt = delay; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) snd_pcm_oss_simulate_fill(substream, delay); - info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr); + info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr) & INT_MAX; } else { delay = snd_pcm_oss_bytes(substream, delay) + fixup; info.blocks = delay / runtime->oss.period_bytes; if (stream == SNDRV_PCM_STREAM_PLAYBACK) - info.bytes = runtime->oss.bytes - delay; + info.bytes = (runtime->oss.bytes - delay) & INT_MAX; else - info.bytes = runtime->oss.bytes + delay; + info.bytes = (runtime->oss.bytes + delay) & INT_MAX; } if (copy_to_user(_info, &info, sizeof(info))) return -EFAULT; ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog