All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: Florian Schmidt <mista.tapas@gmx.net>, alsa-devel@lists.sourceforge.net
Subject: Re: difference between OSS mmap and alsa mmap? [alsa-oss]
Date: Mon, 05 Jul 2004 15:19:57 +0200	[thread overview]
Message-ID: <s5hvfh27fr6.wl@alsa2.suse.de> (raw)
In-Reply-To: <200407051313.i65DDlH7023180@localhost.localdomain>

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.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

  reply	other threads:[~2004-07-05 13:19 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 [this message]
2004-08-24 11:57     ` Florian Schmidt
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=s5hvfh27fr6.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=mista.tapas@gmx.net \
    --cc=paul@linuxaudiosystems.com \
    /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.