All of lore.kernel.org
 help / color / mirror / Atom feed
* PCM driver only plays tiny portion of clip
@ 2006-02-27 16:07 Adrian McMenamin
  2006-02-27 17:26 ` Clemens Ladisch
  0 siblings, 1 reply; 26+ messages in thread
From: Adrian McMenamin @ 2006-02-27 16:07 UTC (permalink / raw)
  To: alsa-devel

My driver (for sound on the Sega Dreamcast) will now play the first part
of a pcm sound – eg if I do the following:

cat hal.wav > /dev/dsp

I get the “I’m sorry” bit of “I’m sorry Dave I can’t do that” – I am using
the oss emulation because I cannot get aplay to work on my system.

The clip however is stuck in an endless loop (in a sense this is the
expected behaviour – the sound system on the dreamcast normally loops over
its buffer until told to do otherwise) and most of the “playback” is
silence.

As the DMA transfer to the sound memory is working, it looks like the
first 32k (or maybe just 4k – the period size) of the clip is transferred
but nothing else.

How do I let my driver know that it has played a period and therefore it
needs to load more into the buffer?

At the moment the following seems to be happening:

Create buffer in DMA space in main CPU addressed area
    |
    |
Transfer contents of buffer into memory space of sound chip via DMA
    |
    |
Start playback
    |
    |
Fire interrupt for period played


Then it gets stuck in a loop – the interrupt is fired and handled but
nothing else seems to happen.

I’m a bit stuck and this might not be very clear, but any clues?




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2006-03-03  8:45 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 16:07 PCM driver only plays tiny portion of clip Adrian McMenamin
2006-02-27 17:26 ` Clemens Ladisch
2006-02-27 17:35   ` Adrian McMenamin
2006-02-28  7:30     ` Clemens Ladisch
2006-02-28  9:10       ` Adrian McMenamin
2006-02-28 14:55         ` Clemens Ladisch
2006-02-28 15:14           ` Adrian McMenamin
2006-02-28 17:08             ` Clemens Ladisch
2006-02-28 17:36               ` Adrian McMenamin
2006-03-01 19:10                 ` Adrian McMenamin
2006-03-01 19:31                   ` Lee Revell
2006-03-01 19:40                     ` Adrian McMenamin
2006-03-01 19:59                       ` Lee Revell
2006-03-01 20:20                         ` Adrian McMenamin
2006-03-01 20:31                           ` Lee Revell
2006-03-01 20:28                         ` Adrian McMenamin
2006-03-01 20:41                           ` Lee Revell
2006-03-02 20:49                             ` Adrian McMenamin
2006-03-03  7:27                               ` Clemens Ladisch
2006-03-03  7:42                                 ` Adrian McMenamin
2006-03-03  8:12                                   ` Lee Revell
     [not found]                                     ` <1141373843.9229.4.camel@localhost.localdomain>
2006-03-03  8:45                                       ` Lee Revell
2006-03-03  8:18                                   ` Lee Revell
2006-03-03  8:36                                   ` Lee Revell
2006-03-01 19:45                     ` Adrian McMenamin
2006-02-27 23:08   ` Adrian McMenamin

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.