All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: TODO list
Date: Fri, 26 May 2006 18:30:36 +0100	[thread overview]
Message-ID: <44773B3C.4020206@superbug.co.uk> (raw)
In-Reply-To: <s5hslmwu3s2.wl%tiwai@suse.de>

Takashi Iwai wrote:
>> For mmap, all that happens is that the application asks for a mmap 
>> address from the kernel.
>> If we could get the kernel to manipulate shared memory, so that the mmap 
>> address given to the application is shared with the daemon, surely that 
>> would work.
>>     
>
> The sharing of memory between the app and the daemon is easy via a
> simple mmap invoked from both sides.  But, sharing the mmapped buffer
> from a sound driver between the daemon and the app over yet another
> driver is a tough problem, because the buffer is strictly bound to the
> sound card hardware.
>   

> We need to consider first the basic design more deeply.
> For example, even if we get the mmapped buffer, it's not enough for
> the whole operation, especially when the period/buffer size doesn't
> match with whta OSS requires.
>
>
> Takashi
>   

I was thinking more along the lines of User App -> OSS kernel shim -> 
userland daemon buffer, one buffer per user app -> alsa-lib.
So, the mmap would not be a real mmap, it would be a simple matter of 
tricking the User app into thinking it is mmapped. It would be a double 
buffer really.
So, the daemon buffer would just be whatever size the OSS user app 
wanted, and the daemon would then pass it's contents to alsa-lib or 
jackd as and when needed.
All this would probably only be possible if some high res timer source 
(e.g. the system timer) was used to trigger the period boundaries. I 
think I mentioned that idea some time ago. Maybe we should just aim for 
that TODO item to help dmix work better at 44100Hz, and then worry about 
the OSS kernel shim after that.
Maybe by that time....OSS would have disappeared! :-)

James

  reply	other threads:[~2006-05-26 17:30 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 18:10 TODO list James Courtier-Dutton
2006-05-25 18:36 ` Lee Revell
2006-05-26 11:07 ` Takashi Iwai
2006-05-26 11:29   ` James Courtier-Dutton
2006-05-26 15:34     ` Takashi Iwai
2006-05-26 16:33       ` James Courtier-Dutton
2006-05-26 16:52         ` Takashi Iwai
2006-05-26 17:30           ` James Courtier-Dutton [this message]
2006-05-26 18:43             ` Takashi Iwai
2006-06-30 12:08             ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2015-07-24  6:01 José Pekkarinen
2010-08-17 19:16 todo list varun satrawla
2010-07-14 10:01 TODO list Kulikov Vasiliy
2012-07-08 13:38 ` TODO List Benjamin BEURDOUCHE
2012-07-09  0:51 ` Keith Woodie
2015-04-03 20:40 ` TODO list Ravi Kerur
2015-04-07  7:49 ` Dan Carpenter
2015-04-09  0:36 ` Ravi Kerur
2015-04-09  8:48 ` Dan Carpenter
2015-04-09 22:57 ` Ravi Kerur
2015-04-10  5:34 ` Julia Lawall
2015-04-10 22:47 ` Ravi Kerur
2015-04-11  5:17 ` Julia Lawall
2015-04-13 22:02 ` Dan Carpenter
2015-04-13 22:42 ` Ravi Kerur
2015-04-14  6:58 ` Dan Carpenter
2009-11-21 16:30 todo list Krzysztof
2005-10-25  8:50 TODO List SMohideen
2005-10-30  9:44 ` Harald Welte
2000-04-28 11:52 Jamey Hicks
2000-04-28 12:17 ` Trevor Woolven
2000-04-29  0:27 ` David Woodhouse
2000-04-28  8:38 Trevor Woolven

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=44773B3C.4020206@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@alsa-project.org \
    --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.