From: Vedran Rodic <vedran@quark.fsb.hr>
To: alsa-devel@lists.sourceforge.net
Cc: linux-msdos@vger.kernel.org
Subject: trouble with dosemu and alsa oss emulation (and a fix for alsa)
Date: Sat, 6 Sep 2003 22:09:43 +0200 [thread overview]
Message-ID: <20030906200943.GA5128@quark.fsb.hr> (raw)
Hi.
I'm having trouble with latest ALSA and oss emulation. I'm using dosemu to
play some DOS games and I've noticed that sound in DOS apps stops playing
after short time (depending on the app).
I'm regulary updating both alsa and dosemu, I suspected dosemu first, since
I had no problems whatsoever with alsa oss emulation.
It turned out that this was not dosemu problem, but alsa oss emulation problem.
I've tracked it down to a change in alsa-kernel/core/oss/pcm_oss.c.
The change is here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/alsa/alsa-kernel/core/oss/pcm_oss.c.diff?r1=1.40&r2=1.41
I'm currently using the latest pcm_oss.c but without this patch and it
works great again.
I think that dosemu code - src/arch/linux/dosext/sound/linux_sound.c is
correct.
Anyway, here's a couple of lines from dosemu sound log, starting arround
where IOCTL error appears:
SB:[Linux] Get Free Fragments (16, 0)
SB:[Linux] Get Free Fragments (16, 0)
SB: Read 0x7f from DSP Write Buffer Status Register
SB: Going to write 128 bytes
SB:[Linux] Get Free Fragments (16, 0)
SB:[Linux] Get Free Fragments (16, 0)
SB: DSP command 0xd0 accepted
SB: Pausing DMA transfer, 256 bytes left
SB: Read 0x7e from DSP Write Buffer Status Register
SB: DSP command 0xd4 accepted
SB: Going to write 128 bytes
SB:[Linux] Get Free Fragments IOCTL error (Broken pipe)
SB:[Linux] Get Free Fragments IOCTL error (Broken pipe)
SB: Going to write 128 bytes
SB:[Linux] Get Free Fragments IOCTL error (Broken pipe)
SB:[Linux] Get Free Fragments IOCTL error (Broken pipe)
SB: Going to write 128 bytes
Vedran
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next reply other threads:[~2003-09-06 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-06 20:09 Vedran Rodic [this message]
2003-09-06 21:56 ` trouble with dosemu and alsa oss emulation (and a fix for alsa) Ryan Underwood
2003-09-08 7:14 ` Jaroslav Kysela
2003-09-08 14:45 ` [Alsa-devel] " Vedran Rodic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030906200943.GA5128@quark.fsb.hr \
--to=vedran@quark.fsb.hr \
--cc=alsa-devel@lists.sourceforge.net \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox