From: Florian Schmidt <mista.tapas@gmx.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: Paul Davis <paul@linuxaudiosystems.com>,
alsa-devel@lists.sourceforge.net
Subject: Re: difference between OSS mmap and alsa mmap? [alsa-oss]
Date: Tue, 24 Aug 2004 13:57:10 +0200 [thread overview]
Message-ID: <20040824135710.2422ef23@mango.fruits.de> (raw)
In-Reply-To: <s5hvfh27fr6.wl@alsa2.suse.de>
On Mon, 05 Jul 2004 15:19:57 +0200
Takashi Iwai <tiwai@suse.de> wrote:
> At Mon, 05 Jul 2004 09:13:46 -0400,
> Paul Davis wrote:
> >
> > >the last thing i can see not working correctly in alsa-oss is the
> > >mmap emulati on [may closed source apps use OSS with mmap emu].
> > >jcdutton told me on irc tha t this is due to the differences in OSS
> > >mmaping and ALSA mmaping and it might not be possible to resolve
> > >these issues..
> >
> > i don't think its possible. the OSS mmap API provides raw ptr access
> > to the DMA area of the h/w. you cannot intercede when an app just
> > uses pointer indirection and advance to read/write data. ALSA's API
> > does the same, of course, but access is bounded by two calls that
> > allow correct handling for devices where the DMA area is a bit more
> > complex than the OSS model allows for (e.g. 2 devices, or a device
> > that can't support mmap in hardware, or a dmix device, or ...)
>
> A hack would be to call mmap_avail() in oss's GETSPACE (or similar)
> ioctls. But, right, I don't think that the "perfect" emulation is
> possible on all hardwares as it is now, too.
btw: i might prove my ignorance with this question, but i have to ask:
what makes the kernel oss emu handle mmap so good? it's an emulation,
too, i suppose.. so what is the big difference in these two emulations,
that in one case it works well [kernel oss emu] and in the other it
seems almost impossible [libaoss.so]..
flo
-------------------------------------------------------
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
next prev parent reply other threads:[~2004-08-24 11:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 12:42 difference between OSS mmap and alsa mmap? [alsa-oss] Florian Schmidt
2004-07-05 13:13 ` Paul Davis
2004-07-05 13:19 ` Takashi Iwai
2004-08-24 11:57 ` Florian Schmidt [this message]
2004-08-24 12:20 ` Florian Schmidt
2004-08-24 13:41 ` Jaroslav Kysela
2004-08-24 14:30 ` James Courtier-Dutton
2004-08-24 15:47 ` Paul Davis
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=20040824135710.2422ef23@mango.fruits.de \
--to=mista.tapas@gmx.net \
--cc=alsa-devel@lists.sourceforge.net \
--cc=paul@linuxaudiosystems.com \
--cc=tiwai@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.