All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Davis <paul@linuxaudiosystems.com>
To: "Dr. med. Günther Montag" <Safari.Doktor@addcom.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: I/O Error in mmapping ES 1969
Date: Fri, 10 Oct 2003 08:55:56 -0400	[thread overview]
Message-ID: <200310101255.h9ACturd017106@oud> (raw)
In-Reply-To: Your message of "Fri, 10 Oct 2003 14:29:48 +0200." <200310101427.43458.Safari.Doktor@addcom.de>

>I mentioned my ham radio realtime program with mmap
>in a posting on 3. Oct and before.
>It works now with ALSA 0.9.7 with AC97 and maybe some other cards, thanks!!!
>With ESS ES1969 mmap(ibuf, isize, PROT_READ, MAP_FILE | MAP_SHARED | 
>MAP_FIXED, fd_audio, 0)
>(and I tried also all other MAP_ options) it breaks with I / O error.
>Do You know some help about mmap besides man,

IIRC, mmap with OSS doesn't work unless you use the LD_PRELOAD
hack. this loads a library that intercepts all standard system calls
and routes them through alsa-lib. your app will not run without
this. why? mmap provides direct access to the DMA buffer of the
hardware, and thus bypasses most of what alsa-lib does. ALSA does
support such direct access, but not in the simplistic way that OSS
provides.

or can I do something with "Scatter Gather" in ALSA API,
>or does it help if i work myself into JACK for this problem?
>hints welcome, tnx!!!

either use ALSA natively, or use JACK, or use the LD_PRELOAD hack.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

  reply	other threads:[~2003-10-10 12:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 12:29 I/O Error in mmapping ES 1969 Dr. med. Günther Montag
2003-10-10 12:55 ` Paul Davis [this message]
2003-10-10 12:58   ` Jaroslav Kysela

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=200310101255.h9ACturd017106@oud \
    --to=paul@linuxaudiosystems.com \
    --cc=Safari.Doktor@addcom.de \
    --cc=alsa-devel@lists.sourceforge.net \
    /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.